Jump to Navigation

135 - Enable telnet on RedHat OS

Linux is configured to run the Telnet server, but by default, these services are not enabled.
To enable the telnet service, login to the server as the root user account and run the following commands:

# rpm -qa | grep telnet

If you get nothing.

# yum install telnet*

* Edit /etc/xinetd.d/telnet and modify disable to 'no' from 'yes'.

service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}

* Reload xinetd service.

# chkconfig --list telnet

telnet   off

# chkconfig on telnet

# /etc/init.d/xinetd reload

Reloading configuration:                                   [  OK  ]

Now before getting into the details of how to configure Red Hat Linux for root logins, keep in mind that this is VERY BAD security.
Make sure that you NEVER configure your production servers for this type of login.

Simply edit the file /etc/securetty  and add the following to the end of the file:

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9

This will allow up to 10 telnet sessions to the server as root.

 



Main menu 2

Story | by Dr. Radut