From f432c2b5264e7e985bf998842cb5000822b4956f Mon Sep 17 00:00:00 2001 From: Unknown User d91-jda Date: Sat, 4 Nov 1995 00:46:14 +0000 Subject: [PATCH] Moved definitions of global variables into global.c rather than doing #define exern/#include "ext.h". Possible to configure with external athena tree. A few AIX changes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@190 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnetd/Makefile.4.4 | 36 -- appl/telnet/telnetd/Makefile.ORIG | 45 --- appl/telnet/telnetd/Makefile.generic | 71 ---- appl/telnet/telnetd/Makefile.in | 13 +- appl/telnet/telnetd/ext.h | 5 +- appl/telnet/telnetd/global.c | 84 +++- appl/telnet/telnetd/sys_term.c | 17 +- appl/telnet/telnetd/telnetd.0.ps | 555 --------------------------- appl/telnet/telnetd/telnetd.0.txt | 322 ---------------- 9 files changed, 102 insertions(+), 1046 deletions(-) delete mode 100644 appl/telnet/telnetd/Makefile.4.4 delete mode 100644 appl/telnet/telnetd/Makefile.ORIG delete mode 100644 appl/telnet/telnetd/Makefile.generic delete mode 100644 appl/telnet/telnetd/telnetd.0.ps delete mode 100644 appl/telnet/telnetd/telnetd.0.txt diff --git a/appl/telnet/telnetd/Makefile.4.4 b/appl/telnet/telnetd/Makefile.4.4 deleted file mode 100644 index 4b1d5302e..000000000 --- a/appl/telnet/telnetd/Makefile.4.4 +++ /dev/null @@ -1,36 +0,0 @@ -# @(#)Makefile 8.2 (Berkeley) 12/15/93 - -PROG= telnetd -CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -CFLAGS+=-DOLD_ENVIRON -DENV_HACK -CFLAGS+=-DAUTHENTICATION -DENCRYPTION -I${.CURDIR}/../../lib -SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \ - termstat.c utility.c -DPADD= ${LIBUTIL} ${LIBTERM} -LDADD= -lutil -ltermcap -ltelnet -LDADD+= -lkrb -ldes -MAN8= telnetd.0 - -# These are the sources that have encryption stuff in them. -CRYPT_SRC= authenc.c ext.h state.c telnetd.c termstat.c -CRYPT_SRC+= utility.c Makefile -NOCRYPT_DIR=${.CURDIR}/Nocrypt - -.include - -nocrypt: -#ifdef ENCRYPTION - @for i in ${CRYPT_SRC}; do \ - if [ ! -d ${NOCRYPT_DIR} ]; then \ - echo Creating subdirectory ${NOCRYPT_DIR}; \ - mkdir ${NOCRYPT_DIR}; \ - fi; \ - echo ${NOCRYPT_DIR}/$$i; \ - unifdef -UENCRYPTION ${.CURDIR}/$$i | \ - sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \ - done - -placeholder: -#else /* ENCRYPTION */ - @echo "Encryption code already removed." -#endif /* ENCRYPTION */ diff --git a/appl/telnet/telnetd/Makefile.ORIG b/appl/telnet/telnetd/Makefile.ORIG deleted file mode 100644 index 46597306c..000000000 --- a/appl/telnet/telnetd/Makefile.ORIG +++ /dev/null @@ -1,45 +0,0 @@ -# -# Copyright (c) 1991 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted provided -# that: (1) source distributions retain this entire copyright notice and -# comment, and (2) distributions including binaries display the following -# acknowledgement: ``This product includes software developed by the -# University of California, Berkeley and its contributors'' in the -# documentation or other materials provided with the distribution and in -# all advertising materials mentioning features or use of this software. -# Neither the name of the University nor the names of its contributors may -# be used to endorse or promote products derived from this software without -# specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.5 (Berkeley) 3/1/91 -# - -# -# Everything happens in ../Makefile.config and Makefile.generic -# -SHELL=/bin/sh - -all: - @-if test -f ../Config.local; \ - then \ - echo make -f ../Config.local WHAT=${WHAT} CC="${CC}"; \ - make -f ../Config.local WHAT=${WHAT} CC="${CC}"; \ - else \ - echo make -f ../Config.generic WHAT=${WHAT} CC="${CC}"; \ - make -f ../Config.generic WHAT=${WHAT} CC="${CC}"; \ - fi - -.DEFAULT: - @-if test -f ../Config.local; \ - then \ - echo make -f ../Config.local WHAT=${WHAT} CC="${CC}" $@; \ - make -f ../Config.local WHAT=${WHAT} CC="${CC}" $@; \ - else \ - echo make -f ../Config.generic WHAT=${WHAT} CC="${CC}" $@; \ - make -f ../Config.generic WHAT=${WHAT} CC="${CC}" $@; \ - fi diff --git a/appl/telnet/telnetd/Makefile.generic b/appl/telnet/telnetd/Makefile.generic deleted file mode 100644 index a40845d9f..000000000 --- a/appl/telnet/telnetd/Makefile.generic +++ /dev/null @@ -1,71 +0,0 @@ -# -# Copyright (c) 1991 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted provided -# that: (1) source distributions retain this entire copyright notice and -# comment, and (2) distributions including binaries display the following -# acknowledgement: ``This product includes software developed by the -# University of California, Berkeley and its contributors'' in the -# documentation or other materials provided with the distribution and in -# all advertising materials mentioning features or use of this software. -# Neither the name of the University nor the names of its contributors may -# be used to endorse or promote products derived from this software without -# specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91 -# - -SRC1= telnetd.c state.c termstat.c slc.c sys_term.c utility.c global.c authenc.c -OBJ1= telnetd.o state.o termstat.o slc.o sys_term.o utility.o global.o authenc.o - -OBJS= ${OBJ1} ${GETTYOBJ} -SRCS= ${SRC1} ${GETTYSRC} - -MAN= telnetd.0 -CFLAGS= ${LCCFLAGS} -I.. ${DEFINES} ${INCLUDES} -ARPA_TELNET = ../arpa/telnet.h - -# -# These next three lines are not needed in 4.4BSD -# -.SUFFIXES: .0 .8 -.8.0: - nroff -man -h $< > $@ - - -all: telnetd - -telnetd: ${OBJS} ${LIBPATH} - ${CC} -o $@ ${CFLAGS} ${OBJS} ../../../lib/kafs/libkafs.a ${LIBS} - -clean: - rm -f ${OBJS} core telnetd - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 telnetd ${LIBEXEC} - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} - -authenc.o: telnetd.h -global.o: defs.h ext.h ${ARPA_TELNET} -slc.o: telnetd.h defs.h ext.h ${ARPA_TELNET} -state.o: telnetd.h defs.h ext.h ${ARPA_TELNET} -sys_term.o: telnetd.h pathnames.h defs.h ext.h ${ARPA_TELNET} -telnetd.o: telnetd.h defs.h ext.h ${ARPA_TELNET} -termstat.o: telnetd.h defs.h ext.h ${ARPA_TELNET} -utility.o: telnetd.h defs.h ext.h ${ARPA_TELNET} diff --git a/appl/telnet/telnetd/Makefile.in b/appl/telnet/telnetd/Makefile.in index 657735035..c5aa68aed 100644 --- a/appl/telnet/telnetd/Makefile.in +++ b/appl/telnet/telnetd/Makefile.in @@ -28,9 +28,16 @@ OBJECTS=telnetd.o state.o termstat.o slc.o sys_term.o \ utility.o global.o authenc.o -libtop=../../../lib +libtop = @libtop@ -KLIB=-L$(libtop)/kafs -lkafs -L$(libtop)/krb -lkrb -L$(libtop)/des -ldes -L../../../util/et -lcom_err +KRBLIBPATH = @KRBLIBPATH@ +KRBINCPATH = @KRBINCPATH@ +LIBKRB = @LIBKRB@ +LIBDES = @LIBDES@ +LIBKAFS = @LIBKAFS@ +LIBCOM_ERR = @LIBCOM_ERR@ + +KLIB=$(KRBLIBPATH) $(LIBKAFS) $(LIBKRB) $(LIBDES) $(LIBCOM_ERR) all: telnetd @@ -39,7 +46,7 @@ $(OBJECTS): ../config.h .c.o: $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \ - -I../../../include -I$(srcdir)/../../../include -I.. -I$(srcdir)/.. $< + @KRBINCPATH@ -I.. -I$(srcdir)/.. $< telnetd: $(OBJECTS) $(CC) -o telnetd $(OBJECTS) $(LIBS) ../libtelnet/libtelnet.a $(KLIB) diff --git a/appl/telnet/telnetd/ext.h b/appl/telnet/telnetd/ext.h index 210cb8734..647bff2dd 100644 --- a/appl/telnet/telnetd/ext.h +++ b/appl/telnet/telnetd/ext.h @@ -204,7 +204,7 @@ extern char *nclearto; * the relationship between various variables. */ -extern struct { +struct clocks_t{ int system, /* what the current time is */ echotoggle, /* last time user entered echo character */ @@ -217,7 +217,8 @@ extern struct { xdisplocsubopt, /* xdisploc subopt is received */ baseline, /* time started to do timed action */ gotDM; /* when did we last see a data mark */ -} clocks; +}; +extern struct clocks_t clocks; #if defined(CRAY2) && defined(UNICOS5) diff --git a/appl/telnet/telnetd/global.c b/appl/telnet/telnetd/global.c index 34398513c..bfd70ed85 100644 --- a/appl/telnet/telnetd/global.c +++ b/appl/telnet/telnetd/global.c @@ -35,16 +35,86 @@ static char sccsid[] = "@(#)global.c 8.1 (Berkeley) 6/4/93"; #endif /* not lint */ -/* - * Allocate global variables. We do this - * by including the header file that defines - * them all as externs, but first we define - * the keyword "extern" to be nothing, so that - * we will actually allocate the space. +/* a *lot* of ugly global definitions that really should be removed... */ #include #include "defs.h" -#define extern #include "ext.h" + + +/* + * Telnet server variable declarations + */ +char options[256]; +char do_dont_resp[256]; +char will_wont_resp[256]; +int linemode; /* linemode on/off */ +#ifdef LINEMODE +int uselinemode; /* what linemode to use (on/off) */ +int editmode; /* edit modes in use */ +int useeditmode; /* edit modes to use */ +int alwayslinemode; /* command line option */ +# ifdef KLUDGELINEMODE +int lmodetype; /* Client support for linemode */ +# endif /* KLUDGELINEMODE */ +#endif /* LINEMODE */ +int flowmode; /* current flow control state */ +int restartany; /* restart output on any character state */ +#ifdef DIAGNOSTICS +int diagnostic; /* telnet diagnostic capabilities */ +#endif /* DIAGNOSTICS */ +#ifdef BFTPDAEMON +int bftpd; /* behave as bftp daemon */ +#endif /* BFTPDAEMON */ +#if defined(SecurID) +int require_SecurID; +#endif + +slcfun slctab[NSLC + 1]; /* slc mapping table */ + +char *terminaltype; + +/* + * I/O data buffers, pointers, and counters. + */ +char ptyobuf[BUFSIZ+NETSLOP], *pfrontp, *pbackp; + +char netibuf[BUFSIZ], *netip; + +char netobuf[BUFSIZ+NETSLOP], *nfrontp, *nbackp; +char *neturg; /* one past last bye of urgent data */ + +int pcc, ncc; + +#if defined(CRAY2) && defined(UNICOS5) +int unpcc; /* characters left unprocessed by CRAY-2 terminal routine */ +char *unptyip; /* pointer to remaining characters in buffer */ +#endif + +int pty, net; +int SYNCHing; /* we are in TELNET SYNCH mode */ + +#ifndef P +# ifdef __STDC__ +# define P(x) x +# else +# define P(x) () +# endif +#endif + + +#if defined(ENCRYPTION) +void (*encrypt_output) P((unsigned char *, int)); +int (*decrypt_input) P((int)); +char *nclearto; +#endif + + +/* + * The following are some clocks used to decide how to interpret + * the relationship between various variables. + */ + +struct clocks_t clocks; diff --git a/appl/telnet/telnetd/sys_term.c b/appl/telnet/telnetd/sys_term.c index d572bb889..dde337c27 100644 --- a/appl/telnet/telnetd/sys_term.c +++ b/appl/telnet/telnetd/sys_term.c @@ -101,7 +101,7 @@ extern struct sysv sysv; #include #undef SE #endif -#if !(defined(__sgi) || defined(__linux) || defined(_AIX)) +#if !(defined(__sgi) || defined(__linux) || defined(_AIX)) && defined(HAVE_SYS_TTY) #include #endif #ifdef t_erase @@ -477,11 +477,18 @@ char *line = Xline; char *myline = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; #endif /* CRAY */ - int +int getpty(ptynum) int *ptynum; { register int p; +#ifdef _AIX + p=open("/dev/ptc", 2); + if(p > 0){ + strcpy(line, ttyname(p)); + return p; + } +#else #ifdef STREAMSPTY int t; char *ptsname(); @@ -587,6 +594,7 @@ int *ptynum; } #endif /* CRAY */ #endif /* STREAMSPTY */ +#endif /* AIX */ return(-1); } #endif /* convex */ @@ -1223,9 +1231,8 @@ getptyslave() * Open the specified slave side of the pty, * making sure that we have a clean tty. */ - int -cleanopen(line) - char *line; + +int cleanopen(char *line) { register int t; #ifdef UNICOS7x diff --git a/appl/telnet/telnetd/telnetd.0.ps b/appl/telnet/telnetd/telnetd.0.ps deleted file mode 100644 index bbbdbd002..000000000 --- a/appl/telnet/telnetd/telnetd.0.ps +++ /dev/null @@ -1,555 +0,0 @@ -%!PS-Adobe-3.0 -%%Creator: groff version 1.08 -%%DocumentNeededResources: font Times-Roman -%%+ font Times-Bold -%%+ font Courier-Bold -%%+ font Courier-Oblique -%%+ font Courier -%%DocumentSuppliedResources: procset grops 1.08 0 -%%Pages: 5 -%%PageOrder: Ascend -%%Orientation: Portrait -%%EndComments -%%BeginProlog -%%BeginResource: procset grops 1.08 0 -/setpacking where{ -pop -currentpacking -true setpacking -}if -/grops 120 dict dup begin -/SC 32 def -/A/show load def -/B{0 SC 3 -1 roll widthshow}bind def -/C{0 exch ashow}bind def -/D{0 exch 0 SC 5 2 roll awidthshow}bind def -/E{0 rmoveto show}bind def -/F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def -/G{0 rmoveto 0 exch ashow}bind def -/H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def -/I{0 exch rmoveto show}bind def -/J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def -/K{0 exch rmoveto 0 exch ashow}bind def -/L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def -/M{rmoveto show}bind def -/N{rmoveto 0 SC 3 -1 roll widthshow}bind def -/O{rmoveto 0 exch ashow}bind def -/P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def -/Q{moveto show}bind def -/R{moveto 0 SC 3 -1 roll widthshow}bind def -/S{moveto 0 exch ashow}bind def -/T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def -/SF{ -findfont exch -[exch dup 0 exch 0 exch neg 0 0]makefont -dup setfont -[exch/setfont cvx]cvx bind def -}bind def -/MF{ -findfont -[5 2 roll -0 3 1 roll -neg 0 0]makefont -dup setfont -[exch/setfont cvx]cvx bind def -}bind def -/level0 0 def -/RES 0 def -/PL 0 def -/LS 0 def -/PLG{ -gsave newpath clippath pathbbox grestore -exch pop add exch pop -}bind def -/BP{ -/level0 save def -1 setlinecap -1 setlinejoin -72 RES div dup scale -LS{ -90 rotate -}{ -0 PL translate -}ifelse -1 -1 scale -}bind def -/EP{ -level0 restore -showpage -}bind def -/DA{ -newpath arcn stroke -}bind def -/SN{ -transform -.25 sub exch .25 sub exch -round .25 add exch round .25 add exch -itransform -}bind def -/DL{ -SN -moveto -SN -lineto stroke -}bind def -/DC{ -newpath 0 360 arc closepath -}bind def -/TM matrix def -/DE{ -TM currentmatrix pop -translate scale newpath 0 0 .5 0 360 arc closepath -TM setmatrix -}bind def -/RC/rcurveto load def -/RL/rlineto load def -/ST/stroke load def -/MT/moveto load def -/CL/closepath load def -/FL{ -currentgray exch setgray fill setgray -}bind def -/BL/fill load def -/LW/setlinewidth load def -/RE{ -findfont -dup maxlength 1 index/FontName known not{1 add}if dict begin -{ -1 index/FID ne{def}{pop pop}ifelse -}forall -/Encoding exch def -dup/FontName exch def -currentdict end definefont pop -}bind def -/DEFS 0 def -/EBEGIN{ -moveto -DEFS begin -}bind def -/EEND/end load def -/CNT 0 def -/level1 0 def -/PBEGIN{ -/level1 save def -translate -div 3 1 roll div exch scale -neg exch neg exch translate -0 setgray -0 setlinecap -1 setlinewidth -0 setlinejoin -10 setmiterlimit -[]0 setdash -/setstrokeadjust where{ -pop -false setstrokeadjust -}if -/setoverprint where{ -pop -false setoverprint -}if -newpath -/CNT countdictstack def -userdict begin -/showpage{}def -}bind def -/PEND{ -clear -countdictstack CNT sub{end}repeat -level1 restore -}bind def -end def -/setpacking where{ -pop -setpacking -}if -%%EndResource -%%IncludeResource: font Times-Roman -%%IncludeResource: font Times-Bold -%%IncludeResource: font Courier-Bold -%%IncludeResource: font Courier-Oblique -%%IncludeResource: font Courier -grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72 def/PL -792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron/scaron/zcaron -/Ydieresis/trademark/quotesingle/.notdef/.notdef/.notdef/.notdef/.notdef -/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef -/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/space -/exclam/quotedbl/numbersign/dollar/percent/ampersand/quoteright/parenleft -/parenright/asterisk/plus/comma/hyphen/period/slash/zero/one/two/three/four -/five/six/seven/eight/nine/colon/semicolon/less/equal/greater/question/at/A/B/C -/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash -/bracketright/circumflex/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q -/r/s/t/u/v/w/x/y/z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase -/guillemotleft/guillemotright/bullet/florin/fraction/perthousand/dagger -/daggerdbl/endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut -/dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash -/quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen/brokenbar -/section/dieresis/copyright/ordfeminine/guilsinglleft/logicalnot/minus -/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu -/paragraph/periodcentered/cedilla/onesuperior/ordmasculine/guilsinglright -/onequarter/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex/Atilde -/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute -/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis -/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls -/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute -/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve -/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex -/udieresis/yacute/thorn/ydieresis]def/Courier@0 ENC0/Courier RE -/Courier-Oblique@0 ENC0/Courier-Oblique RE/Courier-Bold@0 ENC0/Courier-Bold RE -/Times-Bold@0 ENC0/Times-Bold RE/Times-Roman@0 ENC0/Times-Roman RE -%%EndProlog -%%Page: 1 1 -%%BeginPageSetup -BP -%%EndPageSetup -/F0 10/Times-Roman@0 SF -.834(TELNETD \( 8 \))72 48 R(BSD System Manager') -241.42 48 Q 2.5(sM)-.55 G 105.272(anual TELNETD)348.92 48 R 1.666(\(8\))1.666 G -/F1 10/Times-Bold@0 SF -.2(NA)72 108 S(ME).2 E/F2 10/Courier-Bold@0 SF(telnetd) -102 120 Q F0 2.52.5 G(ARP)161.46 120 Q(A)-.92 E/F3 9/Times-Roman@0 SF -(TELNET)2.5 E F0(protocol serv)2.5 E(er)-.15 E F1(SYNOPSIS)72 144 Q F2 -(/usr/libexec/telnetd)102 156 Q F0([)3.333 E F22.499 E/F4 10 -/Courier-Oblique@0 SF(authmode)6 E F0 3.333(][).833 G F2-.834 E F0 3.333 -(][).833 G F2-.834 E F4(debugmode)6 E F0 3.333(][).833 G F2(\255edebug) --.834 E F0 3.333(][).833 G F2-.834 E F0(]).833 E([)228.833 168 Q F2 -2.499 E F4(initid)A F0 3.333(][).833 G F2-.834 E F0 3.333(][).833 G F2 --.834 E F0 3.333(][).833 G F2-.834 E F0 3.333(][).833 G F2 --.834 E F4(lowpty-highpty)A F0 3.333(][).833 G F2-.834 E F0 3.333(][).833 -G F2-.834 E F4(tos)228 180 Q F0 3.333(][).833 G F2-.834 E F4(len)6 -E F0 3.333(][).833 G F2-.834 E F0 3.333(][).833 G F2-.834 E F4 -(authtype)6 E F0 3.333(][).833 G F2(\255debug)-.834 E F0([)6.833 E F4(port).833 -E F0 .833(]]).833 G F1(DESCRIPTION)72 204 Q F0(The)102 216 Q F2(telnetd)3.044 E -F0 .544(command is a serv)3.044 F .544(er which supports the)-.15 F F3 -.36(DA) -3.044 G(RP).36 E(A)-.828 E F0(standard)3.044 E F3(TELNET)3.044 E F0 .543 -(virtual terminal protocol.)3.044 F F2(Telnetd)102 228 Q F0 .221 -(is normally in)2.721 F -.2(vo)-.4 G -.1(ke).2 G 2.721(db).1 G 2.721(yt)234.184 -228 S .221(he internet serv)244.685 228 R .221(er \(see)-.15 F/F5 10/Courier@0 -SF(inetd)2.721 E F0 2.942(\(8\)\) for)B .221(requests to connect to the)2.721 F -F3(TELNET)2.721 E F0 .673(port as indicated by the)102 240 R F5(/etc/services) -3.173 E F0 .673(\214le \(see)3.173 F F5(services)3.173 E F0 3.846(\(5\)\). The) -B F2(\255debug)4.839 E F0 .672(option may be used to)3.173 F .145(start up)102 -252 R F2(telnetd)2.645 E F0(manually)2.645 E 2.645(,i)-.65 G .145 -(nstead of through)223.65 252 R F5(inetd)2.645 E F0 2.79(\(8\). If)B .145 -(started up this w)2.645 F(ay)-.1 E(,)-.65 E F4(port)2.645 E F0 .145 -(may be speci\214ed to)2.645 F(run)102 264 Q F2(telnetd)2.5 E F0 -(on an alternate)2.5 E F3(TCP)2.5 E F0(port number)2.5 E(.)-.55 E(The)102 282 Q -F2(telnetd)2.5 E F0(command accepts the follo)2.5 E(wing options:)-.25 E F2 -103.666 300 Q F4(authmode)6 E F0 .106(This option may be used for specif\ -ying what mode should be used for authentication.)173 312 R(Note)5.106 E 2.778 -(that this option is only useful if)173 324 R F2(telnetd)5.279 E F0 2.779 -(has been compiled with support for the)5.279 F F5(AUTHENTICATION)173 336 Q F0 -2.5(option. There)2.5 F(are se)2.5 E -.15(ve)-.25 G(ral v).15 E(alid v)-.25 E -(alues for)-.25 E F4(authmode:)2.5 E F0(deb)173 354 Q 8.26(ug T)-.2 F -(urns on authentication deb)-.45 E(ugging code.)-.2 E 15.84(user Only)173 372 R -(allo)2.923 E 2.923(wc)-.25 G .423(onnections when the remote user can pro) -260.256 372 R .422(vide v)-.15 F .422(alid authentication in-)-.25 F 1.277 -(formation to identify the remote user)208 384 R 3.777(,a)-.4 G 1.277 -(nd is allo)372.181 384 R 1.277(wed access to the speci\214ed ac-)-.25 F -(count without pro)208 396 Q(viding a passw)-.15 E(ord.)-.1 E -.25(va)173 414 S -12.75(lid Only).25 F(allo)2.923 E 2.923(wc)-.25 G .423 -(onnections when the remote user can pro)260.256 414 R .422(vide v)-.15 F .422 -(alid authentication in-)-.25 F .742(formation to identify the remote user)208 -426 R 5.743(.T)-.55 G(he)372.995 426 Q F5(login)3.243 E F0 .743 -(\(1\) command will pro)B .743(vide an)-.15 F(y)-.15 E .53(additional user v) -208 438 R .529(eri\214cation needed if the remote user is not allo)-.15 F .529 -(wed automatic ac-)-.25 F(cess to the speci\214ed account.)208 450 Q 11.95 -(other Only)173 468 R(allo)3.028 E 3.029(wc)-.25 G .529 -(onnections that supply some authentication information.)260.467 468 R .529 -(This option)5.529 F .079(is currently not supported by an)208 480 R 2.578(yo) --.15 G 2.578(ft)347.752 480 S .078(he e)356.44 480 R .078 -(xisting authentication mechanisms, and is)-.15 F(thus the same as specifying) -208 492 Q F2 -3.5(\255a valid)4.166 F F0(.)A 13.06(none This)173 510 R .869 -(is the def)3.369 F .869(ault state.)-.1 F .869 -(Authentication information is not required.)5.869 F .87(If no or in-)5.869 F -(suf)208 522 Q .394(\214cient authentication information is pro)-.25 F .393 -(vided, then the)-.15 F F5(login)2.893 E F0 .393(\(1\) program will)B(pro)208 -534 Q(vide the necessary user v)-.15 E(eri\214cation.)-.15 E(of)173 552 Q 23.59 -(fT)-.25 G 1.385(his disables the authentication code.)214.11 552 R 1.385 -(All user v)6.385 F 1.385(eri\214cation will happen through)-.15 F(the)208 564 -Q F5(login)2.5 E F0(\(1\) program.)A F2103.666 582 Q F0 .82 -(Speci\214es bftp serv)173 582 R .82(er mode.)-.15 F .819(In this mode,)5.82 F -F2(telnetd)3.319 E F0 .819(causes login to start a)3.319 F F5(bftp)3.319 E F0 -.819(\(1\) ses-)B .747(sion rather than the user')173 594 R 3.247(sn)-.55 G -.747(ormal shell.)286.995 594 R .748 -(In bftp daemon mode normal logins are not sup-)5.747 F -(ported, and it must be used on a port other than the normal)173 606 Q F3 -(TELNET)2.5 E F0(port.)2.5 E F2103.666 624 Q F4(debugmode)6 E F0 .827 -(This option may be used for deb)173 636 R .827(ugging purposes.)-.2 F .827 -(This allo)5.827 F(ws)-.25 E F2(telnetd)3.327 E F0 .827(to print out de-)3.327 -F -.2(bu)173 648 S .827(gging information to the connection, allo).2 F .827 -(wing the user to see what)-.25 F F2(telnetd)3.327 E F0 .827(is doing.)3.327 F -(There are se)173 660 Q -.15(ve)-.25 G(ral possible v).15 E(alues for)-.25 E F4 -(debugmode:)2.5 E F2(options)173 678 Q F0(Prints information about the ne)226 -678 Q(gotiation of)-.15 E F3(TELNET)2.5 E F0(options.)2.5 E(4.2 Berk)72 750 Q -(ele)-.1 E 2.5(yD)-.15 G(istrib)132.57 750 Q 95.71(ution February)-.2 F -(3, 1994)2.5 E(1)535 750 Q EP -%%Page: 2 2 -%%BeginPageSetup -BP -%%EndPageSetup -/F0 10/Times-Roman@0 SF -.834(TELNETD \( 8 \))72 48 R(BSD System Manager') -241.42 48 Q 2.5(sM)-.55 G 105.272(anual TELNETD)348.92 48 R 1.666(\(8\))1.666 G -/F1 10/Courier-Bold@0 SF(report)173 96 Q F0 2.438(Prints the)226 96 R F1 -(options)4.938 E F0 2.437(information, plus some additional information about) -4.938 F(what processing is going on.)226 108 Q F1(netdata)173 126 Q F0 -(Displays the data stream recei)226 126 Q -.15(ve)-.25 G 2.5(db).15 G(y)367.51 -126 Q F1(telnetd.)2.5 E(ptydata)173 144 Q F0(Displays data written to the pty) -226 144 Q(.)-.65 E F1(exercise)173 162 Q F0(Has not been implemented yet.)5 E -F1(\255debug)103.666 180 Q F0(Enables deb)173 180 Q(ugging on each sock)-.2 E -(et created by)-.1 E F1(telnetd)2.5 E F0(\(see)2.5 E/F2 10/Courier@0 SF -(SO_DEBUG)2.5 E F0(in)2.5 E F2(socket)2.5 E F0(\(2\)\).)A F1(\255edebug)103.666 -198 Q F0(If)173 198 Q F1(telnetd)3.161 E F0 .662 -(has been compiled with support for data encryption, then the)3.161 F F1 -(\255edebug)4.828 E F0(op-)3.162 E(tion may be used to enable encryption deb) -173 210 Q(ugging code.)-.2 E F1103.666 228 Q F0(Disables the printing of\ - host-speci\214c information before login has been completed.)173 228 Q F1 -103.666 246 Q/F3 10/Courier-Oblique@0 SF(initid)7.171 E F0 1.171 -(This option is only applicable to)174.171 246 R/F4 9/Times-Roman@0 SF(UNICOS) -3.671 E F0 1.171(systems prior to 7.0.)3.671 F 1.17(It speci\214es the)6.171 F -F2(ID)3.67 E F0(from)3.67 E F2(/etc/inittab)173 258 Q F0 -(to use when init starts login sessions.)2.5 E(The def)5 E(ault)-.1 E F2(ID)2.5 -E F0(is)2.5 E F2(fe.)2.5 E F1103.666 276 Q F0 .556 -(This option is only useful if)173 276 R F1(telnetd)3.056 E F0 .557 -(has been compiled with both linemode and kludge)3.056 F .521 -(linemode support.)173 288 R .521(If the)5.521 F F14.687 E F0 .52 -(option is speci\214ed, then if the remote client does not support)3.02 F(the) -173 300 Q F2(LINEMODE)3.697 E F0 1.197(option, then)3.697 F F1(telnetd)3.697 E -F0 1.197(will operate in character at a time mode.)3.697 F 1.198(It will)6.198 -F .148(still support kludge linemode, b)173 312 R .147 -(ut will only go into kludge linemode if the remote client re-)-.2 F 2.06 -(quests it.)173 324 R 2.061(\(This is done by by the client sending)7.06 F F2 -2.061(DONT SUPPRESS-GO-AHEAD)4.561 F F0(and)4.561 E F2 .1(DONT ECHO)173 336 R -F0 .1(.\) The)B F14.266 E F0 .1 -(option is most useful when there are remote clients that do not sup-)2.6 F .67 -(port kludge linemode, b)173 348 R .67(ut pass the heuristic \(if the)-.2 F -3.17(yr)-.15 G .67(espond with)390.88 348 R F2 .67(WILL TIMING-MARK)3.17 F F0 -(in response to a)173 360 Q F2(DO TIMING-MARK\))2.5 E F0 -(for kludge linemode support.)2.5 E F1103.666 378 Q F0 .672 -(Speci\214es line mode.)173 378 R -.35(Tr)5.672 G .671 -(ies to force clients to use line- at-a-time mode.).35 F .671(If the)5.671 F F2 -(LINEMODE)3.171 E F0(option is not supported, it will go into kludge linemode.) -173 390 Q F1103.666 408 Q F0(Disable)173 408 Q F2(TCP)3.488 E F0 -.1(ke) -3.488 G(ep-ali).1 E -.15(ve)-.25 G 3.488(s. Normally).15 F F1(telnetd)3.488 E -F0 .988(enables the)3.488 F F4(TCP)3.489 E F0 -.1(ke)3.489 G(ep-ali).1 E 1.289 --.15(ve m)-.25 H .989(echanism to).15 F .602(probe connections that ha)173 420 -R .902 -.15(ve b)-.2 H .602 -(een idle for some period of time to determine if the client is).15 F 1.124 -(still there, so that idle connections from machines that ha)173 432 R 1.424 --.15(ve c)-.2 H 1.124(rashed or can no longer be).15 F -(reached may be cleaned up.)173 444 Q F1103.666 462 Q F3(lowpty-highpty)6 -E F0 .772(This option is only enabled when)173 474 R F1(telnetd)3.272 E F0 .771 -(is compiled for)3.271 F F2(UNICOS.)3.271 E F0 .771(It speci\214es an in-)3.271 -F(clusi)173 486 Q 3.232 -.15(ve r)-.25 H 2.932(ange of pseudo-terminal de).15 F -2.932(vices to use.)-.25 F 2.933(If the system has sysconf v)7.933 F(ariable) --.25 E F2(_SC_CRAY_NPTY)173 498 Q F0 1.486(con\214gured, the def)3.986 F 1.486 -(ault pty search range is 0 to)-.1 F F2(_SC_CRAY_NPTY;)3.986 E F0 .72 -(otherwise, the def)173 510 R .72(ault range is 0 to 128.)-.1 F(Either)5.72 E -F3(lowpty)3.22 E F0(or)3.22 E F3(highpty)3.22 E F0 .72(may be omitted to)3.22 F -(allo)173 522 Q 2.6(wc)-.25 G .1(hanging either end of the search range.)202.01 -522 R(If)5.1 E F3(lowpty)2.6 E F0 .1(is omitted, the - character is still)2.6 F -(required so that)173 534 Q F1(telnetd)2.5 E F0(can dif)2.5 E(ferentiate)-.25 E -F3(highpty)2.5 E F0(from)2.5 E F3(lowpty)2.5 E F0(.)A F1103.666 552 Q F0 -1.391(This option is only enabled if)173 552 R F1(telnetd)3.891 E F0 1.391 -(is compiled with support for)3.891 F F4(SecurID)3.891 E F0 3.891(cards. It) -3.891 F .787(causes the)173 564 R F14.953 E F0 .786 -(option to be passed on to)3.286 F F2(login)3.286 E F0 4.072(\(1\), and)B .786 -(thus is only useful if)3.286 F F2(login)3.286 E F0(\(1\))A .48(supports the) -173 576 R F14.646 E F0 .48(\215ag to indicate that only)2.98 F F4 -(SecurID)2.98 E F0 -.25(va)2.98 G .481(lidated logins are allo).25 F .481 -(wed, and is usu-)-.25 F -(ally useful for controlling remote logins from outside of a \214re)173 588 Q --.1(wa)-.25 G(ll.).1 E F1103.666 606 Q F3(tos)6 E F1103.666 624 Q -F3(len)6.628 E F0 .628 -(This option is used to specify the size of the \214eld in the)173.628 624 R F2 -(utmp)3.127 E F0 .627(structure that holds the re-)3.127 F 1(mote host name.) -173 636 R 1(If the resolv)6 F 1(ed host name is longer than)-.15 F F3(len)3.5 E -F0 3.5(,t)C 1(he dotted decimal v)441.99 636 R(alue)-.25 E .046 -(will be used instead.)173 648 R .046(This allo)5.046 F .046(ws hosts with v) --.25 F .045(ery long host names that o)-.15 F -.15(ve)-.15 G(r\215o).15 E 2.545 -(wt)-.25 G .045(his \214eld to)497.68 648 R .996 -(still be uniquely identi\214ed.)173 660 R(Specifying)5.997 E F1(\255u0)5.163 E -F0 .997(indicates that only dotted decimal addresses)3.497 F -(should be put into the)173 672 Q F2(utmp)2.5 E F0(\214le.)2.5 E F1 -103.666 690 Q F0 .422(This option causes)173 690 R F1(telnetd)2.922 E F0 .422 -(to refuse connections from addresses that cannot be mapped)2.922 F(4.2 Berk)72 -750 Q(ele)-.1 E 2.5(yD)-.15 G(istrib)132.57 750 Q 95.71(ution February)-.2 F -(3, 1994)2.5 E(2)535 750 Q EP -%%Page: 3 3 -%%BeginPageSetup -BP -%%EndPageSetup -/F0 10/Times-Roman@0 SF -.834(TELNETD \( 8 \))72 48 R(BSD System Manager') -241.42 48 Q 2.5(sM)-.55 G 105.272(anual TELNETD)348.92 48 R 1.666(\(8\))1.666 G -(back into a symbolic name via the)173 96 Q/F1 10/Courier@0 SF(gethostbyaddr) -2.5 E F0(\(3\) routine.)A/F2 10/Courier-Bold@0 SF103.666 114 Q/F3 10 -/Courier-Oblique@0 SF(authtype)6 E F0 .123(This option is only v)173 126 R .123 -(alid if)-.25 F F2(telnetd)2.623 E F0 .123(has been b)2.623 F .124 -(uilt with support for the authentication op-)-.2 F 2.968(tion. It)173 138 R -.467(disables the use of)2.968 F F3(authtype)2.967 E F0 .467 -(authentication, and can be used to temporarily dis-)2.967 F -(able a speci\214c authentication type without ha)173 150 Q(ving to recompile) --.2 E F2(telnetd)2.5 E F0(.)A F2(Telnetd)102 168 Q F0 .851 -(operates by allocating a pseudo-terminal de)3.351 F .851(vice \(see)-.25 F F1 -(pty)3.351 E F0 4.202(\(4\)\) for)B 3.351(ac)3.351 G .852 -(lient, then creating a login)431.882 168 R .757(process which has the sla)102 -180 R 1.057 -.15(ve s)-.2 H .757(ide of the pseudo-terminal as).15 F F1(stdin) -3.257 E F0(,)A F1(stdout)3.256 E F0(and)3.256 E F1(stderr)3.256 E F0(.)A F2 -(Telnetd)3.256 E F0(ma-)3.256 E .483 -(nipulates the master side of the pseudo-terminal, implementing the)102 192 R -/F4 9/Times-Roman@0 SF(TELNET)2.984 E F0 .484(protocol and passing characters) -2.984 F(between the remote client and the login process.)102 204 Q .538(When a) -102 222 R F4(TELNET)3.038 E F0 .538(session is started up,)3.038 F F2(telnetd) -3.038 E F0(sends)3.038 E F4(TELNET)3.038 E F0 .538 -(options to the client side indicating a will-)3.038 F(ingness to do the follo) -102 234 Q(wing)-.25 E F4(TELNET)2.5 E F0 -(options, which are described in more detail belo)2.5 E(w:)-.25 E F1 -(DO AUTHENTICATION)132 252 Q(WILL ENCRYPT)132 264 Q(DO TERMINAL TYPE)132 276 Q -(DO TSPEED)132 288 Q(DO XDISPLOC)132 300 Q(DO NEW-ENVIRON)132 312 Q(DO ENVIRON) -132 324 Q(WILL SUPPRESS GO AHEAD)132 336 Q(DO ECHO)132 348 Q(DO LINEMODE)132 -360 Q(DO NAWS)132 372 Q(WILL STATUS)132 384 Q(DO LFLOW)132 396 Q -(DO TIMING-MARK)132 408 Q F0 .468(The pseudo-terminal allocated to the client \ -is con\214gured to operate in cook)102 426 R .468(ed mode, and with)-.1 F F1 -.469(XTABS and)2.969 F(CRMOD)102 438 Q F0(enabled \(see)2.5 E F1(tty)2.5 E F0 -(\(4\)\).)A F2(Telnetd)102 456 Q F0(has support for enabling locally the follo) -2.5 E(wing)-.25 E F4(TELNET)2.5 E F0(options:)2.5 E .558(WILL ECHO)102 474 R -.558(When the)209.558 474 R F1(LINEMODE)3.057 E F0 .557(option is enabled, a) -3.057 F F1 .557(WILL ECHO)3.057 F F0(or)3.057 E F1 .557(WONT ECHO)3.057 F F0 -.557(will be)3.057 F .487 -(sent to the client to indicate the current state of terminal echoing.)209 486 -R .487(When terminal)5.487 F .409(echo is not desired, a)209 498 R F1 .408 -(WILL ECHO)2.908 F F0 .408(is sent to indicate that)2.908 F F4(telnetd)2.908 E -F0 .408(will tak)2.908 F 2.908(ec)-.1 G .408(are of)516.552 498 R 1.811 -(echoing an)209 510 R 4.311(yd)-.15 G 1.811 -(ata that needs to be echoed to the terminal, and then nothing is)268.572 510 R -3.876(echoed. When)209 522 R 1.376(terminal echo is desired, a)3.876 F F1 1.375 -(WONT ECHO)3.875 F F0 1.375(is sent to indicate that)3.875 F F4(telnetd)209 534 -Q F0 .11(will not be doing an)2.61 F 2.61(yt)-.15 G .11 -(erminal echoing, so the client should do an)326.788 534 R 2.611(yt)-.15 G -(erminal)509.45 534 Q(echoing that is needed.)209 546 Q .243(WILL BIN)102 564 R -(AR)-.35 E 42.18(YI)-.65 G .243(ndicates that the client is willing to send a \ -8 bits of data, rather than the normal 7)212.573 564 R(bits of the Netw)209 576 -Q(ork V)-.1 E(irtual T)-.6 E(erminal.)-.7 E(WILL SGA)102 594 Q -(Indicates that it will not be sending)209 594 Q F1(IAC GA,)2.5 E F0 -(go ahead, commands.)2.5 E .366(WILL ST)102 612 R -1.11(AT)-.93 G 41.27 -(US Indicates)1.11 F 2.866(aw)2.866 G .366 -(illingness to send the client, upon request, of the current status of all) -262.858 612 R F4(TELNET)209 624 Q F0(options.)2.5 E .51(WILL TIMING-MARK)102 -642 R(Whene)209.51 642 Q -.15(ve)-.25 G 3.01(ra).15 G F1 .509(DO TIMING-MARK) --.001 F F0 .509(command is recei)3.009 F -.15(ve)-.25 G .509(d, it is al).15 F --.1(wa)-.1 G .509(ys responded to).1 F(with a)209 654 Q F1(WILL TIMING-MARK)2.5 -E F0 .726(WILL LOGOUT)102 672 R .726(When a)209.726 672 R F1 .726(DO LOGOUT) -3.226 F F0 .726(is recei)3.226 F -.15(ve)-.25 G .726(d, a).15 F F1 .726 -(WILL LOGOUT)3.226 F F0 .726(is sent in response, and the)3.226 F(4.2 Berk)72 -750 Q(ele)-.1 E 2.5(yD)-.15 G(istrib)132.57 750 Q 95.71(ution February)-.2 F -(3, 1994)2.5 E(3)535 750 Q EP -%%Page: 4 4 -%%BeginPageSetup -BP -%%EndPageSetup -/F0 10/Times-Roman@0 SF -.834(TELNETD \( 8 \))72 48 R(BSD System Manager') -241.42 48 Q 2.5(sM)-.55 G 105.272(anual TELNETD)348.92 48 R 1.666(\(8\))1.666 G -/F1 9/Times-Roman@0 SF(TELNET)209 96 Q F0(session is shut do)2.5 E(wn.)-.25 E -.118(WILL ENCR)102 114 R 32.1(YPT Only)-.65 F .118(sent if)2.618 F/F2 10 -/Courier-Bold@0 SF(telnetd)2.618 E F0 .118 -(is compiled with support for data encryption, and indicates)2.618 F 2.5(aw)209 -126 S(illingness to decrypt the data stream.)223.16 126 Q F2(Telnetd)102 144 Q -F0(has support for enabling remotely the follo)2.5 E(wing)-.25 E F1(TELNET)2.5 -E F0(options:)2.5 E(DO BIN)102 162 Q(AR)-.35 E 52.73(YS)-.65 G -(ent to indicate that)214.56 162 Q F1(telnetd)2.5 E F0(is willing to recei)2.5 -E .3 -.15(ve a)-.25 H 2.5(n8b).15 G(it data stream.)423.918 162 Q(DO LFLO)102 -180 Q 55.97(WR)-.35 G(equests that the client handle \215o)215.67 180 Q 2.5(wc) --.25 G(ontrol characters remotely)358.18 180 Q(.)-.65 E .967(DO ECHO)102 198 R -.967(This is not really supported, b)209.967 198 R .967 -(ut is sent to identify a 4.2BSD)-.2 F/F3 10/Courier@0 SF(telnet)3.468 E F0 -.968(\(1\) client,)B .365(which will improperly respond with)209 210 R F3 .365 -(WILL ECHO.)2.865 F F0 .365(If a)2.865 F F3 .365(WILL ECHO)2.865 F F0 .365 -(is recei)2.865 F -.15(ve)-.25 G(d,).15 E(a)209 222 Q F3(DONT ECHO)2.5 E F0 -(will be sent in response.)2.5 E .445(DO TERMIN)102 240 R 7.92 -(AL-TYPE Indicates)-.35 F 2.945(ad)2.945 G .445 -(esire to be able to request the name of the type of terminal that is at-) -260.875 240 R(tached to the client side of the connection.)209 252 Q(DO SGA)102 -270 Q(Indicates that it does not need to recei)209 270 Q -.15(ve)-.25 G F3 -(IAC GA,)2.65 E F0(the go ahead command.)2.5 E .006(DO N)102 288 R -.9(AW)-.35 -G 61.87(SR).9 G .006(equests that the client inform the serv)215.676 288 R .005 -(er when the windo)-.15 F 2.505(w\()-.25 G .005(display\) size changes.)452.51 -288 R(DO TERMIN)102 306 Q(AL-SPEED)-.35 E 1.029(Indicates a desire to be able \ -to request information about the speed of the serial)209 318 R -(line to which the client is attached.)209 330 Q .469(DO XDISPLOC)102 348 R -.469(Indicates a desire to be able to request the name of the X windo)209.469 -348 R .468(ws display that is)-.25 F(associated with the telnet client.)209 360 -Q 1.008(DO NEW)102 378 R(-ENVIR)-.65 E 17.52(ON Indicates)-.4 F 3.508(ad)3.508 -G 1.008(esire to be able to request en)262.564 378 R 1.009(vironment v)-.4 F -1.009(ariable information, as de-)-.25 F(scribed in RFC 1572.)209 390 Q 1.009 -(DO ENVIR)102 408 R 42.97(ON Indicates)-.4 F 3.509(ad)3.509 G 1.009 -(esire to be able to request en)262.567 408 R 1.008(vironment v)-.4 F 1.008 -(ariable information, as de-)-.25 F(scribed in RFC 1408.)209 420 Q .886 -(DO LINEMODE)102 438 R .886(Only sent if)209.886 438 R F2(telnetd)3.386 E F0 -.886(is compiled with support for linemode, and requests that)3.386 F -(the client do line by line processing.)209 450 Q 1.292(DO TIMING-MARK)102 468 -R 1.292(Only sent if)210.292 468 R F2(telnetd)3.792 E F0 1.291 -(is compiled with support for both linemode and kludge)3.792 F 2.029 -(linemode, and the client responded with)209 480 R F3 2.029(WONT LINEMODE.) -4.529 F F0 2.029(If the client re-)4.529 F 3.375(sponds with)209 492 R F3 3.375 -(WILL TM,)5.875 F F0 3.375(the it is assumed that the client supports kludge) -5.875 F 2.5(linemode. Note)209 504 R(that the)2.5 E([)3.333 E F22.499 E -F0 2.5(]o).833 G(ption can be used to disable this.)338.205 504 Q(DO A)102 522 -Q(UTHENTICA)-.55 E(TION)-1.11 E .618(Only sent if)209 534 R F2(telnetd)3.118 E -F0 .618(is compiled with support for authentication, and indicates)3.118 F 2.5 -(aw)209 546 S(illingness to recei)223.16 546 Q .3 -.15(ve a)-.25 H -(uthentication information for automatic login.).15 E .118(DO ENCR)102 564 R -42.65(YPT Only)-.65 F .118(sent if)2.618 F F2(telnetd)2.618 E F0 .118 -(is compiled with support for data encryption, and indicates)2.618 F 2.5(aw)209 -576 S(illingness to decrypt the data stream.)223.16 576 Q/F4 10/Times-Bold@0 SF -(ENVIR)72 600 Q(ONMENT)-.3 E(FILES)72 612 Q F3(/etc/services)102 624 Q -(/etc/inittab)102 636 Q F0(\(UNICOS systems only\))2.5 E F3(/etc/iptos)102 648 -Q F0(\(if supported\))2.5 E F3(/usr/ucb/bftp)102 660 Q F0(\(if supported\))2.5 -E(4.2 Berk)72 750 Q(ele)-.1 E 2.5(yD)-.15 G(istrib)132.57 750 Q 95.71 -(ution February)-.2 F(3, 1994)2.5 E(4)535 750 Q EP -%%Page: 5 5 -%%BeginPageSetup -BP -%%EndPageSetup -/F0 10/Times-Roman@0 SF -.834(TELNETD \( 8 \))72 48 R(BSD System Manager') -241.42 48 Q 2.5(sM)-.55 G 105.272(anual TELNETD)348.92 48 R 1.666(\(8\))1.666 G -/F1 10/Times-Bold@0 SF(SEE ALSO)72 96 Q/F2 10/Courier@0 SF(telnet)102 108 Q F0 -(\(1\),)A F2(login)5 E F0(\(1\),)A F2(bftp)5 E F0(\(1\) \(if supported\))A F1 -(ST)72 132 Q(AND)-.9 E(ARDS)-.35 E/F3 10/Courier-Bold@0 SF(RFC-854)102 144 Q/F4 -9/Times-Roman@0 SF(TELNET)155 144 Q F0(PR)2.5 E -1.88 -.4(OT O)-.4 H -(COL SPECIFICA).4 E(TION)-1.11 E F3(RFC-855)102 156 Q F0 -(TELNET OPTION SPECIFICA)155 156 Q(TIONS)-1.11 E F3(RFC-856)102 168 Q F0 -(TELNET BIN)155 168 Q(AR)-.35 E 2.5(YT)-.65 G(RANSMISSION)241.21 168 Q F3 -(RFC-857)102 180 Q F0(TELNET ECHO OPTION)155 180 Q F3(RFC-858)102 192 Q F0 -(TELNET SUPPRESS GO AHEAD OPTION)155 192 Q F3(RFC-859)102 204 Q F0(TELNET ST) -155 204 Q -1.11(AT)-.93 G(US OPTION)1.11 E F3(RFC-860)102 216 Q F0 -(TELNET TIMING MARK OPTION)155 216 Q F3(RFC-861)102 228 Q F0 -(TELNET EXTENDED OPTIONS - LIST OPTION)155 228 Q F3(RFC-885)102 240 Q F0 -(TELNET END OF RECORD OPTION)155 240 Q F3(RFC-1073)102 252 Q F0 -.7(Te)5 G -(lnet W).7 E(indo)-.4 E 2.5(wS)-.25 G(ize Option)224.2 252 Q F3(RFC-1079)102 -264 Q F0 -.7(Te)5 G(lnet T).7 E(erminal Speed Option)-.7 E F3(RFC-1091)102 276 -Q F0 -.7(Te)5 G(lnet T).7 E(erminal-T)-.7 E(ype Option)-.8 E F3(RFC-1096)102 -288 Q F0 -.7(Te)5 G(lnet X Display Location Option).7 E F3(RFC-1123)102 300 Q -F0(Requirements for Internet Hosts -- Application and Support)5 E F3(RFC-1184) -102 312 Q F0 -.7(Te)5 G(lnet Linemode Option).7 E F3(RFC-1372)102 324 Q F0 -.7 -(Te)5 G(lnet Remote Flo).7 E 2.5(wC)-.25 G(ontrol Option)245.44 324 Q F3 -(RFC-1416)102 336 Q F0 -.7(Te)5 G(lnet Authentication Option).7 E F3(RFC-1411) -102 348 Q F0 -.7(Te)5 G(lnet Authentication: K).7 E(erberos V)-.25 E(ersion 4) --1.11 E F3(RFC-1412)102 360 Q F0 -.7(Te)5 G(lnet Authentication: SPX).7 E F3 -(RFC-1571)102 372 Q F0 -.7(Te)5 G(lnet En).7 E -(vironment Option Interoperability Issues)-.4 E F3(RFC-1572)102 384 Q F0 -.7 -(Te)5 G(lnet En).7 E(vironment Option)-.4 E F1 -.1(BU)72 408 S(GS).1 E F0(Some) -102 420 Q F4(TELNET)2.5 E F0(commands are only partially implemented.)2.5 E -.082(Because of b)102 438 R .082(ugs in the original 4.2 BSD)-.2 F F2(telnet) -2.582 E F0(\(1\),)A F3(telnetd)5.164 E F0 .082 -(performs some dubious protocol e)2.582 F(xchanges)-.15 E(to try to disco)102 -450 Q -.15(ve)-.15 G 2.5(ri).15 G 2.5(ft)175.03 450 S -(he remote client is, in f)183.64 450 Q(act, a 4.2 BSD)-.1 E F2(telnet)2.5 E F0 -(\(1\).)A(Binary mode has no common interpretation e)102 468 Q -(xcept between similar operating systems \(Unix in this case\).)-.15 E -(The terminal type name recei)102 486 Q -.15(ve)-.25 G 2.5(df).15 G -(rom the remote client is con)239.06 486 Q -.15(ve)-.4 G(rted to lo).15 E -(wer case.)-.25 E F3(Telnetd)102 504 Q F0(ne)2.5 E -.15(ve)-.25 G 2.5(rs).15 G -(ends)174.7 504 Q F4(TELNET)2.5 E F2(IAC GA)2.5 E F0(\(go ahead\) commands.)2.5 -E(4.2 Berk)72 750 Q(ele)-.1 E 2.5(yD)-.15 G(istrib)132.57 750 Q 95.71 -(ution February)-.2 F(3, 1994)2.5 E(5)535 750 Q EP -%%Trailer -end -%%EOF diff --git a/appl/telnet/telnetd/telnetd.0.txt b/appl/telnet/telnetd/telnetd.0.txt deleted file mode 100644 index 66557bcea..000000000 --- a/appl/telnet/telnetd/telnetd.0.txt +++ /dev/null @@ -1,322 +0,0 @@ -TELNETD(8) BSD System Manager's Manual TELNETD(8) - -NNAAMMEE - tteellnneettdd - DARPA TELNET protocol server - -SSYYNNOOPPSSIISS - //uussrr//lliibbeexxeecc//tteellnneettdd [--BBUUhhllkknnss] [--DD _d_e_b_u_g_m_o_d_e] [--II_i_n_i_t_i_d] [--SS _t_o_s] [--XX - _a_u_t_h_t_y_p_e] [--aa _a_u_t_h_m_o_d_e] [--eeddeebbuugg] [--rr_l_o_w_p_t_y_-_h_i_g_h_p_t_y] - [--uu _l_e_n] [--ddeebbuugg [_p_o_r_t]] - -DDEESSCCRRIIPPTTIIOONN - The tteellnneettdd command is a server which supports the DARPA standard TELNET - virtual terminal protocol. TTeellnneettdd is normally invoked by the internet - server (see inetd(8)) for requests to connect to the TELNET port as in- - dicated by the _/_e_t_c_/_s_e_r_v_i_c_e_s file (see services(5)). The --ddeebbuugg option - may be used to start up tteellnneettdd manually, instead of through inetd(8). - If started up this way, _p_o_r_t may be specified to run tteellnneettdd on an alter- - nate TCP port number. - - The tteellnneettdd command accepts the following options: - - --aa _a_u_t_h_m_o_d_e This option may be used for specifying what mode should be - used for authentication. Note that this option is only use- - ful if tteellnneettdd has been compiled with support for the - AUTHENTICATION option. There are several valid values for - _a_u_t_h_m_o_d_e_: - - debug Turns on authentication debugging code. - - user Only allow connections when the remote user can pro- - vide valid authentication information to identify the - remote user, and is allowed access to the specified - account without providing a password. - - valid Only allow connections when the remote user can pro- - vide valid authentication information to identify the - remote user. The login(1) command will provide any - additional user verification needed if the remote us- - er is not allowed automatic access to the specified - account. - - other Only allow connections that supply some authentica- - tion information. This option is currently not sup- - ported by any of the existing authentication mecha- - nisms, and is thus the same as specifying --aa vvaalliidd. - - none This is the default state. Authentication informa- - tion is not required. If no or insufficient authen- - tication information is provided, then the login(1) - program will provide the necessary user verification. - - off This disables the authentication code. All user ver- - ification will happen through the login(1) program. - - --BB Specifies bftp server mode. In this mode, tteellnneettdd causes - login to start a bftp(1) session rather than the user's nor- - mal shell. In bftp daemon mode normal logins are not sup- - ported, and it must be used on a port other than the normal - TELNET port. - - --DD _d_e_b_u_g_m_o_d_e - This option may be used for debugging purposes. This allows - tteellnneettdd to print out debugging information to the connec- - tion, allowing the user to see what tteellnneettdd is doing. There - - are several possible values for _d_e_b_u_g_m_o_d_e_: - - ooppttiioonnss Prints information about the negotiation of TELNET - options. - - rreeppoorrtt Prints the ooppttiioonnss information, plus some addi- - tional information about what processing is going - on. - - nneettddaattaa Displays the data stream received by tteellnneettdd.. - - ppttyyddaattaa Displays data written to the pty. - - eexxeerrcciissee Has not been implemented yet. - - --ddeebbuugg Enables debugging on each socket created by tteellnneettdd (see - SO_DEBUG in socket(2)). - - --eeddeebbuugg If tteellnneettdd has been compiled with support for data encryp- - tion, then the --eeddeebbuugg option may be used to enable encryp- - tion debugging code. - - --hh Disables the printing of host-specific information before - login has been completed. - - --II _i_n_i_t_i_d This option is only applicable to UNICOS systems prior to - 7.0. It specifies the ID from _/_e_t_c_/_i_n_i_t_t_a_b to use when init - starts login sessions. The default ID is fe. - - --kk This option is only useful if tteellnneettdd has been compiled with - both linemode and kludge linemode support. If the --kk option - is specified, then if the remote client does not support the - LINEMODE option, then tteellnneettdd will operate in character at a - time mode. It will still support kludge linemode, but will - only go into kludge linemode if the remote client requests - it. (This is done by by the client sending DONT SUPPRESS- - GO-AHEAD and DONT ECHO.) The --kk option is most useful when - there are remote clients that do not support kludge - linemode, but pass the heuristic (if they respond with WILL - TIMING-MARK in response to a DO TIMING-MARK) for kludge - linemode support. - - --ll Specifies line mode. Tries to force clients to use line- - at-a-time mode. If the LINEMODE option is not supported, it - will go into kludge linemode. - - --nn Disable TCP keep-alives. Normally tteellnneettdd enables the TCP - keep-alive mechanism to probe connections that have been - idle for some period of time to determine if the client is - still there, so that idle connections from machines that - have crashed or can no longer be reached may be cleaned up. - - --rr _l_o_w_p_t_y_-_h_i_g_h_p_t_y - This option is only enabled when tteellnneettdd is compiled for - UNICOS. It specifies an inclusive range of pseudo-terminal - devices to use. If the system has sysconf variable - _SC_CRAY_NPTY configured, the default pty search range is 0 - to _SC_CRAY_NPTY; otherwise, the default range is 0 to 128. - Either _l_o_w_p_t_y or _h_i_g_h_p_t_y may be omitted to allow changing - either end of the search range. If _l_o_w_p_t_y is omitted, the - - character is still required so that tteellnneettdd can differenti- - ate _h_i_g_h_p_t_y from _l_o_w_p_t_y. - - --ss This option is only enabled if tteellnneettdd is compiled with sup- - port for SecurID cards. It causes the --ss option to be - passed on to login(1), and thus is only useful if login(1) - supports the --ss flag to indicate that only SecurID validated - logins are allowed, and is usually useful for controlling - remote logins from outside of a firewall. - - --SS _t_o_s - - --uu _l_e_n This option is used to specify the size of the field in the - utmp structure that holds the remote host name. If the re- - solved host name is longer than _l_e_n, the dotted decimal val- - ue will be used instead. This allows hosts with very long - host names that overflow this field to still be uniquely - identified. Specifying --uu00 indicates that only dotted deci- - mal addresses should be put into the _u_t_m_p file. - - --UU This option causes tteellnneettdd to refuse connections from ad- - dresses that cannot be mapped back into a symbolic name via - the gethostbyaddr(3) routine. - - --XX _a_u_t_h_t_y_p_e This option is only valid if tteellnneettdd has been built with - support for the authentication option. It disables the use - of _a_u_t_h_t_y_p_e authentication, and can be used to temporarily - disable a specific authentication type without having to re- - compile tteellnneettdd. - - TTeellnneettdd operates by allocating a pseudo-terminal device (see pty(4)) for - a client, then creating a login process which has the slave side of the - pseudo-terminal as stdin, stdout and stderr. TTeellnneettdd manipulates the mas- - ter side of the pseudo-terminal, implementing the TELNET protocol and - passing characters between the remote client and the login process. - - When a TELNET session is started up, tteellnneettdd sends TELNET options to the - client side indicating a willingness to do the following TELNET options, - which are described in more detail below: - - DO AUTHENTICATION - WILL ENCRYPT - DO TERMINAL TYPE - DO TSPEED - DO XDISPLOC - DO NEW-ENVIRON - DO ENVIRON - WILL SUPPRESS GO AHEAD - DO ECHO - DO LINEMODE - DO NAWS - WILL STATUS - DO LFLOW - DO TIMING-MARK - - The pseudo-terminal allocated to the client is configured to operate in - cooked mode, and with XTABS and CRMOD enabled (see tty(4)). - - TTeellnneettdd has support for enabling locally the following TELNET options: - - WILL ECHO When the LINEMODE option is enabled, a WILL ECHO or - WONT ECHO will be sent to the client to indicate the - current state of terminal echoing. When terminal echo - is not desired, a WILL ECHO is sent to indicate that - telnetd will take care of echoing any data that needs - to be echoed to the terminal, and then nothing is - echoed. When terminal echo is desired, a WONT ECHO is - sent to indicate that telnetd will not be doing any - terminal echoing, so the client should do any terminal - echoing that is needed. - - WILL BINARY Indicates that the client is willing to send a 8 bits - of data, rather than the normal 7 bits of the Network - Virtual Terminal. - - WILL SGA Indicates that it will not be sending IAC GA, go - ahead, commands. - - WILL STATUS Indicates a willingness to send the client, upon re- - quest, of the current status of all TELNET options. - - WILL TIMING-MARK Whenever a DO TIMING-MARK command is received, it is - always responded to with a WILL TIMING-MARK - - WILL LOGOUT When a DO LOGOUT is received, a WILL LOGOUT is sent in - response, and the TELNET session is shut down. - - WILL ENCRYPT Only sent if tteellnneettdd is compiled with support for data - encryption, and indicates a willingness to decrypt the - data stream. - - TTeellnneettdd has support for enabling remotely the following TELNET options: - - DO BINARY Sent to indicate that telnetd is willing to receive an - 8 bit data stream. - - DO LFLOW Requests that the client handle flow control charac- - ters remotely. - - DO ECHO This is not really supported, but is sent to identify - a 4.2BSD telnet(1) client, which will improperly re- - spond with WILL ECHO. If a WILL ECHO is received, a - DONT ECHO will be sent in response. - - DO TERMINAL-TYPE Indicates a desire to be able to request the name of - the type of terminal that is attached to the client - side of the connection. - - DO SGA Indicates that it does not need to receive IAC GA, the - go ahead command. - - DO NAWS Requests that the client inform the server when the - window (display) size changes. - - DO TERMINAL-SPEED Indicates a desire to be able to request information - about the speed of the serial line to which the client - is attached. - - DO XDISPLOC Indicates a desire to be able to request the name of - the X windows display that is associated with the tel- - net client. - - DO NEW-ENVIRON Indicates a desire to be able to request environment - variable information, as described in RFC 1572. - - DO ENVIRON Indicates a desire to be able to request environment - variable information, as described in RFC 1408. - - DO LINEMODE Only sent if tteellnneettdd is compiled with support for - linemode, and requests that the client do line by line - processing. - - DO TIMING-MARK Only sent if tteellnneettdd is compiled with support for both - linemode and kludge linemode, and the client responded - with WONT LINEMODE. If the client responds with WILL - TM, the it is assumed that the client supports kludge - linemode. Note that the [--kk] option can be used to - - disable this. - - DO AUTHENTICATION Only sent if tteellnneettdd is compiled with support for au- - thentication, and indicates a willingness to receive - authentication information for automatic login. - - DO ENCRYPT Only sent if tteellnneettdd is compiled with support for data - encryption, and indicates a willingness to decrypt the - data stream. - -EENNVVIIRROONNMMEENNTT -FFIILLEESS - _/_e_t_c_/_s_e_r_v_i_c_e_s - _/_e_t_c_/_i_n_i_t_t_a_b (UNICOS systems only) - _/_e_t_c_/_i_p_t_o_s (if supported) - _/_u_s_r_/_u_c_b_/_b_f_t_p (if supported) - -SSEEEE AALLSSOO - telnet(1), login(1), bftp(1) (if supported) - -SSTTAANNDDAARRDDSS - RRFFCC--885544 TELNET PROTOCOL SPECIFICATION - RRFFCC--885555 TELNET OPTION SPECIFICATIONS - RRFFCC--885566 TELNET BINARY TRANSMISSION - RRFFCC--885577 TELNET ECHO OPTION - RRFFCC--885588 TELNET SUPPRESS GO AHEAD OPTION - RRFFCC--885599 TELNET STATUS OPTION - RRFFCC--886600 TELNET TIMING MARK OPTION - RRFFCC--886611 TELNET EXTENDED OPTIONS - LIST OPTION - RRFFCC--888855 TELNET END OF RECORD OPTION - RRFFCC--11007733 Telnet Window Size Option - RRFFCC--11007799 Telnet Terminal Speed Option - RRFFCC--11009911 Telnet Terminal-Type Option - RRFFCC--11009966 Telnet X Display Location Option - RRFFCC--11112233 Requirements for Internet Hosts -- Application and Support - RRFFCC--11118844 Telnet Linemode Option - RRFFCC--11337722 Telnet Remote Flow Control Option - RRFFCC--11441166 Telnet Authentication Option - RRFFCC--11441111 Telnet Authentication: Kerberos Version 4 - RRFFCC--11441122 Telnet Authentication: SPX - RRFFCC--11557711 Telnet Environment Option Interoperability Issues - RRFFCC--11557722 Telnet Environment Option - -BBUUGGSS - Some TELNET commands are only partially implemented. - - Because of bugs in the original 4.2 BSD telnet(1), tteellnneettdd performs some - dubious protocol exchanges to try to discover if the remote client is, in - fact, a 4.2 BSD telnet(1). - - Binary mode has no common interpretation except between similar operating - systems (Unix in this case). - - The terminal type name received from the remote client is converted to - lower case. - - TTeellnneettdd never sends TELNET IAC GA (go ahead) commands. - -4.2 Berkeley Distribution June 1, 1994 5