log and print error if /bin/login can't be exec'ed
[unix-history] / usr / src / libexec / telnetd / telnetd.8
CommitLineData
ec338fb6
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
ea3f50ea 3.\"
ec338fb6
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
ea3f50ea 15.\"
ec338fb6
KB
16.\" @(#)telnetd.8 6.4 (Berkeley) %G%
17.\"
18.TH TELNETD 8 ""
ea3f50ea
KM
19.UC 5
20.SH NAME
511d63d0 21telnetd \- DARPA TELNET protocol server
ea3f50ea
KM
22.SH SYNOPSIS
23.B /etc/telnetd
ea3f50ea
KM
24.SH DESCRIPTION
25.I Telnetd
60577684
GM
26is a server which supports the DARPA standard
27.B TELNET
28virtual terminal protocol.
29.I Telnetd
30is invoked by the internet server (see
31.IR inetd (8)),
32normally for requests to connect to the
33.B TELNET
34port as indicated by the
35.I /etc/services
36file (see
37.IR services (5)).
ea3f50ea
KM
38.PP
39.I Telnetd
40operates by allocating a pseudo-terminal device (see
41.IR pty (4))
42for a client, then creating a login process which has
43the slave side of the pseudo-terminal as
44.BR stdin ,
45.BR stdout ,
46and
47.BR stderr .
48.I Telnetd
60577684
GM
49manipulates the master side of the pseudo-terminal,
50implementing the
51.B TELNET
52protocol and passing characters
53between the remote client and the login process.
ea3f50ea 54.PP
60577684
GM
55When a
56.B TELNET
57session is started up,
ea3f50ea 58.I telnetd
60577684
GM
59sends
60.B TELNET
61options to the client side indicating
62a willingness to do
63.I remote echo
64of characters, to
65.I suppress go
66.IR ahead ,
67and to receive
68.I terminal type information
69from the remote client.
70If the remote client is willing, the remote terminal type is
71propagated in the environment of the created login process.
72The pseudo-terminal allocated to the client is configured
73to operate in \*(lqcooked\*(rq mode, and with XTABS and CRMOD
ea3f50ea
KM
74enabled (see
75.IR tty (4)).
ea3f50ea
KM
76.PP
77.I Telnetd
60577684
GM
78is willing to
79.IR do :
80.IR echo ,
81.IR binary ,
82.I suppress go
83.IR ahead ,
84and
85.I timing
86.IR mark .
87.I Telnetd
88is willing to have the remote client
89.IR do :
90.IR binary ,
91.I terminal
92.IR type ,
93and
94.I suppress go
95.IR ahead .
ea3f50ea 96.SH "SEE ALSO"
ec338fb6 97telnet(1)
ea3f50ea 98.SH BUGS
60577684
GM
99Some
100.B TELNET
101commands are only partially implemented.
102.PP
103The
104.B TELNET
105protocol allows for
106the exchange of the number of lines and columns on the user's terminal,
107but
108.I telnetd
109doesn't make use of them.
110.PP
111Because of bugs in the original 4.2 BSD
ec338fb6 112.IR telnet (1),
60577684
GM
113.I telnetd
114performs some dubious protocol exchanges to try to discover if the remote
115client is, in fact, a 4.2 BSD
ec338fb6 116.IR telnet (1).
60577684
GM
117.PP
118.I Binary mode
119has no common interpretation except between similar operating systems
120(Unix in this case).
121.PP
122The terminal type name received from the remote client is converted to
123lower case.
124.PP
125The
126.I packet
127interface to the pseudo-terminal
128(see
129.IR pty (4))
130should be used for more
131intelligent flushing of input and output queues.
132.PP
133.I Telnetd
134never sends
135.B TELNET
136.I go ahead
137commands.