Operating System - HP-UX
1819696 Members
3364 Online
109605 Solutions
New Discussion юеВ

how is different between rhost and /etc/hosts.equiv ?

 
restrospec
Contributor

how is different between rhost and /etc/hosts.equiv ?

I think both rhost and /etc/hosts.equiv can take superuser login without password to remote server.
I trouble that how is different between rhost and /etc/hosts.equiv.

Please suggest me.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: how is different between rhost and /etc/hosts.equiv ?

Shalom,

Two ways to do the same thing.

hosts.equiv overrides settings of .rhosts as I recall.

It is safer and more secure to use secure shell (openssh) and exchange public keys.

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
Rasheed Tamton
Honored Contributor

Re: how is different between rhost and /etc/hosts.equiv ?

The /etc/hosts.equiv file defines system-wide equivalency, whereas a user's .rhosts file defines equivalency between the local user and any remote users to whom the local user chooses to allow or deny access.

When a request is made for access, the /etc/hosts.equiv file is searched first. If a match is found, access is permitted. If no match is found, the .rhosts file is searched, if one exists in the local user's home directory. If the local user is a superuser, /etc/hosts.equiv is ignored.

man hosts.equiv (for more details)
Safarali
Valued Contributor

Re: how is different between rhost and /etc/hosts.equiv ?

host.equiv is based on the host, .rhost based on the user
both are not secure

Regards
Safar
skt_skt
Honored Contributor

Re: how is different between rhost and /etc/hosts.equiv ?

.rhost keeps control on host/IP level. hosts.equiv can be enetred with host@user specific restriction