Operating System - HP-UX
1833852 Members
1849 Online
110063 Solutions
New Discussion

Re: pls, define syntax in hosts.equiv

 
restrospec
Contributor

pls, define syntax in hosts.equiv

I get some confuse, when I see syntax hosts.equiv. the information is below.

A -B
+ C

I understand that user name B cannot access to localhost from host A while user name C can access to localhost(as root?) from all remote host.

My question is
Can user name C access to localhost as root?
1 REPLY 1
Steven Schweda
Honored Contributor

Re: pls, define syntax in hosts.equiv

As I understand it, nothing in
/etc/hosts.equiv can let one remote user get
in as a different user. "+ C" lets user C in
from any host, but only as user C.

A user's .rhosts file can allow in remote
users with different names.

man 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.

There's no syntax in hosts.equiv to make two
different users equivalent. A .rhosts file
is in one user's home directory, and it can
contain a different user's name, so it can
make two different users equivalent that way
(the user whose name is in the file, and the
user in whose home directory the .rhosts file
resides).