⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rlogind.8

📁 操作系统设计与实现源码
💻 8
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 14:24:00 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne   { exch newdict 3 1 roll put }   { pop pop } % Ignore FID   ifelse} forallnewdict begin/Encoding  tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval  cvn load  def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/Times-Bold 1 AEnc-def pop/B-1{/Times-Bold-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(RLOGIND)S1183(\()S1225(8)S1283(\))S2696(Eighth)S(Edition)296 2989 A4664(RLOGIND)S5127(\()S5169(8)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(rlogind,)S1420(in.rld)S10 R-11660(-)S10 R1742(remote)S2047(login)S2278(server)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(login)S1330(stream)S1665(tcp)S1838(nowait)S2167(root)S2384(/usr/sbin/in.rld)S3063(in.rld)S1488 V1080(tcpd)S1309(login)S1559(/usr/sbin/in.rld)S1656 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1776 V10 B1080(Rlogind)S10 R1464(is)S1574(the)S1740(server)S2030(for)S2191(the)S10 B2357(rlogin)S10 R2614(\(1\))S2775(program.)S3209(The)S3409(server)S3699(provides)S4089(a)S4178(remote)S4502(login)S(facility)286 4752 A5082(with)S1896 V1080(authentication)S1675(based)S1929(on)S2054(privileged)S2487(port)S2674(numbers)S3045(from)S3266(trusted)S3565(hosts.)S2064 V10 B1080(Rlogind)S10 R1451(listens)S1739(for)S1888(service)S2205(requests)S2566(at)S2670(the)S2824(port)S3017(indicated)S3417(in)S3526(the)S3680(``login'')S4053(service)S4370(speci\256cation;)S4938(see)S10 B5098(ser-)S2184 V1080(vices)S10 R1287(\(5\).)S1480(When)S1745(a)S1815(service)S2126(request)S2442(is)S(received)342 2534 A2901(the)S3049(following)S3465(protocol)S3825(is)S(initiated:)358 3917 A2352 V1080(1\))S1440(The)S1632(server)S1914(checks)S2223(the)S2381(client's)S2713(source)S3011(port.)S3258(If)S3361(the)S3519(port)S3716(is)S3818(not)S3981(in)S4094(the)S4252(range)S(0-1023,)309 4511 A4855(the)S5014(server)S2472 V1440(aborts)S1711(the)S(connection.)466 1859 A2640 V1080(2\))S1440(The)S1630(server)S1910(checks)S2217(the)S2373(client's)S2703(source)S3000(address)S3336(and)S3515(requests)S3879(the)S(corresponding)575 4036 A4645(host)S4846(name)S5098(\(see)S2760 V10 B1440(gethostbyaddr)S10 R2061(\(3\),)S10 B2239(hosts)S10 R2457(\(5\))S2610(and)S10 B2790(named)S10 R3081(\(8\)\).)S3318(If)S3421(the)S3579(hostname)S(cannot)268 3999 A4301(be)S4430(determined,)S4942(the)S5099(dot-)S2880 V1440(notation)S1794(representation)S2390(of)S2499(the)S2647(host)S2839(address)S3166(is)S3258(used.)S3048 V1080(Once)S1322(the)S1475(source)S1768(port)S1960(and)S2135(address)S2467(have)S2687(been)S2907(checked,)S10 B3292(rlogind)S10 R3635(allocates)S4018(a)S(pseudo)284 4093 A4407(terminal)S4773(\(see)S10 B4966(tty)S10 R5084(\(4\)\),)S3168 V1080(and)S1252(manipulates)S1764(\256le)S1919(descriptors)S2387(so)S2502(that)S2679(the)S2828(slave)S3061(half)S3244(of)S3354(the)S(pseudo)284 3503 A3813(terminal)S4175(becomes)S4553(the)S10 B4702(stdin)S4941(,)S4992(stdout)S3288 V1080(,)S10 R1130(and)S10 B(stderr)264 1300 A10 R1589(for)S1732(a)S1803(login)S2035(process.)S2413(The)S2596(login)S2828(process)S3156(is)S3249(an)S3370(instance)S3726(of)S3836(the)S10 B3985(login)S10 R4197(\(1\))S4341(program,)S(invoked)323 4733 A5082(with)S3408 V1080(the)S10 B-11230(-)S10 B1287(r)S10 R1359(option.)S1692(The)S1875(login)S2107(process)S2435(then)S(proceeds)358 2634 A3018(with)S3223(the)S3372(authentication)S3968(process)S4296(as)S4406(described)S4818(in)S10 B4922(rshd)S10 R5118(\(8\),)S3528 V1080(but)S1239(if)S1332(automatic)S1760(authentication)S2361(fails,)S2592(it)S2680(reprompts)S3120(the)S3275(user)S3475(to)S3585(login)S3823(as)S3939(one)S4116(\256nds)S4343(on)S4475(a)S4552(standard)S4925(terminal)S3648 V1080(line.)S3816 V1080(The)S1274(parent)S1563(of)S1685(the)S1846(login)S2090(process)S2430(manipulates)S2954(the)S3115(master)S3422(side)S3622(of)S3744(the)S(pseduo)284 3905 A4227(terminal,)S4626(operating)S5044(as)S5166(an)S3936 V1080(intermediary)S1622(between)S1985(the)S2135(login)S2368(process)S2697(and)S2868(the)S3017(client)S3267(instance)S3623(of)S3733(the)S10 B3882(rlogin)S10 R4165(program.)S4582(In)S4692(normal)S5003(opera-)S4056 V1080(tion,)S1295(the)S1452(packet)S1749(protocol)S2118(described)S2538(in)S10 B2650(tty)S10 R2768(\(4\))S2920(is)S(invoked)323 3021 A3378(to)S3491(provide)S3833(\303S/\303Q)S4093(type)S(facilities)348 4301 A4684(and)S4864(propagate)S4176 V1080(interrupt)S1459(signals)S1770(to)S1880(the)S2035(remote)S2347(programs.)S2809(The)S2997(login)S3234(process)S3567(propagates)S4034(the)S4188(client)S4443(terminal's)S4883(baud)S5109(rate)S4296 V1080(and)S1264(terminal)S1639(type,)S1876(as)S(found)234 1999 A2272(in)S2390(the)S2553(environment)S3101(variable,)S3491(``TERM'';)S3975(see)S10 B4144(environ)S10 R4474(\(7\).)S4682(The)S4879(screen)S5177(or)S4416 V(window)324 1080 A1435(size)S1623(of)S1738(the)S1892(terminal)S2259(is)S2357(requested)S2774(from)S3001(the)S3155(client,)S3434(and)S(window)324 3609 A3963(size)S4150(changes)S4504(from)S4730(the)S4883(client)S5137(are)S4536 V1080(propagated)S1552(to)S1655(the)S(pseudo)284 1803 A2112(terminal.)S4704 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S4824 V10 B1080(rlogin)S10 R1337(\(1\).)S4992 V9 R720(D)S722(DI)S790(IA)S823(AG)S891(GN)S959(NO)S1027(OS)S1095(ST)S1147(TI)S1205(IC)S1238(CS)S1300(S)S5112 V10 R1080(All)S(diagnostic)413 1235 A1674(messages)S2080(are)S2230(returned)S2592(on)S2718(the)S(connection)441 2867 A3334(associated)S3774(with)S3980(the)S10 B(stderr)264 4130 A10 R4394(,)S4446(after)S4659(which)S4932(any)S5104(net-)S5232 V1080(work)S(connections)480 1312 A1817(are)S1966(closed.)S2298(An)S2446(error)S2668(is)S2760(indicated)S3154(by)S3279(a)S3349(leading)S3670(byte)S3868(with)S4072(a)S4142(value)S4385(of)S4494(1.)S5400 V10 B1080(``Try)S(again.'')327 1335 A5520 V10 R1080(A)S10 B1178(fork)S10 R1388(by)S1513(the)S1661(server)S1933(failed.)S5688 V10 B1080(``/bin/sh:)S(...'')143 1498 A5808 V10 R1080(The)S1262(user's)S1528(login)S1759(shell)S1974(could)S2222(not)S2375(be)S2495(started.)S5976 V9 R720(B)S722(BU)S784(UG)S852(GS)S920(S)S6096 V10 R1080(The)S1262(authentication)S1857(procedure)S2285(used)S2494(here)S2693(assumes)S3053(the)S3201(integrity)S3567(of)S(each)185 3676 A3886(client)S4135(machine)S4501(and)S4671(the)S(connecting)441 4820 A6216 V1080(medium.)S1484(This)S1688(is)S1780(insecure,)S2166(but)S2319(is)S2411(useful)S2682(in)S2785(an)S2905(``open'')S3261(environment.)S6384 V1080(A)S(facility)286 1178 A1489(to)S1592(allow)S1841(all)S1967(data)S2160(exchanges)S2604(to)S2707(be)S2827(encrypted)S(should)267 3249 A3541(be)S3661(present.)S6552 V1080(A)S1178(more)S1410(extensible)S1843(protocol)S(should)267 2203 A2495(be)S2615(used.)S7903 V720(Page)S941(1)S2669(\()S2711(May)S2920(24,)S(1986)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold%%Pages: 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -