other versions
- jessie 3.74-1
- jessie-backports 4.10-2~bpo8+1
- stretch 4.10-2
- testing 4.16-1
- stretch-backports 4.16-1~bpo9+1
- unstable 4.16-1
HOSTS.EQUIV(5) | Linux Programmer's Manual | HOSTS.EQUIV(5) |
NAME¶
hosts.equiv - list of hosts and users that are granted "trusted" r command access to your systemDESCRIPTION¶
The file /etc/hosts.equiv allows or denies hosts and users to use the r-commands (e.g., rlogin, rsh, or rcp) without supplying a password. The file uses the following format:- +|[-]hostname|+@netgroup|-@netgroup [+|[-]username|+@netgroup|-@netgroup]
FILES¶
/etc/hosts.equivNOTES¶
Some systems will honor the contents of this file only when it has owner root and no write permission for anybody else. Some exceptionally paranoid systems even require that there be no other hard links to the file. Modern systems use the Pluggable Authentication Modules library (PAM). With PAM a standalone plus sign is considered a wildcard character which means "any host" only when the word promiscuous is added to the auth component line in your PAM file for the particular service (e.g., rlogin).EXAMPLE¶
Below are some example /etc/host.equiv or ~/.rhosts files. Allow any user to log in from any host:+ Allow any user from host with a matching local account to log in:
host Note: the use of +host is never a valid syntax, including attempting to specify that any user from the host is allowed. Allow any user from host to log in:
host + Note: this is distinct from the previous example since it does not require a matching local account. Allow user from host to log in as any non-root user:
host user Allow all users with matching local accounts from host to log in except for baduser:
host -baduser
host Deny all users from host:
-host Note: the use of -host -user is never a valid syntax, including attempting to specify that a particular user from the host is not trusted. Allow all users with matching local accounts on all hosts in a netgroup:
+@netgroup Disallow all users on all hosts in a netgroup:
-@netgroup Allow all users in a netgroup to log in from host as any non-root user:
host +@netgroup Allow all users with matching local accounts on all hosts in a netgroup except baduser:
+@netgroup -baduser
+@netgroup Note: the deny statements must always precede the allow statements because the file is processed sequentially until the first matching rule is found.
SEE ALSO¶
rhosts(5), rlogind(8), rshd(8)COLOPHON¶
This page is part of release 4.10 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.2015-07-23 | Linux |