home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2725 < prev    next >
SHell self-extracting ARchive  |  1991-02-10  |  50.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: 2725

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 62 72 | 6e 73 74 6e 64 40 6b 72 |From: br|nstnd@kr|
|00000010| 61 6d 64 65 6e 2e 61 63 | 66 2e 6e 79 75 2e 65 64 |amden.ac|f.nyu.ed|
|00000020| 75 20 28 44 61 6e 20 42 | 65 72 6e 73 74 65 69 6e |u (Dan B|ernstein|
|00000030| 29 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 61 6c |).Newsgr|oups: al|
|00000040| 74 2e 73 6f 75 72 63 65 | 73 0a 53 75 62 6a 65 63 |t.source|s.Subjec|
|00000050| 74 3a 20 61 75 74 68 64 | 20 33 2e 30 31 0a 4d 65 |t: authd| 3.01.Me|
|00000060| 73 73 61 67 65 2d 49 44 | 3a 20 3c 32 38 38 32 35 |ssage-ID|: <28825|
|00000070| 3a 46 65 62 38 30 39 3a | 33 31 3a 35 30 39 31 40 |:Feb809:|31:5091@|
|00000080| 6b 72 61 6d 64 65 6e 2e | 61 63 66 2e 6e 79 75 2e |kramden.|acf.nyu.|
|00000090| 65 64 75 3e 0a 44 61 74 | 65 3a 20 38 20 46 65 62 |edu>.Dat|e: 8 Feb|
|000000a0| 20 39 31 20 30 39 3a 33 | 31 3a 35 30 20 47 4d 54 | 91 09:3|1:50 GMT|
|000000b0| 0a 0a 54 68 69 73 20 6f | 62 73 6f 6c 65 74 65 73 |..This o|bsoletes|
|000000c0| 20 61 75 74 68 64 20 33 | 2e 30 2c 20 77 68 69 63 | authd 3|.0, whic|
|000000d0| 68 20 77 61 73 20 70 6f | 73 74 65 64 20 68 65 72 |h was po|sted her|
|000000e0| 65 20 72 65 63 65 6e 74 | 6c 79 2e 20 49 74 20 66 |e recent|ly. It f|
|000000f0| 69 78 65 73 20 73 6f 6d | 65 0a 73 74 75 70 69 64 |ixes som|e.stupid|
|00000100| 69 74 79 20 6f 6e 20 6d | 79 20 70 61 72 74 20 28 |ity on m|y part (|
|00000110| 73 65 65 20 43 48 41 4e | 47 45 53 29 20 61 6e 64 |see CHAN|GES) and|
|00000120| 20 69 6e 63 6c 75 64 65 | 73 20 61 6e 20 75 70 64 | include|s an upd|
|00000130| 61 74 65 64 20 6c 69 73 | 74 20 6f 66 20 0a 6d 61 |ated lis|t of .ma|
|00000140| 63 68 69 6e 65 73 20 77 | 68 65 72 65 20 74 68 65 |chines w|here the|
|00000150| 20 70 61 63 6b 61 67 65 | 20 68 61 73 20 62 65 65 | package| has bee|
|00000160| 6e 20 72 65 70 6f 72 74 | 65 64 20 74 6f 20 77 6f |n report|ed to wo|
|00000170| 72 6b 2e 20 41 6c 6c 20 | 74 68 65 0a 69 6e 74 65 |rk. All |the.inte|
|00000180| 72 65 73 74 69 6e 67 20 | 69 6e 66 6f 72 6d 61 74 |resting |informat|
|00000190| 69 6f 6e 20 69 73 20 69 | 6e 20 42 4c 55 52 42 2c |ion is i|n BLURB,|
|000001a0| 20 77 68 69 63 68 20 69 | 73 20 61 74 20 74 68 65 | which i|s at the|
|000001b0| 20 74 6f 70 20 6f 66 20 | 74 68 69 73 20 73 68 61 | top of |this sha|
|000001c0| 72 2e 0a 0a 43 6f 6d 69 | 6e 67 20 75 70 3a 20 50 |r...Comi|ng up: P|
|000001d0| 61 74 63 68 65 73 20 74 | 6f 20 73 65 6e 64 6d 61 |atches t|o sendma|
|000001e0| 69 6c 20 74 6f 20 61 64 | 64 20 61 75 74 68 65 6e |il to ad|d authen|
|000001f0| 74 69 63 61 74 69 6f 6e | 20 69 6e 66 6f 20 74 6f |tication| info to|
|00000200| 20 6d 61 69 6c 0a 68 65 | 61 64 65 72 73 2e 20 44 | mail.he|aders. D|
|00000210| 6f 77 6e 20 77 69 74 68 | 20 66 6f 72 67 65 72 69 |own with| forgeri|
|00000220| 65 73 21 0a 0a 2d 2d 2d | 44 61 6e 0a 20 0a 23 21 |es!..---|Dan. .#!|
|00000230| 20 2f 62 69 6e 2f 73 68 | 0a 23 20 54 68 69 73 20 | /bin/sh|.# This |
|00000240| 69 73 20 61 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |is a she|ll archi|
|00000250| 76 65 2e 20 20 52 65 6d | 6f 76 65 20 61 6e 79 74 |ve. Rem|ove anyt|
|00000260| 68 69 6e 67 20 62 65 66 | 6f 72 65 20 74 68 69 73 |hing bef|ore this|
|00000270| 20 6c 69 6e 65 2c 20 74 | 68 65 6e 20 75 6e 70 61 | line, t|hen unpa|
|00000280| 63 6b 0a 23 20 69 74 20 | 62 79 20 73 61 76 69 6e |ck.# it |by savin|
|00000290| 67 20 69 74 20 69 6e 74 | 6f 20 61 20 66 69 6c 65 |g it int|o a file|
|000002a0| 20 61 6e 64 20 74 79 70 | 69 6e 67 20 22 73 68 20 | and typ|ing "sh |
|000002b0| 66 69 6c 65 22 2e 20 20 | 54 6f 20 6f 76 65 72 77 |file". |To overw|
|000002c0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 0a 23 20 |rite exi|sting.# |
|000002d0| 66 69 6c 65 73 2c 20 74 | 79 70 65 20 22 73 68 20 |files, t|ype "sh |
|000002e0| 66 69 6c 65 20 2d 63 22 | 2e 20 20 59 6f 75 20 63 |file -c"|. You c|
|000002f0| 61 6e 20 61 6c 73 6f 20 | 66 65 65 64 20 74 68 69 |an also |feed thi|
|00000300| 73 20 61 73 20 73 74 61 | 6e 64 61 72 64 20 69 6e |s as sta|ndard in|
|00000310| 70 75 74 20 76 69 61 0a | 23 20 75 6e 73 68 61 72 |put via.|# unshar|
|00000320| 2c 20 6f 72 20 62 79 20 | 74 79 70 69 6e 67 20 22 |, or by |typing "|
|00000330| 73 68 20 3c 66 69 6c 65 | 22 2c 20 65 2e 67 2e 2e |sh <file|", e.g..|
|00000340| 20 20 49 66 20 74 68 69 | 73 20 61 72 63 68 69 76 | If thi|s archiv|
|00000350| 65 20 69 73 20 63 6f 6d | 70 6c 65 74 65 2c 20 79 |e is com|plete, y|
|00000360| 6f 75 0a 23 20 77 69 6c | 6c 20 73 65 65 20 74 68 |ou.# wil|l see th|
|00000370| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 65 73 73 |e follow|ing mess|
|00000380| 61 67 65 20 61 74 20 74 | 68 65 20 65 6e 64 3a 0a |age at t|he end:.|
|00000390| 23 09 09 22 45 6e 64 20 | 6f 66 20 73 68 65 6c 6c |#.."End |of shell|
|000003a0| 20 61 72 63 68 69 76 65 | 2e 22 0a 23 20 43 6f 6e | archive|.".# Con|
|000003b0| 74 65 6e 74 73 3a 20 20 | 42 4c 55 52 42 20 52 45 |tents: |BLURB RE|
|000003c0| 41 44 4d 45 20 46 49 4c | 45 53 20 46 4f 52 4d 4c |ADME FIL|ES FORML|
|000003d0| 45 54 54 45 52 20 43 48 | 41 4e 47 45 53 20 49 4e |ETTER CH|ANGES IN|
|000003e0| 53 54 41 4c 4c 20 4d 61 | 6b 65 66 69 6c 65 0a 23 |STALL Ma|kefile.#|
|000003f0| 20 20 20 61 75 74 68 64 | 2e 38 20 61 75 74 68 75 | authd|.8 authu|
|00000400| 73 65 72 2e 33 20 74 63 | 70 75 69 64 2e 38 20 74 |ser.3 tc|puid.8 t|
|00000410| 63 70 75 6e 61 6d 65 2e | 38 20 61 75 74 68 64 2e |cpuname.|8 authd.|
|00000420| 63 20 61 75 74 68 75 73 | 65 72 2e 68 0a 23 20 20 |c authus|er.h.# |
|00000430| 20 61 75 74 68 75 73 65 | 72 2e 63 20 74 65 73 74 | authuse|r.c test|
|00000440| 2e 63 20 6e 65 74 73 74 | 61 74 75 69 64 20 72 66 |.c netst|atuid rf|
|00000450| 63 39 33 31 0a 23 20 57 | 72 61 70 70 65 64 20 62 |c931.# W|rapped b|
|00000460| 79 20 62 72 6e 73 74 6e | 64 40 6b 72 61 6d 64 65 |y brnstn|d@kramde|
|00000470| 6e 20 6f 6e 20 54 68 75 | 20 46 65 62 20 20 37 20 |n on Thu| Feb 7 |
|00000480| 32 33 3a 31 38 3a 32 33 | 20 31 39 39 31 0a 50 41 |23:18:23| 1991.PA|
|00000490| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|000004a0| 3a 2f 75 73 72 2f 75 63 | 62 20 3b 20 65 78 70 6f |:/usr/uc|b ; expo|
|000004b0| 72 74 20 50 41 54 48 0a | 69 66 20 74 65 73 74 20 |rt PATH.|if test |
|000004c0| 2d 66 20 27 42 4c 55 52 | 42 27 20 2d 61 20 22 24 |-f 'BLUR|B' -a "$|
|000004d0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000004e0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000004f0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00000500| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00000510| 20 5c 22 27 42 4c 55 52 | 42 27 5c 22 0a 65 6c 73 | \"'BLUR|B'\".els|
|00000520| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|00000530| 72 61 63 74 69 6e 67 20 | 5c 22 27 42 4c 55 52 42 |racting |\"'BLURB|
|00000540| 27 5c 22 20 5c 28 31 38 | 38 30 20 63 68 61 72 61 |'\" \(18|80 chara|
|00000550| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00000560| 58 2f 2f 22 20 3e 27 42 | 4c 55 52 42 27 20 3c 3c |X//" >'B|LURB' <<|
|00000570| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 49 |'END_OF_|FILE'.XI|
|00000580| 66 20 68 6f 73 74 20 58 | 20 73 75 70 70 6f 72 74 |f host X| support|
|00000590| 73 20 52 46 43 20 39 33 | 31 2c 20 61 6e 64 20 69 |s RFC 93|1, and i|
|000005a0| 66 20 6a 6f 65 40 58 20 | 61 6e 64 20 73 61 6c 6c |f joe@X |and sall|
|000005b0| 79 40 59 20 61 72 65 20 | 63 6f 6e 6e 65 63 74 65 |y@Y are |connecte|
|000005c0| 64 0a 58 74 68 72 6f 75 | 67 68 20 54 43 50 2c 20 |d.Xthrou|gh TCP, |
|000005d0| 74 68 65 6e 20 73 61 6c | 6c 79 20 63 61 6e 20 66 |then sal|ly can f|
|000005e0| 69 6e 64 20 6f 75 74 20 | 74 68 65 20 6e 61 6d 65 |ind out |the name|
|000005f0| 20 6f 66 20 6a 6f 65 2e | 20 54 68 69 73 20 70 61 | of joe.| This pa|
|00000600| 63 6b 61 67 65 0a 58 69 | 6e 63 6c 75 64 65 73 20 |ckage.Xi|ncludes |
|00000610| 61 75 74 68 64 2c 20 61 | 6e 20 52 46 43 20 39 33 |authd, a|n RFC 93|
|00000620| 31 20 73 65 72 76 65 72 | 2e 20 4f 6e 63 65 20 79 |1 server|. Once y|
|00000630| 6f 75 27 76 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |ou've in|stalled |
|00000640| 69 74 2c 20 79 6f 75 72 | 20 75 73 65 72 73 0a 58 |it, your| users.X|
|00000650| 63 61 6e 27 74 20 65 73 | 63 61 70 65 20 74 68 65 |can't es|cape the|
|00000660| 20 61 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 3a | authent|ication:|
|00000670| 20 69 66 20 74 68 65 79 | 20 74 65 6c 6e 65 74 20 | if they| telnet |
|00000680| 6f 72 20 72 6c 6f 67 69 | 6e 20 6f 72 20 73 65 6e |or rlogi|n or sen|
|00000690| 64 20 6d 61 69 6c 0a 58 | 6f 72 20 64 6f 20 77 68 |d mail.X|or do wh|
|000006a0| 61 74 65 76 65 72 20 74 | 6f 20 61 6e 6f 74 68 65 |atever t|o anothe|
|000006b0| 72 20 68 6f 73 74 2c 20 | 74 68 61 74 20 68 6f 73 |r host, |that hos|
|000006c0| 74 20 63 61 6e 20 66 69 | 6e 64 20 6f 75 74 20 74 |t can fi|nd out t|
|000006d0| 68 65 20 75 73 65 72 6e | 61 6d 65 2e 0a 58 0a 58 |he usern|ame..X.X|
|000006e0| 54 68 69 73 20 70 61 63 | 6b 61 67 65 20 61 6c 73 |This pac|kage als|
|000006f0| 6f 20 69 6e 63 6c 75 64 | 65 73 20 61 20 6c 69 62 |o includ|es a lib|
|00000700| 72 61 72 79 20 74 68 61 | 74 20 61 63 74 73 20 61 |rary tha|t acts a|
|00000710| 73 20 61 6e 20 52 46 43 | 20 39 33 31 20 63 6c 69 |s an RFC| 931 cli|
|00000720| 65 6e 74 2e 20 59 6f 75 | 0a 58 64 6f 6e 27 74 20 |ent. You|.Xdon't |
|00000730| 6e 65 65 64 20 70 72 69 | 76 69 6c 65 67 65 73 20 |need pri|vileges |
|00000740| 74 6f 20 75 73 65 20 74 | 68 65 20 6c 69 62 72 61 |to use t|he libra|
|00000750| 72 79 2c 20 77 68 69 63 | 68 20 73 68 6f 75 6c 64 |ry, whic|h should|
|00000760| 20 63 6f 6d 70 69 6c 65 | 20 61 6e 64 20 72 75 6e | compile| and run|
|00000770| 0a 58 77 69 74 68 6f 75 | 74 20 74 72 6f 75 62 6c |.Xwithou|t troubl|
|00000780| 65 20 6f 6e 20 61 6e 79 | 20 42 53 44 2d 64 65 72 |e on any| BSD-der|
|00000790| 69 76 65 64 20 73 79 73 | 74 65 6d 2e 20 28 61 75 |ived sys|tem. (au|
|000007a0| 74 68 64 20 69 73 20 6e | 6f 74 20 73 6f 20 70 6f |thd is n|ot so po|
|000007b0| 72 74 61 62 6c 65 3b 0a | 58 61 6c 74 68 6f 75 67 |rtable;.|Xalthoug|
|000007c0| 68 20 69 74 20 77 6f 72 | 6b 73 20 77 69 74 68 6f |h it wor|ks witho|
|000007d0| 75 74 20 63 68 61 6e 67 | 65 73 20 75 6e 64 65 72 |ut chang|es under|
|000007e0| 20 53 75 6e 4f 53 20 61 | 6e 64 20 55 6c 74 72 69 | SunOS a|nd Ultri|
|000007f0| 78 2c 20 69 74 20 6d 69 | 67 68 74 20 6e 6f 74 0a |x, it mi|ght not.|
|00000800| 58 77 6f 72 6b 20 6f 6e | 20 6f 74 68 65 72 20 73 |Xwork on| other s|
|00000810| 79 73 74 65 6d 73 2e 20 | 54 68 65 20 70 61 63 6b |ystems. |The pack|
|00000820| 61 67 65 20 69 6e 63 6c | 75 64 65 73 20 61 20 63 |age incl|udes a c|
|00000830| 6f 75 70 6c 65 20 6f 66 | 20 74 65 73 74 20 70 72 |ouple of| test pr|
|00000840| 6f 67 72 61 6d 73 2e 29 | 0a 58 0a 58 61 75 74 68 |ograms.)|.X.Xauth|
|00000850| 64 20 61 6e 64 20 61 75 | 74 68 75 73 65 72 20 68 |d and au|thuser h|
|00000860| 61 76 65 20 62 65 65 6e | 20 72 65 70 6f 72 74 65 |ave been| reporte|
|00000870| 64 20 74 6f 20 77 6f 72 | 6b 20 6f 6e 20 74 68 65 |d to wor|k on the|
|00000880| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 73 79 73 74 65 | followi|ng syste|
|00000890| 6d 73 2e 0a 58 0a 58 20 | 20 53 75 6e 20 32 2f 31 |ms..X.X | Sun 2/1|
|000008a0| 37 30 2c 20 53 75 6e 4f | 53 20 34 2e 30 0a 58 20 |70, SunO|S 4.0.X |
|000008b0| 20 53 75 6e 20 34 2f 32 | 38 30 2c 20 53 75 6e 4f | Sun 4/2|80, SunO|
|000008c0| 53 20 34 2e 30 2e 33 0a | 58 20 20 53 75 6e 20 33 |S 4.0.3.|X Sun 3|
|000008d0| 2f 31 36 30 2c 20 53 75 | 6e 4f 53 20 34 2e 31 0a |/160, Su|nOS 4.1.|
|000008e0| 58 20 20 53 75 6e 20 33 | 2f 31 38 30 2c 20 53 75 |X Sun 3|/180, Su|
|000008f0| 6e 4f 53 20 34 2e 31 0a | 58 20 20 44 45 43 73 79 |nOS 4.1.|X DECsy|
|00000900| 73 74 65 6d 2d 35 38 32 | 30 2c 20 55 6c 74 72 69 |stem-582|0, Ultri|
|00000910| 78 20 34 2e 30 0a 58 20 | 20 44 45 43 53 74 61 74 |x 4.0.X | DECStat|
|00000920| 69 6f 6e 2d 35 34 30 30 | 2c 20 55 6c 74 72 69 78 |ion-5400|, Ultrix|
|00000930| 20 34 2e 31 0a 58 20 20 | 56 41 58 20 38 36 35 30 | 4.1.X |VAX 8650|
|00000940| 2c 20 55 6c 74 72 69 78 | 20 34 2e 31 0a 58 20 20 |, Ultrix| 4.1.X |
|00000950| 56 41 58 20 28 3f 29 2c | 20 42 53 44 20 34 2e 33 |VAX (?),| BSD 4.3|
|00000960| 0a 58 20 20 43 6f 6e 76 | 65 78 20 43 32 31 30 2c |.X Conv|ex C210,|
|00000970| 20 43 6f 6e 76 65 78 20 | 55 4e 49 58 20 38 2e 30 | Convex |UNIX 8.0|
|00000980| 0a 58 0a 58 49 27 76 65 | 20 70 6c 61 63 65 64 20 |.X.XI've| placed |
|00000990| 74 68 69 73 20 63 6f 64 | 65 20 69 6e 74 6f 20 74 |this cod|e into t|
|000009a0| 68 65 20 70 75 62 6c 69 | 63 20 64 6f 6d 61 69 6e |he publi|c domain|
|000009b0| 20 62 65 63 61 75 73 65 | 20 49 20 74 68 69 6e 6b | because| I think|
|000009c0| 20 74 68 61 74 0a 58 65 | 76 65 72 79 6f 6e 65 20 | that.Xe|veryone |
|000009d0| 73 68 6f 75 6c 64 20 73 | 75 70 70 6f 72 74 20 61 |should s|upport a|
|000009e0| 74 20 6c 65 61 73 74 20 | 74 68 69 73 20 6c 65 76 |t least |this lev|
|000009f0| 65 6c 20 6f 66 20 73 65 | 63 75 72 69 74 79 2e 20 |el of se|curity. |
|00000a00| 49 27 6d 20 73 69 63 6b | 20 6f 66 0a 58 73 65 65 |I'm sick| of.Xsee|
|00000a10| 69 6e 67 20 70 65 6f 70 | 6c 65 20 66 6f 72 67 65 |ing peop|le forge|
|00000a20| 20 6d 61 69 6c 20 61 6e | 64 20 73 70 6f 6f 66 20 | mail an|d spoof |
|00000a30| 4e 4e 54 50 20 61 6e 64 | 20 61 74 74 61 63 6b 20 |NNTP and| attack |
|00000a40| 73 79 73 74 65 6d 73 20 | 61 6e 6f 6e 79 6d 6f 75 |systems |anonymou|
|00000a50| 73 6c 79 0a 58 74 68 72 | 6f 75 67 68 20 74 68 65 |sly.Xthr|ough the|
|00000a60| 20 6e 65 74 77 6f 72 6b | 2e 20 4e 6f 77 20 74 68 | network|. Now th|
|00000a70| 65 79 20 77 6f 6e 27 74 | 20 62 65 20 61 62 6c 65 |ey won't| be able|
|00000a80| 20 74 6f 2c 20 62 65 63 | 61 75 73 65 20 65 76 65 | to, bec|ause eve|
|00000a90| 72 79 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 0a 58 77 |ry conne|ction.Xw|
|00000aa0| 69 6c 6c 20 62 65 20 74 | 61 67 67 65 64 20 77 69 |ill be t|agged wi|
|00000ab0| 74 68 20 74 68 65 20 75 | 73 65 72 6e 61 6d 65 20 |th the u|sername |
|00000ac0| 77 69 74 68 20 61 74 20 | 6c 65 61 73 74 20 61 73 |with at |least as|
|00000ad0| 20 6d 75 63 68 20 73 65 | 63 75 72 69 74 79 20 61 | much se|curity a|
|00000ae0| 73 20 74 68 65 0a 58 54 | 43 50 20 68 6f 73 74 20 |s the.XT|CP host |
|00000af0| 61 64 64 72 65 73 73 20 | 69 6e 20 65 61 63 68 20 |address |in each |
|00000b00| 70 61 63 6b 65 74 2e 20 | 49 20 68 6f 70 65 20 74 |packet. |I hope t|
|00000b10| 68 61 74 20 65 76 65 72 | 79 20 73 69 74 65 20 77 |hat ever|y site w|
|00000b20| 69 6c 6c 20 64 6f 20 69 | 74 73 20 70 61 72 74 0a |ill do i|ts part.|
|00000b30| 58 74 6f 20 63 6f 6e 74 | 72 69 62 75 74 65 20 74 |Xto cont|ribute t|
|00000b40| 6f 20 6e 65 74 77 6f 72 | 6b 20 73 65 63 75 72 69 |o networ|k securi|
|00000b50| 74 79 20 28 61 6e 64 20 | 74 6f 20 68 65 6c 70 20 |ty (and |to help |
|00000b60| 43 45 52 54 20 74 72 61 | 63 65 20 69 6e 74 72 75 |CERT tra|ce intru|
|00000b70| 64 65 72 73 29 2e 0a 58 | 0a 58 49 74 20 73 68 6f |ders)..X|.XIt sho|
|00000b80| 75 6c 64 20 74 61 6b 65 | 20 61 70 70 72 6f 78 69 |uld take| approxi|
|00000b90| 6d 61 74 65 6c 79 20 31 | 30 20 6d 69 6e 75 74 65 |mately 1|0 minute|
|00000ba0| 73 20 74 6f 20 72 65 61 | 64 20 74 68 65 20 69 6e |s to rea|d the in|
|00000bb0| 73 74 72 75 63 74 69 6f | 6e 73 20 61 6e 64 0a 58 |structio|ns and.X|
|00000bc0| 63 6f 6d 70 69 6c 65 2c | 20 69 6e 73 74 61 6c 6c |compile,| install|
|00000bd0| 2c 20 61 6e 64 20 74 65 | 73 74 20 61 75 74 68 64 |, and te|st authd|
|00000be0| 20 6f 6e 20 61 20 6e 65 | 77 20 6d 61 63 68 69 6e | on a ne|w machin|
|00000bf0| 65 2e 20 49 74 20 73 68 | 6f 75 6c 64 20 74 61 6b |e. It sh|ould tak|
|00000c00| 65 0a 58 61 70 70 72 6f | 78 69 6d 61 74 65 6c 79 |e.Xappro|ximately|
|00000c10| 20 32 20 6d 69 6e 75 74 | 65 73 20 6f 6e 20 65 61 | 2 minut|es on ea|
|00000c20| 63 68 20 6e 65 77 20 6d | 61 63 68 69 6e 65 20 6f |ch new m|achine o|
|00000c30| 6e 63 65 20 79 6f 75 27 | 72 65 20 66 61 6d 69 6c |nce you'|re famil|
|00000c40| 69 61 72 20 77 69 74 68 | 0a 58 74 68 65 20 69 6e |iar with|.Xthe in|
|00000c50| 73 74 72 75 63 74 69 6f | 6e 73 2e 20 53 65 6e 64 |structio|ns. Send|
|00000c60| 20 63 6f 6d 6d 65 6e 74 | 73 20 6f 6e 20 74 68 65 | comment|s on the|
|00000c70| 73 65 20 65 73 74 69 6d | 61 74 65 73 20 74 6f 20 |se estim|ates to |
|00000c80| 62 72 6e 73 74 6e 64 40 | 6e 79 75 2e 65 64 75 2c |brnstnd@|nyu.edu,|
|00000c90| 0a 58 63 63 20 74 68 65 | 20 4f 66 66 69 63 65 20 |.Xcc the| Office |
|00000ca0| 6f 66 20 4d 61 6e 61 67 | 65 6d 65 6e 74 20 61 6e |of Manag|ement an|
|00000cb0| 64 20 42 75 64 67 65 74 | 2c 20 50 61 70 65 72 77 |d Budget|, Paperw|
|00000cc0| 6f 72 6b 20 52 65 64 75 | 63 74 69 6f 6e 20 44 69 |ork Redu|ction Di|
|00000cd0| 76 69 73 69 6f 6e 2e 0a | 58 0a 58 2d 2d 2d 44 61 |vision..|X.X---Da|
|00000ce0| 6e 20 42 65 72 6e 73 74 | 65 69 6e 2c 20 62 72 6e |n Bernst|ein, brn|
|00000cf0| 73 74 6e 64 40 6e 79 75 | 2e 65 64 75 0a 45 4e 44 |stnd@nyu|.edu.END|
|00000d00| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00000d10| 20 31 38 38 30 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1880 -n|e `wc -c|
|00000d20| 20 3c 27 42 4c 55 52 42 | 27 60 3b 20 74 68 65 6e | <'BLURB|'`; then|
|00000d30| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00000d40| 5c 22 27 42 4c 55 52 42 | 27 5c 22 20 75 6e 70 61 |\"'BLURB|'\" unpa|
|00000d50| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00000d60| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00000d70| 66 20 27 42 4c 55 52 42 | 27 0a 66 69 0a 69 66 20 |f 'BLURB|'.fi.if |
|00000d80| 74 65 73 74 20 2d 66 20 | 27 52 45 41 44 4d 45 27 |test -f |'README'|
|00000d90| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00000da0| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00000db0| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00000dc0| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00000dd0| 67 20 66 69 6c 65 20 5c | 22 27 52 45 41 44 4d 45 |g file \|"'README|
|00000de0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00000df0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00000e00| 22 27 52 45 41 44 4d 45 | 27 5c 22 20 5c 28 35 33 |"'README|'\" \(53|
|00000e10| 30 37 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |07 chara|cters\).|
|00000e20| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 52 |sed "s/^|X//" >'R|
|00000e30| 45 41 44 4d 45 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |EADME' <|<'END_OF|
|00000e40| 5f 46 49 4c 45 27 0a 58 | 61 75 74 68 64 20 2d 20 |_FILE'.X|authd - |
|00000e50| 61 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 20 73 |authenti|cation s|
|00000e60| 65 72 76 65 72 20 64 61 | 65 6d 6f 6e 0a 58 74 63 |erver da|emon.Xtc|
|00000e70| 70 75 69 64 2c 20 74 63 | 70 75 6e 61 6d 65 20 2d |puid, tc|puname -|
|00000e80| 20 66 69 6e 64 20 6f 75 | 74 20 77 68 69 63 68 20 | find ou|t which |
|00000e90| 75 73 65 72 20 6f 77 6e | 73 20 61 20 63 6f 6e 6e |user own|s a conn|
|00000ea0| 65 63 74 69 6f 6e 0a 58 | 61 75 74 68 75 73 65 72 |ection.X|authuser|
|00000eb0| 20 2d 20 72 65 6d 6f 74 | 65 20 61 75 74 68 65 6e | - remot|e authen|
|00000ec0| 74 69 63 61 74 69 6f 6e | 20 6c 69 62 72 61 72 79 |tication| library|
|00000ed0| 0a 58 0a 58 61 75 74 68 | 64 20 69 73 20 61 6e 20 |.X.Xauth|d is an |
|00000ee0| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00000ef0| 66 20 52 46 43 20 39 33 | 31 2c 20 74 68 65 20 41 |f RFC 93|1, the A|
|00000f00| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 20 53 65 |uthentic|ation Se|
|00000f10| 72 76 65 72 20 75 6e 64 | 65 72 0a 58 42 53 44 2e |rver und|er.XBSD.|
|00000f20| 20 52 46 43 20 39 33 31 | 20 70 72 6f 76 69 64 65 | RFC 931| provide|
|00000f30| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00000f40| 65 20 75 73 65 72 20 6f | 77 6e 69 6e 67 20 61 20 |e user o|wning a |
|00000f50| 54 43 50 20 63 6f 6e 6e | 65 63 74 69 6f 6e 2e 20 |TCP conn|ection. |
|00000f60| 54 68 69 73 0a 58 68 65 | 6c 70 73 20 6e 65 74 77 |This.Xhe|lps netw|
|00000f70| 6f 72 6b 20 73 65 63 75 | 72 69 74 79 3a 20 75 6e |ork secu|rity: un|
|00000f80| 6c 65 73 73 20 54 43 50 | 20 69 74 73 65 6c 66 20 |less TCP| itself |
|00000f90| 69 73 20 63 6f 6d 70 72 | 6f 6d 69 73 65 64 2c 20 |is compr|omised, |
|00000fa0| 69 74 20 69 73 0a 58 69 | 6d 70 6f 73 73 69 62 6c |it is.Xi|mpossibl|
|00000fb0| 65 20 74 6f 20 66 6f 72 | 67 65 20 6d 61 69 6c 20 |e to for|ge mail |
|00000fc0| 6f 72 20 6e 65 77 73 20 | 62 65 74 77 65 65 6e 20 |or news |between |
|00000fd0| 63 6f 6d 70 75 74 65 72 | 73 20 73 75 70 70 6f 72 |computer|s suppor|
|00000fe0| 74 69 6e 67 20 52 46 43 | 20 39 33 31 2e 0a 58 49 |ting RFC| 931..XI|
|00000ff0| 74 20 61 6c 73 6f 20 62 | 65 63 6f 6d 65 73 20 6d |t also b|ecomes m|
|00001000| 75 63 68 20 65 61 73 69 | 65 72 20 74 6f 20 74 72 |uch easi|er to tr|
|00001010| 61 63 65 20 61 74 74 61 | 63 6b 65 72 73 20 74 68 |ace atta|ckers th|
|00001020| 61 6e 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |an in th|e curren|
|00001030| 74 2c 0a 58 6c 61 72 67 | 65 6c 79 20 61 6e 6f 6e |t,.Xlarg|ely anon|
|00001040| 79 6d 6f 75 73 2c 20 6e | 65 74 77 6f 72 6b 2e 20 |ymous, n|etwork. |
|00001050| 61 75 74 68 64 20 72 65 | 71 75 69 72 65 73 20 6e |authd re|quires n|
|00001060| 6f 20 63 68 61 6e 67 65 | 73 20 74 6f 20 63 75 72 |o change|s to cur|
|00001070| 72 65 6e 74 20 63 6f 64 | 65 3a 0a 58 65 76 65 72 |rent cod|e:.Xever|
|00001080| 79 20 63 6f 6e 6e 65 63 | 74 28 29 20 61 6e 64 20 |y connec|t() and |
|00001090| 61 63 63 65 70 74 28 29 | 20 69 73 20 61 75 74 68 |accept()| is auth|
|000010a0| 65 6e 74 69 63 61 74 65 | 64 20 61 75 74 6f 6d 61 |enticate|d automa|
|000010b0| 74 69 63 61 6c 6c 79 2c | 20 77 69 74 68 20 6e 6f |tically,| with no|
|000010c0| 0a 58 6c 6f 73 73 20 6f | 66 20 65 66 66 69 63 69 |.Xloss o|f effici|
|000010d0| 65 6e 63 79 2e 0a 58 0a | 58 74 63 70 75 69 64 20 |ency..X.|Xtcpuid |
|000010e0| 61 6e 64 20 74 63 70 75 | 6e 61 6d 65 20 61 72 65 |and tcpu|name are|
|000010f0| 20 74 68 65 20 73 61 6d | 65 20 70 72 6f 67 72 61 | the sam|e progra|
|00001100| 6d 2c 20 62 75 74 20 6d | 6f 72 65 20 73 75 69 74 |m, but m|ore suit|
|00001110| 61 62 6c 65 20 66 6f 72 | 20 6c 6f 63 61 6c 0a 58 |able for| local.X|
|00001120| 75 73 65 20 66 72 6f 6d | 20 74 68 65 20 63 6f 6d |use from| the com|
|00001130| 6d 61 6e 64 20 6c 69 6e | 65 20 62 79 20 61 20 75 |mand lin|e by a u|
|00001140| 73 65 72 20 6f 72 20 73 | 79 73 74 65 6d 20 61 64 |ser or s|ystem ad|
|00001150| 6d 69 6e 69 73 74 72 61 | 74 6f 72 2e 20 54 68 65 |ministra|tor. The|
|00001160| 79 20 73 68 6f 77 0a 58 | 77 68 69 63 68 20 6c 6f |y show.X|which lo|
|00001170| 63 61 6c 20 75 73 65 72 | 20 63 72 65 61 74 65 64 |cal user| created|
|00001180| 20 61 20 67 69 76 65 6e | 20 54 43 50 20 63 6f 6e | a given| TCP con|
|00001190| 6e 65 63 74 69 6f 6e 2e | 0a 58 0a 58 61 75 74 68 |nection.|.X.Xauth|
|000011a0| 75 73 65 72 20 69 73 20 | 61 20 6c 69 62 72 61 72 |user is |a librar|
|000011b0| 79 20 65 6e 63 61 70 73 | 75 6c 61 74 69 6e 67 20 |y encaps|ulating |
|000011c0| 63 6c 69 65 6e 74 20 75 | 73 65 20 6f 66 20 52 46 |client u|se of RF|
|000011d0| 43 20 39 33 31 2e 20 49 | 74 20 74 61 6c 6b 73 20 |C 931. I|t talks |
|000011e0| 74 6f 20 61 0a 58 72 65 | 6d 6f 74 65 20 41 75 74 |to a.Xre|mote Aut|
|000011f0| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 53 65 72 76 |henticat|ion Serv|
|00001200| 65 72 20 74 6f 20 66 69 | 6e 64 20 6f 75 74 20 74 |er to fi|nd out t|
|00001210| 68 65 20 75 73 65 72 6e | 61 6d 65 20 6f 6e 20 74 |he usern|ame on t|
|00001220| 68 65 20 6f 74 68 65 72 | 20 73 69 64 65 0a 58 6f |he other| side.Xo|
|00001230| 66 20 61 20 67 69 76 65 | 6e 20 63 6f 6e 6e 65 63 |f a give|n connec|
|00001240| 74 69 6f 6e 2e 0a 58 0a | 58 4f 6e 6c 79 20 72 6f |tion..X.|XOnly ro|
|00001250| 6f 74 20 63 61 6e 20 69 | 6e 73 74 61 6c 6c 20 61 |ot can i|nstall a|
|00001260| 75 74 68 64 2e 20 48 6f | 77 65 76 65 72 2c 20 6d |uthd. Ho|wever, m|
|00001270| 6f 73 74 20 63 75 72 72 | 65 6e 74 20 73 79 73 74 |ost curr|ent syst|
|00001280| 65 6d 73 20 61 72 65 20 | 69 6e 73 65 63 75 72 65 |ems are |insecure|
|00001290| 0a 58 65 6e 6f 75 67 68 | 20 74 68 61 74 20 61 6e |.Xenough| that an|
|000012a0| 79 20 75 73 65 72 20 63 | 61 6e 20 72 75 6e 20 74 |y user c|an run t|
|000012b0| 63 70 75 69 64 20 61 6e | 64 20 74 63 70 75 6e 61 |cpuid an|d tcpuna|
|000012c0| 6d 65 2e 20 61 75 74 68 | 75 73 65 72 20 69 73 20 |me. auth|user is |
|000012d0| 6d 65 61 6e 74 20 66 6f | 72 0a 58 75 73 65 20 62 |meant fo|r.Xuse b|
|000012e0| 79 20 61 6e 79 20 70 72 | 6f 67 72 61 6d 2e 0a 58 |y any pr|ogram..X|
|000012f0| 0a 58 0a 58 0a 58 61 75 | 74 68 64 20 76 65 72 73 |.X.X.Xau|thd vers|
|00001300| 69 6f 6e 20 33 2e 30 31 | 2c 20 46 65 62 72 75 61 |ion 3.01|, Februa|
|00001310| 72 79 20 37 2c 20 31 39 | 39 31 2e 0a 58 50 6c 61 |ry 7, 19|91..XPla|
|00001320| 63 65 64 20 69 6e 74 6f | 20 74 68 65 20 70 75 62 |ced into| the pub|
|00001330| 6c 69 63 20 64 6f 6d 61 | 69 6e 20 62 79 20 44 61 |lic doma|in by Da|
|00001340| 6e 69 65 6c 20 4a 2e 20 | 42 65 72 6e 73 74 65 69 |niel J. |Bernstei|
|00001350| 6e 2e 0a 58 53 6f 6d 65 | 20 6f 66 20 74 68 65 20 |n..XSome| of the |
|00001360| 63 6f 64 65 20 69 6e 20 | 61 75 74 68 64 20 77 61 |code in |authd wa|
|00001370| 73 20 69 6e 73 70 69 72 | 65 64 20 62 79 20 63 6f |s inspir|ed by co|
|00001380| 64 65 20 77 72 69 74 74 | 65 6e 20 62 79 0a 58 56 |de writt|en by.XV|
|00001390| 69 63 20 41 62 65 6c 6c | 2c 20 61 62 65 40 6d 61 |ic Abell|, abe@ma|
|000013a0| 63 65 2e 63 63 2e 70 75 | 72 64 75 65 2e 65 64 75 |ce.cc.pu|rdue.edu|
|000013b0| 2c 20 66 6f 72 20 74 68 | 65 20 6f 66 69 6c 65 73 |, for th|e ofiles|
|000013c0| 20 70 72 6f 67 72 61 6d | 2e 0a 58 0a 58 0a 58 4f | program|..X.X.XO|
|000013d0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 20 6f 66 20 52 |rganizat|ion of R|
|000013e0| 45 41 44 4d 45 3a 0a 58 | 0a 58 31 2e 20 46 69 6c |EADME:.X|.X1. Fil|
|000013f0| 65 73 0a 58 32 2e 20 52 | 65 71 75 69 72 65 6d 65 |es.X2. R|equireme|
|00001400| 6e 74 73 0a 58 33 2e 20 | 48 6f 77 20 74 6f 20 63 |nts.X3. |How to c|
|00001410| 6f 6e 66 69 67 75 72 65 | 20 61 75 74 68 64 0a 58 |onfigure| authd.X|
|00001420| 34 2e 20 48 6f 77 20 74 | 6f 20 63 6f 6d 70 69 6c |4. How t|o compil|
|00001430| 65 20 61 75 74 68 64 0a | 58 35 2e 20 48 6f 77 20 |e authd.|X5. How |
|00001440| 74 6f 20 69 6e 73 74 61 | 6c 6c 20 61 75 74 68 64 |to insta|ll authd|
|00001450| 0a 58 36 2e 20 54 4f 44 | 4f 20 6c 69 73 74 0a 58 |.X6. TOD|O list.X|
|00001460| 0a 58 0a 58 31 2e 20 46 | 69 6c 65 73 3a 0a 58 0a |.X.X1. F|iles:.X.|
|00001470| 58 52 45 41 44 4d 45 20 | 20 20 20 20 20 20 20 20 |XREADME | |
|00001480| 20 74 68 69 73 20 66 69 | 6c 65 0a 58 46 4f 52 4d | this fi|le.XFORM|
|00001490| 4c 45 54 54 45 52 20 20 | 20 20 20 20 66 6f 72 6d |LETTER | form|
|000014a0| 20 6c 65 74 74 65 72 20 | 74 6f 20 73 65 6e 64 20 | letter |to send |
|000014b0| 74 6f 20 74 68 65 20 61 | 75 74 68 6f 72 0a 58 46 |to the a|uthor.XF|
|000014c0| 49 4c 45 53 20 20 20 20 | 20 20 20 20 20 20 20 66 |ILES | f|
|000014d0| 69 6c 65 20 6c 69 73 74 | 0a 58 49 4e 53 54 41 4c |ile list|.XINSTAL|
|000014e0| 4c 20 20 20 20 20 20 20 | 20 20 66 72 69 65 6e 64 |L | friend|
|000014f0| 6c 79 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |ly insta|llation |
|00001500| 73 63 72 69 70 74 0a 58 | 43 48 41 4e 47 45 53 20 |script.X|CHANGES |
|00001510| 20 20 20 20 20 20 20 20 | 64 65 73 63 72 69 70 74 | |descript|
|00001520| 69 6f 6e 20 6f 66 20 63 | 68 61 6e 67 65 73 20 73 |ion of c|hanges s|
|00001530| 69 6e 63 65 20 66 69 72 | 73 74 20 64 69 73 74 72 |ince fir|st distr|
|00001540| 69 62 75 74 65 64 20 76 | 65 72 73 69 6f 6e 0a 58 |ibuted v|ersion.X|
|00001550| 4d 61 6b 65 66 69 6c 65 | 20 20 20 20 20 20 20 20 |Makefile| |
|00001560| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 63 6f 6d 6d |compilat|ion comm|
|00001570| 61 6e 64 73 0a 58 61 75 | 74 68 64 2e 63 20 20 20 |ands.Xau|thd.c |
|00001580| 20 20 20 20 20 20 74 68 | 65 20 61 75 74 68 64 20 | th|e authd |
|00001590| 70 72 6f 67 72 61 6d 0a | 58 61 75 74 68 75 73 65 |program.|Xauthuse|
|000015a0| 72 2e 68 20 20 20 20 20 | 20 74 68 65 20 61 75 74 |r.h | the aut|
|000015b0| 68 75 73 65 72 20 69 6e | 63 6c 75 64 65 20 66 69 |huser in|clude fi|
|000015c0| 6c 65 0a 58 61 75 74 68 | 75 73 65 72 2e 63 20 20 |le.Xauth|user.c |
|000015d0| 20 20 20 20 74 68 65 20 | 61 75 74 68 75 73 65 72 | the |authuser|
|000015e0| 20 6c 69 62 72 61 72 79 | 0a 58 61 75 74 68 64 2e | library|.Xauthd.|
|000015f0| 38 20 20 20 20 20 20 20 | 20 20 64 6f 63 75 6d 65 |8 | docume|
|00001600| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 61 75 74 68 |ntation |for auth|
|00001610| 64 0a 58 74 63 70 75 69 | 64 2e 38 20 20 20 20 20 |d.Xtcpui|d.8 |
|00001620| 20 20 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e | docum|entation|
|00001630| 20 66 6f 72 20 74 63 70 | 75 69 64 0a 58 74 63 70 | for tcp|uid.Xtcp|
|00001640| 75 6e 61 6d 65 2e 38 20 | 20 20 20 20 20 64 6f 63 |uname.8 | doc|
|00001650| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 66 6f 72 20 74 |umentati|on for t|
|00001660| 63 70 75 6e 61 6d 65 0a | 58 61 75 74 68 75 73 65 |cpuname.|Xauthuse|
|00001670| 72 2e 33 20 20 20 20 20 | 20 64 6f 63 75 6d 65 6e |r.3 | documen|
|00001680| 74 61 74 69 6f 6e 20 66 | 6f 72 20 61 75 74 68 75 |tation f|or authu|
|00001690| 73 65 72 0a 58 74 65 73 | 74 2e 63 20 20 20 20 20 |ser.Xtes|t.c |
|000016a0| 20 20 20 20 20 70 72 6f | 67 72 61 6d 20 74 6f 20 | pro|gram to |
|000016b0| 74 65 73 74 20 61 75 74 | 68 75 73 65 72 20 61 6e |test aut|huser an|
|000016c0| 64 20 61 75 74 68 64 0a | 58 6e 65 74 73 74 61 74 |d authd.|Xnetstat|
|000016d0| 75 69 64 20 20 20 20 20 | 20 73 68 65 6c 6c 20 73 |uid | shell s|
|000016e0| 63 72 69 70 74 20 74 6f | 20 74 65 73 74 20 74 63 |cript to| test tc|
|000016f0| 70 75 6e 61 6d 65 0a 58 | 72 66 63 39 33 31 20 20 |puname.X|rfc931 |
|00001700| 20 20 20 20 20 20 20 20 | 52 46 43 20 39 33 31 2c | |RFC 931,|
|00001710| 20 41 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 20 | Authent|ication |
|00001720| 53 65 72 76 65 72 0a 58 | 0a 58 0a 58 0a 58 32 2e |Server.X|.X.X.X2.|
|00001730| 20 52 65 71 75 69 72 65 | 6d 65 6e 74 73 0a 58 0a | Require|ments.X.|
|00001740| 58 61 75 74 68 64 20 72 | 65 71 75 69 72 65 73 20 |Xauthd r|equires |
|00001750| 6e 65 74 73 74 61 74 2c | 20 61 6e 64 20 69 74 20 |netstat,| and it |
|00001760| 70 6f 6b 65 73 20 61 72 | 6f 75 6e 64 20 69 6e 20 |pokes ar|ound in |
|00001770| 73 65 76 65 72 61 6c 20 | 42 53 44 2d 73 70 65 63 |several |BSD-spec|
|00001780| 69 66 69 63 0a 58 6b 65 | 72 6e 65 6c 20 73 74 72 |ific.Xke|rnel str|
|00001790| 75 63 74 75 72 65 73 2e | 20 49 74 20 69 73 20 6e |uctures.| It is n|
|000017a0| 6f 74 20 69 6e 68 65 72 | 65 6e 74 6c 79 20 70 6f |ot inher|ently po|
|000017b0| 72 74 61 62 6c 65 20 63 | 6f 64 65 2e 20 4e 65 76 |rtable c|ode. Nev|
|000017c0| 65 72 74 68 65 6c 65 73 | 73 2c 20 69 74 0a 58 68 |ertheles|s, it.Xh|
|000017d0| 61 73 20 62 65 65 6e 20 | 63 6f 6d 70 69 6c 65 64 |as been |compiled|
|000017e0| 20 75 6e 64 65 72 20 55 | 6c 74 72 69 78 2c 20 53 | under U|ltrix, S|
|000017f0| 75 6e 4f 53 2c 20 61 6e | 64 20 43 6f 6e 76 65 78 |unOS, an|d Convex|
|00001800| 20 55 4e 49 58 2c 20 61 | 6e 64 20 69 74 20 70 72 | UNIX, a|nd it pr|
|00001810| 6f 62 61 62 6c 79 0a 58 | 64 6f 65 73 6e 27 74 20 |obably.X|doesn't |
|00001820| 74 61 6b 65 20 6d 75 63 | 68 20 77 6f 72 6b 20 74 |take muc|h work t|
|00001830| 6f 20 67 65 74 20 72 75 | 6e 6e 69 6e 67 20 75 6e |o get ru|nning un|
|00001840| 64 65 72 20 70 72 65 74 | 74 79 20 6d 75 63 68 20 |der pret|ty much |
|00001850| 61 6e 79 20 42 53 44 20 | 73 79 73 74 65 6d 2e 0a |any BSD |system..|
|00001860| 58 61 75 74 68 75 73 65 | 72 20 73 68 6f 75 6c 64 |Xauthuse|r should|
|00001870| 20 63 6f 6d 70 69 6c 65 | 20 61 6e 64 20 72 75 6e | compile| and run|
|00001880| 20 77 69 74 68 6f 75 74 | 20 74 72 6f 75 62 6c 65 | without| trouble|
|00001890| 20 6f 6e 20 61 6e 79 20 | 42 53 44 20 73 79 73 74 | on any |BSD syst|
|000018a0| 65 6d 2e 0a 58 0a 58 59 | 6f 75 20 6d 75 73 74 20 |em..X.XY|ou must |
|000018b0| 62 65 20 72 6f 6f 74 20 | 74 6f 20 69 6e 73 74 61 |be root |to insta|
|000018c0| 6c 6c 20 61 75 74 68 64 | 2e 20 48 6f 77 65 76 65 |ll authd|. Howeve|
|000018d0| 72 2c 20 61 75 74 68 64 | 27 73 20 73 69 73 74 65 |r, authd|'s siste|
|000018e0| 72 20 75 74 69 6c 69 74 | 69 65 73 2c 0a 58 74 63 |r utilit|ies,.Xtc|
|000018f0| 70 75 69 64 20 61 6e 64 | 20 74 63 70 75 6e 61 6d |puid and| tcpunam|
|00001900| 65 2c 20 77 69 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |e, will |probably|
|00001910| 20 77 6f 72 6b 20 61 6e | 79 77 61 79 20 69 66 20 | work an|yway if |
|00001920| 2f 64 65 76 2f 6b 6d 65 | 6d 20 69 73 20 72 65 61 |/dev/kme|m is rea|
|00001930| 64 61 62 6c 65 2e 0a 58 | 41 6e 79 20 70 72 6f 67 |dable..X|Any prog|
|00001940| 72 61 6d 20 63 61 6e 20 | 75 73 65 20 74 68 65 20 |ram can |use the |
|00001950| 61 75 74 68 75 73 65 72 | 20 6c 69 62 72 61 72 79 |authuser| library|
|00001960| 2e 0a 58 0a 58 61 75 74 | 68 64 20 61 6e 64 20 61 |..X.Xaut|hd and a|
|00001970| 75 74 68 75 73 65 72 20 | 68 61 76 65 20 62 65 65 |uthuser |have bee|
|00001980| 6e 20 72 65 70 6f 72 74 | 65 64 20 74 6f 20 77 6f |n report|ed to wo|
|00001990| 72 6b 20 6f 6e 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |rk on th|e follow|
|000019a0| 69 6e 67 20 73 79 73 74 | 65 6d 73 2e 0a 58 0a 58 |ing syst|ems..X.X|
|000019b0| 20 20 53 75 6e 20 32 2f | 31 37 30 2c 20 53 75 6e | Sun 2/|170, Sun|
|000019c0| 4f 53 20 34 2e 30 0a 58 | 20 20 53 75 6e 20 34 2f |OS 4.0.X| Sun 4/|
|000019d0| 32 38 30 2c 20 53 75 6e | 4f 53 20 34 2e 30 2e 33 |280, Sun|OS 4.0.3|
|000019e0| 0a 58 20 20 53 75 6e 20 | 33 2f 31 36 30 2c 20 53 |.X Sun |3/160, S|
|000019f0| 75 6e 4f 53 20 34 2e 31 | 0a 58 20 20 53 75 6e 20 |unOS 4.1|.X Sun |
|00001a00| 33 2f 31 38 30 2c 20 53 | 75 6e 4f 53 20 34 2e 31 |3/180, S|unOS 4.1|
|00001a10| 0a 58 20 20 44 45 43 73 | 79 73 74 65 6d 2d 35 38 |.X DECs|ystem-58|
|00001a20| 32 30 2c 20 55 6c 74 72 | 69 78 20 34 2e 30 0a 58 |20, Ultr|ix 4.0.X|
|00001a30| 20 20 44 45 43 53 74 61 | 74 69 6f 6e 2d 35 34 30 | DECSta|tion-540|
|00001a40| 30 2c 20 55 6c 74 72 69 | 78 20 34 2e 31 0a 58 20 |0, Ultri|x 4.1.X |
|00001a50| 20 56 41 58 20 38 36 35 | 30 2c 20 55 6c 74 72 69 | VAX 865|0, Ultri|
|00001a60| 78 20 34 2e 31 0a 58 20 | 20 56 41 58 20 28 3f 29 |x 4.1.X | VAX (?)|
|00001a70| 2c 20 42 53 44 20 34 2e | 33 0a 58 20 20 43 6f 6e |, BSD 4.|3.X Con|
|00001a80| 76 65 78 20 43 32 31 30 | 2c 20 43 6f 6e 76 65 78 |vex C210|, Convex|
|00001a90| 20 55 4e 49 58 20 38 2e | 30 0a 58 20 20 20 20 6e | UNIX 8.|0.X n|
|00001aa0| 6f 20 6b 6d 65 6d 20 67 | 72 6f 75 70 2d 2d 2d 61 |o kmem g|roup---a|
|00001ab0| 75 74 68 64 2f 74 63 70 | 75 69 64 2f 74 63 70 75 |uthd/tcp|uid/tcpu|
|00001ac0| 6e 61 6d 65 20 6f 6e 6c | 79 20 77 6f 72 6b 20 61 |name onl|y work a|
|00001ad0| 73 20 72 6f 6f 74 0a 58 | 0a 58 49 66 20 79 6f 75 |s root.X|.XIf you|
|00001ae0| 72 20 6d 61 63 68 69 6e | 65 20 69 73 6e 27 74 20 |r machin|e isn't |
|00001af0| 69 6e 20 74 68 69 73 20 | 6c 69 73 74 2c 20 61 6e |in this |list, an|
|00001b00| 64 20 79 6f 75 20 67 65 | 74 20 74 68 65 20 70 72 |d you ge|t the pr|
|00001b10| 6f 67 72 61 6d 73 20 77 | 6f 72 6b 69 6e 67 2c 0a |ograms w|orking,.|
|00001b20| 58 2a 70 6c 65 61 73 65 | 2a 20 73 65 6e 64 20 61 |X*please|* send a|
|00001b30| 20 6e 6f 74 65 20 74 6f | 20 6d 65 20 61 74 20 62 | note to| me at b|
|00001b40| 72 6e 73 74 6e 64 40 6e | 79 75 2e 65 64 75 20 6f |rnstnd@n|yu.edu o|
|00001b50| 6e 20 74 68 65 20 49 6e | 74 65 72 6e 65 74 20 64 |n the In|ternet d|
|00001b60| 65 73 63 72 69 62 69 6e | 67 0a 58 77 68 61 74 20 |escribin|g.Xwhat |
|00001b70| 79 6f 75 20 68 61 64 20 | 74 6f 20 64 6f 20 74 6f |you had |to do to|
|00001b80| 20 6d 61 6b 65 20 74 68 | 65 20 70 72 6f 67 72 61 | make th|e progra|
|00001b90| 6d 73 20 63 6f 6d 70 69 | 6c 65 2e 20 28 4f 66 20 |ms compi|le. (Of |
|00001ba0| 63 6f 75 72 73 65 2c 20 | 70 6c 65 61 73 65 20 61 |course, |please a|
|00001bb0| 6c 73 6f 0a 58 6c 65 74 | 20 6d 65 20 6b 6e 6f 77 |lso.Xlet| me know|
|00001bc0| 20 69 66 20 79 6f 75 20 | 68 61 76 65 20 74 72 6f | if you |have tro|
|00001bd0| 75 62 6c 65 2c 20 6f 72 | 20 69 66 20 79 6f 75 20 |uble, or| if you |
|00001be0| 68 61 76 65 20 63 6f 6d | 6d 65 6e 74 73 2c 20 71 |have com|ments, q|
|00001bf0| 75 65 73 74 69 6f 6e 73 | 2c 20 6f 72 0a 58 73 75 |uestions|, or.Xsu|
|00001c00| 67 67 65 73 74 69 6f 6e | 73 2e 29 20 49 27 64 20 |ggestion|s.) I'd |
|00001c10| 72 61 74 68 65 72 20 62 | 65 20 66 6c 6f 6f 64 65 |rather b|e floode|
|00001c20| 64 20 77 69 74 68 20 72 | 65 70 6f 72 74 73 20 61 |d with r|eports a|
|00001c30| 6e 64 20 62 65 20 61 62 | 6c 65 20 74 6f 20 63 6f |nd be ab|le to co|
|00001c40| 6d 70 69 6c 65 0a 58 61 | 20 6d 6f 72 65 20 63 6f |mpile.Xa| more co|
|00001c50| 6d 70 72 65 68 65 6e 73 | 69 76 65 20 6c 69 73 74 |mprehens|ive list|
|00001c60| 20 74 68 61 6e 20 68 61 | 76 65 20 6e 6f 20 66 65 | than ha|ve no fe|
|00001c70| 65 64 62 61 63 6b 20 62 | 65 63 61 75 73 65 20 65 |edback b|ecause e|
|00001c80| 76 65 72 79 6f 6e 65 20 | 61 73 73 75 6d 65 73 0a |veryone |assumes.|
|00001c90| 58 73 6f 6d 65 6f 6e 65 | 20 65 6c 73 65 20 68 61 |Xsomeone| else ha|
|00001ca0| 73 20 74 61 6c 6b 65 64 | 20 74 6f 20 6d 65 20 66 |s talked| to me f|
|00001cb0| 69 72 73 74 2e 20 55 73 | 65 20 46 4f 52 4d 4c 45 |irst. Us|e FORMLE|
|00001cc0| 54 54 45 52 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |TTER if |you want|
|00001cd0| 2e 20 54 68 61 6e 6b 73 | 0a 58 66 6f 72 20 62 65 |. Thanks|.Xfor be|
|00001ce0| 69 6e 67 20 61 20 67 6f | 6f 64 20 73 70 6f 72 74 |ing a go|od sport|
|00001cf0| 2e 0a 58 0a 58 0a 58 0a | 58 33 2e 20 48 6f 77 20 |..X.X.X.|X3. How |
|00001d00| 74 6f 20 63 6f 6e 66 69 | 67 75 72 65 20 61 75 74 |to confi|gure aut|
|00001d10| 68 64 0a 58 0a 58 45 69 | 74 68 65 72 20 61 75 74 |hd.X.XEi|ther aut|
|00001d20| 68 64 2e 63 20 68 61 73 | 20 74 68 65 20 72 69 67 |hd.c has| the rig|
|00001d30| 68 74 20 6d 61 67 69 63 | 20 74 6f 20 63 6f 6d 70 |ht magic| to comp|
|00001d40| 69 6c 65 20 61 6e 64 20 | 72 75 6e 20 6f 6e 20 79 |ile and |run on y|
|00001d50| 6f 75 72 20 73 79 73 74 | 65 6d 2c 20 6f 72 0a 58 |our syst|em, or.X|
|00001d60| 69 74 20 64 6f 65 73 6e | 27 74 2e 20 49 6e 20 74 |it doesn|'t. In t|
|00001d70| 68 65 20 66 69 72 73 74 | 20 63 61 73 65 20 79 6f |he first| case yo|
|00001d80| 75 20 64 6f 6e 27 74 20 | 68 61 76 65 20 74 6f 20 |u don't |have to |
|00001d90| 63 6f 6e 66 69 67 75 72 | 65 20 61 6e 79 74 68 69 |configur|e anythi|
|00001da0| 6e 67 2c 20 61 6e 64 0a | 58 69 6e 20 74 68 65 20 |ng, and.|Xin the |
|00001db0| 73 65 63 6f 6e 64 20 63 | 61 73 65 20 61 75 74 6f |second c|ase auto|
|00001dc0| 6d 61 74 69 63 20 63 6f | 6e 66 69 67 75 72 61 74 |matic co|nfigurat|
|00001dd0| 69 6f 6e 20 77 6f 75 6c | 64 20 62 65 20 70 72 65 |ion woul|d be pre|
|00001de0| 74 74 79 20 6d 75 63 68 | 0a 58 68 6f 70 65 6c 65 |tty much|.Xhopele|
|00001df0| 73 73 2e 20 28 49 66 20 | 61 75 74 68 64 20 64 6f |ss. (If |authd do|
|00001e00| 65 73 6e 27 74 20 63 6f | 6d 70 69 6c 65 2c 20 79 |esn't co|mpile, y|
|00001e10| 6f 75 20 6d 69 67 68 74 | 20 74 72 79 20 73 65 6e |ou might| try sen|
|00001e20| 64 69 6e 67 20 6d 65 20 | 74 68 65 0a 58 63 6f 6d |ding me |the.Xcom|
|00001e30| 70 69 6c 65 72 20 6f 75 | 74 70 75 74 20 74 6f 20 |piler ou|tput to |
|00001e40| 73 65 65 20 69 66 20 49 | 20 63 61 6e 20 66 69 67 |see if I| can fig|
|00001e50| 75 72 65 20 6f 75 74 20 | 68 6f 77 20 74 6f 20 6d |ure out |how to m|
|00001e60| 61 6b 65 20 69 74 20 77 | 6f 72 6b 20 6f 6e 20 79 |ake it w|ork on y|
|00001e70| 6f 75 72 0a 58 6d 61 63 | 68 69 6e 65 2e 29 20 54 |our.Xmac|hine.) T|
|00001e80| 68 65 20 61 75 74 68 75 | 73 65 72 20 6c 69 62 72 |he authu|ser libr|
|00001e90| 61 72 79 20 73 68 6f 75 | 6c 64 20 63 6f 6d 70 69 |ary shou|ld compi|
|00001ea0| 6c 65 20 77 69 74 68 6f | 75 74 20 74 72 6f 75 62 |le witho|ut troub|
|00001eb0| 6c 65 20 69 6e 20 61 6e | 79 0a 58 63 61 73 65 2e |le in an|y.Xcase.|
|00001ec0| 0a 58 0a 58 59 6f 75 20 | 63 61 6e 20 63 68 61 6e |.X.XYou |can chan|
|00001ed0| 67 65 20 43 43 20 6f 72 | 20 43 43 4f 50 54 53 20 |ge CC or| CCOPTS |
|00001ee0| 69 6e 20 4d 61 6b 65 66 | 69 6c 65 20 69 66 20 79 |in Makef|ile if y|
|00001ef0| 6f 75 20 77 61 6e 74 2e | 20 49 66 20 79 6f 75 20 |ou want.| If you |
|00001f00| 77 61 6e 74 20 61 75 74 | 68 64 0a 58 74 6f 20 72 |want aut|hd.Xto r|
|00001f10| 65 63 6f 72 64 20 63 6f | 6e 6e 65 63 74 69 6f 6e |ecord co|nnection|
|00001f20| 73 20 74 68 72 6f 75 67 | 68 20 73 79 73 6c 6f 67 |s throug|h syslog|
|00001f30| 20 61 74 20 4c 4f 47 5f | 44 45 42 55 47 2c 20 64 | at LOG_|DEBUG, d|
|00001f40| 65 66 69 6e 65 20 2d 44 | 55 53 45 5f 53 59 53 4c |efine -D|USE_SYSL|
|00001f50| 4f 47 0a 58 69 6e 20 74 | 68 65 20 4d 61 6b 65 66 |OG.Xin t|he Makef|
|00001f60| 69 6c 65 2e 0a 58 0a 58 | 0a 58 0a 58 34 2e 20 48 |ile..X.X|.X.X4. H|
|00001f70| 6f 77 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 61 75 |ow to co|mpile au|
|00001f80| 74 68 64 0a 58 0a 58 4a | 75 73 74 20 6d 61 6b 65 |thd.X.XJ|ust make|
|00001f90| 2e 20 54 68 69 73 20 77 | 69 6c 6c 20 63 72 65 61 |. This w|ill crea|
|00001fa0| 74 65 20 61 75 74 68 64 | 2c 20 74 63 70 75 69 64 |te authd|, tcpuid|
|00001fb0| 2c 20 74 63 70 75 6e 61 | 6d 65 2c 20 61 75 74 68 |, tcpuna|me, auth|
|00001fc0| 75 73 65 72 2e 6f 2c 20 | 61 6e 64 0a 58 74 65 73 |user.o, |and.Xtes|
|00001fd0| 74 2e 0a 58 0a 58 0a 58 | 0a 58 35 2e 20 48 6f 77 |t..X.X.X|.X5. How|
|00001fe0| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 20 61 75 74 68 | to inst|all auth|
|00001ff0| 64 0a 58 0a 58 49 66 20 | 79 6f 75 20 64 6f 6e 27 |d.X.XIf |you don'|
|00002000| 74 20 68 61 76 65 20 70 | 72 69 76 69 6c 65 67 65 |t have p|rivilege|
|00002010| 73 2c 20 73 6b 69 70 20 | 74 68 69 73 20 70 61 72 |s, skip |this par|
|00002020| 74 2e 0a 58 0a 58 42 79 | 20 64 65 66 61 75 6c 74 |t..X.XBy| default|
|00002030| 2c 20 61 75 74 68 64 2c | 20 74 63 70 75 69 64 2c |, authd,| tcpuid,|
|00002040| 20 61 6e 64 20 74 63 70 | 75 6e 61 6d 65 20 61 72 | and tcp|uname ar|
|00002050| 65 20 69 6e 73 74 61 6c | 6c 65 64 20 69 6e 20 2f |e instal|led in /|
|00002060| 65 74 63 2c 0a 58 61 75 | 74 68 75 73 65 72 2e 6f |etc,.Xau|thuser.o|
|00002070| 20 69 73 20 69 6e 73 74 | 61 6c 6c 65 64 20 61 73 | is inst|alled as|
|00002080| 20 2f 75 73 72 2f 6c 69 | 62 2f 6c 69 62 61 75 74 | /usr/li|b/libaut|
|00002090| 68 75 73 65 72 2e 61 2c | 20 61 75 74 68 75 73 65 |huser.a,| authuse|
|000020a0| 72 2e 68 20 69 73 0a 58 | 69 6e 73 74 61 6c 6c 65 |r.h is.X|installe|
|000020b0| 64 20 69 6e 20 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |d in /us|r/includ|
|000020c0| 65 2c 20 61 75 74 68 75 | 73 65 72 2e 33 20 69 73 |e, authu|ser.3 is|
|000020d0| 20 69 6e 73 74 61 6c 6c | 65 64 20 69 6e 20 2f 75 | install|ed in /u|
|000020e0| 73 72 2f 6d 61 6e 2f 6d | 61 6e 33 2c 0a 58 61 6e |sr/man/m|an3,.Xan|
|000020f0| 64 20 61 75 74 68 64 2e | 38 2c 20 74 63 70 75 69 |d authd.|8, tcpui|
|00002100| 64 2e 38 2c 20 61 6e 64 | 20 74 63 70 75 6e 61 6d |d.8, and| tcpunam|
|00002110| 65 2e 38 20 61 72 65 20 | 69 6e 73 74 61 6c 6c 65 |e.8 are |installe|
|00002120| 64 20 69 6e 20 2f 75 73 | 72 2f 6d 61 6e 2f 6d 61 |d in /us|r/man/ma|
|00002130| 6e 38 2e 0a 58 54 68 65 | 20 62 69 6e 61 72 69 65 |n8..XThe| binarie|
|00002140| 73 20 61 72 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |s are in|stalled |
|00002150| 73 65 74 67 69 64 20 74 | 6f 20 67 72 6f 75 70 20 |setgid t|o group |
|00002160| 6b 6d 65 6d 2e 20 49 66 | 20 79 6f 75 20 77 61 6e |kmem. If| you wan|
|00002170| 74 20 74 6f 20 63 68 61 | 6e 67 65 0a 58 74 68 65 |t to cha|nge.Xthe|
|00002180| 73 65 20 64 65 66 61 75 | 6c 74 73 2c 20 65 64 69 |se defau|lts, edi|
|00002190| 74 20 49 4e 53 54 41 4c | 4c 2e 0a 58 0a 58 54 68 |t INSTAL|L..X.XTh|
|000021a0| 65 6e 20 72 75 6e 20 49 | 4e 53 54 41 4c 4c 20 69 |en run I|NSTALL i|
|000021b0| 6e 20 61 20 72 6f 6f 74 | 20 73 68 65 6c 6c 3b 20 |n a root| shell; |
|000021c0| 74 68 65 20 73 63 72 69 | 70 74 20 77 69 6c 6c 20 |the scri|pt will |
|000021d0| 63 68 65 63 6b 20 65 76 | 65 72 79 20 61 63 74 69 |check ev|ery acti|
|000021e0| 6f 6e 0a 58 77 69 74 68 | 20 79 6f 75 20 62 65 66 |on.Xwith| you bef|
|000021f0| 6f 72 65 20 64 6f 69 6e | 67 20 69 74 2e 0a 58 0a |ore doin|g it..X.|
|00002200| 58 54 6f 20 74 65 73 74 | 20 74 63 70 75 6e 61 6d |XTo test| tcpunam|
|00002210| 65 2c 20 6d 61 6b 65 20 | 73 75 72 65 20 69 74 20 |e, make |sure it |
|00002220| 69 73 20 69 6e 20 79 6f | 75 72 20 70 61 74 68 2c |is in yo|ur path,|
|00002230| 20 61 6e 64 20 72 75 6e | 20 6e 65 74 73 74 61 74 | and run| netstat|
|00002240| 75 69 64 2e 20 59 6f 75 | 0a 58 73 68 6f 75 6c 64 |uid. You|.Xshould|
|00002250| 20 67 65 74 20 61 20 72 | 65 70 6f 72 74 20 6f 66 | get a r|eport of|
|00002260| 20 61 6c 6c 20 61 63 74 | 69 76 65 20 6e 65 74 77 | all act|ive netw|
|00002270| 6f 72 6b 20 63 6f 6e 6e | 65 63 74 69 6f 6e 73 20 |ork conn|ections |
|00002280| 69 6e 63 6c 75 64 69 6e | 67 0a 58 75 73 65 72 6e |includin|g.Xusern|
|00002290| 61 6d 65 73 2e 0a 58 0a | 58 54 6f 20 74 65 73 74 |ames..X.|XTo test|
|000022a0| 20 61 75 74 68 75 73 65 | 72 20 61 6e 64 20 61 75 | authuse|r and au|
|000022b0| 74 68 64 2c 20 72 75 6e | 20 2e 2f 74 65 73 74 2e |thd, run| ./test.|
|000022c0| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 67 65 74 20 | You sho|uld get |
|000022d0| 61 6e 20 60 60 65 76 65 | 72 79 74 68 69 6e 67 0a |an ``eve|rything.|
|000022e0| 58 6c 6f 6f 6b 73 20 6f | 6b 61 79 27 27 20 6d 65 |Xlooks o|kay'' me|
|000022f0| 73 73 61 67 65 2e 0a 58 | 0a 58 0a 58 0a 58 36 2e |ssage..X|.X.X.X6.|
|00002300| 20 54 4f 44 4f 20 6c 69 | 73 74 0a 58 0a 58 66 61 | TODO li|st.X.Xfa|
|00002310| 73 74 20 6d 75 6c 74 69 | 70 6c 65 2d 63 6f 6e 6e |st multi|ple-conn|
|00002320| 65 63 74 69 6f 6e 20 76 | 65 72 73 69 6f 6e 20 6f |ection v|ersion o|
|00002330| 66 20 74 63 70 75 69 64 | 2f 74 63 70 75 6e 61 6d |f tcpuid|/tcpunam|
|00002340| 65 2c 20 6c 69 6b 65 20 | 6e 65 74 73 74 61 74 75 |e, like |netstatu|
|00002350| 69 64 3f 0a 58 73 68 6f | 75 6c 64 20 77 72 69 74 |id?.Xsho|uld writ|
|00002360| 65 20 61 20 66 65 77 20 | 6e 6f 74 65 73 20 6f 6e |e a few |notes on|
|00002370| 20 74 68 65 20 65 78 61 | 63 74 20 73 65 63 75 72 | the exa|ct secur|
|00002380| 69 74 79 20 70 72 6f 76 | 69 64 65 64 20 62 79 20 |ity prov|ided by |
|00002390| 72 66 63 20 39 33 31 0a | 45 4e 44 5f 4f 46 5f 46 |rfc 931.|END_OF_F|
|000023a0| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 35 33 30 37 |ILE.if t|est 5307|
|000023b0| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 52 45 | -ne `wc| -c <'RE|
|000023c0| 41 44 4d 45 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |ADME'`; |then. |
|000023d0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 52 | echo sh|ar: \"'R|
|000023e0| 45 41 44 4d 45 27 5c 22 | 20 75 6e 70 61 63 6b 65 |EADME'\"| unpacke|
|000023f0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00002400| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00002410| 52 45 41 44 4d 45 27 0a | 66 69 0a 69 66 20 74 65 |README'.|fi.if te|
|00002420| 73 74 20 2d 66 20 27 46 | 49 4c 45 53 27 20 2d 61 |st -f 'F|ILES' -a|
|00002430| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00002440| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00002450| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00002460| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00002470| 69 6c 65 20 5c 22 27 46 | 49 4c 45 53 27 5c 22 0a |ile \"'F|ILES'\".|
|00002480| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00002490| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 46 49 |Extracti|ng \"'FI|
|000024a0| 4c 45 53 27 5c 22 20 5c | 28 31 34 39 20 63 68 61 |LES'\" \|(149 cha|
|000024b0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|000024c0| 2f 5e 58 2f 2f 22 20 3e | 27 46 49 4c 45 53 27 20 |/^X//" >|'FILES' |
|000024d0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000024e0| 58 42 4c 55 52 42 0a 58 | 52 45 41 44 4d 45 0a 58 |XBLURB.X|README.X|
|000024f0| 46 49 4c 45 53 0a 58 46 | 4f 52 4d 4c 45 54 54 45 |FILES.XF|ORMLETTE|
|00002500| 52 0a 58 43 48 41 4e 47 | 45 53 0a 58 49 4e 53 54 |R.XCHANG|ES.XINST|
|00002510| 41 4c 4c 0a 58 4d 61 6b | 65 66 69 6c 65 0a 58 61 |ALL.XMak|efile.Xa|
|00002520| 75 74 68 64 2e 38 0a 58 | 61 75 74 68 75 73 65 72 |uthd.8.X|authuser|
|00002530| 2e 33 0a 58 74 63 70 75 | 69 64 2e 38 0a 58 74 63 |.3.Xtcpu|id.8.Xtc|
|00002540| 70 75 6e 61 6d 65 2e 38 | 0a 58 61 75 74 68 64 2e |puname.8|.Xauthd.|
|00002550| 63 0a 58 61 75 74 68 75 | 73 65 72 2e 68 0a 58 61 |c.Xauthu|ser.h.Xa|
|00002560| 75 74 68 75 73 65 72 2e | 63 0a 58 74 65 73 74 2e |uthuser.|c.Xtest.|
|00002570| 63 0a 58 6e 65 74 73 74 | 61 74 75 69 64 0a 58 72 |c.Xnetst|atuid.Xr|
|00002580| 66 63 39 33 31 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |fc931.EN|D_OF_FIL|
|00002590| 45 0a 69 66 20 74 65 73 | 74 20 31 34 39 20 2d 6e |E.if tes|t 149 -n|
|000025a0| 65 20 60 77 63 20 2d 63 | 20 3c 27 46 49 4c 45 53 |e `wc -c| <'FILES|
|000025b0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|000025c0| 6f 20 73 68 61 72 3a 20 | 5c 22 27 46 49 4c 45 53 |o shar: |\"'FILES|
|000025d0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000025e0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|000025f0| 0a 23 20 65 6e 64 20 6f | 66 20 27 46 49 4c 45 53 |.# end o|f 'FILES|
|00002600| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00002610| 27 46 4f 52 4d 4c 45 54 | 54 45 52 27 20 2d 61 20 |'FORMLET|TER' -a |
|00002620| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00002630| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002640| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00002650| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002660| 6c 65 20 5c 22 27 46 4f | 52 4d 4c 45 54 54 45 52 |le \"'FO|RMLETTER|
|00002670| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00002680| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00002690| 22 27 46 4f 52 4d 4c 45 | 54 54 45 52 27 5c 22 20 |"'FORMLE|TTER'\" |
|000026a0| 5c 28 34 31 39 20 63 68 | 61 72 61 63 74 65 72 73 |\(419 ch|aracters|
|000026b0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000026c0| 3e 27 46 4f 52 4d 4c 45 | 54 54 45 52 27 20 3c 3c |>'FORMLE|TTER' <<|
|000026d0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 54 |'END_OF_|FILE'.XT|
|000026e0| 6f 3a 20 62 72 6e 73 74 | 6e 64 40 6e 79 75 2e 65 |o: brnst|nd@nyu.e|
|000026f0| 64 75 0a 58 46 72 6f 6d | 3a 20 0a 58 44 61 74 65 |du.XFrom|: .XDate|
|00002700| 3a 20 0a 58 0a 58 50 61 | 63 6b 61 67 65 3a 20 61 |: .X.XPa|ckage: a|
|00002710| 75 74 68 64 20 33 2e 30 | 31 0a 58 4f 62 74 61 69 |uthd 3.0|1.XObtai|
|00002720| 6e 65 64 20 66 72 6f 6d | 20 28 65 2e 67 2e 2c 20 |ned from| (e.g., |
|00002730| 75 75 6e 65 74 2e 75 75 | 2e 6e 65 74 29 3a 20 0a |uunet.uu|.net): .|
|00002740| 58 4f 62 74 61 69 6e 65 | 64 20 62 79 20 28 65 2e |XObtaine|d by (e.|
|00002750| 67 2e 2c 20 66 74 70 29 | 3a 20 0a 58 0a 58 31 2e |g., ftp)|: .X.X1.|
|00002760| 20 4d 61 63 68 69 6e 65 | 20 61 72 63 68 69 74 65 | Machine| archite|
|00002770| 63 74 75 72 65 20 28 65 | 2e 67 2e 2c 20 53 75 6e |cture (e|.g., Sun|
|00002780| 20 34 2f 32 38 30 29 3a | 20 0a 58 32 2e 20 4f 70 | 4/280):| .X2. Op|
|00002790| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 20 28 |erating |system (|
|000027a0| 65 2e 67 2e 2c 20 53 75 | 6e 4f 53 20 34 2e 31 29 |e.g., Su|nOS 4.1)|
|000027b0| 3a 20 0a 58 33 2e 20 4f | 53 20 76 65 6e 64 6f 72 |: .X3. O|S vendor|
|000027c0| 20 28 65 2e 67 2e 2c 20 | 53 75 6e 29 3a 20 0a 58 | (e.g., |Sun): .X|
|000027d0| 34 2e 20 44 6f 65 73 20 | 61 75 74 68 64 20 77 6f |4. Does |authd wo|
|000027e0| 72 6b 20 6f 6e 20 79 6f | 75 72 20 6d 61 63 68 69 |rk on yo|ur machi|
|000027f0| 6e 65 20 73 6f 20 66 61 | 72 20 28 79 65 73 2f 6e |ne so fa|r (yes/n|
|00002800| 6f 29 3f 20 0a 58 35 2e | 20 44 65 73 63 72 69 62 |o)? .X5.| Describ|
|00002810| 65 20 61 6e 79 20 70 72 | 6f 62 6c 65 6d 73 20 79 |e any pr|oblems y|
|00002820| 6f 75 27 76 65 20 68 61 | 64 20 77 69 74 68 20 61 |ou've ha|d with a|
|00002830| 75 74 68 64 2c 20 74 63 | 70 75 69 64 2c 20 6f 72 |uthd, tc|puid, or|
|00002840| 20 74 63 70 75 6e 61 6d | 65 2e 0a 58 0a 58 0a 58 | tcpunam|e..X.X.X|
|00002850| 36 2e 20 41 6e 79 20 66 | 75 72 74 68 65 72 20 71 |6. Any f|urther q|
|00002860| 75 65 73 74 69 6f 6e 73 | 2c 20 63 6f 6d 6d 65 6e |uestions|, commen|
|00002870| 74 73 2c 20 6f 72 20 73 | 75 67 67 65 73 74 69 6f |ts, or s|uggestio|
|00002880| 6e 73 3f 0a 58 0a 58 0a | 58 59 6f 75 72 20 6e 61 |ns?.X.X.|XYour na|
|00002890| 6d 65 3a 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |me:.END_|OF_FILE.|
|000028a0| 69 66 20 74 65 73 74 20 | 34 31 39 20 2d 6e 65 20 |if test |419 -ne |
|000028b0| 60 77 63 20 2d 63 20 3c | 27 46 4f 52 4d 4c 45 54 |`wc -c <|'FORMLET|
|000028c0| 54 45 52 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |TER'`; t|hen. |
|000028d0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 46 4f |echo sha|r: \"'FO|
|000028e0| 52 4d 4c 45 54 54 45 52 | 27 5c 22 20 75 6e 70 61 |RMLETTER|'\" unpa|
|000028f0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00002900| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00002910| 66 20 27 46 4f 52 4d 4c | 45 54 54 45 52 27 0a 66 |f 'FORML|ETTER'.f|
|00002920| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 43 48 |i.if tes|t -f 'CH|
|00002930| 41 4e 47 45 53 27 20 2d | 61 20 22 24 7b 31 7d 22 |ANGES' -|a "${1}"|
|00002940| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00002950| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00002960| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00002970| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00002980| 43 48 41 4e 47 45 53 27 | 5c 22 0a 65 6c 73 65 0a |CHANGES'|\".else.|
|00002990| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000029a0| 63 74 69 6e 67 20 5c 22 | 27 43 48 41 4e 47 45 53 |cting \"|'CHANGES|
|000029b0| 27 5c 22 20 5c 28 37 38 | 33 20 63 68 61 72 61 63 |'\" \(78|3 charac|
|000029c0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|000029d0| 2f 2f 22 20 3e 27 43 48 | 41 4e 47 45 53 27 20 3c |//" >'CH|ANGES' <|
|000029e0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|000029f0| 43 68 61 6e 67 65 20 66 | 69 6c 65 20 66 6f 72 20 |Change f|ile for |
|00002a00| 61 75 74 68 64 0a 58 0a | 58 53 52 20 69 73 20 53 |authd.X.|XSR is S|
|00002a10| 65 74 68 20 52 6f 62 65 | 72 74 73 6f 6e 20 28 73 |eth Robe|rtson (s|
|00002a20| 65 74 68 40 73 69 72 69 | 75 73 2e 63 74 72 2e 63 |eth@siri|us.ctr.c|
|00002a30| 6f 6c 75 6d 62 69 61 2e | 65 64 75 29 2e 0a 58 4e |olumbia.|edu)..XN|
|00002a40| 53 20 69 73 20 4e 69 63 | 6b 20 53 61 79 65 72 20 |S is Nic|k Sayer |
|00002a50| 28 6d 72 61 70 70 6c 65 | 40 71 75 61 63 6b 2e 73 |(mrapple|@quack.s|
|00002a60| 61 63 2e 63 61 2e 75 73 | 29 2e 0a 58 43 4d 20 69 |ac.ca.us|)..XCM i|
|00002a70| 73 20 43 68 72 69 73 20 | 4d 65 74 63 61 6c 66 20 |s Chris |Metcalf |
|00002a80| 28 6d 65 74 63 61 6c 66 | 40 6d 61 73 61 6c 61 2e |(metcalf|@masala.|
|00002a90| 6c 63 73 2e 6d 69 74 2e | 65 64 75 29 2e 0a 58 0a |lcs.mit.|edu)..X.|
|00002aa0| 58 32 2f 37 2f 39 31 3a | 20 61 75 74 68 64 20 33 |X2/7/91:| authd 3|
|00002ab0| 2e 30 31 2e 0a 58 32 2f | 37 2f 39 31 3a 20 41 64 |.01..X2/|7/91: Ad|
|00002ac0| 64 65 64 20 74 65 6e 74 | 61 74 69 76 65 20 6e 6f |ded tent|ative no|
|00002ad0| 74 65 20 61 62 6f 75 74 | 20 56 41 58 20 28 77 68 |te about| VAX (wh|
|00002ae0| 69 63 68 3f 29 20 75 6e | 64 65 72 20 42 53 44 20 |ich?) un|der BSD |
|00002af0| 34 2e 33 2e 20 54 6e 78 | 20 43 4d 2e 0a 58 32 2f |4.3. Tnx| CM..X2/|
|00002b00| 37 2f 39 31 3a 20 46 69 | 78 65 64 20 75 70 20 6c |7/91: Fi|xed up l|
|00002b10| 73 65 65 6b 28 29 20 62 | 72 61 69 6e 64 61 6d 61 |seek() b|raindama|
|00002b20| 67 65 2e 20 54 6e 78 20 | 4e 53 2c 20 43 4d 2e 0a |ge. Tnx |NS, CM..|
|00002b30| 58 20 20 20 20 20 20 20 | 20 60 60 44 69 64 20 79 |X | ``Did y|
|00002b40| 6f 75 20 77 72 69 74 65 | 20 74 68 69 73 20 69 6e |ou write| this in|
|00002b50| 20 79 6f 75 72 20 73 6c | 65 65 70 3f 27 27 20 4e | your sl|eep?'' N|
|00002b60| 6f 20 63 6f 6d 6d 65 6e | 74 2e 0a 58 32 2f 37 2f |o commen|t..X2/7/|
|00002b70| 39 31 3a 20 46 69 78 65 | 64 20 75 70 20 6c 73 65 |91: Fixe|d up lse|
|00002b80| 65 6b 28 29 20 74 79 70 | 6f 20 28 74 65 73 74 20 |ek() typ|o (test |
|00002b90| 76 65 72 73 75 73 20 31 | 3f 20 6f 68 20 62 6f 79 |versus 1|? oh boy|
|00002ba0| 29 2e 20 54 6e 78 20 4e | 53 2c 20 43 4d 2e 0a 58 |). Tnx N|S, CM..X|
|00002bb0| 32 2f 37 2f 39 31 3a 20 | 41 64 64 65 64 20 53 75 |2/7/91: |Added Su|
|00002bc0| 6e 20 32 2f 31 37 30 20 | 75 6e 64 65 72 20 53 75 |n 2/170 |under Su|
|00002bd0| 6e 4f 53 20 34 2e 30 2e | 20 54 6e 78 20 4e 53 2e |nOS 4.0.| Tnx NS.|
|00002be0| 0a 58 0a 58 32 2f 36 2f | 39 31 3a 20 46 69 78 65 |.X.X2/6/|91: Fixe|
|00002bf0| 64 20 6e 6f 6e 2d 69 6e | 73 74 61 6c 6c 61 74 69 |d non-in|stallati|
|00002c00| 6f 6e 20 6f 66 20 61 75 | 74 68 75 73 65 72 2e 68 |on of au|thuser.h|
|00002c10| 2e 20 4f 6f 70 73 2e 0a | 58 32 2f 36 2f 39 31 3a |. Oops..|X2/6/91:|
|00002c20| 20 41 64 64 65 64 20 53 | 75 6e 20 33 20 75 6e 64 | Added S|un 3 und|
|00002c30| 65 72 20 53 75 6e 4f 53 | 20 34 2e 31 20 74 6f 20 |er SunOS| 4.1 to |
|00002c40| 73 75 63 63 65 73 73 20 | 6c 69 73 74 2e 20 54 6e |success |list. Tn|
|00002c50| 78 20 53 52 2e 0a 58 32 | 2f 36 2f 39 31 3a 20 43 |x SR..X2|/6/91: C|
|00002c60| 68 61 6e 67 65 64 20 70 | 73 20 61 75 67 78 20 69 |hanged p|s augx i|
|00002c70| 6e 20 49 4e 53 54 41 4c | 4c 20 74 6f 20 70 73 20 |n INSTAL|L to ps |
|00002c80| 61 63 75 67 78 2e 20 54 | 6e 78 20 53 52 2e 0a 58 |acugx. T|nx SR..X|
|00002c90| 32 2f 36 2f 39 31 3a 20 | 54 6f 6f 6b 20 60 60 6b |2/6/91: |Took ``k|
|00002ca0| 65 72 6e 65 6c 2d 6c 65 | 76 65 6c 27 27 20 6f 75 |ernel-le|vel'' ou|
|00002cb0| 74 20 6f 66 20 52 45 41 | 44 4d 45 2e 20 54 6e 78 |t of REA|DME. Tnx|
|00002cc0| 20 53 52 2e 0a 58 32 2f | 36 2f 39 31 3a 20 41 64 | SR..X2/|6/91: Ad|
|00002cd0| 64 65 64 20 43 6f 6e 76 | 65 78 20 74 6f 20 74 68 |ded Conv|ex to th|
|00002ce0| 65 20 73 75 63 63 65 73 | 73 20 6c 69 73 74 2c 20 |e succes|s list, |
|00002cf0| 66 69 78 65 64 20 74 79 | 70 6f 2e 0a 58 0a 58 32 |fixed ty|po..X.X2|
|00002d00| 2f 35 2f 39 31 3a 20 61 | 75 74 68 64 20 33 2e 30 |/5/91: a|uthd 3.0|
|00002d10| 2e 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |..END_OF|_FILE.if|
|00002d20| 20 74 65 73 74 20 37 38 | 33 20 2d 6e 65 20 60 77 | test 78|3 -ne `w|
|00002d30| 63 20 2d 63 20 3c 27 43 | 48 41 4e 47 45 53 27 60 |c -c <'C|HANGES'`|
|00002d40| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00002d50| 73 68 61 72 3a 20 5c 22 | 27 43 48 41 4e 47 45 53 |shar: \"|'CHANGES|
|00002d60| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00002d70| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00002d80| 0a 23 20 65 6e 64 20 6f | 66 20 27 43 48 41 4e 47 |.# end o|f 'CHANG|
|00002d90| 45 53 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |ES'.fi.i|f test -|
|00002da0| 66 20 27 49 4e 53 54 41 | 4c 4c 27 20 2d 61 20 22 |f 'INSTA|LL' -a "|
|00002db0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00002dc0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00002dd0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00002de0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00002df0| 65 20 5c 22 27 49 4e 53 | 54 41 4c 4c 27 5c 22 0a |e \"'INS|TALL'\".|
|00002e00| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00002e10| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 49 4e |Extracti|ng \"'IN|
|00002e20| 53 54 41 4c 4c 27 5c 22 | 20 5c 28 33 36 33 31 20 |STALL'\"| \(3631 |
|00002e30| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00002e40| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 49 4e 53 54 | "s/^X//|" >'INST|
|00002e50| 41 4c 4c 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |ALL' <<'|END_OF_F|
|00002e60| 49 4c 45 27 0a 58 23 21 | 2f 62 69 6e 2f 73 68 0a |ILE'.X#!|/bin/sh.|
|00002e70| 58 0a 58 23 20 43 68 61 | 6e 67 65 20 6b 6d 65 6d |X.X# Cha|nge kmem|
|00002e80| 20 74 6f 20 73 74 61 66 | 66 20 61 6e 64 20 6d 6f | to staf|f and mo|
|00002e90| 64 65 20 74 6f 20 30 37 | 35 35 20 69 66 20 79 6f |de to 07|55 if yo|
|00002ea0| 75 20 64 6f 6e 27 74 20 | 68 61 76 65 20 61 20 6b |u don't |have a k|
|00002eb0| 6d 65 6d 20 67 72 6f 75 | 70 2c 0a 58 23 20 6f 72 |mem grou|p,.X# or|
|00002ec0| 20 69 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 77 61 | if you |don't wa|
|00002ed0| 6e 74 20 6e 6f 72 6d 61 | 6c 20 75 73 65 72 73 20 |nt norma|l users |
|00002ee0| 74 6f 20 62 65 20 61 62 | 6c 65 20 74 6f 20 75 73 |to be ab|le to us|
|00002ef0| 65 20 74 68 65 73 65 20 | 75 74 69 6c 69 74 69 65 |e these |utilitie|
|00002f00| 73 2e 0a 58 4d 45 4d 3d | 6b 6d 65 6d 0a 58 4d 4f |s..XMEM=|kmem.XMO|
|00002f10| 44 45 3d 30 32 37 35 35 | 0a 58 0a 58 23 20 54 68 |DE=02755|.X.X# Th|
|00002f20| 65 73 65 20 6d 75 73 74 | 20 61 6c 6c 20 62 65 20 |ese must| all be |
|00002f30| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 66 69 6c 65 |in the s|ame file|
|00002f40| 73 79 73 74 65 6d 2e 0a | 58 41 55 54 48 44 3d 2f |system..|XAUTHD=/|
|00002f50| 65 74 63 2f 61 75 74 68 | 64 0a 58 54 43 50 55 49 |etc/auth|d.XTCPUI|
|00002f60| 44 3d 2f 65 74 63 2f 74 | 63 70 75 69 64 0a 58 54 |D=/etc/t|cpuid.XT|
|00002f70| 43 50 55 4e 41 4d 45 3d | 2f 65 74 63 2f 74 63 70 |CPUNAME=|/etc/tcp|
|00002f80| 75 6e 61 6d 65 0a 58 0a | 58 41 55 54 48 55 53 45 |uname.X.|XAUTHUSE|
|00002f90| 52 3d 2f 75 73 72 2f 6c | 69 62 2f 6c 69 62 61 75 |R=/usr/l|ib/libau|
|00002fa0| 74 68 75 73 65 72 2e 61 | 0a 58 41 55 54 48 55 53 |thuser.a|.XAUTHUS|
|00002fb0| 45 52 48 3d 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 |ERH=/usr|/include|
|00002fc0| 2f 61 75 74 68 75 73 65 | 72 2e 68 0a 58 0a 58 23 |/authuse|r.h.X.X#|
|00002fd0| 20 4d 61 6e 20 70 61 67 | 65 73 2e 0a 58 4d 41 55 | Man pag|es..XMAU|
|00002fe0| 54 48 55 53 45 52 3d 2f | 75 73 72 2f 6d 61 6e 2f |THUSER=/|usr/man/|
|00002ff0| 6d 61 6e 33 2f 61 75 74 | 68 75 73 65 72 2e 33 0a |man3/aut|huser.3.|
|00003000| 58 4d 41 55 54 48 44 3d | 2f 75 73 72 2f 6d 61 6e |XMAUTHD=|/usr/man|
|00003010| 2f 6d 61 6e 38 2f 61 75 | 74 68 64 2e 38 0a 58 4d |/man8/au|thd.8.XM|
|00003020| 54 43 50 55 49 44 3d 2f | 75 73 72 2f 6d 61 6e 2f |TCPUID=/|usr/man/|
|00003030| 6d 61 6e 38 2f 74 63 70 | 75 69 64 2e 38 0a 58 4d |man8/tcp|uid.8.XM|
|00003040| 54 43 50 55 4e 41 4d 45 | 3d 2f 75 73 72 2f 6d 61 |TCPUNAME|=/usr/ma|
|00003050| 6e 2f 6d 61 6e 38 2f 74 | 63 70 75 6e 61 6d 65 2e |n/man8/t|cpuname.|
|00003060| 38 0a 58 0a 58 23 20 4e | 61 6d 65 20 6f 66 20 70 |8.X.X# N|ame of p|
|00003070| 6f 72 74 20 31 31 33 20 | 69 6e 20 2f 65 74 63 2f |ort 113 |in /etc/|
|00003080| 73 65 72 76 69 63 65 73 | 2e 0a 58 50 4f 52 54 4e |services|..XPORTN|
|00003090| 41 4d 45 3d 61 75 74 68 | 0a 58 0a 58 65 63 68 6f |AME=auth|.X.Xecho|
|000030a0| 20 22 45 61 63 68 20 61 | 63 74 69 6f 6e 20 77 69 | "Each a|ction wi|
|000030b0| 6c 6c 20 62 65 20 70 72 | 69 6e 74 65 64 20 62 65 |ll be pr|inted be|
|000030c0| 66 6f 72 65 20 69 74 20 | 69 73 20 72 75 6e 2e 20 |fore it |is run. |
|000030d0| 50 72 65 73 73 20 72 65 | 74 75 72 6e 20 74 6f 20 |Press re|turn to |
|000030e0| 70 72 6f 63 65 65 64 2e | 22 0a 58 0a 58 65 63 68 |proceed.|".X.Xech|
|000030f0| 6f 20 22 31 2e 20 49 6e | 73 74 61 6c 6c 20 61 75 |o "1. In|stall au|
|00003100| 74 68 64 2c 20 74 63 70 | 75 69 64 2c 20 61 6e 64 |thd, tcp|uid, and|
|00003110| 20 74 63 70 75 6e 61 6d | 65 2e 22 0a 58 65 63 68 | tcpunam|e.".Xech|
|00003120| 6f 20 22 21 20 69 6e 73 | 74 61 6c 6c 20 2d 63 20 |o "! ins|tall -c |
|00003130| 2d 67 20 24 4d 45 4d 20 | 2d 6d 20 24 4d 4f 44 45 |-g $MEM |-m $MODE|
|00003140| 20 61 75 74 68 64 20 24 | 41 55 54 48 44 3a 20 22 | authd $|AUTHD: "|
|00003150| 20 7c 20 74 72 20 2d 64 | 20 27 5c 30 31 32 27 0a | | tr -d| '\012'.|
|00003160| 58 72 65 61 64 20 6c 69 | 6e 65 0a 58 69 6e 73 74 |Xread li|ne.Xinst|
|00003170| 61 6c 6c 20 2d 63 20 2d | 67 20 22 24 4d 45 4d 22 |all -c -|g "$MEM"|
|00003180| 20 2d 6d 20 22 24 4d 4f | 44 45 22 20 61 75 74 68 | -m "$MO|DE" auth|
|00003190| 64 20 22 24 41 55 54 48 | 44 22 0a 58 0a 58 65 63 |d "$AUTH|D".X.Xec|
|000031a0| 68 6f 20 22 21 20 72 6d | 20 2d 66 20 24 54 43 50 |ho "! rm| -f $TCP|
|000031b0| 55 49 44 3b 20 6c 6e 20 | 24 41 55 54 48 44 20 24 |UID; ln |$AUTHD $|
|000031c0| 54 43 50 55 49 44 3a 20 | 22 20 7c 20 74 72 20 2d |TCPUID: |" | tr -|
|000031d0| 64 20 27 5c 30 31 32 27 | 0a 58 72 65 61 64 20 6c |d '\012'|.Xread l|
|000031e0| 69 6e 65 0a 58 72 6d 20 | 2d 66 20 22 24 54 43 50 |ine.Xrm |-f "$TCP|
|000031f0| 55 49 44 22 3b 20 6c 6e | 20 22 24 41 55 54 48 44 |UID"; ln| "$AUTHD|
|00003200| 22 20 22 24 54 43 50 55 | 49 44 22 0a 58 0a 58 65 |" "$TCPU|ID".X.Xe|
|00003210| 63 68 6f 20 22 21 20 72 | 6d 20 2d 66 20 24 54 43 |cho "! r|m -f $TC|
|00003220| 50 55 4e 41 4d 45 3b 20 | 6c 6e 20 24 41 55 54 48 |PUNAME; |ln $AUTH|
|00003230| 44 20 24 54 43 50 55 4e | 41 4d 45 3a 20 22 20 7c |D $TCPUN|AME: " ||
|00003240| 20 74 72 20 2d 64 20 27 | 5c 30 31 32 27 0a 58 72 | tr -d '|\012'.Xr|
|00003250| 65 61 64 20 6c 69 6e 65 | 0a 58 72 6d 20 2d 66 20 |ead line|.Xrm -f |
|00003260| 22 24 54 43 50 55 4e 41 | 4d 45 22 3b 20 6c 6e 20 |"$TCPUNA|ME"; ln |
|00003270| 22 24 41 55 54 48 44 22 | 20 22 24 54 43 50 55 4e |"$AUTHD"| "$TCPUN|
|00003280| 41 4d 45 22 0a 58 0a 58 | 65 63 68 6f 20 22 32 2e |AME".X.X|echo "2.|
|00003290| 20 49 6e 73 74 61 6c 6c | 20 74 68 65 20 61 75 74 | Install| the aut|
|000032a0| 68 75 73 65 72 20 6c 69 | 62 72 61 72 79 2e 22 0a |huser li|brary.".|
|000032b0| 58 65 63 68 6f 20 22 21 | 20 69 6e 73 74 61 6c 6c |Xecho "!| install|
|000032c0| 20 2d 63 20 2d 6d 20 30 | 34 34 34 20 61 75 74 68 | -c -m 0|444 auth|
|000032d0| 75 73 65 72 2e 68 20 24 | 41 55 54 48 55 53 45 52 |user.h $|AUTHUSER|
|000032e0| 48 3a 20 22 20 7c 20 74 | 72 20 2d 64 20 27 5c 30 |H: " | t|r -d '\0|
|000032f0| 31 32 27 0a 58 72 65 61 | 64 20 6c 69 6e 65 0a 58 |12'.Xrea|d line.X|
|00003300| 69 6e 73 74 61 6c 6c 20 | 2d 63 20 2d 6d 20 30 34 |install |-c -m 04|
|00003310| 34 34 20 61 75 74 68 75 | 73 65 72 2e 68 20 22 24 |44 authu|ser.h "$|
|00003320| 41 55 54 48 55 53 45 52 | 48 22 0a 58 0a 58 65 63 |AUTHUSER|H".X.Xec|
|00003330| 68 6f 20 22 21 20 61 72 | 20 72 76 20 24 41 55 54 |ho "! ar| rv $AUT|
|00003340| 48 55 53 45 52 20 61 75 | 74 68 75 73 65 72 2e 6f |HUSER au|thuser.o|
|00003350| 3a 20 22 20 7c 20 74 72 | 20 2d 64 20 27 5c 30 31 |: " | tr| -d '\01|
|00003360| 32 27 0a 58 72 65 61 64 | 20 6c 69 6e 65 0a 58 61 |2'.Xread| line.Xa|
|00003370| 72 20 72 76 20 22 24 41 | 55 54 48 55 53 45 52 22 |r rv "$A|UTHUSER"|
|00003380| 20 61 75 74 68 75 73 65 | 72 2e 6f 0a 58 0a 58 65 | authuse|r.o.X.Xe|
|00003390| 63 68 6f 20 22 21 20 72 | 61 6e 6c 69 62 20 24 41 |cho "! r|anlib $A|
|000033a0| 55 54 48 55 53 45 52 3a | 20 22 20 7c 20 74 72 20 |UTHUSER:| " | tr |
|000033b0| 2d 64 20 27 5c 30 31 32 | 27 0a 58 72 65 61 64 20 |-d '\012|'.Xread |
|000033c0| 6c 69 6e 65 0a 58 72 61 | 6e 6c 69 62 20 22 24 41 |line.Xra|nlib "$A|
|000033d0| 55 54 48 55 53 45 52 22 | 0a 58 0a 58 65 63 68 6f |UTHUSER"|.X.Xecho|
|000033e0| 20 22 21 20 63 68 6d 6f | 64 20 36 34 34 20 24 41 | "! chmo|d 644 $A|
|000033f0| 55 54 48 55 53 45 52 3a | 20 22 20 7c 20 74 72 20 |UTHUSER:| " | tr |
|00003400| 2d 64 20 27 5c 30 31 32 | 27 0a 58 72 65 61 64 20 |-d '\012|'.Xread |
|00003410| 6c 69 6e 65 0a 58 63 68 | 6d 6f 64 20 36 34 34 20 |line.Xch|mod 644 |
|00003420| 22 24 41 55 54 48 55 53 | 45 52 22 0a 58 0a 58 65 |"$AUTHUS|ER".X.Xe|
|00003430| 63 68 6f 20 22 33 2e 20 | 4d 61 6b 65 20 74 68 65 |cho "3. |Make the|
|00003440| 20 6d 61 6e 20 70 61 67 | 65 73 20 61 76 61 69 6c | man pag|es avail|
|00003450| 61 62 6c 65 2e 22 0a 58 | 65 63 68 6f 20 22 21 20 |able.".X|echo "! |
|00003460| 69 6e 73 74 61 6c 6c 20 | 2d 63 20 2d 6d 20 30 34 |install |-c -m 04|
|00003470| 34 34 20 61 75 74 68 75 | 73 65 72 2e 33 20 24 4d |44 authu|ser.3 $M|
|00003480| 41 55 54 48 55 53 45 52 | 3a 20 22 20 7c 20 74 72 |AUTHUSER|: " | tr|
|00003490| 20 2d 64 20 27 5c 30 31 | 32 27 0a 58 72 65 61 64 | -d '\01|2'.Xread|
|000034a0| 20 6c 69 6e 65 0a 58 69 | 6e 73 74 61 6c 6c 20 2d | line.Xi|nstall -|
|000034b0| 63 20 2d 6d 20 30 34 34 | 34 20 61 75 74 68 75 73 |c -m 044|4 authus|
|000034c0| 65 72 2e 33 20 22 24 4d | 41 55 54 48 55 53 45 52 |er.3 "$M|AUTHUSER|
|000034d0| 22 0a 58 0a 58 65 63 68 | 6f 20 22 21 20 69 6e 73 |".X.Xech|o "! ins|
|000034e0| 74 61 6c 6c 20 2d 63 20 | 2d 6d 20 30 34 34 34 20 |tall -c |-m 0444 |
|000034f0| 61 75 74 68 64 2e 38 20 | 24 4d 41 55 54 48 44 3a |authd.8 |$MAUTHD:|
|00003500| 20 22 20 7c 20 74 72 20 | 2d 64 20 27 5c 30 31 32 | " | tr |-d '\012|
|00003510| 27 0a 58 72 65 61 64 20 | 6c 69 6e 65 0a 58 69 6e |'.Xread |line.Xin|
|00003520| 73 74 61 6c 6c 20 2d 63 | 20 2d 6d 20 30 34 34 34 |stall -c| -m 0444|
|00003530| 20 61 75 74 68 64 2e 38 | 20 22 24 4d 41 55 54 48 | authd.8| "$MAUTH|
|00003540| 44 22 0a 58 0a 58 65 63 | 68 6f 20 22 21 20 69 6e |D".X.Xec|ho "! in|
|00003550| 73 74 61 6c 6c 20 2d 63 | 20 2d 6d 20 30 34 34 34 |stall -c| -m 0444|
|00003560| 20 74 63 70 75 69 64 2e | 38 20 24 4d 54 43 50 55 | tcpuid.|8 $MTCPU|
|00003570| 49 44 3a 20 22 20 7c 20 | 74 72 20 2d 64 20 27 5c |ID: " | |tr -d '\|
|00003580| 30 31 32 27 0a 58 72 65 | 61 64 20 6c 69 6e 65 0a |012'.Xre|ad line.|
|00003590| 58 69 6e 73 74 61 6c 6c | 20 2d 63 20 2d 6d 20 30 |Xinstall| -c -m 0|
|000035a0| 34 34 34 20 74 63 70 75 | 69 64 2e 38 20 22 24 4d |444 tcpu|id.8 "$M|
|000035b0| 54 43 50 55 49 44 22 0a | 58 0a 58 65 63 68 6f 20 |TCPUID".|X.Xecho |
|000035c0| 22 21 20 69 6e 73 74 61 | 6c 6c 20 2d 63 20 2d 6d |"! insta|ll -c -m|
|000035d0| 20 30 34 34 34 20 74 63 | 70 75 6e 61 6d 65 2e 38 | 0444 tc|puname.8|
|000035e0| 20 24 4d 54 43 50 55 4e | 41 4d 45 3a 20 22 20 7c | $MTCPUN|AME: " ||
|000035f0| 20 74 72 20 2d 64 20 27 | 5c 30 31 32 27 0a 58 72 | tr -d '|\012'.Xr|
|00003600| 65 61 64 20 6c 69 6e 65 | 0a 58 69 6e 73 74 61 6c |ead line|.Xinstal|
|00003610| 6c 20 2d 63 20 2d 6d 20 | 30 34 34 34 20 74 63 70 |l -c -m |0444 tcp|
|00003620| 75 6e 61 6d 65 2e 38 20 | 22 24 4d 54 43 50 55 4e |uname.8 |"$MTCPUN|
|00003630| 41 4d 45 22 0a 58 0a 58 | 65 63 68 6f 20 22 34 2e |AME".X.X|echo "4.|
|00003640| 20 4d 61 6b 65 20 73 75 | 72 65 20 61 6e 20 61 75 | Make su|re an au|
|00003650| 74 68 20 70 6f 72 74 20 | 69 73 20 69 6e 20 2f 65 |th port |is in /e|
|00003660| 74 63 2f 73 65 72 76 69 | 63 65 73 2e 22 0a 58 65 |tc/servi|ces.".Xe|
|00003670| 63 68 6f 20 22 4c 65 74 | 20 6d 65 20 67 6c 61 6e |cho "Let| me glan|
|00003680| 63 65 20 61 74 20 2f 65 | 74 63 2f 73 65 72 76 69 |ce at /e|tc/servi|
|00003690| 63 65 73 20 66 6f 72 20 | 79 6f 75 2e 2e 2e 22 0a |ces for |you...".|
|000036a0| 58 69 66 20 67 72 65 70 | 20 27 5e 27 24 50 4f 52 |Xif grep| '^'$POR|
|000036b0| 54 4e 41 4d 45 27 5b 20 | 09 5d 2a 31 31 33 2f 74 |TNAME'[ |.]*113/t|
|000036c0| 63 70 27 20 2f 65 74 63 | 2f 73 65 72 76 69 63 65 |cp' /etc|/service|
|000036d0| 73 20 3e 2f 64 65 76 2f | 6e 75 6c 6c 20 32 3e 26 |s >/dev/|null 2>&|
|000036e0| 31 0a 58 74 68 65 6e 20 | 65 63 68 6f 20 22 4f 6b |1.Xthen |echo "Ok|
|000036f0| 61 79 2c 20 79 6f 75 20 | 68 61 76 65 20 69 74 20 |ay, you |have it |
|00003700| 61 6c 72 65 61 64 79 2e | 20 4c 65 74 27 73 20 63 |already.| Let's c|
|00003710| 6f 6e 74 69 6e 75 65 2e | 22 0a 58 65 6c 73 65 20 |ontinue.|".Xelse |
|00003720| 65 63 68 6f 20 22 4e 6f | 70 65 2c 20 69 74 27 73 |echo "No|pe, it's|
|00003730| 20 6e 6f 74 20 74 68 65 | 72 65 2e 22 0a 58 20 20 | not the|re.".X |
|00003740| 20 20 20 65 63 68 6f 20 | 22 4c 65 74 20 6d 65 20 | echo |"Let me |
|00003750| 63 68 65 63 6b 20 74 68 | 61 74 20 79 6f 75 20 64 |check th|at you d|
|00003760| 6f 6e 27 74 20 68 61 76 | 65 20 61 20 64 69 66 66 |on't hav|e a diff|
|00003770| 65 72 65 6e 74 20 61 75 | 74 68 20 70 6f 72 74 2e |erent au|th port.|
|00003780| 2e 2e 22 0a 58 20 20 20 | 20 20 69 66 20 67 72 65 |..".X | if gre|
|00003790| 70 20 27 5e 27 24 50 4f | 52 54 4e 41 4d 45 27 5b |p '^'$PO|RTNAME'[|
|000037a0| 20 09 5d 5b 20 09 5d 2a | 27 20 2f 65 74 63 2f 73 | .][ .]*|' /etc/s|
|000037b0| 65 72 76 69 63 65 73 20 | 3e 2f 64 65 76 2f 6e 75 |ervices |>/dev/nu|
|000037c0| 6c 6c 20 32 3e 26 31 0a | 58 20 20 20 20 20 74 68 |ll 2>&1.|X th|
|000037d0| 65 6e 20 65 63 68 6f 20 | 22 41 61 61 63 6b 21 20 |en echo |"Aaack! |
|000037e0| 24 50 4f 52 54 4e 41 4d | 45 20 69 73 20 61 6c 72 |$PORTNAM|E is alr|
|000037f0| 65 61 64 79 20 75 73 65 | 64 20 69 6e 20 2f 65 74 |eady use|d in /et|
|00003800| 63 2f 73 65 72 76 69 63 | 65 73 2e 20 45 78 69 74 |c/servic|es. Exit|
|00003810| 69 6e 67 2e 22 0a 58 09 | 20 20 65 78 69 74 20 31 |ing.".X.| exit 1|
|00003820| 0a 58 20 20 20 20 20 66 | 69 0a 58 20 20 20 20 20 |.X f|i.X |
|00003830| 65 63 68 6f 20 22 21 20 | 65 63 68 6f 20 24 50 4f |echo "! |echo $PO|
|00003840| 52 54 4e 41 4d 45 27 09 | 31 31 33 2f 74 63 70 27 |RTNAME'.|113/tcp'|
|00003850| 20 3e 3e 20 2f 65 74 63 | 2f 73 65 72 76 69 63 65 | >> /etc|/service|
|00003860| 73 3a 20 22 20 7c 20 74 | 72 20 2d 64 20 27 5c 30 |s: " | t|r -d '\0|
|00003870| 31 32 27 0a 58 20 20 20 | 20 20 72 65 61 64 20 6c |12'.X | read l|
|00003880| 69 6e 65 0a 58 20 20 20 | 20 20 65 63 68 6f 20 22 |ine.X | echo "|
|00003890| 24 50 4f 52 54 4e 41 4d | 45 22 27 09 09 31 31 33 |$PORTNAM|E"'..113|
|000038a0| 2f 74 63 70 27 20 3e 3e | 20 2f 65 74 63 2f 73 65 |/tcp' >>| /etc/se|
|000038b0| 72 76 69 63 65 73 0a 58 | 66 69 0a 58 0a 58 65 63 |rvices.X|fi.X.Xec|
|000038c0| 68 6f 20 22 35 2e 20 45 | 6e 61 62 6c 65 20 61 75 |ho "5. E|nable au|
|000038d0| 74 68 20 69 6e 20 2f 65 | 74 63 2f 69 6e 65 74 64 |th in /e|tc/inetd|
|000038e0| 2e 63 6f 6e 66 2e 22 0a | 58 65 63 68 6f 20 22 4c |.conf.".|Xecho "L|
|000038f0| 65 74 20 6d 65 20 67 6c | 61 6e 63 65 20 61 74 20 |et me gl|ance at |
|00003900| 2f 65 74 63 2f 69 6e 65 | 74 64 2e 63 6f 6e 66 20 |/etc/ine|td.conf |
|00003910| 66 6f 72 20 79 6f 75 2e | 2e 2e 22 0a 58 69 66 20 |for you.|..".Xif |
|00003920| 67 72 65 70 20 27 5e 27 | 22 24 50 4f 52 54 4e 41 |grep '^'|"$PORTNA|
|00003930| 4d 45 22 27 5b 20 09 5d | 27 20 2f 65 74 63 2f 69 |ME"'[ .]|' /etc/i|
|00003940| 6e 65 74 64 2e 63 6f 6e | 66 20 3e 2f 64 65 76 2f |netd.con|f >/dev/|
|00003950| 6e 75 6c 6c 20 32 3e 26 | 31 0a 58 74 68 65 6e 20 |null 2>&|1.Xthen |
|00003960| 65 63 68 6f 20 22 4f 6b | 61 79 2c 20 69 74 27 73 |echo "Ok|ay, it's|
|00003970| 20 61 6c 72 65 61 64 79 | 20 74 68 65 72 65 2e 20 | already| there. |
|00003980| 54 68 61 74 27 73 20 69 | 74 21 22 0a 58 20 20 20 |That's i|t!".X |
|00003990| 20 20 65 78 69 74 20 30 | 0a 58 66 69 0a 58 69 66 | exit 0|.Xfi.Xif|
|000039a0| 20 67 72 65 70 20 27 74 | 65 6c 6e 65 74 2e 2a 72 | grep 't|elnet.*r|
|000039b0| 6f 6f 74 27 20 2f 65 74 | 63 2f 69 6e 65 74 64 2e |oot' /et|c/inetd.|
|000039c0| 63 6f 6e 66 20 3e 2f 64 | 65 76 2f 6e 75 6c 6c 20 |conf >/d|ev/null |
|000039d0| 32 3e 26 31 0a 58 74 68 | 65 6e 20 65 63 68 6f 20 |2>&1.Xth|en echo |
|000039e0| 22 49 74 27 73 20 6e 6f | 74 20 74 68 65 72 65 20 |"It's no|t there |
|000039f0| 79 65 74 2e 20 48 6d 6d | 6d 2c 20 6c 6f 6f 6b 73 |yet. Hmm|m, looks|
|00003a00| 20 6c 69 6b 65 20 79 6f | 75 20 68 61 76 65 20 61 | like yo|u have a|
|00003a10| 20 53 75 6e 2d 73 74 79 | 6c 65 20 69 6e 65 74 64 | Sun-sty|le inetd|
|00003a20| 2e 22 0a 58 20 20 20 20 | 20 65 63 68 6f 20 22 21 |.".X | echo "!|
|00003a30| 20 65 63 68 6f 20 24 50 | 4f 52 54 4e 41 4d 45 27 | echo $P|ORTNAME'|
|00003a40| 20 73 74 72 65 61 6d 20 | 74 63 70 20 6e 6f 77 61 | stream |tcp nowa|
|00003a50| 69 74 20 72 6f 6f 74 20 | 27 24 41 55 54 48 44 27 |it root |'$AUTHD'|
|00003a60| 20 61 75 74 68 64 27 20 | 3e 3e 20 2f 65 74 63 2f | authd' |>> /etc/|
|00003a70| 69 6e 65 74 64 2e 63 6f | 6e 66 3a 20 22 20 7c 20 |inetd.co|nf: " | |
|00003a80| 74 72 20 2d 64 20 27 5c | 30 31 32 27 0a 58 20 20 |tr -d '\|012'.X |
|00003a90| 20 20 20 72 65 61 64 20 | 6c 69 6e 65 0a 58 20 20 | read |line.X |
|00003aa0| 20 20 20 65 63 68 6f 20 | 22 24 50 4f 52 54 4e 41 | echo |"$PORTNA|
|00003ab0| 4d 45 22 27 09 73 74 72 | 65 61 6d 09 74 63 70 09 |ME"'.str|eam.tcp.|
|00003ac0| 6e 6f 77 61 69 74 09 72 | 6f 6f 74 09 27 22 24 41 |nowait.r|oot.'"$A|
|00003ad0| 55 54 48 44 22 27 09 61 | 75 74 68 64 27 20 3e 3e |UTHD"'.a|uthd' >>|
|00003ae0| 20 2f 65 74 63 2f 69 6e | 65 74 64 2e 63 6f 6e 66 | /etc/in|etd.conf|
|00003af0| 0a 58 65 6c 73 65 20 65 | 63 68 6f 20 22 49 74 27 |.Xelse e|cho "It'|
|00003b00| 73 20 6e 6f 74 20 74 68 | 65 72 65 20 79 65 74 2e |s not th|ere yet.|
|00003b10| 22 0a 58 20 20 20 20 20 | 65 63 68 6f 20 22 21 20 |".X |echo "! |
|00003b20| 65 63 68 6f 20 24 50 4f | 52 54 4e 41 4d 45 27 20 |echo $PO|RTNAME' |
|00003b30| 73 74 72 65 61 6d 20 74 | 63 70 20 6e 6f 77 61 69 |stream t|cp nowai|
|00003b40| 74 20 27 24 41 55 54 48 | 44 27 20 61 75 74 68 64 |t '$AUTH|D' authd|
|00003b50| 27 20 3e 3e 20 2f 65 74 | 63 2f 69 6e 65 74 64 2e |' >> /et|c/inetd.|
|00003b60| 63 6f 6e 66 3a 20 22 20 | 7c 20 74 72 20 2d 64 20 |conf: " || tr -d |
|00003b70| 27 5c 30 31 32 27 0a 58 | 20 20 20 20 20 72 65 61 |'\012'.X| rea|
|00003b80| 64 20 6c 69 6e 65 0a 58 | 20 20 20 20 20 65 63 68 |d line.X| ech|
|00003b90| 6f 20 22 24 50 4f 52 54 | 4e 41 4d 45 22 27 09 73 |o "$PORT|NAME"'.s|
|00003ba0| 74 72 65 61 6d 09 74 63 | 70 09 6e 6f 77 61 69 74 |tream.tc|p.nowait|
|00003bb0| 09 27 22 24 41 55 54 48 | 44 22 27 09 61 75 74 68 |.'"$AUTH|D"'.auth|
|00003bc0| 64 27 20 3e 3e 20 2f 65 | 74 63 2f 69 6e 65 74 64 |d' >> /e|tc/inetd|
|00003bd0| 2e 63 6f 6e 66 0a 58 66 | 69 0a 58 0a 58 65 63 68 |.conf.Xf|i.X.Xech|
|00003be0| 6f 20 22 36 2e 20 4c 65 | 74 20 69 6e 65 74 64 20 |o "6. Le|t inetd |
|00003bf0| 6b 6e 6f 77 20 61 62 6f | 75 74 20 74 68 65 20 6e |know abo|ut the n|
|00003c00| 65 77 20 73 65 72 76 69 | 63 65 2e 22 0a 58 65 63 |ew servi|ce.".Xec|
|00003c10| 68 6f 20 22 4f 6e 20 6d | 6f 73 74 20 6d 61 63 68 |ho "On m|ost mach|
|00003c20| 69 6e 65 73 20 79 6f 75 | 20 68 61 76 65 20 74 6f |ines you| have to|
|00003c30| 20 25 20 6b 69 6c 6c 20 | 2d 48 55 50 20 6e 6e 22 | % kill |-HUP nn"|
|00003c40| 0a 58 65 63 68 6f 20 22 | 77 68 65 72 65 20 6e 6e |.Xecho "|where nn|
|00003c50| 20 69 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | is the |number o|
|00003c60| 66 20 74 68 65 20 69 6e | 65 74 64 20 70 72 6f 63 |f the in|etd proc|
|00003c70| 65 73 73 2e 22 0a 58 65 | 63 68 6f 20 22 48 65 72 |ess.".Xe|cho "Her|
|00003c80| 65 27 73 20 77 68 61 74 | 20 70 73 20 61 63 75 67 |e's what| ps acug|
|00003c90| 78 20 73 68 6f 77 73 20 | 61 62 6f 75 74 20 69 6e |x shows |about in|
|00003ca0| 65 74 64 3a 22 0a 58 70 | 73 20 61 63 75 67 78 20 |etd:".Xp|s acugx |
|00003cb0| 7c 20 73 65 64 20 2d 6e | 20 2d 65 20 31 70 20 2d || sed -n| -e 1p -|
|00003cc0| 65 20 2f 69 6e 65 74 64 | 2f 70 0a 58 65 63 68 6f |e /inetd|/p.Xecho|
|00003cd0| 20 22 49 27 6c 6c 20 6c | 65 61 76 65 20 74 68 69 | "I'll l|eave thi|
|00003ce0| 73 20 73 74 65 70 20 74 | 6f 20 79 6f 75 2e 20 54 |s step t|o you. T|
|00003cf0| 68 61 74 27 73 20 69 74 | 21 22 0a 58 0a 58 65 78 |hat's it|!".X.Xex|
|00003d00| 69 74 20 30 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |it 0.END|_OF_FILE|
|00003d10| 0a 69 66 20 74 65 73 74 | 20 33 36 33 31 20 2d 6e |.if test| 3631 -n|
|00003d20| 65 20 60 77 63 20 2d 63 | 20 3c 27 49 4e 53 54 41 |e `wc -c| <'INSTA|
|00003d30| 4c 4c 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |LL'`; th|en. e|
|00003d40| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 49 4e 53 |cho shar|: \"'INS|
|00003d50| 54 41 4c 4c 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |TALL'\" |unpacked|
|00003d60| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00003d70| 21 0a 66 69 0a 63 68 6d | 6f 64 20 2b 78 20 27 49 |!.fi.chm|od +x 'I|
|00003d80| 4e 53 54 41 4c 4c 27 0a | 23 20 65 6e 64 20 6f 66 |NSTALL'.|# end of|
|00003d90| 20 27 49 4e 53 54 41 4c | 4c 27 0a 66 69 0a 69 66 | 'INSTAL|L'.fi.if|
|00003da0| 20 74 65 73 74 20 2d 66 | 20 27 4d 61 6b 65 66 69 | test -f| 'Makefi|
|00003db0| 6c 65 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |le' -a "|${1}" !=|
|00003dc0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00003dd0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00003de0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00003df0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 4d 61 6b |ting fil|e \"'Mak|
|00003e00| 65 66 69 6c 65 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |efile'\"|.else.ec|
|00003e10| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00003e20| 69 6e 67 20 5c 22 27 4d | 61 6b 65 66 69 6c 65 27 |ing \"'M|akefile'|
|00003e30| 5c 22 20 5c 28 35 36 39 | 20 63 68 61 72 61 63 74 |\" \(569| charact|
|00003e40| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00003e50| 2f 22 20 3e 27 4d 61 6b | 65 66 69 6c 65 27 20 3c |/" >'Mak|efile' <|
|00003e60| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00003e70| 43 43 3d 63 63 0a 58 43 | 43 4f 50 54 53 3d 2d 67 |CC=cc.XC|COPTS=-g|
|00003e80| 0a 58 0a 58 64 65 66 61 | 75 6c 74 3a 20 61 6c 6c |.X.Xdefa|ult: all|
|00003e90| 0a 58 0a 58 73 68 61 72 | 3a 20 61 75 74 68 64 2e |.X.Xshar|: authd.|
|00003ea0| 73 68 61 72 0a 58 0a 58 | 61 6c 6c 3a 20 61 75 74 |shar.X.X|all: aut|
|00003eb0| 68 64 20 74 63 70 75 69 | 64 20 74 63 70 75 6e 61 |hd tcpui|d tcpuna|
|00003ec0| 6d 65 20 61 75 74 68 75 | 73 65 72 2e 6f 20 74 65 |me authu|ser.o te|
|00003ed0| 73 74 0a 58 0a 58 61 75 | 74 68 64 3a 20 61 75 74 |st.X.Xau|thd: aut|
|00003ee0| 68 64 2e 63 20 4d 61 6b | 65 66 69 6c 65 0a 58 09 |hd.c Mak|efile.X.|
|00003ef0| 24 28 43 43 29 20 24 28 | 43 43 4f 50 54 53 29 20 |$(CC) $(|CCOPTS) |
|00003f00| 2d 6f 20 61 75 74 68 64 | 20 61 75 74 68 64 2e 63 |-o authd| authd.c|
|00003f10| 0a 58 0a 58 74 63 70 75 | 69 64 3a 20 61 75 74 68 |.X.Xtcpu|id: auth|
|00003f20| 64 20 4d 61 6b 65 66 69 | 6c 65 0a 58 09 72 6d 20 |d Makefi|le.X.rm |
|00003f30| 2d 66 20 74 63 70 75 69 | 64 0a 58 09 6c 6e 20 61 |-f tcpui|d.X.ln a|
|00003f40| 75 74 68 64 20 74 63 70 | 75 69 64 0a 58 0a 58 74 |uthd tcp|uid.X.Xt|
|00003f50| 63 70 75 6e 61 6d 65 3a | 20 61 75 74 68 64 20 4d |cpuname:| authd M|
|00003f60| 61 6b 65 66 69 6c 65 0a | 58 09 72 6d 20 2d 66 20 |akefile.|X.rm -f |
|00003f70| 74 63 70 75 6e 61 6d 65 | 0a 58 09 6c 6e 20 61 75 |tcpuname|.X.ln au|
|00003f80| 74 68 64 20 74 63 70 75 | 6e 61 6d 65 0a 58 0a 58 |thd tcpu|name.X.X|
|00003f90| 61 75 74 68 75 73 65 72 | 2e 6f 3a 20 61 75 74 68 |authuser|.o: auth|
|00003fa0| 75 73 65 72 2e 63 20 61 | 75 74 68 75 73 65 72 2e |user.c a|uthuser.|
|00003fb0| 68 20 4d 61 6b 65 66 69 | 6c 65 0a 58 09 24 28 43 |h Makefi|le.X.$(C|
|00003fc0| 43 29 20 24 28 43 43 4f | 50 54 53 29 20 2d 63 20 |C) $(CCO|PTS) -c |
|00003fd0| 61 75 74 68 75 73 65 72 | 2e 63 0a 58 0a 58 74 65 |authuser|.c.X.Xte|
|00003fe0| 73 74 3a 20 61 75 74 68 | 75 73 65 72 2e 6f 20 61 |st: auth|user.o a|
|00003ff0| 75 74 68 75 73 65 72 2e | 68 20 74 65 73 74 2e 63 |uthuser.|h test.c|
|00004000| 20 4d 61 6b 65 66 69 6c | 65 0a 58 09 24 28 43 43 | Makefil|e.X.$(CC|
|00004010| 29 20 24 28 43 43 4f 50 | 54 53 29 20 2d 6f 20 74 |) $(CCOP|TS) -o t|
|00004020| 65 73 74 20 74 65 73 74 | 2e 63 20 61 75 74 68 75 |est test|.c authu|
|00004030| 73 65 72 2e 6f 0a 58 0a | 58 61 75 74 68 64 2e 73 |ser.o.X.|Xauthd.s|
|00004040| 68 61 72 3a 20 46 49 4c | 45 53 0a 58 09 73 68 61 |har: FIL|ES.X.sha|
|00004050| 72 20 60 63 61 74 20 46 | 49 4c 45 53 60 20 3e 20 |r `cat F|ILES` > |
|00004060| 61 75 74 68 64 2e 73 68 | 61 72 0a 58 09 63 68 6d |authd.sh|ar.X.chm|
|00004070| 6f 64 20 34 30 30 20 61 | 75 74 68 64 2e 73 68 61 |od 400 a|uthd.sha|
|00004080| 72 0a 58 0a 58 69 6e 73 | 74 61 6c 6c 3a 0a 58 09 |r.X.Xins|tall:.X.|
|00004090| 65 63 68 6f 20 27 52 75 | 6e 20 74 68 65 20 49 4e |echo 'Ru|n the IN|
|000040a0| 53 54 41 4c 4c 20 73 68 | 65 6c 6c 20 73 63 72 69 |STALL sh|ell scri|
|000040b0| 70 74 2e 27 0a 58 0a 58 | 63 6c 65 61 6e 3a 0a 58 |pt.'.X.X|clean:.X|
|000040c0| 09 72 6d 20 2d 66 20 2a | 2e 6f 0a 45 4e 44 5f 4f |.rm -f *|.o.END_O|
|000040d0| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 35 |F_FILE.i|f test 5|
|000040e0| 36 39 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |69 -ne `|wc -c <'|
|000040f0| 4d 61 6b 65 66 69 6c 65 | 27 60 3b 20 74 68 65 6e |Makefile|'`; then|
|00004100| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00004110| 5c 22 27 4d 61 6b 65 66 | 69 6c 65 27 5c 22 20 75 |\"'Makef|ile'\" u|
|00004120| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00004130| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00004140| 64 20 6f 66 20 27 4d 61 | 6b 65 66 69 6c 65 27 0a |d of 'Ma|kefile'.|
|00004150| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 61 |fi.if te|st -f 'a|
|00004160| 75 74 68 64 2e 38 27 20 | 2d 61 20 22 24 7b 31 7d |uthd.8' |-a "${1}|
|00004170| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00004180| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00004190| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|000041a0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|000041b0| 27 61 75 74 68 64 2e 38 | 27 5c 22 0a 65 6c 73 65 |'authd.8|'\".else|
|000041c0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|000041d0| 61 63 74 69 6e 67 20 5c | 22 27 61 75 74 68 64 2e |acting \|"'authd.|
|000041e0| 38 27 5c 22 20 5c 28 31 | 35 33 32 20 63 68 61 72 |8'\" \(1|532 char|
|000041f0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00004200| 5e 58 2f 2f 22 20 3e 27 | 61 75 74 68 64 2e 38 27 |^X//" >'|authd.8'|
|00004210| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00004220| 0a 58 2e 54 48 20 61 75 | 74 68 64 20 38 0a 58 2e |.X.TH au|thd 8.X.|
|00004230| 53 48 20 4e 41 4d 45 0a | 58 61 75 74 68 64 20 5c |SH NAME.|Xauthd \|
|00004240| 2d 20 41 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |- Authen|tication|
|00004250| 20 53 65 72 76 65 72 20 | 64 61 65 6d 6f 6e 0a 58 | Server |daemon.X|
|00004260| 2e 53 48 20 53 59 4e 54 | 41 58 0a 58 61 75 74 68 |.SH SYNT|AX.Xauth|
|00004270| 64 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |d.X.SH D|ESCRIPTI|
|00004280| 4f 4e 0a 58 2e 49 20 61 | 75 74 68 64 0a 58 69 73 |ON.X.I a|uthd.Xis|
|00004290| 20 61 20 64 61 65 6d 6f | 6e 20 69 6d 70 6c 65 6d | a daemo|n implem|
|000042a0| 65 6e 74 69 6e 67 20 74 | 68 65 0a 58 52 46 43 20 |enting t|he.XRFC |
|000042b0| 39 33 31 20 41 75 74 68 | 65 6e 74 69 63 61 74 69 |931 Auth|enticati|
|000042c0| 6f 6e 20 53 65 72 76 65 | 72 20 70 72 6f 74 6f 63 |on Serve|r protoc|
|000042d0| 6f 6c 2e 0a 58 49 74 20 | 73 68 6f 75 6c 64 20 62 |ol..XIt |should b|
|000042e0| 65 20 69 6e 76 6f 6b 65 | 64 20 62 79 20 61 20 6e |e invoke|d by a n|
|000042f0| 65 74 77 6f 72 6b 20 73 | 65 72 76 65 72 2c 0a 58 |etwork s|erver,.X|
|00004300| 73 75 63 68 20 61 73 0a | 58 2e 49 20 61 74 74 61 |such as.|X.I atta|
|00004310| 63 68 70 6f 72 74 28 31 | 29 0a 58 6f 72 0a 58 2e |chport(1|).Xor.X.|
|00004320| 49 20 69 6e 65 74 64 28 | 38 29 2c 0a 58 66 6f 72 |I inetd(|8),.Xfor|
|00004330| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 73 20 74 6f 20 | connect|ions to |
|00004340| 54 43 50 20 70 6f 72 74 | 20 31 31 33 20 28 61 75 |TCP port| 113 (au|
|00004350| 74 68 29 2e 0a 58 2e 50 | 50 0a 58 54 68 65 20 63 |th)..X.P|P.XThe c|
|00004360| 6c 69 65 6e 74 20 68 6f | 73 74 0a 58 67 69 76 65 |lient ho|st.Xgive|
|00004370| 73 0a 58 2e 49 20 61 75 | 74 68 64 0a 58 74 77 6f |s.X.I au|thd.Xtwo|
|00004380| 20 6e 75 6d 62 65 72 73 | 20 73 65 70 61 72 61 74 | numbers| separat|
|00004390| 65 64 20 62 79 20 61 20 | 63 6f 6d 6d 61 2e 0a 58 |ed by a |comma..X|
|000043a0| 2e 49 20 61 75 74 68 64 | 0a 58 69 6e 74 65 72 70 |.I authd|.Xinterp|
|000043b0| 72 65 74 73 20 74 68 65 | 20 6e 75 6d 62 65 72 73 |rets the| numbers|
|000043c0| 20 61 73 20 54 43 50 20 | 70 6f 72 74 20 6e 75 6d | as TCP |port num|
|000043d0| 62 65 72 73 0a 58 66 6f | 72 20 74 68 65 20 6c 6f |bers.Xfo|r the lo|
|000043e0| 63 61 6c 20 61 6e 64 20 | 72 65 6d 6f 74 65 20 73 |cal and |remote s|
|000043f0| 69 64 65 73 20 72 65 73 | 70 65 63 74 69 76 65 6c |ides res|pectivel|
|00004400| 79 0a 58 6f 66 20 61 20 | 54 43 50 20 63 6f 6e 6e |y.Xof a |TCP conn|
|00004410| 65 63 74 69 6f 6e 20 62 | 65 74 77 65 65 6e 20 74 |ection b|etween t|
|00004420| 68 69 73 20 68 6f 73 74 | 20 61 6e 64 20 74 68 65 |his host| and the|
|00004430| 20 63 6c 69 65 6e 74 20 | 68 6f 73 74 2e 0a 58 49 | client |host..XI|
|00004440| 74 20 72 65 74 75 72 6e | 73 20 61 20 6c 69 6e 65 |t return|s a line|
|00004450| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 0a 58 2e 45 | of the |form.X.E|
|00004460| 58 0a 58 6c 6f 63 61 6c | 70 6f 72 74 2c 20 72 65 |X.Xlocal|port, re|
|00004470| 6d 6f 74 65 70 6f 72 74 | 3a 20 55 53 45 52 49 44 |moteport|: USERID|
|00004480| 3a 20 55 4e 49 58 3a 20 | 75 73 65 72 6e 61 6d 65 |: UNIX: |username|
|00004490| 0a 58 2e 45 45 0a 58 77 | 68 65 72 65 20 75 73 65 |.X.EE.Xw|here use|
|000044a0| 72 6e 61 6d 65 0a 58 69 | 73 20 74 68 65 20 6e 61 |rname.Xi|s the na|
|000044b0| 6d 65 20 6f 66 20 74 68 | 65 20 75 73 65 72 20 6f |me of th|e user o|
|000044c0| 6e 20 74 68 69 73 20 73 | 69 64 65 20 6f 66 0a 58 |n this s|ide of.X|
|000044d0| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 63 6f |the spec|ified co|
|000044e0| 6e 6e 65 63 74 69 6f 6e | 2e 0a 58 49 66 0a 58 2e |nnection|..XIf.X.|
|000044f0| 49 20 61 75 74 68 64 0a | 58 64 6f 65 73 20 6e 6f |I authd.|Xdoes no|
|00004500| 74 20 68 61 76 65 20 61 | 6e 20 61 75 74 68 65 6e |t have a|n authen|
|00004510| 74 69 63 61 74 69 6f 6e | 20 65 6e 74 72 79 20 66 |tication| entry f|
|00004520| 6f 72 20 74 68 61 74 20 | 63 6f 6e 6e 65 63 74 69 |or that |connecti|
|00004530| 6f 6e 2c 0a 58 69 74 20 | 72 65 74 75 72 6e 73 20 |on,.Xit |returns |
|00004540| 61 20 6c 69 6e 65 20 6f | 66 20 74 68 65 20 66 6f |a line o|f the fo|
|00004550| 72 6d 0a 58 2e 45 58 0a | 58 6c 6f 63 61 6c 70 6f |rm.X.EX.|Xlocalpo|
|00004560| 72 74 2c 20 72 65 6d 6f | 74 65 70 6f 72 74 3a 20 |rt, remo|teport: |
|00004570| 45 52 52 4f 52 3a 20 55 | 4e 4b 4e 4f 57 4e 2d 45 |ERROR: U|NKNOWN-E|
|00004580| 52 52 4f 52 2e 0a 58 2e | 45 45 0a 58 2e 50 50 0a |RROR..X.|EE.X.PP.|
|00004590| 58 2e 53 48 20 44 49 41 | 47 4e 4f 53 54 49 43 53 |X.SH DIA|GNOSTICS|
|000045a0| 0a 58 2e 54 50 0a 58 4e | 6f 6e 65 2e 0a 58 2e 53 |.X.TP.XN|one..X.S|
|000045b0| 48 20 42 55 47 53 0a 58 | 4e 6f 6e 65 20 6b 6e 6f |H BUGS.X|None kno|
|000045c0| 77 6e 2e 0a 58 2e 53 48 | 20 56 45 52 53 49 4f 4e |wn..X.SH| VERSION|
|000045d0| 0a 58 61 75 74 68 64 20 | 76 65 72 73 69 6f 6e 20 |.Xauthd |version |
|000045e0| 33 2e 30 31 2c 20 46 65 | 62 72 75 61 72 79 20 37 |3.01, Fe|bruary 7|
|000045f0| 2c 20 31 39 39 31 2e 0a | 58 2e 53 48 20 41 55 54 |, 1991..|X.SH AUT|
|00004600| 48 4f 52 0a 58 50 6c 61 | 63 65 64 20 69 6e 74 6f |HOR.XPla|ced into|
|00004610| 20 74 68 65 20 70 75 62 | 6c 69 63 20 64 6f 6d 61 | the pub|lic doma|
|00004620| 69 6e 20 62 79 20 44 61 | 6e 69 65 6c 20 4a 2e 20 |in by Da|niel J. |
|00004630| 42 65 72 6e 73 74 65 69 | 6e 2e 0a 58 50 61 72 74 |Bernstei|n..XPart|
|00004640| 69 61 6c 6c 79 20 69 6e | 73 70 69 72 65 64 20 62 |ially in|spired b|
|00004650| 79 20 63 6f 64 65 20 77 | 72 69 74 74 65 6e 20 62 |y code w|ritten b|
|00004660| 79 20 56 69 63 20 41 62 | 65 6c 6c 20 66 6f 72 20 |y Vic Ab|ell for |
|00004670| 6f 66 69 6c 65 73 2e 0a | 58 2e 53 48 20 52 45 46 |ofiles..|X.SH REF|
|00004680| 45 52 45 4e 43 45 53 0a | 58 54 68 65 20 61 75 74 |ERENCES.|XThe aut|
|00004690| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 73 65 72 76 |henticat|ion serv|
|000046a0| 65 72 20 69 73 20 6d 6f | 72 65 20 73 65 63 75 72 |er is mo|re secur|
|000046b0| 65 20 74 68 61 6e 20 70 | 61 73 73 77 6f 72 64 73 |e than p|asswords|
|000046c0| 0a 58 69 6e 20 73 6f 6d | 65 20 77 61 79 73 2c 20 |.Xin som|e ways, |
|000046d0| 62 75 74 20 6c 65 73 73 | 20 73 65 63 75 72 65 20 |but less| secure |
|000046e0| 74 68 61 6e 20 70 61 73 | 73 77 6f 72 64 73 20 69 |than pas|swords i|
|000046f0| 6e 20 6d 61 6e 79 20 77 | 61 79 73 2e 0a 58 28 49 |n many w|ays..X(I|
|00004700| 74 27 73 20 63 65 72 74 | 61 69 6e 6c 79 20 62 65 |t's cert|ainly be|
|00004710| 74 74 65 72 20 74 68 61 | 6e 20 6e 6f 20 70 61 73 |tter tha|n no pas|
|00004720| 73 77 6f 72 64 20 61 74 | 20 61 6c 6c 2d 2d 2d 65 |sword at| all---e|
|00004730| 2e 67 2e 2c 20 66 6f 72 | 0a 58 6d 61 69 6c 20 6f |.g., for|.Xmail o|
|00004740| 72 20 6e 65 77 73 2e 29 | 0a 58 49 74 20 69 73 20 |r news.)|.XIt is |
|00004750| 6e 6f 74 20 74 68 65 20 | 66 69 6e 61 6c 20 73 6f |not the |final so|
|00004760| 6c 75 74 69 6f 6e 2e 0a | 58 46 6f 72 20 61 6e 20 |lution..|XFor an |
|00004770| 65 78 63 65 6c 6c 65 6e | 74 20 64 69 73 63 75 73 |excellen|t discus|
|00004780| 73 69 6f 6e 20 6f 66 20 | 73 65 63 75 72 69 74 79 |sion of |security|
|00004790| 20 70 72 6f 62 6c 65 6d | 73 20 77 69 74 68 69 6e | problem|s within|
|000047a0| 0a 58 74 68 65 20 54 43 | 50 2f 49 50 20 70 72 6f |.Xthe TC|P/IP pro|
|000047b0| 74 6f 63 6f 6c 20 73 75 | 69 74 65 2c 20 73 65 65 |tocol su|ite, see|
|000047c0| 0a 58 53 74 65 76 65 20 | 42 65 6c 6c 6f 76 69 6e |.XSteve |Bellovin|
|000047d0| 27 73 20 61 72 74 69 63 | 6c 65 0a 58 60 60 53 65 |'s artic|le.X``Se|
|000047e0| 63 75 72 69 74 79 20 50 | 72 6f 62 6c 65 6d 73 20 |curity P|roblems |
|000047f0| 69 6e 20 74 68 65 20 54 | 43 50 2f 49 50 20 50 72 |in the T|CP/IP Pr|
|00004800| 6f 74 6f 63 6f 6c 20 53 | 75 69 74 65 2e 27 27 0a |otocol S|uite.''.|
|00004810| 58 2e 53 48 20 22 53 45 | 45 20 41 4c 53 4f 22 0a |X.SH "SE|E ALSO".|
|00004820| 58 61 75 74 68 74 63 70 | 28 31 29 2c 0a 58 61 74 |Xauthtcp|(1),.Xat|
|00004830| 74 61 63 68 70 6f 72 74 | 28 31 29 2c 0a 58 61 75 |tachport|(1),.Xau|
|00004840| 74 68 75 73 65 72 28 33 | 29 2c 0a 58 74 63 70 28 |thuser(3|),.Xtcp(|
|00004850| 34 29 2c 0a 58 69 6e 65 | 74 64 28 38 29 0a 45 4e |4),.Xine|td(8).EN|
|00004860| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00004870| 74 20 31 35 33 32 20 2d | 6e 65 20 60 77 63 20 2d |t 1532 -|ne `wc -|
|00004880| 63 20 3c 27 61 75 74 68 | 64 2e 38 27 60 3b 20 74 |c <'auth|d.8'`; t|
|00004890| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000048a0| 72 3a 20 5c 22 27 61 75 | 74 68 64 2e 38 27 5c 22 |r: \"'au|thd.8'\"|
|000048b0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|000048c0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|000048d0| 65 6e 64 20 6f 66 20 27 | 61 75 74 68 64 2e 38 27 |end of '|authd.8'|
|000048e0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|000048f0| 61 75 74 68 75 73 65 72 | 2e 33 27 20 2d 61 20 22 |authuser|.3' -a "|
|00004900| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004910| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00004920| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00004930| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00004940| 65 20 5c 22 27 61 75 74 | 68 75 73 65 72 2e 33 27 |e \"'aut|huser.3'|
|00004950| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004960| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004970| 27 61 75 74 68 75 73 65 | 72 2e 33 27 5c 22 20 5c |'authuse|r.3'\" \|
|00004980| 28 33 33 35 34 20 63 68 | 61 72 61 63 74 65 72 73 |(3354 ch|aracters|
|00004990| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000049a0| 3e 27 61 75 74 68 75 73 | 65 72 2e 33 27 20 3c 3c |>'authus|er.3' <<|
|000049b0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2e |'END_OF_|FILE'.X.|
|000049c0| 54 48 20 61 75 74 68 75 | 73 65 72 20 33 0a 58 2e |TH authu|ser 3.X.|
|000049d0| 53 48 20 4e 41 4d 45 0a | 58 61 75 74 68 75 73 65 |SH NAME.|Xauthuse|
|000049e0| 72 20 5c 2d 20 72 65 6d | 6f 74 65 20 61 75 74 68 |r \- rem|ote auth|
|000049f0| 65 6e 74 69 63 61 74 69 | 6f 6e 20 6c 69 62 72 61 |enticati|on libra|
|00004a00| 72 79 20 75 73 69 6e 67 | 20 74 68 65 20 41 75 74 |ry using| the Aut|
|00004a10| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 53 65 72 76 |henticat|ion Serv|
|00004a20| 65 72 0a 58 2e 53 48 20 | 53 59 4e 54 41 58 0a 58 |er.X.SH |SYNTAX.X|
|00004a30| 2e 42 20 23 69 6e 63 6c | 75 64 65 20 3c 61 75 74 |.B #incl|ude <aut|
|00004a40| 68 75 73 65 72 2e 68 3e | 0a 58 2e 50 50 0a 58 2e |huser.h>|.X.PP.X.|
|00004a50| 42 20 75 6e 73 69 67 6e | 65 64 20 73 68 6f 72 74 |B unsign|ed short|
|00004a60| 20 61 75 74 68 5f 74 63 | 70 70 6f 72 74 3b 0a 58 | auth_tc|pport;.X|
|00004a70| 2e 50 50 0a 58 2e 42 20 | 63 68 61 72 20 2a 61 75 |.PP.X.B |char *au|
|00004a80| 74 68 5f 78 6c 69 6e 65 | 28 75 73 65 72 2c 66 64 |th_xline|(user,fd|
|00004a90| 2c 26 69 6e 29 3b 0a 58 | 2e 50 50 0a 58 2e 42 20 |,&in);.X|.PP.X.B |
|00004aa0| 69 6e 74 20 61 75 74 68 | 5f 66 64 28 66 64 2c 26 |int auth|_fd(fd,&|
|00004ab0| 69 6e 2c 26 6c 6f 63 61 | 6c 2c 26 72 65 6d 6f 74 |in,&loca|l,&remot|
|00004ac0| 65 29 3b 0a 58 2e 50 50 | 0a 58 2e 42 20 63 68 61 |e);.X.PP|.X.B cha|
|00004ad0| 72 20 2a 61 75 74 68 5f | 74 63 70 75 73 65 72 28 |r *auth_|tcpuser(|
|00004ae0| 69 6e 2c 6c 6f 63 61 6c | 2c 72 65 6d 6f 74 65 29 |in,local|,remote)|
|00004af0| 3b 0a 58 2e 50 50 0a 58 | 2e 42 20 63 68 61 72 20 |;.X.PP.X|.B char |
|00004b00| 2a 75 73 65 72 3b 0a 58 | 2e 62 72 0a 58 2e 42 20 |*user;.X|.br.X.B |
|00004b10| 69 6e 74 20 66 64 3b 0a | 58 2e 62 72 0a 58 2e 42 |int fd;.|X.br.X.B|
|00004b20| 20 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 69 | unsigne|d long i|
|00004b30| 6e 3b 0a 58 2e 62 72 0a | 58 2e 42 20 75 6e 73 69 |n;.X.br.|X.B unsi|
|00004b40| 67 6e 65 64 20 73 68 6f | 72 74 20 6c 6f 63 61 6c |gned sho|rt local|
|00004b50| 3b 0a 58 2e 62 72 0a 58 | 2e 42 20 75 6e 73 69 67 |;.X.br.X|.B unsig|
|00004b60| 6e 65 64 20 73 68 6f 72 | 74 20 72 65 6d 6f 74 65 |ned shor|t remote|
|00004b70| 3b 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |;.X.SH D|ESCRIPTI|
|00004b80| 4f 4e 0a 58 54 68 65 0a | 58 2e 49 20 61 75 74 68 |ON.XThe.|X.I auth|
|00004b90| 75 73 65 72 0a 58 6c 69 | 62 72 61 72 79 20 70 72 |user.Xli|brary pr|
|00004ba0| 6f 76 69 64 65 73 20 61 | 20 73 69 6d 70 6c 65 20 |ovides a| simple |
|00004bb0| 69 6e 74 65 72 66 61 63 | 65 20 66 6f 72 0a 58 66 |interfac|e for.Xf|
|00004bc0| 69 6e 64 69 6e 67 20 6f | 75 74 20 74 68 65 20 72 |inding o|ut the r|
|00004bd0| 65 6d 6f 74 65 20 69 64 | 65 6e 74 69 74 79 0a 58 |emote id|entity.X|
|00004be0| 6f 66 20 61 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |of a con|nection |
|00004bf0| 74 68 72 6f 75 67 68 20 | 74 68 65 0a 58 41 75 74 |through |the.XAut|
|00004c00| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 53 65 72 76 |henticat|ion Serv|
|00004c10| 65 72 0a 58 61 73 20 73 | 70 65 63 69 66 69 65 64 |er.Xas s|pecified|
|00004c20| 20 62 79 20 52 46 43 20 | 39 33 31 2e 0a 58 55 73 | by RFC |931..XUs|
|00004c30| 65 20 74 68 65 20 2d 6c | 61 75 74 68 75 73 65 72 |e the -l|authuser|
|00004c40| 20 6c 6f 61 64 65 72 20 | 6f 70 74 69 6f 6e 0a 58 | loader |option.X|
|00004c50| 74 6f 20 63 6f 6d 70 69 | 6c 65 20 61 20 70 72 6f |to compi|le a pro|
|00004c60| 67 72 61 6d 20 77 69 74 | 68 20 74 68 69 73 20 6c |gram wit|h this l|
|00004c70| 69 62 72 61 72 79 2e 0a | 58 2e 50 50 0a 58 2e 42 |ibrary..|X.PP.X.B|
|00004c80| 20 61 75 74 68 5f 78 6c | 69 6e 65 28 75 73 65 72 | auth_xl|ine(user|
|00004c90| 2c 66 64 2c 26 69 6e 29 | 0a 58 72 65 74 75 72 6e |,fd,&in)|.Xreturn|
|00004ca0| 73 20 61 20 6c 69 6e 65 | 20 6f 66 20 74 68 65 20 |s a line| of the |
|00004cb0| 66 6f 72 6d 20 58 2d 41 | 75 74 68 2d 55 73 65 72 |form X-A|uth-User|
|00004cc0| 3a 20 75 73 65 72 20 6f | 72 20 58 2d 46 6f 72 67 |: user o|r X-Forg|
|00004cd0| 65 72 79 2d 42 79 3a 20 | 75 73 65 72 6e 61 6d 65 |ery-By: |username|
|00004ce0| 2c 0a 58 64 65 70 65 6e | 64 69 6e 67 20 75 70 6f |,.Xdepen|ding upo|
|00004cf0| 6e 20 77 68 61 74 20 74 | 68 65 20 68 6f 73 74 20 |n what t|he host |
|00004d00| 6f 6e 20 74 68 65 20 6f | 74 68 65 72 20 73 69 64 |on the o|ther sid|
|00004d10| 65 20 6f 66 0a 58 2e 42 | 20 66 64 0a 58 74 68 69 |e of.X.B| fd.Xthi|
|00004d20| 6e 6b 73 20 6f 66 20 74 | 68 65 20 75 73 65 72 2e |nks of t|he user.|
|00004d30| 0a 58 54 68 69 73 20 69 | 73 20 70 61 72 74 69 63 |.XThis i|s partic|
|00004d40| 75 6c 61 72 6c 79 20 61 | 70 70 72 6f 70 72 69 61 |ularly a|ppropria|
|00004d50| 74 65 20 66 6f 72 0a 58 | 6d 61 69 6c 20 61 6e 64 |te for.X|mail and|
|00004d60| 20 6e 65 77 73 20 68 65 | 61 64 65 72 73 2e 0a 58 | news he|aders..X|
|00004d70| 2e 50 50 0a 58 49 66 20 | 74 68 65 20 72 65 6d 6f |.PP.XIf |the remo|
|00004d80| 74 65 20 68 6f 73 74 20 | 72 65 70 6f 72 74 73 20 |te host |reports |
|00004d90| 74 68 61 74 0a 58 2e 42 | 20 75 73 65 72 0a 58 6f |that.X.B| user.Xo|
|00004da0| 77 6e 73 20 74 68 65 20 | 63 6f 6e 6e 65 63 74 69 |wns the |connecti|
|00004db0| 6f 6e 20 6f 6e 20 74 68 | 61 74 20 73 69 64 65 2c |on on th|at side,|
|00004dc0| 0a 58 2e 42 20 61 75 74 | 68 5f 78 6c 69 6e 65 0a |.X.B aut|h_xline.|
|00004dd0| 58 77 69 6c 6c 20 72 65 | 74 75 72 6e 20 58 2d 41 |Xwill re|turn X-A|
|00004de0| 75 74 68 2d 55 73 65 72 | 3a 20 75 73 65 72 2e 0a |uth-User|: user..|
|00004df0| 58 49 66 20 74 68 65 20 | 72 65 6d 6f 74 65 20 68 |XIf the |remote h|
|00004e00| 6f 73 74 20 72 65 70 6f | 72 74 73 20 74 68 61 74 |ost repo|rts that|
|00004e10| 20 61 20 64 69 66 66 65 | 72 65 6e 74 0a 58 2e 42 | a diffe|rent.X.B|
|00004e20| 20 75 73 65 72 6e 61 6d | 65 0a 58 6f 77 6e 73 20 | usernam|e.Xowns |
|00004e30| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 2c 0a |the conn|ection,.|
|00004e40| 58 2e 42 20 61 75 74 68 | 5f 78 6c 69 6e 65 0a 58 |X.B auth|_xline.X|
|00004e50| 77 69 6c 6c 20 72 65 74 | 75 72 6e 20 58 2d 46 6f |will ret|urn X-Fo|
|00004e60| 72 67 65 72 79 2d 42 79 | 3a 20 75 73 65 72 6e 61 |rgery-By|: userna|
|00004e70| 6d 65 2e 0a 58 49 66 20 | 75 73 65 72 20 69 73 20 |me..XIf |user is |
|00004e80| 4e 55 4c 4c 2c 0a 58 69 | 74 20 72 65 74 75 72 6e |NULL,.Xi|t return|
|00004e90| 73 20 58 2d 41 75 74 68 | 2d 55 73 65 72 3a 20 75 |s X-Auth|-User: u|
|00004ea0| 73 65 72 6e 61 6d 65 0a | 58 77 69 74 68 20 74 68 |sername.|Xwith th|
|00004eb0| 65 20 75 73 65 72 6e 61 | 6d 65 20 72 65 70 6f 72 |e userna|me repor|
|00004ec0| 74 65 64 20 62 79 20 74 | 68 65 20 72 65 6d 6f 74 |ted by t|he remot|
|00004ed0| 65 20 68 6f 73 74 2e 0a | 58 49 66 20 0a 58 2e 42 |e host..|XIf .X.B|
|00004ee0| 20 66 64 0a 58 69 73 20 | 6e 6f 74 20 61 20 54 43 | fd.Xis |not a TC|
|00004ef0| 50 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 0a 58 6f 72 |P connec|tion.Xor|
|00004f00| 20 61 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 20 | authent|ication |
|00004f10| 69 73 20 69 6d 70 6f 73 | 73 69 62 6c 65 2c 0a 58 |is impos|sible,.X|
|00004f20| 2e 42 20 61 75 74 68 5f | 78 6c 69 6e 65 0a 58 72 |.B auth_|xline.Xr|
|00004f30| 65 74 75 72 6e 73 20 4e | 55 4c 4c 2c 20 73 65 74 |eturns N|ULL, set|
|00004f40| 74 69 6e 67 20 65 72 72 | 6e 6f 20 61 70 70 72 6f |ting err|no appro|
|00004f50| 70 72 69 61 74 65 6c 79 | 2e 0a 58 2e 50 50 0a 58 |priately|..X.PP.X|
|00004f60| 54 68 65 20 6c 69 6e 65 | 20 69 73 20 6e 6f 74 20 |The line| is not |
|00004f70| 63 72 2d 6c 66 20 74 65 | 72 6d 69 6e 61 74 65 64 |cr-lf te|rminated|
|00004f80| 2e 0a 58 49 74 20 69 73 | 20 73 74 6f 72 65 64 20 |..XIt is| stored |
|00004f90| 69 6e 20 61 20 73 74 61 | 74 69 63 20 61 72 65 61 |in a sta|tic area|
|00004fa0| 0a 58 77 68 69 63 68 20 | 69 73 20 6f 76 65 72 77 |.Xwhich |is overw|
|00004fb0| 72 69 74 74 65 6e 20 6f | 6e 20 65 61 63 68 20 63 |ritten o|n each c|
|00004fc0| 61 6c 6c 20 74 6f 0a 58 | 2e 42 20 61 75 74 68 5f |all to.X|.B auth_|
|00004fd0| 78 6c 69 6e 65 2e 0a 58 | 2e 42 20 61 75 74 68 5f |xline..X|.B auth_|
|00004fe0| 78 6c 69 6e 65 0a 58 70 | 6c 61 63 65 73 20 74 68 |xline.Xp|laces th|
|00004ff0| 65 20 49 6e 74 65 72 6e | 65 74 20 61 64 64 72 65 |e Intern|et addre|
|00005000| 73 73 20 6f 66 20 74 68 | 65 20 6f 74 68 65 72 20 |ss of th|e other |
|00005010| 68 6f 73 74 20 69 6e 74 | 6f 20 69 6e 2e 0a 58 2e |host int|o in..X.|
|00005020| 50 50 0a 58 2e 42 20 61 | 75 74 68 5f 66 64 28 66 |PP.X.B a|uth_fd(f|
|00005030| 64 2c 26 69 6e 2c 26 6c | 6f 63 61 6c 2c 26 72 65 |d,&in,&l|ocal,&re|
|00005040| 6d 6f 74 65 29 0a 58 72 | 65 74 72 69 65 76 65 73 |mote).Xr|etrieves|
|00005050| 20 61 64 64 72 65 73 73 | 20 69 6e 66 6f 72 6d 61 | address| informa|
|00005060| 74 69 6f 6e 20 66 72 6f | 6d 20 74 68 65 20 63 6f |tion fro|m the co|
|00005070| 6e 6e 65 63 74 69 6f 6e | 20 69 6e 20 73 6f 63 6b |nnection| in sock|
|00005080| 65 74 0a 58 2e 42 20 66 | 64 2e 0a 58 49 74 20 70 |et.X.B f|d..XIt p|
|00005090| 6c 61 63 65 73 20 74 68 | 65 0a 58 49 6e 74 65 72 |laces th|e.XInter|
|000050a0| 6e 65 74 20 61 64 64 72 | 65 73 73 20 6f 66 20 74 |net addr|ess of t|
|000050b0| 68 65 20 68 6f 73 74 20 | 6f 6e 20 6f 74 68 65 72 |he host |on other|
|000050c0| 20 73 69 64 65 20 69 6e | 74 6f 0a 58 2e 42 20 69 | side in|to.X.B i|
|000050d0| 6e 0a 58 61 6e 64 20 74 | 68 65 20 6c 6f 63 61 6c |n.Xand t|he local|
|000050e0| 20 61 6e 64 20 72 65 6d | 6f 74 65 0a 58 54 43 50 | and rem|ote.XTCP|
|000050f0| 20 70 6f 72 74 73 20 69 | 6e 74 6f 20 0a 58 2e 42 | ports i|nto .X.B|
|00005100| 20 6c 6f 63 61 6c 0a 58 | 61 6e 64 20 0a 58 2e 42 | local.X|and .X.B|
|00005110| 20 72 65 6d 6f 74 65 2e | 0a 58 2e 42 20 61 75 74 | remote.|.X.B aut|
|00005120| 68 5f 66 64 0a 58 72 65 | 74 75 72 6e 73 20 2d 31 |h_fd.Xre|turns -1|
|00005130| 20 75 70 6f 6e 20 65 72 | 72 6f 72 2c 20 73 65 74 | upon er|ror, set|
|00005140| 74 69 6e 67 20 65 72 72 | 6e 6f 20 61 70 70 72 6f |ting err|no appro|
|00005150| 70 72 69 61 74 65 6c 79 | 2e 0a 58 2e 50 50 0a 58 |priately|..X.PP.X|
|00005160| 2e 42 20 61 75 74 68 5f | 74 63 70 75 73 65 72 28 |.B auth_|tcpuser(|
|00005170| 69 6e 2c 6c 6f 63 61 6c | 2c 72 65 6d 6f 74 65 29 |in,local|,remote)|
|00005180| 0a 58 72 65 74 75 72 6e | 73 20 74 68 65 20 6e 61 |.Xreturn|s the na|
|00005190| 6d 65 20 6f 66 20 74 68 | 65 20 75 73 65 72 20 6f |me of th|e user o|
|000051a0| 6e 20 74 68 65 20 6f 74 | 68 65 72 20 65 6e 64 20 |n the ot|her end |
|000051b0| 6f 66 20 74 68 65 20 54 | 43 50 20 63 6f 6e 6e 65 |of the T|CP conne|
|000051c0| 63 74 69 6f 6e 0a 58 62 | 65 74 77 65 65 6e 0a 58 |ction.Xb|etween.X|
|000051d0| 2e 42 20 72 65 6d 6f 74 | 65 40 69 6e 0a 58 61 6e |.B remot|e@in.Xan|
|000051e0| 64 0a 58 2e 42 20 6c 6f | 63 61 6c 2e 0a 58 49 66 |d.X.B lo|cal..XIf|
|000051f0| 20 61 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 20 | authent|ication |
|00005200| 69 73 20 69 6d 70 6f 73 | 73 69 62 6c 65 2c 0a 58 |is impos|sible,.X|
|00005210| 2e 42 20 61 75 74 68 5f | 74 63 70 75 73 65 72 0a |.B auth_|tcpuser.|
|00005220| 58 72 65 74 75 72 6e 73 | 0a 58 4e 55 4c 4c 2c 20 |Xreturns|.XNULL, |
|00005230| 73 65 74 74 69 6e 67 20 | 65 72 72 6e 6f 20 61 70 |setting |errno ap|
|00005240| 70 72 6f 70 72 69 61 74 | 65 6c 79 2e 0a 58 54 68 |propriat|ely..XTh|
|00005250| 65 20 75 73 65 72 20 6e | 61 6d 65 20 69 73 20 73 |e user n|ame is s|
|00005260| 74 6f 72 65 64 20 69 6e | 20 61 20 73 74 61 74 69 |tored in| a stati|
|00005270| 63 20 61 72 65 61 0a 58 | 77 68 69 63 68 20 69 73 |c area.X|which is|
|00005280| 20 6f 76 65 72 77 72 69 | 74 74 65 6e 20 6f 6e 20 | overwri|tten on |
|00005290| 65 61 63 68 20 63 61 6c | 6c 20 74 6f 0a 58 2e 42 |each cal|l to.X.B|
|000052a0| 20 61 75 74 68 5f 74 63 | 70 75 73 65 72 0a 58 61 | auth_tc|puser.Xa|
|000052b0| 6e 64 0a 58 2e 42 20 61 | 75 74 68 5f 78 6c 69 6e |nd.X.B a|uth_xlin|
|000052c0| 65 2e 0a 58 2e 50 50 0a | 58 54 68 65 20 61 75 74 |e..X.PP.|XThe aut|
|000052d0| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 72 6f 75 74 |henticat|ion rout|
|000052e0| 69 6e 65 73 20 63 68 65 | 63 6b 20 77 69 74 68 20 |ines che|ck with |
|000052f0| 74 68 65 0a 58 72 65 6d | 6f 74 65 20 41 75 74 68 |the.Xrem|ote Auth|
|00005300| 65 6e 74 69 63 61 74 69 | 6f 6e 20 53 65 72 76 65 |enticati|on Serve|
|00005310| 72 20 6f 6e 20 70 6f 72 | 74 0a 58 2e 42 20 61 75 |r on por|t.X.B au|
|00005320| 74 68 5f 74 63 70 70 6f | 72 74 2c 0a 58 77 68 69 |th_tcppo|rt,.Xwhi|
|00005330| 63 68 20 64 65 66 61 75 | 6c 74 73 20 74 6f 20 31 |ch defau|lts to 1|
|00005340| 31 33 0a 58 61 73 20 73 | 70 65 63 69 66 69 65 64 |13.Xas s|pecified|
|00005350| 20 62 79 20 52 46 43 20 | 39 33 31 2e 0a 58 59 6f | by RFC |931..XYo|
|00005360| 75 20 63 61 6e 20 73 65 | 74 0a 58 2e 42 20 61 75 |u can se|t.X.B au|
|00005370| 74 68 5f 74 63 70 70 6f | 72 74 0a 58 74 6f 20 6f |th_tcppo|rt.Xto o|
|00005380| 74 68 65 72 20 76 61 6c | 75 65 73 0a 58 66 6f 72 |ther val|ues.Xfor|
|00005390| 20 6e 6f 6e 73 74 61 6e | 64 61 72 64 20 69 6d 70 | nonstan|dard imp|
|000053a0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 73 2e 0a 58 2e |lementat|ions..X.|
|000053b0| 50 50 0a 58 2e 53 48 20 | 52 45 53 54 52 49 43 54 |PP.X.SH |RESTRICT|
|000053c0| 49 4f 4e 53 0a 58 2e 49 | 20 61 75 74 68 75 73 65 |IONS.X.I| authuse|
|000053d0| 72 0a 58 64 6f 65 73 20 | 6e 6f 20 62 61 63 6b 73 |r.Xdoes |no backs|
|000053e0| 6c 61 73 68 20 69 6e 74 | 65 72 70 72 65 74 61 74 |lash int|erpretat|
|000053f0| 69 6f 6e 0a 58 75 70 6f | 6e 20 74 68 65 20 72 65 |ion.Xupo|n the re|
|00005400| 6d 6f 74 65 20 75 73 65 | 72 20 6e 61 6d 65 2e 0a |mote use|r name..|
|00005410| 58 48 6f 70 65 66 75 6c | 6c 79 20 74 68 65 20 6e |XHopeful|ly the n|
|00005420| 65 78 74 20 72 65 76 69 | 73 69 6f 6e 20 6f 66 20 |ext revi|sion of |
|00005430| 52 46 43 20 39 33 31 0a | 58 77 69 6c 6c 20 6d 61 |RFC 931.|Xwill ma|
|00005440| 6b 65 20 63 6c 65 61 72 | 20 65 78 61 63 74 6c 79 |ke clear| exactly|
|00005450| 20 77 68 61 74 20 62 61 | 63 6b 73 6c 61 73 68 0a | what ba|ckslash.|
|00005460| 58 69 6e 74 65 72 70 72 | 65 74 61 74 69 6f 6e 20 |Xinterpr|etation |
|00005470| 73 68 6f 75 6c 64 20 62 | 65 20 67 6f 69 6e 67 20 |should b|e going |
|00005480| 6f 6e 2e 0a 58 2e 50 50 | 0a 58 2e 49 20 61 75 74 |on..X.PP|.X.I aut|
|00005490| 68 75 73 65 72 0a 58 64 | 6f 65 73 20 6e 6f 74 20 |huser.Xd|oes not |
|000054a0| 75 73 65 20 74 68 65 20 | 6f 70 65 72 61 74 69 6e |use the |operatin|
|000054b0| 67 20 73 79 73 74 65 6d | 20 74 79 70 65 0a 58 69 |g system| type.Xi|
|000054c0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 70 72 6f 76 69 |nformati|on provi|
|000054d0| 64 65 64 20 62 79 20 74 | 68 65 20 41 75 74 68 65 |ded by t|he Authe|
|000054e0| 6e 74 69 63 61 74 69 6f | 6e 20 53 65 72 76 65 72 |nticatio|n Server|
|000054f0| 2e 0a 58 2e 53 48 20 56 | 45 52 53 49 4f 4e 0a 58 |..X.SH V|ERSION.X|
|00005500| 61 75 74 68 75 73 65 72 | 20 76 65 72 73 69 6f 6e |authuser| version|
|00005510| 20 33 2e 30 2c 20 46 65 | 62 72 75 61 72 79 20 35 | 3.0, Fe|bruary 5|
|00005520| 2c 20 31 39 39 31 2e 0a | 58 2e 53 48 20 41 55 54 |, 1991..|X.SH AUT|
|00005530| 48 4f 52 0a 58 50 6c 61 | 63 65 64 20 69 6e 74 6f |HOR.XPla|ced into|
|00005540| 20 74 68 65 20 70 75 62 | 6c 69 63 20 64 6f 6d 61 | the pub|lic doma|
|00005550| 69 6e 20 62 79 20 44 61 | 6e 69 65 6c 20 4a 2e 20 |in by Da|niel J. |
|00005560| 42 65 72 6e 73 74 65 69 | 6e 2e 0a 58 2e 53 48 20 |Bernstei|n..X.SH |
|00005570| 52 45 46 45 52 45 4e 43 | 45 53 0a 58 54 68 65 20 |REFERENC|ES.XThe |
|00005580| 61 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 20 73 |authenti|cation s|
|00005590| 65 72 76 65 72 20 69 73 | 20 6d 6f 72 65 20 73 65 |erver is| more se|
|000055a0| 63 75 72 65 20 74 68 61 | 6e 20 70 61 73 73 77 6f |cure tha|n passwo|
|000055b0| 72 64 73 0a 58 69 6e 20 | 73 6f 6d 65 20 77 61 79 |rds.Xin |some way|
|000055c0| 73 2c 20 62 75 74 20 6c | 65 73 73 20 73 65 63 75 |s, but l|ess secu|
|000055d0| 72 65 20 74 68 61 6e 20 | 70 61 73 73 77 6f 72 64 |re than |password|
|000055e0| 73 20 69 6e 20 6d 61 6e | 79 20 77 61 79 73 2e 0a |s in man|y ways..|
|000055f0| 58 28 49 74 27 73 20 63 | 65 72 74 61 69 6e 6c 79 |X(It's c|ertainly|
|00005600| 20 62 65 74 74 65 72 20 | 74 68 61 6e 20 6e 6f 20 | better |than no |
|00005610| 70 61 73 73 77 6f 72 64 | 20 61 74 20 61 6c 6c 2d |password| at all-|
|00005620| 2d 2d 65 2e 67 2e 2c 20 | 66 6f 72 0a 58 6d 61 69 |--e.g., |for.Xmai|
|00005630| 6c 20 6f 72 20 6e 65 77 | 73 2e 29 0a 58 49 74 20 |l or new|s.).XIt |
|00005640| 69 73 20 6e 6f 74 20 74 | 68 65 20 66 69 6e 61 6c |is not t|he final|
|00005650| 20 73 6f 6c 75 74 69 6f | 6e 2e 0a 58 46 6f 72 20 | solutio|n..XFor |
|00005660| 61 6e 20 65 78 63 65 6c | 6c 65 6e 74 20 64 69 73 |an excel|lent dis|
|00005670| 63 75 73 73 69 6f 6e 20 | 6f 66 20 73 65 63 75 72 |cussion |of secur|
|00005680| 69 74 79 20 70 72 6f 62 | 6c 65 6d 73 20 77 69 74 |ity prob|lems wit|
|00005690| 68 69 6e 0a 58 74 68 65 | 20 54 43 50 2f 49 50 20 |hin.Xthe| TCP/IP |
|000056a0| 70 72 6f 74 6f 63 6f 6c | 20 73 75 69 74 65 2c 20 |protocol| suite, |
|000056b0| 73 65 65 0a 58 53 74 65 | 76 65 20 42 65 6c 6c 6f |see.XSte|ve Bello|
|000056c0| 76 69 6e 27 73 20 61 72 | 74 69 63 6c 65 0a 58 60 |vin's ar|ticle.X`|
|000056d0| 60 53 65 63 75 72 69 74 | 79 20 50 72 6f 62 6c 65 |`Securit|y Proble|
|000056e0| 6d 73 20 69 6e 20 74 68 | 65 20 54 43 50 2f 49 50 |ms in th|e TCP/IP|
|000056f0| 20 50 72 6f 74 6f 63 6f | 6c 20 53 75 69 74 65 2e | Protoco|l Suite.|
|00005700| 27 27 0a 58 2e 53 48 20 | 22 53 45 45 20 41 4c 53 |''.X.SH |"SEE ALS|
|00005710| 4f 22 0a 58 61 75 74 68 | 74 63 70 28 31 29 2c 0a |O".Xauth|tcp(1),.|
|00005720| 58 61 74 74 61 63 68 70 | 6f 72 74 28 31 29 2c 0a |Xattachp|ort(1),.|
|00005730| 58 67 65 74 70 65 65 72 | 6e 61 6d 65 28 33 29 2c |Xgetpeer|name(3),|
|00005740| 0a 58 67 65 74 73 6f 63 | 6b 6e 61 6d 65 28 33 29 |.Xgetsoc|kname(3)|
|00005750| 2c 0a 58 74 63 70 28 34 | 29 2c 0a 58 61 75 74 68 |,.Xtcp(4|),.Xauth|
|00005760| 64 28 38 29 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |d(8).END|_OF_FILE|
|00005770| 0a 69 66 20 74 65 73 74 | 20 33 33 35 34 20 2d 6e |.if test| 3354 -n|
|00005780| 65 20 60 77 63 20 2d 63 | 20 3c 27 61 75 74 68 75 |e `wc -c| <'authu|
|00005790| 73 65 72 2e 33 27 60 3b | 20 74 68 65 6e 0a 20 20 |ser.3'`;| then. |
|000057a0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|000057b0| 61 75 74 68 75 73 65 72 | 2e 33 27 5c 22 20 75 6e |authuser|.3'\" un|
|000057c0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000057d0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|000057e0| 20 6f 66 20 27 61 75 74 | 68 75 73 65 72 2e 33 27 | of 'aut|huser.3'|
|000057f0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00005800| 74 63 70 75 69 64 2e 38 | 27 20 2d 61 20 22 24 7b |tcpuid.8|' -a "${|
|00005810| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005820| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00005830| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00005840| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00005850| 5c 22 27 74 63 70 75 69 | 64 2e 38 27 5c 22 0a 65 |\"'tcpui|d.8'\".e|
|00005860| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00005870| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 74 63 70 |xtractin|g \"'tcp|
|00005880| 75 69 64 2e 38 27 5c 22 | 20 5c 28 36 31 38 20 63 |uid.8'\"| \(618 c|
|00005890| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|000058a0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 74 63 70 75 69 |"s/^X//"| >'tcpui|
|000058b0| 64 2e 38 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |d.8' <<'|END_OF_F|
|000058c0| 49 4c 45 27 0a 58 2e 54 | 48 20 74 63 70 75 69 64 |ILE'.X.T|H tcpuid|
|000058d0| 20 38 0a 58 2e 53 48 20 | 4e 41 4d 45 0a 58 74 63 | 8.X.SH |NAME.Xtc|
|000058e0| 70 75 69 64 20 5c 2d 20 | 73 68 6f 77 20 74 68 65 |puid \- |show the|
|000058f0| 20 75 73 65 72 20 69 64 | 20 74 68 61 74 20 63 72 | user id| that cr|
|00005900| 65 61 74 65 64 20 61 20 | 6e 65 74 77 6f 72 6b 20 |eated a |network |
|00005910| 63 6f 6e 6e 65 63 74 69 | 6f 6e 0a 58 2e 53 48 20 |connecti|on.X.SH |
|00005920| 53 59 4e 54 41 58 0a 58 | 74 63 70 75 69 64 0a 58 |SYNTAX.X|tcpuid.X|
|00005930| 2e 49 20 72 65 6d 2e 6f | 74 65 2e 69 6e 2e 61 64 |.I rem.o|te.in.ad|
|00005940| 64 72 0a 58 2e 49 20 72 | 65 6d 70 6f 72 74 0a 58 |dr.X.I r|emport.X|
|00005950| 2e 49 20 6c 6f 63 2e 61 | 6c 2e 69 6e 2e 61 64 64 |.I loc.a|l.in.add|
|00005960| 72 0a 58 2e 49 20 6c 6f | 63 70 6f 72 74 0a 58 2e |r.X.I lo|cport.X.|
|00005970| 53 48 20 44 45 53 43 52 | 49 50 54 49 4f 4e 0a 58 |SH DESCR|IPTION.X|
|00005980| 2e 49 20 74 63 70 75 69 | 64 0a 58 70 72 69 6e 74 |.I tcpui|d.Xprint|
|00005990| 73 20 74 68 65 20 6e 75 | 6d 65 72 69 63 20 75 73 |s the nu|meric us|
|000059a0| 65 72 20 69 64 20 6f 66 | 0a 58 74 68 65 20 75 73 |er id of|.Xthe us|
|000059b0| 65 72 20 77 68 6f 20 63 | 72 65 61 74 65 64 0a 58 |er who c|reated.X|
|000059c0| 74 68 65 20 6e 65 74 77 | 6f 72 6b 20 63 6f 6e 6e |the netw|ork conn|
|000059d0| 65 63 74 69 6f 6e 20 73 | 70 65 63 69 66 69 65 64 |ection s|pecified|
|000059e0| 20 62 79 20 69 74 73 20 | 61 72 67 75 6d 65 6e 74 | by its |argument|
|000059f0| 73 2e 0a 58 2e 50 50 0a | 58 2e 53 48 20 44 49 41 |s..X.PP.|X.SH DIA|
|00005a00| 47 4e 4f 53 54 49 43 53 | 0a 58 2e 54 50 0a 58 4c |GNOSTICS|.X.TP.XL|
|00005a10| 6f 74 73 2c 20 6e 6f 6e | 65 20 6f 66 20 77 68 69 |ots, non|e of whi|
|00005a20| 63 68 20 73 68 6f 75 6c | 64 20 68 61 70 70 65 6e |ch shoul|d happen|
|00005a30| 20 69 66 20 74 68 65 20 | 73 70 65 63 69 66 69 65 | if the |specifie|
|00005a40| 64 0a 58 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 69 73 |d.Xconne|ction is|
|00005a50| 20 76 61 6c 69 64 2e 0a | 58 2e 53 48 20 42 55 47 | valid..|X.SH BUG|
|00005a60| 53 0a 58 4e 6f 6e 65 20 | 6b 6e 6f 77 6e 2e 0a 58 |S.XNone |known..X|
|00005a70| 2e 53 48 20 56 45 52 53 | 49 4f 4e 0a 58 74 63 70 |.SH VERS|ION.Xtcp|
|00005a80| 75 69 64 20 76 65 72 73 | 69 6f 6e 20 33 2e 30 31 |uid vers|ion 3.01|
|00005a90| 2c 20 46 65 62 72 75 61 | 72 79 20 37 2c 20 31 39 |, Februa|ry 7, 19|
|00005aa0| 39 31 2e 0a 58 2e 53 48 | 20 41 55 54 48 4f 52 0a |91..X.SH| AUTHOR.|
|00005ab0| 58 50 6c 61 63 65 64 20 | 69 6e 74 6f 20 74 68 65 |XPlaced |into the|
|00005ac0| 20 70 75 62 6c 69 63 20 | 64 6f 6d 61 69 6e 20 62 | public |domain b|
|00005ad0| 79 20 44 61 6e 69 65 6c | 20 4a 2e 20 42 65 72 6e |y Daniel| J. Bern|
|00005ae0| 73 74 65 69 6e 2e 0a 58 | 50 61 72 74 69 61 6c 6c |stein..X|Partiall|
|00005af0| 79 20 69 6e 73 70 69 72 | 65 64 20 62 79 20 63 6f |y inspir|ed by co|
|00005b00| 64 65 20 77 72 69 74 74 | 65 6e 20 62 79 20 56 69 |de writt|en by Vi|
|00005b10| 63 20 41 62 65 6c 6c 20 | 66 6f 72 20 6f 66 69 6c |c Abell |for ofil|
|00005b20| 65 73 2e 0a 58 2e 53 48 | 20 22 53 45 45 20 41 4c |es..X.SH| "SEE AL|
|00005b30| 53 4f 22 0a 58 61 75 74 | 68 64 28 38 29 2c 0a 58 |SO".Xaut|hd(8),.X|
|00005b40| 74 63 70 75 6e 61 6d 65 | 28 38 29 0a 45 4e 44 5f |tcpuname|(8).END_|
|00005b50| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00005b60| 36 31 38 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |618 -ne |`wc -c <|
|00005b70| 27 74 63 70 75 69 64 2e | 38 27 60 3b 20 74 68 65 |'tcpuid.|8'`; the|
|00005b80| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00005b90| 20 5c 22 27 74 63 70 75 | 69 64 2e 38 27 5c 22 20 | \"'tcpu|id.8'\" |
|00005ba0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00005bb0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00005bc0| 6e 64 20 6f 66 20 27 74 | 63 70 75 69 64 2e 38 27 |nd of 't|cpuid.8'|
|00005bd0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00005be0| 74 63 70 75 6e 61 6d 65 | 2e 38 27 20 2d 61 20 22 |tcpuname|.8' -a "|
|00005bf0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00005c00| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00005c10| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00005c20| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00005c30| 65 20 5c 22 27 74 63 70 | 75 6e 61 6d 65 2e 38 27 |e \"'tcp|uname.8'|
|00005c40| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00005c50| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00005c60| 27 74 63 70 75 6e 61 6d | 65 2e 38 27 5c 22 20 5c |'tcpunam|e.8'\" \|
|00005c70| 28 36 32 31 20 63 68 61 | 72 61 63 74 65 72 73 5c |(621 cha|racters\|
|00005c80| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00005c90| 27 74 63 70 75 6e 61 6d | 65 2e 38 27 20 3c 3c 27 |'tcpunam|e.8' <<'|
|00005ca0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2e 54 |END_OF_F|ILE'.X.T|
|00005cb0| 48 20 74 63 70 75 6e 61 | 6d 65 20 38 0a 58 2e 53 |H tcpuna|me 8.X.S|
|00005cc0| 48 20 4e 41 4d 45 0a 58 | 74 63 70 75 6e 61 6d 65 |H NAME.X|tcpuname|
|00005cd0| 20 5c 2d 20 73 68 6f 77 | 20 74 68 65 20 75 73 65 | \- show| the use|
|00005ce0| 72 20 6e 61 6d 65 20 74 | 68 61 74 20 63 72 65 61 |r name t|hat crea|
|00005cf0| 74 65 64 20 61 20 6e 65 | 74 77 6f 72 6b 20 63 6f |ted a ne|twork co|
|00005d00| 6e 6e 65 63 74 69 6f 6e | 0a 58 2e 53 48 20 53 59 |nnection|.X.SH SY|
|00005d10| 4e 54 41 58 0a 58 74 63 | 70 75 6e 61 6d 65 0a 58 |NTAX.Xtc|puname.X|
|00005d20| 2e 49 20 72 65 6d 2e 6f | 74 65 2e 69 6e 2e 61 64 |.I rem.o|te.in.ad|
|00005d30| 64 72 0a 58 2e 49 20 72 | 65 6d 70 6f 72 74 0a 58 |dr.X.I r|emport.X|
|00005d40| 2e 49 20 6c 6f 63 2e 61 | 6c 2e 69 6e 2e 61 64 64 |.I loc.a|l.in.add|
|00005d50| 72 0a 58 2e 49 20 6c 6f | 63 70 6f 72 74 0a 58 2e |r.X.I lo|cport.X.|
|00005d60| 53 48 20 44 45 53 43 52 | 49 50 54 49 4f 4e 0a 58 |SH DESCR|IPTION.X|
|00005d70| 2e 49 20 74 63 70 75 6e | 61 6d 65 0a 58 70 72 69 |.I tcpun|ame.Xpri|
|00005d80| 6e 74 73 20 74 68 65 20 | 75 73 65 72 6e 61 6d 65 |nts the |username|
|00005d90| 20 6f 66 0a 58 74 68 65 | 20 75 73 65 72 20 77 68 | of.Xthe| user wh|
|00005da0| 6f 20 63 72 65 61 74 65 | 64 0a 58 74 68 65 20 6e |o create|d.Xthe n|
|00005db0| 65 74 77 6f 72 6b 20 63 | 6f 6e 6e 65 63 74 69 6f |etwork c|onnectio|
|00005dc0| 6e 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 69 |n specif|ied by i|
|00005dd0| 74 73 20 61 72 67 75 6d | 65 6e 74 73 2e 0a 58 2e |ts argum|ents..X.|
|00005de0| 50 50 0a 58 2e 53 48 20 | 44 49 41 47 4e 4f 53 54 |PP.X.SH |DIAGNOST|
|00005df0| 49 43 53 0a 58 2e 54 50 | 0a 58 4c 6f 74 73 2c 20 |ICS.X.TP|.XLots, |
|00005e00| 6e 6f 6e 65 20 6f 66 20 | 77 68 69 63 68 20 73 68 |none of |which sh|
|00005e10| 6f 75 6c 64 20 68 61 70 | 70 65 6e 20 69 66 20 74 |ould hap|pen if t|
|00005e20| 68 65 20 73 70 65 63 69 | 66 69 65 64 0a 58 63 6f |he speci|fied.Xco|
|00005e30| 6e 6e 65 63 74 69 6f 6e | 20 69 73 20 76 61 6c 69 |nnection| is vali|
|00005e40| 64 2e 0a 58 2e 53 48 20 | 42 55 47 53 0a 58 4e 6f |d..X.SH |BUGS.XNo|
|00005e50| 6e 65 20 6b 6e 6f 77 6e | 2e 0a 58 2e 53 48 20 56 |ne known|..X.SH V|
|00005e60| 45 52 53 49 4f 4e 0a 58 | 74 63 70 75 6e 61 6d 65 |ERSION.X|tcpuname|
|00005e70| 20 76 65 72 73 69 6f 6e | 20 33 2e 30 31 2c 20 46 | version| 3.01, F|
|00005e80| 65 62 72 75 61 72 79 20 | 37 2c 20 31 39 39 31 2e |ebruary |7, 1991.|
|00005e90| 0a 58 2e 53 48 20 41 55 | 54 48 4f 52 0a 58 50 6c |.X.SH AU|THOR.XPl|
|00005ea0| 61 63 65 64 20 69 6e 74 | 6f 20 74 68 65 20 70 75 |aced int|o the pu|
|00005eb0| 62 6c 69 63 20 64 6f 6d | 61 69 6e 20 62 79 20 44 |blic dom|ain by D|
|00005ec0| 61 6e 69 65 6c 20 4a 2e | 20 42 65 72 6e 73 74 65 |aniel J.| Bernste|
|00005ed0| 69 6e 2e 0a 58 50 61 72 | 74 69 61 6c 6c 79 20 69 |in..XPar|tially i|
|00005ee0| 6e 73 70 69 72 65 64 20 | 62 79 20 63 6f 64 65 20 |nspired |by code |
|00005ef0| 77 72 69 74 74 65 6e 20 | 62 79 20 56 69 63 20 41 |written |by Vic A|
|00005f00| 62 65 6c 6c 20 66 6f 72 | 20 6f 66 69 6c 65 73 2e |bell for| ofiles.|
|00005f10| 0a 58 2e 53 48 20 22 53 | 45 45 20 41 4c 53 4f 22 |.X.SH "S|EE ALSO"|
|00005f20| 0a 58 61 75 74 68 64 28 | 38 29 2c 0a 58 74 63 70 |.Xauthd(|8),.Xtcp|
|00005f30| 75 69 64 28 38 29 0a 45 | 4e 44 5f 4f 46 5f 46 49 |uid(8).E|ND_OF_FI|
|00005f40| 4c 45 0a 69 66 20 74 65 | 73 74 20 36 32 31 20 2d |LE.if te|st 621 -|
|00005f50| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 74 63 70 75 |ne `wc -|c <'tcpu|
|00005f60| 6e 61 6d 65 2e 38 27 60 | 3b 20 74 68 65 6e 0a 20 |name.8'`|; then. |
|00005f70| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00005f80| 27 74 63 70 75 6e 61 6d | 65 2e 38 27 5c 22 20 75 |'tcpunam|e.8'\" u|
|00005f90| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00005fa0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00005fb0| 64 20 6f 66 20 27 74 63 | 70 75 6e 61 6d 65 2e 38 |d of 'tc|puname.8|
|00005fc0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005fd0| 27 61 75 74 68 64 2e 63 | 27 20 2d 61 20 22 24 7b |'authd.c|' -a "${|
|00005fe0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005ff0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00006000| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00006010| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00006020| 5c 22 27 61 75 74 68 64 | 2e 63 27 5c 22 0a 65 6c |\"'authd|.c'\".el|
|00006030| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00006040| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 61 75 74 68 |tracting| \"'auth|
|00006050| 64 2e 63 27 5c 22 20 5c | 28 37 38 37 39 20 63 68 |d.c'\" \|(7879 ch|
|00006060| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00006070| 73 2f 5e 58 2f 2f 22 20 | 3e 27 61 75 74 68 64 2e |s/^X//" |>'authd.|
|00006080| 63 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |c' <<'EN|D_OF_FIL|
|00006090| 45 27 0a 58 23 64 65 66 | 69 6e 65 20 4b 4d 45 4d |E'.X#def|ine KMEM|
|000060a0| 20 22 2f 64 65 76 2f 6b | 6d 65 6d 22 0a 58 23 64 | "/dev/k|mem".X#d|
|000060b0| 65 66 69 6e 65 20 56 4d | 55 4e 49 58 20 22 2f 76 |efine VM|UNIX "/v|
|000060c0| 6d 75 6e 69 78 22 0a 58 | 23 64 65 66 69 6e 65 20 |munix".X|#define |
|000060d0| 4e 45 54 53 54 41 54 20 | 22 2f 75 73 72 2f 75 63 |NETSTAT |"/usr/uc|
|000060e0| 62 2f 6e 65 74 73 74 61 | 74 20 2d 6e 20 2d 41 20 |b/netsta|t -n -A |
|000060f0| 2d 66 20 69 6e 65 74 22 | 0a 58 23 64 65 66 69 6e |-f inet"|.X#defin|
|00006100| 65 20 4e 45 54 53 54 41 | 54 42 55 46 20 32 30 30 |e NETSTA|TBUF 200|
|00006110| 20 2f 2a 20 38 30 20 77 | 6f 75 6c 64 20 73 75 66 | /* 80 w|ould suf|
|00006120| 66 69 63 65 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |fice */.|X#define|
|00006130| 20 4e 45 54 53 54 41 54 | 52 45 4d 4f 54 45 20 34 | NETSTAT|REMOTE 4|
|00006140| 39 0a 58 23 64 65 66 69 | 6e 65 20 4e 45 54 53 54 |9.X#defi|ne NETST|
|00006150| 41 54 57 49 44 54 48 20 | 31 37 0a 58 23 64 65 66 |ATWIDTH |17.X#def|
|00006160| 69 6e 65 20 52 45 4d 4f | 54 45 53 49 5a 45 20 31 |ine REMO|TESIZE 1|
|00006170| 30 30 20 2f 2a 20 67 75 | 61 72 61 6e 74 65 65 64 |00 /* gu|aranteed|
|00006180| 20 74 6f 20 62 65 20 65 | 6e 6f 75 67 68 20 2a 2f | to be e|nough */|
|00006190| 0a 58 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.X.X#inc|lude <st|
|000061a0| 64 69 6f 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |dio.h>.X|#include|
|000061b0| 20 3c 63 74 79 70 65 2e | 68 3e 0a 58 23 69 66 64 | <ctype.|h>.X#ifd|
|000061c0| 65 66 20 55 53 45 5f 53 | 59 53 4c 4f 47 0a 58 23 |ef USE_S|YSLOG.X#|
|000061d0| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 6c 6f 67 2e |include |<syslog.|
|000061e0| 68 3e 0a 58 23 65 6e 64 | 69 66 0a 58 23 69 6e 63 |h>.X#end|if.X#inc|
|000061f0| 6c 75 64 65 20 3c 73 79 | 73 2f 74 79 70 65 73 2e |lude <sy|s/types.|
|00006200| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |h>.X#inc|lude <sy|
|00006210| 73 2f 70 61 72 61 6d 2e | 68 3e 0a 58 23 69 6e 63 |s/param.|h>.X#inc|
|00006220| 6c 75 64 65 20 3c 73 79 | 73 2f 64 69 72 2e 68 3e |lude <sy|s/dir.h>|
|00006230| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00006240| 75 73 65 72 2e 68 3e 0a | 58 23 69 66 64 65 66 20 |user.h>.|X#ifdef |
|00006250| 63 6f 6e 76 65 78 0a 58 | 23 69 6e 63 6c 75 64 65 |convex.X|#include|
|00006260| 20 3c 73 79 73 2f 75 63 | 72 65 64 2e 68 3e 20 2f | <sys/uc|red.h> /|
|00006270| 2a 20 64 6f 72 6b 73 20 | 2a 2f 0a 58 23 64 65 66 |* dorks |*/.X#def|
|00006280| 69 6e 65 20 46 43 52 45 | 44 5f 49 53 4e 4f 54 5f |ine FCRE|D_ISNOT_|
|00006290| 50 4f 49 4e 54 45 52 0a | 58 23 65 6e 64 69 66 0a |POINTER.|X#endif.|
|000062a0| 58 23 64 65 66 69 6e 65 | 20 4b 45 52 4e 45 4c 0a |X#define| KERNEL.|
|000062b0| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 66 |X#includ|e <sys/f|
|000062c0| 69 6c 65 2e 68 3e 0a 58 | 23 75 6e 64 65 66 20 4b |ile.h>.X|#undef K|
|000062d0| 45 52 4e 45 4c 0a 58 23 | 69 66 64 65 66 20 42 53 |ERNEL.X#|ifdef BS|
|000062e0| 44 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 6c 69 6d |D.X#incl|ude <lim|
|000062f0| 69 74 73 2e 68 3e 0a 58 | 23 65 6e 64 69 66 0a 58 |its.h>.X|#endif.X|
|00006300| 23 69 6e 63 6c 75 64 65 | 20 3c 6e 6c 69 73 74 2e |#include| <nlist.|
|00006310| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |h>.X#inc|lude <sy|
|00006320| 73 2f 73 6f 63 6b 65 74 | 2e 68 3e 0a 58 23 69 6e |s/socket|.h>.X#in|
|00006330| 63 6c 75 64 65 20 3c 73 | 79 73 2f 73 6f 63 6b 65 |clude <s|ys/socke|
|00006340| 74 76 61 72 2e 68 3e 0a | 58 23 69 66 64 65 66 20 |tvar.h>.|X#ifdef |
|00006350| 63 6f 6e 76 65 78 0a 58 | 23 69 6e 63 6c 75 64 65 |convex.X|#include|
|00006360| 20 3c 73 79 73 2f 6d 62 | 75 66 2e 68 3e 0a 58 23 | <sys/mb|uf.h>.X#|
|00006370| 65 6e 64 69 66 0a 58 23 | 69 6e 63 6c 75 64 65 20 |endif.X#|include |
|00006380| 3c 6e 65 74 2f 72 6f 75 | 74 65 2e 68 3e 0a 58 23 |<net/rou|te.h>.X#|
|00006390| 69 6e 63 6c 75 64 65 20 | 3c 6e 65 74 69 6e 65 74 |include |<netinet|
|000063a0| 2f 69 6e 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |/in.h>.X|#include|
|000063b0| 20 3c 6e 65 74 69 6e 65 | 74 2f 69 6e 5f 70 63 62 | <netine|t/in_pcb|
|000063c0| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 6e |.h>.X#in|clude <n|
|000063d0| 65 74 69 6e 65 74 2f 74 | 63 70 2e 68 3e 0a 58 23 |etinet/t|cp.h>.X#|
|000063e0| 69 6e 63 6c 75 64 65 20 | 3c 6e 65 74 69 6e 65 74 |include |<netinet|
|000063f0| 2f 74 63 70 5f 66 73 6d | 2e 68 3e 0a 58 23 69 6e |/tcp_fsm|.h>.X#in|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.