]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man5/hosts.equiv.5
vcs.4: Convert inline formatting (\fX...\fP) to dot-directive formatting
[thirdparty/man-pages.git] / man5 / hosts.equiv.5
CommitLineData
fea681da 1.\" Copyright (c) 1995 Peter Tobias <tobias@et-inf.fho-emden.de>
2297bf0e 2.\"
fd0fc519 3.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
fea681da 4.\" This file may be distributed under the GNU General Public License.
fd0fc519 5.\" %%%LICENSE_END
fea681da
MK
6.TH HOSTS.EQUIV 5 2003-08-24 "Linux" "Linux Programmer's Manual"
7.SH NAME
8/etc/hosts.equiv \- list of hosts and users that are granted "trusted"
9\fBr\fP command access to your system
10.SH DESCRIPTION
11The \fBhosts.equiv\fP file allows or denies hosts and users to use
75b94dc3 12the \fBr\fP-commands (e.g., \fBrlogin\fP, \fBrsh\fP or \fBrcp\fP) without
fea681da
MK
13supplying a password.
14.PP
15The file uses the following format:
16.TP
4d9b6984 17\fI[ + | \- ]\fP \fI[hostname]\fP \fI[username]\fP
fea681da
MK
18.PP
19The \fIhostname\fP is the name of a host which is logically equivalent
c13182ef
MK
20to the local host.
21Users logged into that host are allowed to access
fea681da
MK
22like-named user accounts on the local host without supplying a password.
23The \fIhostname\fP may be (optionally) preceded by a plus (+) sign.
24If the plus sign is used alone it allows any host to access your system.
9fdfa163 25You can explicitly deny access to a host by preceding the \fIhostname\fP
c13182ef
MK
26by a minus (\-) sign.
27Users from that host must always supply a password.
fea681da
MK
28For security reasons you should always use the FQDN of the hostname and
29not the short hostname.
30.PP
31The \fIusername\fP entry grants a specific user access to all user
c13182ef
MK
32accounts (except root) without supplying a password.
33That means the
34user is NOT restricted to like-named accounts.
35The \fIusername\fP may
36be (optionally) preceded by a plus (+) sign.
37You can also explicitly
fea681da 38deny access to a specific user by preceding the \fIusername\fP with
c13182ef
MK
39a minus (\-) sign.
40This says that the user is not trusted no matter
fea681da
MK
41what other entries for that host exist.
42.PP
43Netgroups can be specified by preceding the netgroup by an @ sign.
44.PP
c13182ef
MK
45Be extremely careful when using the plus (+) sign.
46A simple typographical
47error could result in a standalone plus sign.
48A standalone plus sign is
fea681da
MK
49a wildcard character that means "any host"!
50.SH FILES
51.I /etc/hosts.equiv
52.SH NOTES
33a0ccb2 53Some systems will honor the contents of this file only when it has owner
c13182ef
MK
54root and no write permission for anybody else.
55Some exceptionally
fea681da
MK
56paranoid systems even require that there be no other hard links to the file.
57.PP
58Modern systems use the Pluggable Authentication Modules library (PAM).
33a0ccb2
MK
59With PAM a standalone plus sign is considered a wildcard
60character which means "any host" only when the word
fea681da
MK
61.I promiscuous
62is added to the auth component line in your PAM file for
63the particular service
75b94dc3 64.RB "(e.g., " rlogin ).
47297adb 65.SH SEE ALSO
fea681da
MK
66.BR rhosts (5),
67.BR rlogind (8),
68.BR rshd (8)