]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - libexec/rlogind/rlogind.8
This commit was generated by cvs2svn to compensate for changes in r135471,
[FreeBSD/FreeBSD.git] / libexec / rlogind / rlogind.8
1 .\" Copyright (c) 1983, 1989, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)rlogind.8   8.1 (Berkeley) 6/4/93
33 .\" $FreeBSD$
34 .\"
35 .Dd June 4, 1993
36 .Dt RLOGIND 8
37 .Os
38 .Sh NAME
39 .Nm rlogind
40 .Nd remote login server
41 .Sh SYNOPSIS
42 .Nm
43 .Op Fl Daln
44 .Sh DESCRIPTION
45 The
46 .Nm
47 utility is the server for the
48 .Xr rlogin 1
49 program.
50 The server provides a remote login facility
51 with authentication based on privileged port numbers from trusted hosts.
52 .Pp
53 Options supported by
54 .Nm :
55 .Bl -tag -width indent
56 .It Fl D
57 Set TCP_NODELAY socket option.
58 This improves responsiveness at the expense of
59 some additional network traffic.
60 .It Fl a
61 Ask hostname for verification.
62 .It Fl l
63 Prevent any authentication based on the user's
64 .Dq Pa .rhosts
65 file, unless the user is logging in as the superuser.
66 .It Fl n
67 Disable keep-alive messages.
68 .El
69 .Pp
70 The following options are valid only if Kerberos is in use:
71 .Bl -tag -width indent
72 .It Fl k
73 Enable Kerberos authentication.
74 .It Fl v
75 Enable vacuous mode.
76 .It Fl x
77 Enable
78 .Tn DES
79 encryption for all data passed via the rlogin
80 session.
81 This may impact response time
82 and
83 .Tn CPU
84 utilization, but provides increased security.
85 .El
86 .Pp
87 The
88 .Nm
89 utility listens for service requests at the port indicated in
90 the
91 .Dq login
92 service specification; see
93 .Xr services 5 .
94 When a service request is received the following protocol
95 is initiated:
96 .Bl -enum
97 .It
98 The server checks the client's source port.
99 If the port is not in the range 512-1023, the server
100 aborts the connection.
101 .It
102 The server checks the client's source address
103 and requests the corresponding host name (see
104 .Xr gethostbyaddr 3 ,
105 .Xr hosts 5
106 and
107 .Xr named 8 ) .
108 If the hostname cannot be determined,
109 the dot-notation representation of the host address is used.
110 If the hostname is in the same domain as the server (according to
111 the last two components of the domain name),
112 or if the
113 .Fl a
114 option is given,
115 the addresses for the hostname are requested,
116 verifying that the name and address correspond.
117 Normal authentication is bypassed if the address verification fails.
118 .El
119 .Pp
120 Once the source port and address have been checked,
121 .Nm
122 proceeds with the authentication process described in
123 .Xr rshd 8 .
124 It then allocates a pseudo terminal (see
125 .Xr pty 4 ) ,
126 and manipulates file descriptors so that the slave
127 half of the pseudo terminal becomes the
128 .Em stdin ,
129 .Em stdout ,
130 and
131 .Em stderr
132 for a login process.
133 The login process is an instance of the
134 .Xr login 1
135 program, invoked with the
136 .Fl f
137 option if authentication has succeeded.
138 If automatic authentication fails, the user is
139 prompted to log in as if on a standard terminal line.
140 .Pp
141 The parent of the login process manipulates the master side of
142 the pseudo terminal, operating as an intermediary
143 between the login process and the client instance of the
144 .Xr rlogin 1
145 program.
146 In normal operation, the packet protocol described
147 in
148 .Xr pty 4
149 is invoked to provide
150 .Ql ^S/^Q
151 type facilities and propagate
152 interrupt signals to the remote programs.
153 The login process
154 propagates the client terminal's baud rate and terminal type,
155 as found in the environment variable,
156 .Ev TERM ;
157 see
158 .Xr environ 7 .
159 The screen or window size of the terminal is requested from the client,
160 and window size changes from the client are propagated to the pseudo terminal.
161 .Pp
162 Transport-level keepalive messages are enabled unless the
163 .Fl n
164 option is present.
165 The use of keepalive messages allows sessions to be timed out
166 if the client crashes or becomes unreachable.
167 .Sh DIAGNOSTICS
168 All initial diagnostic messages are indicated
169 by a leading byte with a value of 1,
170 after which any network connections are closed.
171 If there are no errors before
172 .Xr login 1
173 is invoked, a null byte is returned as in indication of success.
174 .Bl -tag -width Ds
175 .It Sy Try again.
176 A
177 .Xr fork 2
178 by the server failed.
179 .El
180 .Sh SEE ALSO
181 .Xr login 1 ,
182 .Xr ruserok 3 ,
183 .Xr hosts 5 ,
184 .Xr hosts.equiv 5 ,
185 .Xr login.conf 5 ,
186 .Xr nologin 5 ,
187 .Xr services 5 ,
188 .Xr rshd 8
189 .Sh FILES
190 .Bl -tag -width /etc/hostsxxxxxxxx -compact
191 .It Pa /etc/hosts
192 .It Pa /etc/hosts.equiv
193 .It Ev $HOME Ns Pa /.rhosts
194 .It Pa /var/run/nologin
195 .El
196 .Sh BUGS
197 The authentication procedure used here assumes the integrity
198 of each client machine and the connecting medium.
199 This is
200 insecure, but is useful in an
201 .Dq open
202 environment.
203 .Pp
204 A facility to allow all data exchanges to be encrypted should be
205 present.
206 .Pp
207 A more extensible protocol should be used.
208 .Sh HISTORY
209 The
210 .Nm
211 utility appeared in
212 .Bx 4.2 .
213 .Pp
214 IPv6 support was added by WIDE/KAME project.