summaryrefslogtreecommitdiffstats
path: root/man5/hosts.equiv.5
diff options
context:
space:
mode:
Diffstat (limited to 'man5/hosts.equiv.5')
-rw-r--r--man5/hosts.equiv.562
1 files changed, 31 insertions, 31 deletions
diff --git a/man5/hosts.equiv.5 b/man5/hosts.equiv.5
index a9521da..b8ff0f6 100644
--- a/man5/hosts.equiv.5
+++ b/man5/hosts.equiv.5
@@ -1,7 +1,7 @@
.\" Copyright (c) 1995 Peter Tobias <tobias@et-inf.fho-emden.de>
.\"
.\" SPDX-License-Identifier: GPL-1.0-or-later
-.TH hosts.equiv 5 2023-02-05 "Linux man-pages 6.05.01"
+.TH hosts.equiv 5 2023-10-31 "Linux man-pages 6.7"
.SH NAME
hosts.equiv \- list of hosts and users that are granted "trusted"
.B r
@@ -17,11 +17,11 @@ or
.BR rcp )
without
supplying a password.
-.PP
+.P
The file uses the following format:
.TP
\fI+|[\-]hostname|+@netgroup|\-@netgroup\fP \fI[+|[\-]username|+@netgroup|\-@netgroup]\fP
-.PP
+.P
The
.I hostname
is the name of a host which is logically equivalent
@@ -39,7 +39,7 @@ Users from that host must always supply additional credentials,
including possibly a password.
For security reasons you should always
use the FQDN of the hostname and not the short hostname.
-.PP
+.P
The
.I username
entry grants a specific user access to all user
@@ -57,9 +57,9 @@ with
a minus (\-) sign.
This says that the user is not trusted no matter
what other entries for that host exist.
-.PP
+.P
Netgroups can be specified by preceding the netgroup by an @ sign.
-.PP
+.P
Be extremely careful when using the plus (+) sign.
A simple typographical
error could result in a standalone plus sign.
@@ -72,7 +72,7 @@ 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.
-.PP
+.P
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
@@ -86,124 +86,124 @@ Below are some example
or
.I \[ti]/.rhosts
files.
-.PP
+.P
Allow any user to log in from any host:
-.PP
+.P
.in +4n
.EX
+
.EE
.in
-.PP
+.P
Allow any user from
.I host
with a matching local account to log in:
-.PP
+.P
.in +4n
.EX
host
.EE
.in
-.PP
+.P
Note: the use of
.I +host
is never a valid syntax,
including attempting to specify that any user from the host is allowed.
-.PP
+.P
Allow any user from
.I host
to log in:
-.PP
+.P
.in +4n
.EX
host +
.EE
.in
-.PP
+.P
Note: this is distinct from the previous example
since it does not require a matching local account.
-.PP
+.P
Allow
.I user
from
.I host
to log in as any non-root user:
-.PP
+.P
.in +4n
.EX
host user
.EE
.in
-.PP
+.P
Allow all users with matching local accounts from
.I host
to log in except for
.IR baduser :
-.PP
+.P
.in +4n
.EX
host \-baduser
host
.EE
.in
-.PP
+.P
Deny all users from
.IR host :
-.PP
+.P
.in +4n
.EX
\-host
.EE
.in
-.PP
+.P
Note: the use of
.I "\-host\ \-user"
is never a valid syntax,
including attempting to specify that a particular user from the host
is not trusted.
-.PP
+.P
Allow all users with matching local accounts on all hosts in a
.IR netgroup :
-.PP
+.P
.in +4n
.EX
+@netgroup
.EE
.in
-.PP
+.P
Disallow all users on all hosts in a
.IR netgroup :
-.PP
+.P
.in +4n
.EX
\-@netgroup
.EE
.in
-.PP
+.P
Allow all users in a
.I netgroup
to log in from
.I host
as any non-root user:
-.PP
+.P
.in +4n
.EX
host +@netgroup
.EE
.in
-.PP
+.P
Allow all users with matching local accounts on all hosts in a
.I netgroup
except
.IR baduser :
-.PP
+.P
.in +4n
.EX
+@netgroup \-baduser
+@netgroup
.EE
.in
-.PP
+.P
Note: the deny statements must always precede the allow statements because
the file is processed sequentially until the first matching rule is found.
.SH SEE ALSO