Main index | Section 5 | 日本語 | Options |
simple
hostname [username]
or the more verbose
[+-][hostname|@netgroup] [[+-][username|@netgroup]]
A "@" indicates a host by netgroup or user by netgroup. A single "+" matches all hosts or users. A host name with a leading "-" will reject all matching hosts and all their users. A user name with leading "-" will reject all matching users from matching hosts.
Items are separated by any number of blanks and/or tab characters. A "#" indicates the beginning of a comment; characters up to the end of the line are not interpreted by routines which search the file.
Host names are specified in the conventional Internet DNS dotted-domains ".amp;" (dot) notation using the inet_addr(3) routine from the Internet address manipulation library, inet(3). Host names may contain any printable character other than a field delimiter, newline, or comment character.
For security reasons, a user's .rhosts file will be ignored if it is not a regular file, or if it is not owned by the user, or if it is writable by anyone other than the user.
/etc/hosts.equiv | The hosts.equiv file resides in /etc. |
$HOME/.rhosts | .rhosts file resides in $HOME. |
bar.com foo
Trust user "foo" from host "bar.com".
+@allclient
Trust all hosts from netgroup "allclient".
+@allclient -@dau
Trust all hosts from netgroup "allclient" and their users except users from netgroup "dau".
HOSTS.EQUIV (5) | December 25, 2013 |
Main index | Section 5 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | The most horrifying thing about Unix is that, no matter how many times you hit yourself over the head with it, you never quite manage to lose consciousness. It just goes on and on. | ” |
— Patrick Sobalvarro |