freebsd-dev/share/man/man5/hosts.equiv.5

145 lines
3.8 KiB
Groff
Raw Normal View History

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.
.\" 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$
.\"
.Dd December 25, 2013
1996-02-11 13:47:00 +00:00
.Dt HOSTS.EQUIV 5
.Os
1996-02-11 13:47:00 +00:00
.Sh NAME
.Nm hosts.equiv ,
.Nm .rhosts
.Nd trusted remote host and user name data base
1996-02-11 13:47:00 +00:00
.Sh DESCRIPTION
The
.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 @
indicates a host by netgroup or user by netgroup.
A single
2000-01-07 12:58:57 +00:00
.Dq +
matches all hosts or users.
A host name with a leading
2000-01-07 12:58:57 +00:00
.Dq -
will reject
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
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
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
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
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
.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
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 ,
.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
This manual page is incomplete.
For more information read
2000-01-07 12:58:57 +00:00
the source in
.Pa src/lib/libc/net/rcmd.c
or the SunOS manual page.