I have been trying to allow .rhosts for root on my Linux (RedHat 4.2,
kernel 2.0.30). I have figured out that Redhat comes configured with pam
and that I have to change the /etc/pam.d/rlogin file. However I have not
figured out how to do this. I have removed the
securetty line (which at least allows me to logon as root) but do not
know how to change the others. I assume it is one of the "auth" lines
that needs changing. Anyway here is my rlogin pam file
auth sufficient /lib/security/pam_rhosts_auth.so
auth required /lib/security/pam_pwdb.so shadow nullok
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so shadow nullok use_authtok
session required /lib/security/pam_pwdb.so
i( and yes, I do have a .rhosts file in /root owned by root, with rw
permission only to root.)