Home > Linux, Redhat > Allowing root access via telnet on RHEL5

Allowing root access via telnet on RHEL5

While this is not a recommended option for accessing servers, sometimes developers and testers don’t want to change their legacy automated scripts.  Obviously this only applies to test/dev environments and not in Production.  Here are the steps to enable telnet access to the server and enable root logins.

# Get the telnet RPM from Redhat’s website for the version appropriate to your system.
telnet-server-0.17-39.el5.x86_64.rpm

# Install telnet server
#rpm -ivh telnet-server-0.17-39.el5.x86_64.rpm

#Enable it from xinetd
#vi /etc/xinetd.d/telnet
Change “disable = yes” to “disable = no”, so the file should look like this:
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}

#kill -1 `cat /var/run/xinetd.pid`
# vi /etc/pam.d/remote
# Comment out line:
auth       required     pam_securetty.so
to:
#auth       required     pam_securetty.so

# That should do it.  Encourage the users to switch to SSH as soon as possible.

Categories: Linux, Redhat
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: