1 .\" Copyright (c) 1995 Peter Tobias <tobias@et-inf.fho-emden.de>
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" This file may be distributed under the GNU General Public License.
6 .TH HOSTS.EQUIV 5 2020-06-09 "Linux" "Linux Programmer's Manual"
8 hosts.equiv \- list of hosts and users that are granted "trusted"
10 command access to your system
14 allows or denies hosts and users to use
15 the \fBr\fP-commands (e.g.,
23 The file uses the following format:
25 \fI+|[\-]hostname|+@netgroup|\-@netgroup\fP \fI[+|[\-]username|+@netgroup|\-@netgroup]\fP
29 is the name of a host which is logically equivalent
31 Users logged into that host are allowed to access
32 like-named user accounts on the local host without supplying a password.
35 may be (optionally) preceded by a plus (+) sign.
36 If the plus sign is used alone, it allows any host to access your system.
37 You can explicitly deny access to a host by preceding the
40 Users from that host must always supply additional credentials,
41 including possibly a password. For security reasons you should always
42 use the FQDN of the hostname and not the short hostname.
46 entry grants a specific user access to all user
47 accounts (except root) without supplying a password.
49 user is NOT restricted to like-named accounts.
53 be (optionally) preceded by a plus (+) sign.
54 You can also explicitly
55 deny access to a specific user by preceding the
59 This says that the user is not trusted no matter
60 what other entries for that host exist.
62 Netgroups can be specified by preceding the netgroup by an @ sign.
64 Be extremely careful when using the plus (+) sign.
65 A simple typographical
66 error could result in a standalone plus sign.
67 A standalone plus sign is
68 a wildcard character that means "any host"!
72 Some systems will honor the contents of this file only when it has owner
73 root and no write permission for anybody else.
75 paranoid systems even require that there be no other hard links to the file.
77 Modern systems use the Pluggable Authentication Modules library (PAM).
78 With PAM a standalone plus sign is considered a wildcard
79 character which means "any host" only when the word
81 is added to the auth component line in your PAM file for
82 the particular service
83 .RB "(e.g., " rlogin ).
85 Below are some example
91 Allow any user to log in from any host:
97 with a matching local account to log in:
103 is never a valid syntax,
104 including attempting to specify that any user from the host is allowed.
112 Note: this is distinct from the previous example
113 since it does not require a matching local account.
119 to log in as any non-root user:
123 Allow all users with matching local accounts from
138 is never a valid syntax,
139 including attempting to specify that a particular user from the host
142 Allow all users with matching local accounts on all hosts in a
147 Disallow all users on all hosts in a
156 as any non-root user:
160 Allow all users with matching local accounts on all hosts in a
168 Note: the deny statements must always precede the allow statements because
169 the file is processed sequentially until the first matching rule is found.