source: trunk/minix/man/man8/rlogind.8@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 3.1 KB
Line 
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)rlogind.8c 6.3 (Berkeley) 5/24/86
6.\"
7.TH RLOGIND 8 "May 24, 1986"
8.UC 5
9.SH NAME
10rlogind, in.rlogind \- remote login server
11.SH SYNOPSIS
12.B "login stream tcp nowait root /usr/sbin/in.rlogind in.rlogind"
13.br
14.B "tcpd login /usr/sbin/in.rlogind"
15.SH DESCRIPTION
16.B Rlogind
17is the server for the
18.BR rlogin (1)
19program. The server provides a remote login facility
20with authentication based on privileged port numbers from trusted hosts.
21.PP
22.B Rlogind
23listens for service requests at the port indicated in
24the ``login'' service specification; see
25.BR services (5).
26When a service request is received the following protocol
27is initiated:
28.IP 1)
29The server checks the client's source port.
30If the port is not in the range 0-1023, the server
31aborts the connection.
32.IP 2)
33The server checks the client's source address
34and requests the corresponding host name (see
35.BR gethostbyaddr (3),
36.BR hosts (5)
37and
38.BR named (8)).
39If the hostname cannot be determined,
40the dot-notation representation of the host address is used.
41.PP
42Once the source port and address have been checked,
43.B rlogind
44allocates a pseudo terminal (see
45.BR tty (4)),
46and manipulates file descriptors so that the slave
47half of the pseudo terminal becomes the
48.B stdin ,
49.B stdout ,
50and
51.B stderr
52for a login process.
53The login process is an instance of the
54.BR login (1)
55program, invoked with the
56.B \-r
57option. The login process then proceeds with the authentication
58process as described in
59.BR rshd (8),
60but if automatic authentication fails, it reprompts the user
61to login as one finds on a standard terminal line.
62.PP
63The parent of the login process manipulates the master side of
64the pseduo terminal, operating as an intermediary
65between the login process and the client instance of the
66.B rlogin
67program. In normal operation, the packet protocol described
68in
69.BR tty (4)
70is invoked to provide ^S/^Q type facilities and propagate
71interrupt signals to the remote programs. The login process
72propagates the client terminal's baud rate and terminal type,
73as found in the environment variable, ``TERM''; see
74.BR environ (7).
75The screen or window size of the terminal is requested from the client,
76and window size changes from the client are propagated to the pseudo terminal.
77.SH "SEE ALSO"
78.BR rlogin (1).
79.SH DIAGNOSTICS
80All diagnostic messages are returned on the connection
81associated with the
82.BR stderr ,
83after which any network connections are closed.
84An error is indicated by a leading byte with a value of 1.
85.PP
86.B ``Try again.''
87.br
88A
89.B fork
90by the server failed.
91.PP
92.B ``/bin/sh: ...''
93.br
94The user's login shell could not be started.
95.SH BUGS
96The authentication procedure used here assumes the integrity
97of each client machine and the connecting medium. This is
98insecure, but is useful in an ``open'' environment.
99.PP
100A facility to allow all data exchanges to be encrypted should be
101present.
102.PP
103A more extensible protocol should be used.
Note: See TracBrowser for help on using the repository browser.