Operating System - Linux
1832085 Members
2929 Online
110037 Solutions
New Discussion

Re: remsh root always asks for passwd

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

remsh root always asks for passwd

Hi, RHAS2.1 2.4.9
no matter what .rhosts config I use,
from user1 rcommand'ing to root always asks for a password. How can I disable this.

Thanks,
Bill
It works for me (tm)
3 REPLIES 3
U.SivaKumar_2
Honored Contributor
Solution

Re: remsh root always asks for passwd

Hi,

This is because of a pam module.

#vi /etc/pam.d/rlogin

Change the existing line to this ,

auth sufficient pam_rhosts_auth.so

#service xinetd restart

Add your hosts in /root/.rhosts

regards,

U.SivaKumar




Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor

Re: remsh root always asks for passwd

Thank U!
works now!
It works for me (tm)
Stuart Browne
Honored Contributor

Re: remsh root always asks for passwd

The other way to fix this is to put 'rlogin' in /etc/securetty.

This is because by default RH doesn't allow root remote-commands over an unsecure channel.

Also after this change, rehashing xinetd isn't necessary, as it is only a port listener. The daemon which uses the pam.d libraries are executed as a child (xinetd is just a super-daemon, like inetd under HPUX or other unicies).
One long-haired git at your service...