Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

File Format Reference Pages hosts.equiv(4)
NAME
hosts.equiv - Describes node le for trusted remote hosts and users
SYNOPSIS
/etc/hosts.equiv
DESCRIPTION
The /etc/hosts.equiv and .rhosts les provide the "remote authentication" database for the
rsh
command. The les specify remote hosts and users that are considered trusted. Only trusted
users from the remote host are allowed to access the local system. The /etc/hosts.equiv le
applies to the entire system, while individual users can maintain their own .rhosts les in their
home directories. To maintain system security, these les must be carefully created and main-
tained. The remote authentication procedure determines whether a user from a remote host
should be allowed to access the local system with the identity of a local user. This procedure
rst checks the /etc/hosts.equiv le and then checks the .rhosts le in the home directory of the
local user who is requesting access. The rsh command fails if the remote authentication pro-
cedure fails.
Each entry in the le has the form:
hostname [username]
If the entry is in the form:
hostname
then all users from the named host are trusted. That is, they are allowed to access the system
with the same user name as they have on the remote system. This form of entry can be used in
both the /etc/hosts.equiv and .rhosts les.
If the entry is in the form:
hostname username
then the named user from the named host is allowed to access the system. This form can be used
in individual .rhosts les to allow a remote user to access the system as a different local user. If
this form is used in the /etc/hosts.equiv le, the named remote user is allowed to access the sys-
tem with the same capabilities as any local user.
FILES
/etc/hosts.equiv
~/ . r h o s t s
NOTES
The hostname value used in the /etc/hosts.equiv and .rhosts les must be the ofcial name of the
host, not one of its nicknames.
Super ID access is handled as a special case. Only the .rhosts le is checked when access is
attempted for the super ID. To help maintain system security, the /etc/hosts.equiv le is not
checked.
RELATED INFORMATION
Commands: rsh(1).
Files: hosts(4), .rhosts(4).
STANDARDS CONFORMANCE
This le is an extension to the XPG4 Version 2 specication.
527188-004 Hewlett-Packard Company 117