blob: 4edddc99003e33e91d577a0227a6445f60cc5cf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
.Dd Sun, 13 Apr 2003 00:24:32 +0200
.Dt RHOSTS 5
.Sh NAME
.Nm rhosts
.Nd allow
.Nm rlogin ,
.Nm rsh
and
.Nm rcp
connections to the local machine without a password.
.Sh SYNOPSIS
.Pa $HOME/.rhosts
.Sh DESCRIPTION
The
.Pa .rhosts
file can allow specific remote users and/or hosts to execute commands on the local machine.
The file uses the following format:
.Pp
.D1 Ar host Op Ar user Li | Li @ Ns Ar group
.Pp
Such an entry grants password-free access for the user with
the login name
.Ar user
from
.Ar host .
If no
.Ar user
is specified, the user must have the same login name on the remote host and the local host.
For security reasons you should always use the FQDN of the hostname and not the short hostname.
Netgroups can be specified by preceding the
.Ar group
by an @ sign.
.Pp
The
.Pa .rhosts
file must be owned by the user or root, and writable only by the owner.
.Sh SEE ALSO
.Xr rsh 1 ,
.Xr rlogin 1 ,
.Xr rcp 1 .
|