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. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" 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
|
|
|
.\"
|
2000-01-30 22:26:06 +00:00
|
|
|
.Dd February 11, 1996
|
1996-02-11 13:47:00 +00:00
|
|
|
.Dt HOSTS.EQUIV 5
|
|
|
|
.Os FreeBSD
|
|
|
|
.Sh NAME
|
|
|
|
.Nm hosts.equiv ,
|
|
|
|
.Nm .rhosts
|
|
|
|
.Nd trusted remote host name and user data base
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm hosts.equiv
|
|
|
|
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:
|
|
|
|
|
|
|
|
simple
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
hostname [username]
|
|
|
|
.Ed
|
|
|
|
|
|
|
|
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 +
|
|
|
|
matches all hosts or users. A host name with a leading
|
|
|
|
.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
|
2000-01-07 12:58:57 +00:00
|
|
|
tab characters. A
|
|
|
|
.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
|
2000-01-07 12:58:57 +00:00
|
|
|
.Dq \&.
|
|
|
|
(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
|
|
|
|
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.
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
.Pp
|
|
|
|
.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
|
|
|
|
.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
|
|
|
|
except users from netgroup
|
|
|
|
.Dq dau .
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/hosts.equivxxx -compact
|
|
|
|
.It Pa /etc/hosts.equiv
|
|
|
|
The
|
|
|
|
.Nm hosts.equiv
|
|
|
|
file resides in
|
|
|
|
.Pa /etc .
|
|
|
|
.It Pa $HOME/.rhosts
|
|
|
|
.Nm .rhosts
|
|
|
|
file resides in
|
|
|
|
.Pa $HOME .
|
|
|
|
.El
|
|
|
|
.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 ,
|
1996-12-26 02:02:31 +00:00
|
|
|
.Xr yp 4 ,
|
1996-02-11 13:47:00 +00:00
|
|
|
.Xr ifconfig 8 ,
|
1996-12-26 02:02:31 +00:00
|
|
|
.Xr named 8
|
1996-02-11 13:47:00 +00:00
|
|
|
.Sh BUGS
|
2000-03-03 14:05:08 +00:00
|
|
|
This man 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 man page.
|