Red Hat Enterprise Linux 5.4 [telnet server]
Microsoft Windows [telnet client]
Cannot use telnet to connect to Red Hat Enterprise Linux 5.4 box as a normal user, why ?
A normal user cannot telnet to a Red Hat Enterprise Linux 5.4 server from a remote windows system. Has enabled root to login using telnet remotely. The sessions hangs after the user name and password are typed and times out after 60 seconds. If the password is typed-in wrong, a "login incorrect" message comes back.
a) Two extra rules were added in /etc/pam.d/system-auth as shown below :
auth sufficient pam_ldap.so use_first_pass
was added as the fourth line in the first block of rules.
account [default=bad success=ok user_unknown=ignore] pam_ldap.so
was added as the third line in the second block of rules.
Remove them and confirm with a normal system-auth file.
b) Changes in /etc/nsswitch.conf.
The problematic /etc/nsswitch.conf was :
passwd: files ldap shadow: files ldap group: files ldap
The above content was changed to:
passwd: files shadow: files group: files
Changes in /etc/pam.d/system-auth and /etc/nsswitch.conf
a) Checked if the user home existed or not.
b) Saw changes in /etc/pam.d/remote and /etc/pam.d/system-auth from the output of 'rpm -Va' in sosreport.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.