Index of Section 5 Manual Pages
| Interix / SUA | rhosts.5 | Interix / SUA |
rhosts(5) rhosts(5)
.rhosts
NAME
hosts.equiv, .rhosts - trusted remote host name and user data base
DESCRIPTION
The hosts.equiv and .rhosts files contain information about trusted hosts
and users on the network. For each host, a single line should be present
in the following format:
hostname [username]
Items are separated by any number of blanks, tab characters, or both. A
pound sign (#) indicates the beginning of a comment; characters up to the
end of the line are not interpreted by routines that search the file.
Host names are specified in the conventional dot (.) notation using the
inet_addr() routine from the Internet address manipulation library,
inet(). Host names can contain any printable character other than a field
delimiter, newline, or comment character.
If a user name is specified, only that user from the specified host can
log on to the local computer. If a user name is not specified, any user on
the specified host can log on.
For security reasons, a user's .rhosts file will be ignored if it is not a
regular file, if it is not owned by the user, or if it is writable by
anyone other than the user.
EXAMPLE
somehost kim
Trust user kim from host somehost.
FILES
/etc/hosts.equiv
The hosts.equiv file resides in /etc.
$HOME/.rhosts
.rhosts file resides in $HOME.
NOTE
Historically, most other UNIX systems have used one of these formats:
[+-]hostname|@netgroup
[+-]hostname|@netgroup1 [[+-]username|@netgroup2]
This format is not supported by Interix, however.
SEE ALSO
rlogin(1)
rcp(1)
rsh(1)
gethostbyname(2)