1RLOGIND(8)                BSD System Manager's Manual               RLOGIND(8)
2

NAME

4     rlogind — remote login server
5

SYNOPSIS

7     rlogind [-ahlLn]
8

DESCRIPTION

10     Rlogind is the server for the rlogin(1) program.  The server provides a
11     remote login facility with authentication based on privileged port num‐
12     bers from trusted hosts.
13
14     Options supported by rlogind:
15
16     -a      Ask hostname for verification.
17
18     -D      Disable reverse client checking. Security is lower
19
20     -h      Permit use of superuser “.rhosts” files.
21
22     -l      Prevent any authentication based on the user's “.rhosts” file. If
23             the user is logging in as the superuser and the -h option is
24             used, “.rhosts” processing is still enabled.
25
26     -L      Prevent any authentication based on “.rhosts” or “hosts.equiv
27             information.
28
29     -n      Disable keep-alive messages.
30
31     The -h, -l, and -L flags are not used if PAM (Pluggable Authentication
32     Module) support is in use. In this case the same effects can be achieved
33     by editing /etc/pam.conf.
34
35     The -h and -l options should also not be trusted without verifying that
36     they work as expected with the particular version of libc installed on
37     your system (and should be tested again after any libc update) because
38     some versions of libc may not honor the internal flags used by rlogind.
39     As the -L option bypasses the libc functions entirely, it is not subject
40     to this problem.
41
42     Also note that the design of the .rhosts system is COMPLETELY INSECURE
43     except on a carefully firewalled private network. Always use the -L
44     option under all other circumstances. Also, since rlogind does not
45     encrypt communications, it should not, in general, be used at all. Con‐
46     sider ssh(8).
47
48     Rlogind listens for service requests at the port indicated in the
49     ``login'' service specification; see services(5).  When a service request
50     is received the following protocol is initiated:
51
52     1.   The server checks the client's source port.  If the port is not in
53          the range 512-1023, the server aborts the connection.
54
55     2.   The server checks the client's source address and requests the cor‐
56          responding host name (see gethostbyaddr(3), hosts(5) and named(8)).
57          If the hostname cannot be determined, the dot-notation representa‐
58          tion of the host address is used.  If the hostname is in the same
59          domain as the server (according to the last two components of the
60          domain name), or if the -a option is given, the addresses for the
61          hostname are requested, verifying that the name and address corre‐
62          spond.  Normal authentication is bypassed if the address verifica‐
63          tion fails.
64
65     Once the source port and address have been checked, rlogind proceeds with
66     the authentication process described in rshd(8).  It then allocates a
67     pseudo terminal (see pty(4)), and manipulates file descriptors so that
68     the slave half of the pseudo terminal becomes the stdin, stdout, and
69     stderr for a login process.  The login process is an instance of the
70     login(1) program, invoked with the -f option if authentication has suc‐
71     ceeded.  If automatic authentication fails, the user is prompted to log
72     in as if on a standard terminal line.
73
74     The parent of the login process manipulates the master side of the pseudo
75     terminal, operating as an intermediary between the login process and the
76     client instance of the rlogin program.  In normal operation, the packet
77     protocol described in pty(4) is invoked to provide ‘^S/^Q’ type facili‐
78     ties and propagate interrupt signals to the remote programs.  The login
79     process propagates the client terminal's baud rate and terminal type, as
80     found in the environment variable, ‘TERM’; see environ(7).  The screen or
81     window size of the terminal is requested from the client, and window size
82     changes from the client are propagated to the pseudo terminal.
83
84     Transport-level keepalive messages are enabled unless the -n option is
85     present.  The use of keepalive messages allows sessions to be timed out
86     if the client crashes or becomes unreachable.
87

DIAGNOSTICS

89     All initial diagnostic messages are indicated by a leading byte with a
90     value of 1, after which any network connections are closed.  If there are
91     no errors before login is invoked, a null byte is returned as in indica‐
92     tion of success.
93
94     Try again.
95             A fork by the server failed.
96

SEE ALSO

98     login(1), ruserok(3), rshd(8)
99

BUGS

101     The authentication procedure used here assumes the integrity of each
102     client machine and the connecting medium.  This is insecure, but is use‐
103     ful in an ``open'' environment.
104
105     A facility to allow all data exchanges to be encrypted should be present.
106
107     A more extensible protocol should be used.
108

HISTORY

110     The rlogind command appeared in 4.2BSD.
111
112Linux NetKit (0.17)             March 16, 1991             Linux NetKit (0.17)
Impressum