OSDN Git Service

LDP: Update original to LDP v3.79
[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 .B r
10 command access to your system
11 .SH DESCRIPTION
12 The
13 .B hosts.equiv
14 file allows or denies hosts and users to use
15 the \fBr\fP-commands (e.g.,
16 .BR rlogin ,
17 .BR rsh ,
18 or
19 .BR rcp )
20 without
21 supplying a password.
22 .PP
23 The file uses the following format:
24 .TP
25 \fI[ + | \- ]\fP \fI[hostname]\fP \fI[username]\fP
26 .PP
27 The
28 .I hostname
29 is the name of a host which is logically equivalent
30 to the local host.
31 Users logged into that host are allowed to access
32 like-named user accounts on the local host without supplying a password.
33 The
34 .I hostname
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
38 .I hostname
39 by a minus (\-) sign.
40 Users from that host must always supply a password.
41 For security reasons you should always use the FQDN of the hostname and
42 not the short hostname.
43 .PP
44 The
45 .I username
46 entry grants a specific user access to all user
47 accounts (except root) without supplying a password.
48 That means the
49 user is NOT restricted to like-named accounts.
50 The
51 .I username
52 may
53 be (optionally) preceded by a plus (+) sign.
54 You can also explicitly
55 deny access to a specific user by preceding the
56 .I username
57 with
58 a minus (\-) sign.
59 This says that the user is not trusted no matter
60 what other entries for that host exist.
61 .PP
62 Netgroups can be specified by preceding the netgroup by an @ sign.
63 .PP
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"!
69 .SH FILES
70 .I /etc/hosts.equiv
71 .SH NOTES
72 Some systems will honor the contents of this file only when it has owner
73 root and no write permission for anybody else.
74 Some exceptionally
75 paranoid systems even require that there be no other hard links to the file.
76 .PP
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
80 .I promiscuous
81 is added to the auth component line in your PAM file for
82 the particular service
83 .RB "(e.g., " rlogin ).
84 .SH SEE ALSO
85 .BR rhosts (5),
86 .BR rlogind (8),
87 .BR rshd (8)
88 .SH COLOPHON
89 This page is part of release 3.79 of the Linux
90 .I man-pages
91 project.
92 A description of the project,
93 information about reporting bugs,
94 and the latest version of this page,
95 can be found at
96 \%http://www.kernel.org/doc/man\-pages/.