1996-02-11 13:47:00 +00:00
|
|
|
.\" Copyright (c) 1983, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2014-03-14 03:07:51 +00:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1996-02-11 13:47:00 +00:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1996-10-05 18:37:31 +00:00
|
|
|
.\"
|
2013-12-25 17:28:08 +00:00
|
|
|
.Dd December 25, 2013
|
1996-02-11 13:47:00 +00:00
|
|
|
.Dt HOSTS.EQUIV 5
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm hosts.equiv ,
|
|
|
|
.Nm .rhosts
|
2001-06-26 14:04:28 +00:00
|
|
|
.Nd trusted remote host and user name data base
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1996-02-11 13:47:00 +00:00
|
|
|
and
|
|
|
|
.Nm .rhosts
|
1998-06-28 21:33:42 +00:00
|
|
|
files contain information regarding
|
1996-02-11 13:47:00 +00:00
|
|
|
trusted hosts and users on the network.
|
|
|
|
For each host a single line should be present
|
|
|
|
with the following information:
|
2000-12-29 09:18:45 +00:00
|
|
|
.Pp
|
1996-02-11 13:47:00 +00:00
|
|
|
simple
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
hostname [username]
|
|
|
|
.Ed
|
2000-12-29 09:18:45 +00:00
|
|
|
.Pp
|
1996-02-11 13:47:00 +00:00
|
|
|
or the more verbose
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
[+-][hostname|@netgroup] [[+-][username|@netgroup]]
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2000-01-07 12:58:57 +00:00
|
|
|
A
|
|
|
|
.Dq @
|
2000-03-03 14:05:08 +00:00
|
|
|
indicates a host by netgroup or user by netgroup.
|
|
|
|
A single
|
2000-01-07 12:58:57 +00:00
|
|
|
.Dq +
|
2004-07-03 18:29:24 +00:00
|
|
|
matches all hosts or users.
|
|
|
|
A host name with a leading
|
2000-01-07 12:58:57 +00:00
|
|
|
.Dq -
|
|
|
|
will reject
|
2000-03-03 14:05:08 +00:00
|
|
|
all matching hosts and all their users.
|
|
|
|
A user name with leading
|
2000-01-07 12:58:57 +00:00
|
|
|
.Dq -
|
1996-02-11 13:47:00 +00:00
|
|
|
will reject all matching users from matching hosts.
|
|
|
|
.Pp
|
|
|
|
Items are separated by any number of blanks and/or
|
2004-07-03 18:29:24 +00:00
|
|
|
tab characters.
|
|
|
|
A
|
2000-01-07 12:58:57 +00:00
|
|
|
.Dq #
|
|
|
|
indicates the beginning of
|
1996-02-11 13:47:00 +00:00
|
|
|
a comment; characters up to the end of the line are
|
|
|
|
not interpreted by routines which search the file.
|
|
|
|
.Pp
|
2007-12-08 22:43:16 +00:00
|
|
|
Host names are specified in the conventional Internet DNS
|
|
|
|
dotted-domains
|
2000-12-29 09:18:45 +00:00
|
|
|
.Dq .\&
|
2000-01-07 12:58:57 +00:00
|
|
|
(dot) notation using the
|
1996-02-11 13:47:00 +00:00
|
|
|
.Xr inet_addr 3
|
|
|
|
routine
|
|
|
|
from the Internet address manipulation library,
|
|
|
|
.Xr inet 3 .
|
|
|
|
Host names may contain any printable
|
|
|
|
character other than a field delimiter, newline,
|
|
|
|
or comment character.
|
|
|
|
.Pp
|
1998-06-28 21:33:42 +00:00
|
|
|
For security reasons, a user's
|
1996-02-11 13:47:00 +00:00
|
|
|
.Nm .rhosts
|
2001-07-14 19:41:16 +00:00
|
|
|
file will be ignored if it is not a regular file, or if it
|
1996-02-11 13:47:00 +00:00
|
|
|
is not owned by the user, or
|
1996-10-05 18:37:31 +00:00
|
|
|
if it is writable by anyone other than the user.
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/hosts.equivxxx -compact
|
|
|
|
.It Pa /etc/hosts.equiv
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file resides in
|
|
|
|
.Pa /etc .
|
|
|
|
.It Pa $HOME/.rhosts
|
|
|
|
.Nm .rhosts
|
|
|
|
file resides in
|
|
|
|
.Pa $HOME .
|
|
|
|
.El
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
.Dl bar.com foo
|
|
|
|
.Pp
|
2000-01-07 12:58:57 +00:00
|
|
|
Trust user
|
|
|
|
.Dq foo
|
|
|
|
from host
|
|
|
|
.Dq bar.com .
|
1996-02-11 13:47:00 +00:00
|
|
|
.Pp
|
2001-07-14 19:41:16 +00:00
|
|
|
.Dl +@allclient
|
1996-02-11 13:47:00 +00:00
|
|
|
.Pp
|
2000-01-07 12:58:57 +00:00
|
|
|
Trust all hosts from netgroup
|
|
|
|
.Dq allclient .
|
1996-02-11 13:47:00 +00:00
|
|
|
.Pp
|
|
|
|
.Dl +@allclient -@dau
|
|
|
|
.Pp
|
2000-01-07 12:58:57 +00:00
|
|
|
Trust all hosts from netgroup
|
|
|
|
.Dq allclient
|
2001-07-14 19:41:16 +00:00
|
|
|
and their users
|
2000-01-07 12:58:57 +00:00
|
|
|
except users from netgroup
|
|
|
|
.Dq dau .
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr rcp 1 ,
|
|
|
|
.Xr rlogin 1 ,
|
1996-12-26 02:02:31 +00:00
|
|
|
.Xr rsh 1 ,
|
1996-02-11 13:47:00 +00:00
|
|
|
.Xr gethostbyname 3 ,
|
1996-12-26 02:02:31 +00:00
|
|
|
.Xr inet 3 ,
|
1996-02-11 13:47:00 +00:00
|
|
|
.Xr innetgr 3 ,
|
|
|
|
.Xr ruserok 3 ,
|
2006-10-13 09:02:59 +00:00
|
|
|
.Xr netgroup 5 ,
|
1996-02-11 13:47:00 +00:00
|
|
|
.Xr ifconfig 8 ,
|
2002-01-14 16:59:03 +00:00
|
|
|
.Xr yp 8
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh BUGS
|
2005-06-30 13:18:15 +00:00
|
|
|
This manual page is incomplete.
|
2000-03-03 14:05:08 +00:00
|
|
|
For more information read
|
2000-01-07 12:58:57 +00:00
|
|
|
the source in
|
|
|
|
.Pa src/lib/libc/net/rcmd.c
|
2005-06-30 13:18:15 +00:00
|
|
|
or the SunOS manual page.
|