1833758 Members
2335 Online
110063 Solutions
New Discussion

hosts.equiv

 
SOLVED
Go to solution
Leonid Mishkind
Frequent Advisor

hosts.equiv

Hi everyone.
As I understand the way rlogind works, when I login to a server , the rlogind checks for my source hostname in hosts.equiv and then in .rhosts if the hostname appears in the first file ,access is granted without propting for a password. the the .rhosts file is checked .
If I understand this correct , then how come when I enter a hostname to hosts.equiv I still get prompted for a password? entering the same hostname to .rhosts does not prompt for a password. Please help.
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: hosts.equiv

Shalom,

As I understand it for root a .rhosts file is required.

For other users when there are entries in hosts.equiv and .rhosts the hosts.equiv file overrides.

When you use actual hostnames in there, some sort of name resolution is required either /etc/hosts or DNS. If there is a problem with name resolution the password prompt will come up even if everything is supposedly correct on the configuration files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Leonid Mishkind
Frequent Advisor

Re: hosts.equiv

I have tested what you said, and you are very correct. root must have .rhosts
, other users work without it also.

Thanks alot.