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.
# Install telnet server
#rpm -ivh telnet-server-0.17-39.el5.x86_64.rpm
#Enable it from xinetd
Change “disable = yes” to “disable = no”, so the file should look like this:
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
#auth required pam_securetty.so
# That should do it. Encourage the users to switch to SSH as soon as possible.