OSDN Git Service

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