home *** CD-ROM | disk | FTP | other *** search
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: 2684
Confidence | Program | Detection | Match Type | Support
|
---|
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 2d 20 52 46 43 20 39 |t: authd| - RFC 9|
|00000060| 33 31 20 28 41 75 74 68 | 65 6e 74 69 63 61 74 69 |31 (Auth|enticati|
|00000070| 6f 6e 20 53 65 72 76 65 | 72 29 20 69 6d 70 6c 65 |on Serve|r) imple|
|00000080| 6d 65 6e 74 61 74 69 6f | 6e 0a 4d 65 73 73 61 67 |mentatio|n.Messag|
|00000090| 65 2d 49 44 3a 20 3c 31 | 36 37 30 38 3a 46 65 62 |e-ID: <1|6708:Feb|
|000000a0| 37 30 34 3a 35 34 3a 34 | 30 39 31 40 6b 72 61 6d |704:54:4|091@kram|
|000000b0| 64 65 6e 2e 61 63 66 2e | 6e 79 75 2e 65 64 75 3e |den.acf.|nyu.edu>|
|000000c0| 0a 44 61 74 65 3a 20 37 | 20 46 65 62 20 39 31 20 |.Date: 7| Feb 91 |
|000000d0| 30 34 3a 35 34 3a 34 30 | 20 47 4d 54 0a 0a 49 66 |04:54:40| GMT..If|
|000000e0| 20 68 6f 73 74 20 58 20 | 73 75 70 70 6f 72 74 73 | host X |supports|
|000000f0| 20 52 46 43 20 39 33 31 | 2c 20 61 6e 64 20 69 66 | RFC 931|, and if|
|00000100| 20 6a 6f 65 40 58 20 61 | 6e 64 20 73 61 6c 6c 79 | joe@X a|nd sally|
|00000110| 40 59 20 61 72 65 20 63 | 6f 6e 6e 65 63 74 65 64 |@Y are c|onnected|
|00000120| 0a 74 68 72 6f 75 67 68 | 20 54 43 50 2c 20 74 68 |.through| TCP, th|
|00000130| 65 6e 20 73 61 6c 6c 79 | 20 63 61 6e 20 66 69 6e |en sally| can fin|
|00000140| 64 20 6f 75 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |d out th|e name o|
|00000150| 66 20 6a 6f 65 2e 20 54 | 68 69 73 20 70 61 63 6b |f joe. T|his pack|
|00000160| 61 67 65 0a 69 6e 63 6c | 75 64 65 73 20 61 75 74 |age.incl|udes aut|
|00000170| 68 64 2c 20 61 6e 20 52 | 46 43 20 39 33 31 20 73 |hd, an R|FC 931 s|
|00000180| 65 72 76 65 72 2e 20 4f | 6e 63 65 20 79 6f 75 27 |erver. O|nce you'|
|00000190| 76 65 20 69 6e 73 74 61 | 6c 6c 65 64 20 69 74 2c |ve insta|lled it,|
|000001a0| 20 79 6f 75 72 20 75 73 | 65 72 73 0a 63 61 6e 27 | your us|ers.can'|
|000001b0| 74 20 65 73 63 61 70 65 | 20 74 68 65 20 61 75 74 |t escape| the aut|
|000001c0| 68 65 6e 74 69 63 61 74 | 69 6f 6e 3a 20 69 66 20 |henticat|ion: if |
|000001d0| 74 68 65 79 20 74 65 6c | 6e 65 74 20 6f 72 20 72 |they tel|net or r|
|000001e0| 6c 6f 67 69 6e 20 6f 72 | 20 73 65 6e 64 20 6d 61 |login or| send ma|
|000001f0| 69 6c 0a 6f 72 20 64 6f | 20 77 68 61 74 65 76 65 |il.or do| whateve|
|00000200| 72 20 74 6f 20 61 6e 6f | 74 68 65 72 20 68 6f 73 |r to ano|ther hos|
|00000210| 74 2c 20 74 68 61 74 20 | 68 6f 73 74 20 63 61 6e |t, that |host can|
|00000220| 20 66 69 6e 64 20 6f 75 | 74 20 74 68 65 20 75 73 | find ou|t the us|
|00000230| 65 72 6e 61 6d 65 2e 0a | 0a 54 68 69 73 20 70 61 |ername..|.This pa|
|00000240| 63 6b 61 67 65 20 61 6c | 73 6f 20 69 6e 63 6c 75 |ckage al|so inclu|
|00000250| 64 65 73 20 61 20 6c 69 | 62 72 61 72 79 20 74 68 |des a li|brary th|
|00000260| 61 74 20 61 63 74 73 20 | 61 73 20 61 6e 20 52 46 |at acts |as an RF|
|00000270| 43 20 39 33 31 20 63 6c | 69 65 6e 74 2e 20 59 6f |C 931 cl|ient. Yo|
|00000280| 75 0a 64 6f 6e 27 74 20 | 6e 65 65 64 20 70 72 69 |u.don't |need pri|
|00000290| 76 69 6c 65 67 65 73 20 | 74 6f 20 75 73 65 20 74 |vileges |to use t|
|000002a0| 68 65 20 6c 69 62 72 61 | 72 79 2c 20 77 68 69 63 |he libra|ry, whic|
|000002b0| 68 20 73 68 6f 75 6c 64 | 20 63 6f 6d 70 69 6c 65 |h should| compile|
|000002c0| 20 61 6e 64 20 72 75 6e | 0a 77 69 74 68 6f 75 74 | and run|.without|
|000002d0| 20 74 72 6f 75 62 6c 65 | 20 6f 6e 20 61 6e 79 20 | trouble| on any |
|000002e0| 42 53 44 2d 64 65 72 69 | 76 65 64 20 73 79 73 74 |BSD-deri|ved syst|
|000002f0| 65 6d 2e 20 28 61 75 74 | 68 64 20 69 73 20 6e 6f |em. (aut|hd is no|
|00000300| 74 20 73 6f 20 70 6f 72 | 74 61 62 6c 65 3b 0a 61 |t so por|table;.a|
|00000310| 6c 74 68 6f 75 67 68 20 | 69 74 20 77 6f 72 6b 73 |lthough |it works|
|00000320| 20 77 69 74 68 6f 75 74 | 20 63 68 61 6e 67 65 73 | without| changes|
|00000330| 20 75 6e 64 65 72 20 53 | 75 6e 4f 53 20 61 6e 64 | under S|unOS and|
|00000340| 20 55 6c 74 72 69 78 2c | 20 69 74 20 6d 69 67 68 | Ultrix,| it migh|
|00000350| 74 20 6e 6f 74 0a 77 6f | 72 6b 20 6f 6e 20 6f 74 |t not.wo|rk on ot|
|00000360| 68 65 72 20 73 79 73 74 | 65 6d 73 2e 20 54 68 65 |her syst|ems. The|
|00000370| 20 70 61 63 6b 61 67 65 | 20 69 6e 63 6c 75 64 65 | package| include|
|00000380| 73 20 61 20 63 6f 75 70 | 6c 65 20 6f 66 20 74 65 |s a coup|le of te|
|00000390| 73 74 20 70 72 6f 67 72 | 61 6d 73 2e 29 0a 0a 49 |st progr|ams.)..I|
|000003a0| 27 76 65 20 70 6c 61 63 | 65 64 20 74 68 69 73 20 |'ve plac|ed this |
|000003b0| 63 6f 64 65 20 69 6e 74 | 6f 20 74 68 65 20 70 75 |code int|o the pu|
|000003c0| 62 6c 69 63 20 64 6f 6d | 61 69 6e 20 62 65 63 61 |blic dom|ain beca|
|000003d0| 75 73 65 20 49 20 74 68 | 69 6e 6b 20 74 68 61 74 |use I th|ink that|
|000003e0| 0a 65 76 65 72 79 6f 6e | 65 20 73 68 6f 75 6c 64 |.everyon|e should|
|000003f0| 20 73 75 70 70 6f 72 74 | 20 61 74 20 6c 65 61 73 | support| at leas|
|00000400| 74 20 74 68 69 73 20 6c | 65 76 65 6c 20 6f 66 20 |t this l|evel of |
|00000410| 73 65 63 75 72 69 74 79 | 2e 20 49 27 6d 20 73 69 |security|. I'm si|
|00000420| 63 6b 20 6f 66 0a 73 65 | 65 69 6e 67 20 70 65 6f |ck of.se|eing peo|
|00000430| 70 6c 65 20 66 6f 72 67 | 65 20 6d 61 69 6c 20 61 |ple forg|e mail a|
|00000440| 6e 64 20 73 70 6f 6f 66 | 20 4e 4e 54 50 20 61 6e |nd spoof| NNTP an|
|00000450| 64 20 61 74 74 61 63 6b | 20 73 79 73 74 65 6d 73 |d attack| systems|
|00000460| 20 61 6e 6f 6e 79 6d 6f | 75 73 6c 79 0a 74 68 72 | anonymo|usly.thr|
|00000470| 6f 75 67 68 20 74 68 65 | 20 6e 65 74 77 6f 72 6b |ough the| network|
|00000480| 2e 20 4e 6f 77 20 74 68 | 65 79 20 77 6f 6e 27 74 |. Now th|ey won't|
|00000490| 20 62 65 20 61 62 6c 65 | 20 74 6f 2c 20 62 65 63 | be able| to, bec|
|000004a0| 61 75 73 65 20 65 76 65 | 72 79 20 63 6f 6e 6e 65 |ause eve|ry conne|
|000004b0| 63 74 69 6f 6e 0a 77 69 | 6c 6c 20 62 65 20 74 61 |ction.wi|ll be ta|
|000004c0| 67 67 65 64 20 77 69 74 | 68 20 74 68 65 20 75 73 |gged wit|h the us|
|000004d0| 65 72 6e 61 6d 65 20 77 | 69 74 68 20 61 74 20 6c |ername w|ith at l|
|000004e0| 65 61 73 74 20 61 73 20 | 6d 75 63 68 20 73 65 63 |east as |much sec|
|000004f0| 75 72 69 74 79 20 61 73 | 20 74 68 65 0a 54 43 50 |urity as| the.TCP|
|00000500| 20 68 6f 73 74 20 61 64 | 64 72 65 73 73 20 69 6e | host ad|dress in|
|00000510| 20 65 61 63 68 20 70 61 | 63 6b 65 74 2e 20 49 20 | each pa|cket. I |
|00000520| 68 6f 70 65 20 74 68 61 | 74 20 65 76 65 72 79 20 |hope tha|t every |
|00000530| 73 69 74 65 20 77 69 6c | 6c 20 64 6f 20 69 74 73 |site wil|l do its|
|00000540| 20 70 61 72 74 0a 74 6f | 20 63 6f 6e 74 72 69 62 | part.to| contrib|
|00000550| 75 74 65 20 74 6f 20 6e | 65 74 77 6f 72 6b 20 73 |ute to n|etwork s|
|00000560| 65 63 75 72 69 74 79 20 | 28 61 6e 64 20 74 6f 20 |ecurity |(and to |
|00000570| 68 65 6c 70 20 43 45 52 | 54 20 74 72 61 63 65 20 |help CER|T trace |
|00000580| 69 6e 74 72 75 64 65 72 | 73 29 2e 0a 0a 49 74 20 |intruder|s)...It |
|00000590| 73 68 6f 75 6c 64 20 74 | 61 6b 65 20 61 70 70 72 |should t|ake appr|
|000005a0| 6f 78 69 6d 61 74 65 6c | 79 20 31 30 20 6d 69 6e |oximatel|y 10 min|
|000005b0| 75 74 65 73 20 74 6f 20 | 72 65 61 64 20 74 68 65 |utes to |read the|
|000005c0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 61 6e | instruc|tions an|
|000005d0| 64 0a 63 6f 6d 70 69 6c | 65 2c 20 69 6e 73 74 61 |d.compil|e, insta|
|000005e0| 6c 6c 2c 20 61 6e 64 20 | 74 65 73 74 20 61 75 74 |ll, and |test aut|
|000005f0| 68 64 20 6f 6e 20 61 20 | 6e 65 77 20 6d 61 63 68 |hd on a |new mach|
|00000600| 69 6e 65 2e 20 49 74 20 | 73 68 6f 75 6c 64 20 74 |ine. It |should t|
|00000610| 61 6b 65 0a 61 70 70 72 | 6f 78 69 6d 61 74 65 6c |ake.appr|oximatel|
|00000620| 79 20 32 20 6d 69 6e 75 | 74 65 73 20 6f 6e 20 65 |y 2 minu|tes on e|
|00000630| 61 63 68 20 6e 65 77 20 | 6d 61 63 68 69 6e 65 20 |ach new |machine |
|00000640| 6f 6e 63 65 20 79 6f 75 | 27 72 65 20 66 61 6d 69 |once you|'re fami|
|00000650| 6c 69 61 72 20 77 69 74 | 68 0a 74 68 65 20 69 6e |liar wit|h.the in|
|00000660| 73 74 72 75 63 74 69 6f | 6e 73 2e 20 53 65 6e 64 |structio|ns. Send|
|00000670| 20 63 6f 6d 6d 65 6e 74 | 73 20 6f 6e 20 74 68 65 | comment|s on the|
|00000680| 73 65 20 65 73 74 69 6d | 61 74 65 73 20 74 6f 20 |se estim|ates to |
|00000690| 62 72 6e 73 74 6e 64 40 | 6e 79 75 2e 65 64 75 2c |brnstnd@|nyu.edu,|
|000006a0| 0a 63 63 20 74 68 65 20 | 4f 66 66 69 63 65 20 6f |.cc the |Office o|
|000006b0| 66 20 4d 61 6e 61 67 65 | 6d 65 6e 74 20 61 6e 64 |f Manage|ment and|
|000006c0| 20 42 75 64 67 65 74 2c | 20 50 61 70 65 72 77 6f | Budget,| Paperwo|
|000006d0| 72 6b 20 52 65 64 75 63 | 74 69 6f 6e 20 44 69 76 |rk Reduc|tion Div|
|000006e0| 69 73 69 6f 6e 2e 0a 0a | 2d 2d 2d 44 61 6e 0a 0a |ision...|---Dan..|
|000006f0| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000700| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000710| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|00000720| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000730| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|00000740| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|00000750| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|00000760| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|00000770| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|00000780| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|00000790| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|000007a0| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|000007b0| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|000007c0| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|000007d0| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|000007e0| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|000007f0| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|00000800| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|00000810| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|00000820| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000830| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000840| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|00000850| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 73 68 65 |:.#.."En|d of she|
|00000860| 6c 6c 20 61 72 63 68 69 | 76 65 2e 22 0a 23 20 43 |ll archi|ve.".# C|
|00000870| 6f 6e 74 65 6e 74 73 3a | 20 20 46 49 4c 45 53 20 |ontents:| FILES |
|00000880| 52 45 41 44 4d 45 20 46 | 4f 52 4d 4c 45 54 54 45 |README F|ORMLETTE|
|00000890| 52 20 43 48 41 4e 47 45 | 53 20 49 4e 53 54 41 4c |R CHANGE|S INSTAL|
|000008a0| 4c 20 4d 61 6b 65 66 69 | 6c 65 20 61 75 74 68 64 |L Makefi|le authd|
|000008b0| 2e 38 0a 23 20 20 20 61 | 75 74 68 75 73 65 72 2e |.8.# a|uthuser.|
|000008c0| 33 20 74 63 70 75 69 64 | 2e 38 20 74 63 70 75 6e |3 tcpuid|.8 tcpun|
|000008d0| 61 6d 65 2e 38 20 61 75 | 74 68 64 2e 63 20 61 75 |ame.8 au|thd.c au|
|000008e0| 74 68 75 73 65 72 2e 68 | 20 61 75 74 68 75 73 65 |thuser.h| authuse|
|000008f0| 72 2e 63 0a 23 20 20 20 | 74 65 73 74 2e 63 20 6e |r.c.# |test.c n|
|00000900| 65 74 73 74 61 74 75 69 | 64 20 72 66 63 39 33 31 |etstatui|d rfc931|
|00000910| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 62 72 |.# Wrapp|ed by br|
|00000920| 6e 73 74 6e 64 40 6b 72 | 61 6d 64 65 6e 20 6f 6e |nstnd@kr|amden on|
|00000930| 20 57 65 64 20 46 65 62 | 20 20 36 20 32 33 3a 31 | Wed Feb| 6 23:1|
|00000940| 39 3a 31 38 20 31 39 39 | 31 0a 50 41 54 48 3d 2f |9:18 199|1.PATH=/|
|00000950| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|00000960| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|00000970| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|00000980| 46 49 4c 45 53 27 20 2d | 61 20 22 24 7b 31 7d 22 |FILES' -|a "${1}"|
|00000990| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000009a0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000009b0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000009c0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000009d0| 46 49 4c 45 53 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |FILES'\"|.else.ec|
|000009e0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000009f0| 69 6e 67 20 5c 22 27 46 | 49 4c 45 53 27 5c 22 20 |ing \"'F|ILES'\" |
|00000a00| 5c 28 31 34 33 20 63 68 | 61 72 61 63 74 65 72 73 |\(143 ch|aracters|
|00000a10| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00000a20| 3e 27 46 49 4c 45 53 27 | 20 3c 3c 27 45 4e 44 5f |>'FILES'| <<'END_|
|00000a30| 4f 46 5f 46 49 4c 45 27 | 0a 58 46 49 4c 45 53 0a |OF_FILE'|.XFILES.|
|00000a40| 58 52 45 41 44 4d 45 0a | 58 46 4f 52 4d 4c 45 54 |XREADME.|XFORMLET|
|00000a50| 54 45 52 0a 58 43 48 41 | 4e 47 45 53 0a 58 49 4e |TER.XCHA|NGES.XIN|
|00000a60| 53 54 41 4c 4c 0a 58 4d | 61 6b 65 66 69 6c 65 0a |STALL.XM|akefile.|
|00000a70| 58 61 75 74 68 64 2e 38 | 0a 58 61 75 74 68 75 73 |Xauthd.8|.Xauthus|
|00000a80| 65 72 2e 33 0a 58 74 63 | 70 75 69 64 2e 38 0a 58 |er.3.Xtc|puid.8.X|
|00000a90| 74 63 70 75 6e 61 6d 65 | 2e 38 0a 58 61 75 74 68 |tcpuname|.8.Xauth|
|00000aa0| 64 2e 63 0a 58 61 75 74 | 68 75 73 65 72 2e 68 0a |d.c.Xaut|huser.h.|
|00000ab0| 58 61 75 74 68 75 73 65 | 72 2e 63 0a 58 74 65 73 |Xauthuse|r.c.Xtes|
|00000ac0| 74 2e 63 0a 58 6e 65 74 | 73 74 61 74 75 69 64 0a |t.c.Xnet|statuid.|
|00000ad0| 58 72 66 63 39 33 31 0a | 45 4e 44 5f 4f 46 5f 46 |Xrfc931.|END_OF_F|
|00000ae0| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 31 34 33 20 |ILE.if t|est 143 |
|00000af0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 46 49 4c |-ne `wc |-c <'FIL|
|00000b00| 45 53 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ES'`; th|en. e|
|00000b10| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 46 49 4c |cho shar|: \"'FIL|
|00000b20| 45 53 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |ES'\" un|packed w|
|00000b30| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00000b40| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 46 49 4c |fi.# end| of 'FIL|
|00000b50| 45 53 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |ES'.fi.i|f test -|
|00000b60| 66 20 27 52 45 41 44 4d | 45 27 20 2d 61 20 22 24 |f 'READM|E' -a "$|
|00000b70| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00000b80| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00000b90| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00000ba0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00000bb0| 20 5c 22 27 52 45 41 44 | 4d 45 27 5c 22 0a 65 6c | \"'READ|ME'\".el|
|00000bc0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00000bd0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 52 45 41 44 |tracting| \"'READ|
|00000be0| 4d 45 27 5c 22 20 5c 28 | 35 30 31 31 20 63 68 61 |ME'\" \(|5011 cha|
|00000bf0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00000c00| 2f 5e 58 2f 2f 22 20 3e | 27 52 45 41 44 4d 45 27 |/^X//" >|'README'|
|00000c10| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00000c20| 0a 58 61 75 74 68 64 20 | 2d 20 61 75 74 68 65 6e |.Xauthd |- authen|
|00000c30| 74 69 63 61 74 69 6f 6e | 20 73 65 72 76 65 72 20 |tication| server |
|00000c40| 64 61 65 6d 6f 6e 0a 58 | 74 63 70 75 69 64 2c 20 |daemon.X|tcpuid, |
|00000c50| 74 63 70 75 6e 61 6d 65 | 20 2d 20 66 69 6e 64 20 |tcpuname| - find |
|00000c60| 6f 75 74 20 77 68 69 63 | 68 20 75 73 65 72 20 6f |out whic|h user o|
|00000c70| 77 6e 73 20 61 20 63 6f | 6e 6e 65 63 74 69 6f 6e |wns a co|nnection|
|00000c80| 0a 58 61 75 74 68 75 73 | 65 72 20 2d 20 72 65 6d |.Xauthus|er - rem|
|00000c90| 6f 74 65 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 |ote auth|enticati|
|00000ca0| 6f 6e 20 6c 69 62 72 61 | 72 79 0a 58 0a 58 61 75 |on libra|ry.X.Xau|
|00000cb0| 74 68 64 20 69 73 20 61 | 20 6b 65 72 6e 65 6c 2d |thd is a| kernel-|
|00000cc0| 6c 65 76 65 6c 20 69 6d | 70 6c 65 6d 65 6e 74 61 |level im|plementa|
|00000cd0| 74 69 6f 6e 20 6f 66 20 | 52 46 43 20 39 33 31 2c |tion of |RFC 931,|
|00000ce0| 20 74 68 65 20 41 75 74 | 68 65 6e 74 69 63 61 74 | the Aut|henticat|
|00000cf0| 69 6f 6e 0a 58 53 65 72 | 76 65 72 2e 20 52 46 43 |ion.XSer|ver. RFC|
|00000d00| 20 39 33 31 20 70 72 6f | 76 69 64 65 73 20 74 68 | 931 pro|vides th|
|00000d10| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 75 73 |e name o|f the us|
|00000d20| 65 72 20 6f 77 6e 69 6e | 67 20 61 20 54 43 50 20 |er ownin|g a TCP |
|00000d30| 63 6f 6e 6e 65 63 74 69 | 6f 6e 2e 0a 58 54 68 69 |connecti|on..XThi|
|00000d40| 73 20 68 65 6c 70 73 20 | 6e 65 74 77 6f 72 6b 20 |s helps |network |
|00000d50| 73 65 63 75 72 69 74 79 | 3a 20 75 6e 6c 65 73 73 |security|: unless|
|00000d60| 20 54 43 50 20 69 74 73 | 65 6c 66 20 69 73 20 63 | TCP its|elf is c|
|00000d70| 6f 6d 70 72 6f 6d 69 73 | 65 64 2c 20 69 74 20 69 |ompromis|ed, it i|
|00000d80| 73 0a 58 69 6d 70 6f 73 | 73 69 62 6c 65 20 74 6f |s.Ximpos|sible to|
|00000d90| 20 66 6f 72 67 65 20 6d | 61 69 6c 20 6f 72 20 6e | forge m|ail or n|
|00000da0| 65 77 73 20 62 65 74 77 | 65 65 6e 20 63 6f 6d 70 |ews betw|een comp|
|00000db0| 75 74 65 72 73 20 73 75 | 70 70 6f 72 74 69 6e 67 |uters su|pporting|
|00000dc0| 20 52 46 43 20 39 33 31 | 2e 0a 58 49 74 20 61 6c | RFC 931|..XIt al|
|00000dd0| 73 6f 20 62 65 63 6f 6d | 65 73 20 6d 75 63 68 20 |so becom|es much |
|00000de0| 65 61 73 69 65 72 20 74 | 6f 20 74 72 61 63 65 20 |easier t|o trace |
|00000df0| 61 74 74 61 63 6b 65 72 | 73 20 74 68 61 6e 20 69 |attacker|s than i|
|00000e00| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 2c 0a 58 |n the cu|rrent,.X|
|00000e10| 6c 61 72 67 65 6c 79 20 | 61 6e 6f 6e 79 6d 6f 75 |largely |anonymou|
|00000e20| 73 2c 20 6e 65 74 77 6f | 72 6b 2e 20 61 75 74 68 |s, netwo|rk. auth|
|00000e30| 64 20 72 65 71 75 69 72 | 65 73 20 6e 6f 20 63 68 |d requir|es no ch|
|00000e40| 61 6e 67 65 73 20 74 6f | 20 63 75 72 72 65 6e 74 |anges to| current|
|00000e50| 20 63 6f 64 65 3a 0a 58 | 65 76 65 72 79 20 63 6f | code:.X|every co|
|00000e60| 6e 6e 65 63 74 28 29 20 | 61 6e 64 20 61 63 63 65 |nnect() |and acce|
|00000e70| 70 74 28 29 20 69 73 20 | 61 75 74 68 65 6e 74 69 |pt() is |authenti|
|00000e80| 63 61 74 65 64 20 61 75 | 74 6f 6d 61 74 69 63 61 |cated au|tomatica|
|00000e90| 6c 6c 79 2c 20 77 69 74 | 68 20 6e 6f 0a 58 6c 6f |lly, wit|h no.Xlo|
|00000ea0| 73 73 20 6f 66 20 65 66 | 66 69 63 69 65 6e 63 79 |ss of ef|ficiency|
|00000eb0| 2e 0a 58 0a 58 74 63 70 | 75 69 64 20 61 6e 64 20 |..X.Xtcp|uid and |
|00000ec0| 74 63 70 75 6e 61 6d 65 | 20 61 72 65 20 74 68 65 |tcpuname| are the|
|00000ed0| 20 73 61 6d 65 20 70 72 | 6f 67 72 61 6d 2c 20 62 | same pr|ogram, b|
|00000ee0| 75 74 20 6d 6f 72 65 20 | 73 75 69 74 61 62 6c 65 |ut more |suitable|
|00000ef0| 20 66 6f 72 20 6c 6f 63 | 61 6c 0a 58 75 73 65 20 | for loc|al.Xuse |
|00000f00| 66 72 6f 6d 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |from the| command|
|00000f10| 20 6c 69 6e 65 20 62 79 | 20 61 20 75 73 65 72 20 | line by| a user |
|00000f20| 6f 72 20 73 79 73 74 65 | 6d 20 61 64 6d 69 6e 69 |or syste|m admini|
|00000f30| 73 74 72 61 74 6f 72 2e | 20 54 68 65 79 20 73 68 |strator.| They sh|
|00000f40| 6f 77 0a 58 77 68 69 63 | 68 20 6c 6f 63 61 6c 20 |ow.Xwhic|h local |
|00000f50| 75 73 65 72 20 63 72 65 | 61 74 65 64 20 61 20 67 |user cre|ated a g|
|00000f60| 69 76 65 6e 20 54 43 50 | 20 63 6f 6e 6e 65 63 74 |iven TCP| connect|
|00000f70| 69 6f 6e 2e 0a 58 0a 58 | 61 75 74 68 75 73 65 72 |ion..X.X|authuser|
|00000f80| 20 69 73 20 61 20 6c 69 | 62 72 61 72 79 20 65 6e | is a li|brary en|
|00000f90| 63 61 70 73 75 6c 61 74 | 69 6e 67 20 63 6c 69 65 |capsulat|ing clie|
|00000fa0| 6e 74 20 75 73 65 20 6f | 66 20 52 46 43 20 39 33 |nt use o|f RFC 93|
|00000fb0| 31 2e 20 49 74 20 74 61 | 6c 6b 73 20 74 6f 20 61 |1. It ta|lks to a|
|00000fc0| 0a 58 72 65 6d 6f 74 65 | 20 41 75 74 68 65 6e 74 |.Xremote| Authent|
|00000fd0| 69 63 61 74 69 6f 6e 20 | 53 65 72 76 65 72 20 74 |ication |Server t|
|00000fe0| 6f 20 66 69 6e 64 20 6f | 75 74 20 74 68 65 20 75 |o find o|ut the u|
|00000ff0| 73 65 72 6e 61 6d 65 20 | 6f 6e 20 74 68 65 20 6f |sername |on the o|
|00001000| 74 68 65 72 20 73 69 64 | 65 0a 58 6f 66 20 61 20 |ther sid|e.Xof a |
|00001010| 67 69 76 65 6e 20 63 6f | 6e 6e 65 63 74 69 6f 6e |given co|nnection|
|00001020| 2e 0a 58 0a 58 4f 6e 6c | 79 20 72 6f 6f 74 20 63 |..X.XOnl|y root c|
|00001030| 61 6e 20 69 6e 73 74 61 | 6c 6c 20 61 75 74 68 64 |an insta|ll authd|
|00001040| 2e 20 48 6f 77 65 76 65 | 72 2c 20 6d 6f 73 74 20 |. Howeve|r, most |
|00001050| 63 75 72 72 65 6e 74 20 | 73 79 73 74 65 6d 73 20 |current |systems |
|00001060| 61 72 65 20 69 6e 73 65 | 63 75 72 65 0a 58 65 6e |are inse|cure.Xen|
|00001070| 6f 75 67 68 20 74 68 61 | 74 20 61 6e 79 20 75 73 |ough tha|t any us|
|00001080| 65 72 20 63 61 6e 20 72 | 75 6e 20 74 63 70 75 69 |er can r|un tcpui|
|00001090| 64 20 61 6e 64 20 74 63 | 70 75 6e 61 6d 65 2e 20 |d and tc|puname. |
|000010a0| 61 75 74 68 75 73 65 72 | 20 69 73 20 6d 65 61 6e |authuser| is mean|
|000010b0| 74 20 66 6f 72 0a 58 75 | 73 65 20 62 79 20 61 6e |t for.Xu|se by an|
|000010c0| 79 20 70 72 6f 67 72 61 | 6d 2e 0a 58 0a 58 0a 58 |y progra|m..X.X.X|
|000010d0| 0a 58 61 75 74 68 64 20 | 76 65 72 73 69 6f 6e 20 |.Xauthd |version |
|000010e0| 33 2e 30 2c 20 46 65 62 | 72 75 61 72 79 20 35 2c |3.0, Feb|ruary 5,|
|000010f0| 20 31 39 39 31 2e 0a 58 | 50 6c 61 63 65 64 20 69 | 1991..X|Placed i|
|00001100| 6e 74 6f 20 74 68 65 20 | 70 75 62 6c 69 63 20 64 |nto the |public d|
|00001110| 6f 6d 61 69 6e 20 62 79 | 20 44 61 6e 69 65 6c 20 |omain by| Daniel |
|00001120| 4a 2e 20 42 65 72 6e 73 | 74 65 69 6e 2e 0a 58 53 |J. Berns|tein..XS|
|00001130| 6f 6d 65 20 6f 66 20 74 | 68 65 20 63 6f 64 65 20 |ome of t|he code |
|00001140| 69 6e 20 61 75 74 68 64 | 20 77 61 73 20 69 6e 73 |in authd| was ins|
|00001150| 70 69 72 65 64 20 62 79 | 20 63 6f 64 65 20 77 72 |pired by| code wr|
|00001160| 69 74 74 65 6e 20 62 79 | 0a 58 56 69 63 20 41 62 |itten by|.XVic Ab|
|00001170| 65 6c 6c 2c 20 61 62 65 | 40 6d 61 63 65 2e 63 63 |ell, abe|@mace.cc|
|00001180| 2e 70 75 72 64 75 65 2e | 65 64 75 2c 20 66 6f 72 |.purdue.|edu, for|
|00001190| 20 74 68 65 20 6f 66 69 | 6c 65 73 20 70 72 6f 67 | the ofi|les prog|
|000011a0| 72 61 6d 2e 0a 58 0a 58 | 0a 58 4f 72 67 61 6e 69 |ram..X.X|.XOrgani|
|000011b0| 7a 61 74 69 6f 6e 20 6f | 66 20 52 45 41 44 4d 45 |zation o|f README|
|000011c0| 3a 0a 58 0a 58 31 2e 20 | 46 69 6c 65 73 0a 58 32 |:.X.X1. |Files.X2|
|000011d0| 2e 20 52 65 71 75 69 72 | 65 6d 65 6e 74 73 0a 58 |. Requir|ements.X|
|000011e0| 33 2e 20 48 6f 77 20 74 | 6f 20 63 6f 6e 66 69 67 |3. How t|o config|
|000011f0| 75 72 65 20 61 75 74 68 | 64 0a 58 34 2e 20 48 6f |ure auth|d.X4. Ho|
|00001200| 77 20 74 6f 20 63 6f 6d | 70 69 6c 65 20 61 75 74 |w to com|pile aut|
|00001210| 68 64 0a 58 35 2e 20 48 | 6f 77 20 74 6f 20 69 6e |hd.X5. H|ow to in|
|00001220| 73 74 61 6c 6c 20 61 75 | 74 68 64 0a 58 36 2e 20 |stall au|thd.X6. |
|00001230| 54 4f 44 4f 20 6c 69 73 | 74 0a 58 0a 58 0a 58 31 |TODO lis|t.X.X.X1|
|00001240| 2e 20 46 69 6c 65 73 3a | 0a 58 0a 58 52 45 41 44 |. Files:|.X.XREAD|
|00001250| 4d 45 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 |ME | this|
|00001260| 20 66 69 6c 65 0a 58 46 | 4f 52 4d 4c 45 54 54 45 | file.XF|ORMLETTE|
|00001270| 52 20 20 20 20 20 20 66 | 6f 72 6d 20 6c 65 74 74 |R f|orm lett|
|00001280| 65 72 20 74 6f 20 73 65 | 6e 64 20 74 6f 20 74 68 |er to se|nd to th|
|00001290| 65 20 61 75 74 68 6f 72 | 0a 58 46 49 4c 45 53 20 |e author|.XFILES |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 66 69 6c 65 20 6c | | file l|
|000012b0| 69 73 74 0a 58 49 4e 53 | 54 41 4c 4c 20 20 20 20 |ist.XINS|TALL |
|000012c0| 20 20 20 20 20 66 72 69 | 65 6e 64 6c 79 20 69 6e | fri|endly in|
|000012d0| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 73 63 72 69 70 |stallati|on scrip|
|000012e0| 74 0a 58 43 48 41 4e 47 | 45 53 20 20 20 20 20 20 |t.XCHANG|ES |
|000012f0| 20 20 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f | descr|iption o|
|00001300| 66 20 63 68 61 6e 67 65 | 73 20 73 69 6e 63 65 20 |f change|s since |
|00001310| 66 69 72 73 74 20 64 69 | 73 74 72 69 62 75 74 65 |first di|stribute|
|00001320| 64 20 76 65 72 73 69 6f | 6e 0a 58 4d 61 6b 65 66 |d versio|n.XMakef|
|00001330| 69 6c 65 20 20 20 20 20 | 20 20 20 63 6f 6d 70 69 |ile | compi|
|00001340| 6c 61 74 69 6f 6e 20 63 | 6f 6d 6d 61 6e 64 73 0a |lation c|ommands.|
|00001350| 58 61 75 74 68 64 2e 63 | 20 20 20 20 20 20 20 20 |Xauthd.c| |
|00001360| 20 74 68 65 20 61 75 74 | 68 64 20 70 72 6f 67 72 | the aut|hd progr|
|00001370| 61 6d 0a 58 61 75 74 68 | 75 73 65 72 2e 68 20 20 |am.Xauth|user.h |
|00001380| 20 20 20 20 74 68 65 20 | 61 75 74 68 75 73 65 72 | the |authuser|
|00001390| 20 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 0a 58 61 | include| file.Xa|
|000013a0| 75 74 68 75 73 65 72 2e | 63 20 20 20 20 20 20 74 |uthuser.|c t|
|000013b0| 68 65 20 61 75 74 68 75 | 73 65 72 20 6c 69 62 72 |he authu|ser libr|
|000013c0| 61 72 79 0a 58 61 75 74 | 68 64 2e 38 20 20 20 20 |ary.Xaut|hd.8 |
|000013d0| 20 20 20 20 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | doc|umentati|
|000013e0| 6f 6e 20 66 6f 72 20 61 | 75 74 68 64 0a 58 74 63 |on for a|uthd.Xtc|
|000013f0| 70 75 69 64 2e 38 20 20 | 20 20 20 20 20 20 64 6f |puid.8 | do|
|00001400| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |cumentat|ion for |
|00001410| 74 63 70 75 69 64 0a 58 | 74 63 70 75 6e 61 6d 65 |tcpuid.X|tcpuname|
|00001420| 2e 38 20 20 20 20 20 20 | 64 6f 63 75 6d 65 6e 74 |.8 |document|
|00001430| 61 74 69 6f 6e 20 66 6f | 72 20 74 63 70 75 6e 61 |ation fo|r tcpuna|
|00001440| 6d 65 0a 58 61 75 74 68 | 75 73 65 72 2e 33 20 20 |me.Xauth|user.3 |
|00001450| 20 20 20 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f | docu|mentatio|
|00001460| 6e 20 66 6f 72 20 61 75 | 74 68 75 73 65 72 0a 58 |n for au|thuser.X|
|00001470| 74 65 73 74 2e 63 20 20 | 20 20 20 20 20 20 20 20 |test.c | |
|00001480| 70 72 6f 67 72 61 6d 20 | 74 6f 20 74 65 73 74 20 |program |to test |
|00001490| 61 75 74 68 75 73 65 72 | 20 61 6e 64 20 61 75 74 |authuser| and aut|
|000014a0| 68 64 0a 58 6e 65 74 73 | 74 61 74 75 69 64 20 20 |hd.Xnets|tatuid |
|000014b0| 20 20 20 20 73 68 65 6c | 6c 20 73 63 72 69 70 74 | shel|l script|
|000014c0| 20 74 6f 20 74 65 73 74 | 20 74 63 70 75 6e 61 6d | to test| tcpunam|
|000014d0| 65 0a 58 72 66 63 39 33 | 31 20 20 20 20 20 20 20 |e.Xrfc93|1 |
|000014e0| 20 20 20 52 46 43 20 39 | 33 31 2c 20 41 75 74 68 | RFC 9|31, Auth|
|000014f0| 65 6e 74 69 63 61 74 69 | 6f 6e 20 53 65 72 76 65 |enticati|on Serve|
|00001500| 72 0a 58 0a 58 0a 58 0a | 58 32 2e 20 52 65 71 75 |r.X.X.X.|X2. Requ|
|00001510| 69 72 65 6d 65 6e 74 73 | 0a 58 0a 58 61 75 74 68 |irements|.X.Xauth|
|00001520| 64 20 72 65 71 75 69 72 | 65 73 20 6e 65 74 73 74 |d requir|es netst|
|00001530| 61 74 2c 20 61 6e 64 20 | 69 74 20 70 6f 6b 65 73 |at, and |it pokes|
|00001540| 20 61 72 6f 75 6e 64 20 | 69 6e 20 73 65 76 65 72 | around |in sever|
|00001550| 61 6c 20 42 53 44 2d 73 | 70 65 63 69 66 69 63 0a |al BSD-s|pecific.|
|00001560| 58 6b 65 72 6e 65 6c 20 | 73 74 72 75 63 74 75 72 |Xkernel |structur|
|00001570| 65 73 2e 20 49 74 20 69 | 73 20 6e 6f 74 20 69 6e |es. It i|s not in|
|00001580| 68 65 72 65 6e 74 6c 79 | 20 70 6f 72 74 61 62 6c |herently| portabl|
|00001590| 65 20 63 6f 64 65 2e 20 | 4e 65 76 65 72 74 68 65 |e code. |Neverthe|
|000015a0| 6c 65 73 73 2c 20 69 74 | 0a 58 68 61 73 20 62 65 |less, it|.Xhas be|
|000015b0| 65 6e 20 63 6f 6d 70 69 | 6c 65 64 20 75 6e 64 65 |en compi|led unde|
|000015c0| 72 20 55 6c 74 72 69 78 | 2c 20 53 75 6e 4f 53 2c |r Ultrix|, SunOS,|
|000015d0| 20 61 6e 64 20 43 6f 6e | 76 65 78 20 55 4e 49 58 | and Con|vex UNIX|
|000015e0| 2c 20 61 6e 64 20 69 74 | 20 70 72 6f 62 61 62 6c |, and it| probabl|
|000015f0| 79 0a 58 64 6f 65 73 6e | 27 74 20 74 61 6b 65 20 |y.Xdoesn|'t take |
|00001600| 6d 75 63 68 20 77 6f 72 | 6b 20 74 6f 20 67 65 74 |much wor|k to get|
|00001610| 20 72 75 6e 6e 69 6e 67 | 20 75 6e 64 65 72 20 70 | running| under p|
|00001620| 72 65 74 74 79 20 6d 75 | 63 68 20 61 6e 79 20 42 |retty mu|ch any B|
|00001630| 53 44 20 73 79 73 74 65 | 6d 2e 0a 58 61 75 74 68 |SD syste|m..Xauth|
|00001640| 75 73 65 72 20 73 68 6f | 75 6c 64 20 63 6f 6d 70 |user sho|uld comp|
|00001650| 69 6c 65 20 61 6e 64 20 | 72 75 6e 20 77 69 74 68 |ile and |run with|
|00001660| 6f 75 74 20 74 72 6f 75 | 62 6c 65 20 6f 6e 20 61 |out trou|ble on a|
|00001670| 6e 79 20 42 53 44 20 73 | 79 73 74 65 6d 2e 0a 58 |ny BSD s|ystem..X|
|00001680| 0a 58 59 6f 75 20 6d 75 | 73 74 20 62 65 20 72 6f |.XYou mu|st be ro|
|00001690| 6f 74 20 74 6f 20 69 6e | 73 74 61 6c 6c 20 61 75 |ot to in|stall au|
|000016a0| 74 68 64 2e 20 48 6f 77 | 65 76 65 72 2c 20 61 75 |thd. How|ever, au|
|000016b0| 74 68 64 27 73 20 73 69 | 73 74 65 72 20 75 74 69 |thd's si|ster uti|
|000016c0| 6c 69 74 69 65 73 2c 0a | 58 74 63 70 75 69 64 20 |lities,.|Xtcpuid |
|000016d0| 61 6e 64 20 74 63 70 75 | 6e 61 6d 65 2c 20 77 69 |and tcpu|name, wi|
|000016e0| 6c 6c 20 70 72 6f 62 61 | 62 6c 79 20 77 6f 72 6b |ll proba|bly work|
|000016f0| 20 61 6e 79 77 61 79 20 | 69 66 20 2f 64 65 76 2f | anyway |if /dev/|
|00001700| 6b 6d 65 6d 20 69 73 20 | 72 65 61 64 61 62 6c 65 |kmem is |readable|
|00001710| 2e 0a 58 41 6e 79 20 70 | 72 6f 67 72 61 6d 20 63 |..XAny p|rogram c|
|00001720| 61 6e 20 75 73 65 20 74 | 68 65 20 61 75 74 68 75 |an use t|he authu|
|00001730| 73 65 72 20 6c 69 62 72 | 61 72 79 2e 0a 58 0a 58 |ser libr|ary..X.X|
|00001740| 61 75 74 68 64 20 61 6e | 64 20 61 75 74 68 75 73 |authd an|d authus|
|00001750| 65 72 20 68 61 76 65 20 | 62 65 65 6e 20 74 65 73 |er have |been tes|
|00001760| 74 65 64 20 6f 6e 20 74 | 68 65 20 66 6f 6c 6c 6f |ted on t|he follo|
|00001770| 77 69 6e 67 20 73 79 73 | 74 65 6d 73 2e 0a 58 0a |wing sys|tems..X.|
|00001780| 58 20 20 53 75 6e 20 34 | 2f 32 38 30 2c 20 53 75 |X Sun 4|/280, Su|
|00001790| 6e 4f 53 20 34 2e 30 2e | 33 0a 58 20 20 56 41 58 |nOS 4.0.|3.X VAX|
|000017a0| 20 38 36 35 30 2c 20 55 | 6c 74 72 69 78 20 34 2e | 8650, U|ltrix 4.|
|000017b0| 31 0a 58 20 20 44 45 43 | 73 79 73 74 65 6d 2d 35 |1.X DEC|system-5|
|000017c0| 38 32 30 2c 20 55 6c 74 | 72 69 78 20 34 2e 30 0a |820, Ult|rix 4.0.|
|000017d0| 58 20 20 44 45 43 53 74 | 61 74 69 6f 6e 2d 35 34 |X DECSt|ation-54|
|000017e0| 30 30 2c 20 55 6c 74 72 | 69 78 20 34 2e 30 0a 58 |00, Ultr|ix 4.0.X|
|000017f0| 0a 58 49 66 20 79 6f 75 | 72 20 6d 61 63 68 69 6e |.XIf you|r machin|
|00001800| 65 20 69 73 6e 27 74 20 | 69 6e 20 74 68 69 73 20 |e isn't |in this |
|00001810| 6c 69 73 74 2c 20 61 6e | 64 20 79 6f 75 20 67 65 |list, an|d you ge|
|00001820| 74 20 74 68 65 20 70 72 | 6f 67 72 61 6d 73 20 77 |t the pr|ograms w|
|00001830| 6f 72 6b 69 6e 67 2c 0a | 58 2a 70 6c 65 61 73 65 |orking,.|X*please|
|00001840| 2a 20 73 65 6e 64 20 61 | 20 6e 6f 74 65 20 74 6f |* send a| note to|
|00001850| 20 6d 65 20 61 74 20 62 | 72 6e 73 74 6e 64 40 6e | me at b|rnstnd@n|
|00001860| 79 75 2e 65 64 75 20 6f | 6e 20 74 68 65 20 49 6e |yu.edu o|n the In|
|00001870| 74 65 72 6e 65 74 20 64 | 65 73 63 72 69 62 69 6e |ternet d|escribin|
|00001880| 67 0a 58 77 68 61 74 20 | 79 6f 75 20 68 61 64 20 |g.Xwhat |you had |
|00001890| 74 6f 20 64 6f 20 74 6f | 20 6d 61 6b 65 20 74 68 |to do to| make th|
|000018a0| 65 20 70 72 6f 67 72 61 | 6d 73 20 63 6f 6d 70 69 |e progra|ms compi|
|000018b0| 6c 65 2e 20 28 4f 66 20 | 63 6f 75 72 73 65 2c 20 |le. (Of |course, |
|000018c0| 70 6c 65 61 73 65 20 61 | 6c 73 6f 0a 58 6c 65 74 |please a|lso.Xlet|
|000018d0| 20 6d 65 20 6b 6e 6f 77 | 20 69 66 20 79 6f 75 20 | me know| if you |
|000018e0| 68 61 76 65 20 74 72 6f | 75 62 6c 65 2c 20 6f 72 |have tro|uble, or|
|000018f0| 20 69 66 20 79 6f 75 20 | 68 61 76 65 20 63 6f 6d | if you |have com|
|00001900| 6d 65 6e 74 73 2c 20 71 | 75 65 73 74 69 6f 6e 73 |ments, q|uestions|
|00001910| 2c 20 6f 72 0a 58 73 75 | 67 67 65 73 74 69 6f 6e |, or.Xsu|ggestion|
|00001920| 73 2e 29 20 49 27 64 20 | 72 61 74 68 65 72 20 62 |s.) I'd |rather b|
|00001930| 65 20 66 6c 6f 6f 64 65 | 64 20 77 69 74 68 20 72 |e floode|d with r|
|00001940| 65 70 6f 72 74 73 20 61 | 6e 64 20 62 65 20 61 62 |eports a|nd be ab|
|00001950| 6c 65 20 74 6f 20 63 6f | 6d 70 69 6c 65 0a 58 61 |le to co|mpile.Xa|
|00001960| 20 6d 6f 72 65 20 63 6f | 6d 70 72 65 68 65 6e 73 | more co|mprehens|
|00001970| 69 76 65 20 6c 69 73 74 | 20 74 68 61 6e 20 68 61 |ive list| than ha|
|00001980| 76 65 20 6e 6f 20 66 65 | 65 64 62 61 63 6b 20 62 |ve no fe|edback b|
|00001990| 65 63 61 75 73 65 20 65 | 76 65 72 79 6f 6e 65 20 |ecause e|veryone |
|000019a0| 61 73 73 75 6d 65 73 0a | 58 73 6f 6d 65 6f 6e 65 |assumes.|Xsomeone|
|000019b0| 20 65 6c 73 65 20 68 61 | 73 20 74 61 6c 6b 65 64 | else ha|s talked|
|000019c0| 20 74 6f 20 6d 65 20 66 | 69 72 73 74 2e 20 55 73 | to me f|irst. Us|
|000019d0| 65 20 46 4f 52 4d 4c 45 | 54 54 45 52 20 69 66 20 |e FORMLE|TTER if |
|000019e0| 79 6f 75 20 77 61 6e 74 | 2e 20 54 68 61 6e 6b 73 |you want|. Thanks|
|000019f0| 0a 58 66 6f 72 20 62 65 | 69 6e 67 20 61 20 67 6f |.Xfor be|ing a go|
|00001a00| 6f 64 20 73 70 6f 72 74 | 2e 0a 58 0a 58 0a 58 0a |od sport|..X.X.X.|
|00001a10| 58 33 2e 20 48 6f 77 20 | 74 6f 20 63 6f 6e 66 69 |X3. How |to confi|
|00001a20| 67 75 72 65 20 61 75 74 | 68 64 0a 58 0a 58 45 69 |gure aut|hd.X.XEi|
|00001a30| 74 68 65 72 20 61 75 74 | 68 64 2e 63 20 68 61 73 |ther aut|hd.c has|
|00001a40| 20 74 68 65 20 72 69 67 | 68 74 20 6d 61 67 69 63 | the rig|ht magic|
|00001a50| 20 74 6f 20 63 6f 6d 70 | 69 6c 65 20 61 6e 64 20 | to comp|ile and |
|00001a60| 72 75 6e 20 6f 6e 20 79 | 6f 75 72 20 73 79 73 74 |run on y|our syst|
|00001a70| 65 6d 2c 20 6f 72 0a 58 | 69 74 20 64 6f 65 73 6e |em, or.X|it doesn|
|00001a80| 27 74 2e 20 49 6e 20 74 | 68 65 20 66 69 72 73 74 |'t. In t|he first|
|00001a90| 20 63 61 73 65 20 79 6f | 75 20 64 6f 6e 27 74 20 | case yo|u don't |
|00001aa0| 68 61 76 65 20 74 6f 20 | 63 6f 6e 66 69 67 75 72 |have to |configur|
|00001ab0| 65 20 61 6e 79 74 68 69 | 6e 67 2c 20 61 6e 64 0a |e anythi|ng, and.|
|00001ac0| 58 69 6e 20 74 68 65 20 | 73 65 63 6f 6e 64 20 63 |Xin the |second c|
|00001ad0| 61 73 65 20 61 75 74 6f | 6d 61 74 69 63 20 63 6f |ase auto|matic co|
|00001ae0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 77 6f 75 6c |nfigurat|ion woul|
|00001af0| 64 20 62 65 20 70 72 65 | 74 74 79 20 6d 75 63 68 |d be pre|tty much|
|00001b00| 0a 58 68 6f 70 65 6c 65 | 73 73 2e 20 28 49 66 20 |.Xhopele|ss. (If |
|00001b10| 61 75 74 68 64 20 64 6f | 65 73 6e 27 74 20 63 6f |authd do|esn't co|
|00001b20| 6d 70 69 6c 65 2c 20 79 | 6f 75 20 6d 69 67 68 74 |mpile, y|ou might|
|00001b30| 20 74 72 79 20 73 65 6e | 64 69 6e 67 20 6d 65 20 | try sen|ding me |
|00001b40| 74 68 65 0a 58 63 6f 6d | 70 69 6c 65 72 20 6f 75 |the.Xcom|piler ou|
|00001b50| 74 70 75 74 20 74 6f 20 | 73 65 65 20 69 66 20 49 |tput to |see if I|
|00001b60| 20 63 61 6e 20 66 69 67 | 75 72 65 20 6f 75 74 20 | can fig|ure out |
|00001b70| 68 6f 77 20 74 6f 20 6d | 61 6b 65 20 69 74 20 77 |how to m|ake it w|
|00001b80| 6f 72 6b 20 6f 6e 20 79 | 6f 75 72 0a 58 6d 61 63 |ork on y|our.Xmac|
|00001b90| 68 69 6e 65 2e 29 20 54 | 68 65 20 61 75 74 68 75 |hine.) T|he authu|
|00001ba0| 73 65 72 20 6c 69 62 72 | 61 72 79 20 73 68 6f 75 |ser libr|ary shou|
|00001bb0| 6c 64 20 63 6f 6d 70 69 | 6c 65 20 77 69 74 68 6f |ld compi|le witho|
|00001bc0| 75 74 20 74 72 6f 75 62 | 6c 65 20 69 6e 20 61 6e |ut troub|le in an|
|00001bd0| 79 0a 58 63 61 73 65 2e | 0a 58 0a 58 59 6f 75 20 |y.Xcase.|.X.XYou |
|00001be0| 63 61 6e 20 63 68 61 6e | 67 65 20 43 43 20 6f 72 |can chan|ge CC or|
|00001bf0| 20 43 43 4f 50 54 53 20 | 69 6e 20 4d 61 6b 65 66 | CCOPTS |in Makef|
|00001c00| 69 6c 65 20 69 66 20 79 | 6f 75 20 77 61 6e 74 2e |ile if y|ou want.|
|00001c10| 20 49 66 20 79 6f 75 20 | 77 61 6e 74 20 61 75 74 | If you |want aut|
|00001c20| 68 64 0a 58 74 6f 20 72 | 65 63 6f 72 64 20 63 6f |hd.Xto r|ecord co|
|00001c30| 6e 6e 65 63 74 69 6f 6e | 73 20 74 68 72 6f 75 67 |nnection|s throug|
|00001c40| 68 20 73 79 73 6c 6f 67 | 20 61 74 20 4c 4f 47 5f |h syslog| at LOG_|
|00001c50| 44 45 42 55 47 2c 20 64 | 65 66 69 6e 65 20 2d 44 |DEBUG, d|efine -D|
|00001c60| 55 53 45 5f 53 59 53 4c | 4f 47 0a 58 69 6e 20 74 |USE_SYSL|OG.Xin t|
|00001c70| 68 65 20 4d 61 6b 65 66 | 69 6c 65 2e 0a 58 0a 58 |he Makef|ile..X.X|
|00001c80| 0a 58 0a 58 34 2e 20 48 | 6f 77 20 74 6f 20 63 6f |.X.X4. H|ow to co|
|00001c90| 6d 70 69 6c 65 20 61 75 | 74 68 64 0a 58 0a 58 4a |mpile au|thd.X.XJ|
|00001ca0| 75 73 74 20 6d 61 6b 65 | 2e 20 54 68 69 73 20 77 |ust make|. This w|
|00001cb0| 69 6c 6c 20 63 72 65 61 | 74 65 20 61 75 74 68 64 |ill crea|te authd|
|00001cc0| 2c 20 74 63 70 75 69 64 | 2c 20 74 63 70 75 6e 61 |, tcpuid|, tcpuna|
|00001cd0| 6d 65 2c 20 61 75 74 68 | 75 73 65 72 2e 6f 2c 20 |me, auth|user.o, |
|00001ce0| 61 6e 64 0a 58 74 65 73 | 74 2e 0a 58 0a 58 0a 58 |and.Xtes|t..X.X.X|
|00001cf0| 0a 58 35 2e 20 48 6f 77 | 20 74 6f 20 69 6e 73 74 |.X5. How| to inst|
|00001d00| 61 6c 6c 20 61 75 74 68 | 64 0a 58 0a 58 49 66 20 |all auth|d.X.XIf |
|00001d10| 79 6f 75 20 64 6f 6e 27 | 74 20 68 61 76 65 20 70 |you don'|t have p|
|00001d20| 72 69 76 69 6c 65 67 65 | 73 2c 20 73 6b 69 70 20 |rivilege|s, skip |
|00001d30| 74 68 69 73 20 70 61 72 | 74 2e 0a 58 0a 58 42 79 |this par|t..X.XBy|
|00001d40| 20 64 65 66 61 75 6c 74 | 2c 20 61 75 74 68 64 2c | default|, authd,|
|00001d50| 20 74 63 70 75 69 64 2c | 20 61 6e 64 20 74 63 70 | tcpuid,| and tcp|
|00001d60| 75 6e 61 6d 65 20 61 72 | 65 20 69 6e 73 74 61 6c |uname ar|e instal|
|00001d70| 6c 65 64 20 69 6e 20 2f | 65 74 63 2c 0a 58 61 75 |led in /|etc,.Xau|
|00001d80| 74 68 75 73 65 72 2e 6f | 20 69 73 20 69 6e 73 74 |thuser.o| is inst|
|00001d90| 61 6c 6c 65 64 20 61 73 | 20 2f 75 73 72 2f 6c 69 |alled as| /usr/li|
|00001da0| 62 2f 6c 69 62 61 75 74 | 68 75 73 65 72 2e 61 2c |b/libaut|huser.a,|
|00001db0| 20 61 75 74 68 75 73 65 | 72 2e 33 20 69 73 0a 58 | authuse|r.3 is.X|
|00001dc0| 69 6e 73 74 61 6c 6c 65 | 64 20 69 6e 20 2f 75 73 |installe|d in /us|
|00001dd0| 72 2f 6d 61 6e 2f 6d 61 | 6e 33 2c 20 61 6e 64 20 |r/man/ma|n3, and |
|00001de0| 61 75 74 68 64 2e 38 2c | 20 74 63 70 75 69 64 2e |authd.8,| tcpuid.|
|00001df0| 38 2c 20 61 6e 64 20 74 | 63 70 75 6e 61 6d 65 2e |8, and t|cpuname.|
|00001e00| 38 20 61 72 65 0a 58 69 | 6e 73 74 61 6c 6c 65 64 |8 are.Xi|nstalled|
|00001e10| 20 69 6e 20 2f 75 73 72 | 2f 6d 61 6e 2f 6d 61 6e | in /usr|/man/man|
|00001e20| 38 2e 20 54 68 65 20 62 | 69 6e 61 72 69 65 73 20 |8. The b|inaries |
|00001e30| 61 72 65 20 69 6e 73 74 | 61 6c 6c 65 64 20 73 65 |are inst|alled se|
|00001e40| 74 67 69 64 20 74 6f 20 | 67 72 6f 75 70 0a 58 6b |tgid to |group.Xk|
|00001e50| 6d 65 6d 2e 20 49 66 20 | 79 6f 75 20 77 61 6e 74 |mem. If |you want|
|00001e60| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 65 73 65 | to chan|ge these|
|00001e70| 20 64 65 66 61 75 6c 74 | 73 2c 20 65 64 69 74 20 | default|s, edit |
|00001e80| 49 4e 53 54 41 4c 4c 2e | 0a 58 0a 58 54 68 65 6e |INSTALL.|.X.XThen|
|00001e90| 20 72 75 6e 20 49 4e 53 | 54 41 4c 4c 20 69 6e 20 | run INS|TALL in |
|00001ea0| 61 20 72 6f 6f 74 20 73 | 68 65 6c 6c 3b 20 74 68 |a root s|hell; th|
|00001eb0| 65 20 73 63 72 69 70 74 | 20 77 69 6c 6c 20 63 68 |e script| will ch|
|00001ec0| 65 63 6b 20 65 76 65 72 | 79 20 61 63 74 69 6f 6e |eck ever|y action|
|00001ed0| 0a 58 77 69 74 68 20 79 | 6f 75 20 62 65 66 6f 72 |.Xwith y|ou befor|
|00001ee0| 65 20 64 6f 69 6e 67 20 | 69 74 2e 0a 58 0a 58 54 |e doing |it..X.XT|
|00001ef0| 6f 20 74 65 73 74 20 74 | 63 70 75 6e 61 6d 65 2c |o test t|cpuname,|
|00001f00| 20 6d 61 6b 65 20 73 75 | 72 65 20 69 74 20 69 73 | make su|re it is|
|00001f10| 20 69 6e 20 79 6f 75 72 | 20 70 61 74 68 2c 20 61 | in your| path, a|
|00001f20| 6e 64 20 72 75 6e 20 6e | 65 74 73 74 61 74 75 69 |nd run n|etstatui|
|00001f30| 64 2e 20 59 6f 75 0a 58 | 73 68 6f 75 6c 64 20 67 |d. You.X|should g|
|00001f40| 65 74 20 61 20 72 65 70 | 6f 72 74 20 6f 66 20 61 |et a rep|ort of a|
|00001f50| 6c 6c 20 61 63 74 69 76 | 65 20 6e 65 74 77 6f 72 |ll activ|e networ|
|00001f60| 6b 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 69 6e |k connec|tions in|
|00001f70| 63 6c 75 64 69 6e 67 0a | 58 75 73 65 72 6e 61 6d |cluding.|Xusernam|
|00001f80| 65 73 2e 0a 58 0a 58 54 | 6f 20 74 65 73 74 20 61 |es..X.XT|o test a|
|00001f90| 75 74 68 75 73 65 72 20 | 61 6e 64 20 61 75 74 68 |uthuser |and auth|
|00001fa0| 64 2c 20 72 75 6e 20 2e | 2f 74 65 73 74 2e 20 59 |d, run .|/test. Y|
|00001fb0| 6f 75 20 73 68 6f 75 6c | 64 20 67 65 74 20 61 6e |ou shoul|d get an|
|00001fc0| 20 60 60 65 76 65 72 79 | 74 68 69 6e 67 0a 58 6c | ``every|thing.Xl|
|00001fd0| 6f 6f 6b 73 20 6f 6b 61 | 79 27 27 20 6d 65 73 73 |ooks oka|y'' mess|
|00001fe0| 61 67 65 2e 0a 58 0a 58 | 0a 58 0a 58 36 2e 20 54 |age..X.X|.X.X6. T|
|00001ff0| 4f 44 4f 20 6c 69 73 74 | 0a 58 0a 58 66 61 73 74 |ODO list|.X.Xfast|
|00002000| 20 6d 75 6c 74 69 70 6c | 65 2d 63 6f 6e 6e 65 63 | multipl|e-connec|
|00002010| 74 69 6f 6e 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |tion ver|sion of |
|00002020| 74 63 70 75 69 64 2f 74 | 63 70 75 6e 61 6d 65 2c |tcpuid/t|cpuname,|
|00002030| 20 6c 69 6b 65 20 6e 65 | 74 73 74 61 74 75 69 64 | like ne|tstatuid|
|00002040| 3f 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |?.END_OF|_FILE.if|
|00002050| 20 74 65 73 74 20 35 30 | 31 31 20 2d 6e 65 20 60 | test 50|11 -ne `|
|00002060| 77 63 20 2d 63 20 3c 27 | 52 45 41 44 4d 45 27 60 |wc -c <'|README'`|
|00002070| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00002080| 73 68 61 72 3a 20 5c 22 | 27 52 45 41 44 4d 45 27 |shar: \"|'README'|
|00002090| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|000020a0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|000020b0| 23 20 65 6e 64 20 6f 66 | 20 27 52 45 41 44 4d 45 |# end of| 'README|
|000020c0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|000020d0| 27 46 4f 52 4d 4c 45 54 | 54 45 52 27 20 2d 61 20 |'FORMLET|TER' -a |
|000020e0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000020f0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002100| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00002110| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002120| 6c 65 20 5c 22 27 46 4f | 52 4d 4c 45 54 54 45 52 |le \"'FO|RMLETTER|
|00002130| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00002140| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00002150| 22 27 46 4f 52 4d 4c 45 | 54 54 45 52 27 5c 22 20 |"'FORMLE|TTER'\" |
|00002160| 5c 28 34 31 38 20 63 68 | 61 72 61 63 74 65 72 73 |\(418 ch|aracters|
|00002170| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00002180| 3e 27 46 4f 52 4d 4c 45 | 54 54 45 52 27 20 3c 3c |>'FORMLE|TTER' <<|
|00002190| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 54 |'END_OF_|FILE'.XT|
|000021a0| 6f 3a 20 62 72 6e 73 74 | 6e 64 40 6e 79 75 2e 65 |o: brnst|nd@nyu.e|
|000021b0| 64 75 0a 58 46 72 6f 6d | 3a 20 0a 58 44 61 74 65 |du.XFrom|: .XDate|
|000021c0| 3a 20 0a 58 0a 58 50 61 | 63 6b 61 67 65 3a 20 61 |: .X.XPa|ckage: a|
|000021d0| 75 74 68 64 20 33 2e 30 | 0a 58 4f 62 74 61 69 6e |uthd 3.0|.XObtain|
|000021e0| 65 64 20 66 72 6f 6d 20 | 28 65 2e 67 2e 2c 20 75 |ed from |(e.g., u|
|000021f0| 75 6e 65 74 2e 75 75 2e | 6e 65 74 29 3a 20 0a 58 |unet.uu.|net): .X|
|00002200| 4f 62 74 61 69 6e 65 64 | 20 62 79 20 28 65 2e 67 |Obtained| by (e.g|
|00002210| 2e 2c 20 66 74 70 29 3a | 20 0a 58 0a 58 31 2e 20 |., ftp):| .X.X1. |
|00002220| 4d 61 63 68 69 6e 65 20 | 61 72 63 68 69 74 65 63 |Machine |architec|
|00002230| 74 75 72 65 20 28 65 2e | 67 2e 2c 20 53 75 6e 20 |ture (e.|g., Sun |
|00002240| 34 2f 32 38 30 29 3a 20 | 0a 58 32 2e 20 4f 70 65 |4/280): |.X2. Ope|
|00002250| 72 61 74 69 6e 67 20 73 | 79 73 74 65 6d 20 28 65 |rating s|ystem (e|
|00002260| 2e 67 2e 2c 20 53 75 6e | 4f 53 20 34 2e 31 29 3a |.g., Sun|OS 4.1):|
|00002270| 20 0a 58 33 2e 20 4f 53 | 20 76 65 6e 64 6f 72 20 | .X3. OS| vendor |
|00002280| 28 65 2e 67 2e 2c 20 53 | 75 6e 29 3a 20 0a 58 34 |(e.g., S|un): .X4|
|00002290| 2e 20 44 6f 65 73 20 61 | 75 74 68 64 20 77 6f 72 |. Does a|uthd wor|
|000022a0| 6b 20 6f 6e 20 79 6f 75 | 72 20 6d 61 63 68 69 6e |k on you|r machin|
|000022b0| 65 20 73 6f 20 66 61 72 | 20 28 79 65 73 2f 6e 6f |e so far| (yes/no|
|000022c0| 29 3f 20 0a 58 35 2e 20 | 44 65 73 63 72 69 62 65 |)? .X5. |Describe|
|000022d0| 20 61 6e 79 20 70 72 6f | 62 6c 65 6d 73 20 79 6f | any pro|blems yo|
|000022e0| 75 27 76 65 20 68 61 64 | 20 77 69 74 68 20 61 75 |u've had| with au|
|000022f0| 74 68 64 2c 20 74 63 70 | 75 69 64 2c 20 6f 72 20 |thd, tcp|uid, or |
|00002300| 74 63 70 75 6e 61 6d 65 | 2e 0a 58 0a 58 0a 58 36 |tcpuname|..X.X.X6|
|00002310| 2e 20 41 6e 79 20 66 75 | 72 74 68 65 72 20 71 75 |. Any fu|rther qu|
|00002320| 65 73 74 69 6f 6e 73 2c | 20 63 6f 6d 6d 65 6e 74 |estions,| comment|
|00002330| 73 2c 20 6f 72 20 73 75 | 67 67 65 73 74 69 6f 6e |s, or su|ggestion|
|00002340| 73 3f 0a 58 0a 58 0a 58 | 59 6f 75 72 20 6e 61 6d |s?.X.X.X|Your nam|
|00002350| 65 3a 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |e:.END_O|F_FILE.i|
|00002360| 66 20 74 65 73 74 20 34 | 31 38 20 2d 6e 65 20 60 |f test 4|18 -ne `|
|00002370| 77 63 20 2d 63 20 3c 27 | 46 4f 52 4d 4c 45 54 54 |wc -c <'|FORMLETT|
|00002380| 45 52 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ER'`; th|en. e|
|00002390| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 46 4f 52 |cho shar|: \"'FOR|
|000023a0| 4d 4c 45 54 54 45 52 27 | 5c 22 20 75 6e 70 61 63 |MLETTER'|\" unpac|
|000023b0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|000023c0| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|000023d0| 20 27 46 4f 52 4d 4c 45 | 54 54 45 52 27 0a 66 69 | 'FORMLE|TTER'.fi|
|000023e0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 43 48 41 |.if test| -f 'CHA|
|000023f0| 4e 47 45 53 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |NGES' -a| "${1}" |
|00002400| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00002410| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00002420| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00002430| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 43 |isting f|ile \"'C|
|00002440| 48 41 4e 47 45 53 27 5c | 22 0a 65 6c 73 65 0a 65 |HANGES'\|".else.e|
|00002450| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00002460| 74 69 6e 67 20 5c 22 27 | 43 48 41 4e 47 45 53 27 |ting \"'|CHANGES'|
|00002470| 5c 22 20 5c 28 34 33 20 | 63 68 61 72 61 63 74 65 |\" \(43 |characte|
|00002480| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00002490| 22 20 3e 27 43 48 41 4e | 47 45 53 27 20 3c 3c 27 |" >'CHAN|GES' <<'|
|000024a0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 43 68 |END_OF_F|ILE'.XCh|
|000024b0| 61 6e 67 65 20 66 69 6c | 65 20 66 6f 72 20 61 75 |ange fil|e for au|
|000024c0| 74 68 64 0a 58 0a 58 0a | 58 32 2f 35 2f 39 31 3a |thd.X.X.|X2/5/91:|
|000024d0| 20 61 75 74 68 64 20 33 | 2e 30 2e 0a 45 4e 44 5f | authd 3|.0..END_|
|000024e0| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|000024f0| 34 33 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |43 -ne `|wc -c <'|
|00002500| 43 48 41 4e 47 45 53 27 | 60 3b 20 74 68 65 6e 0a |CHANGES'|`; then.|
|00002510| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00002520| 22 27 43 48 41 4e 47 45 | 53 27 5c 22 20 75 6e 70 |"'CHANGE|S'\" unp|
|00002530| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00002540| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00002550| 6f 66 20 27 43 48 41 4e | 47 45 53 27 0a 66 69 0a |of 'CHAN|GES'.fi.|
|00002560| 69 66 20 74 65 73 74 20 | 2d 66 20 27 49 4e 53 54 |if test |-f 'INST|
|00002570| 41 4c 4c 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |ALL' -a |"${1}" !|
|00002580| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00002590| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000025a0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000025b0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 49 4e |sting fi|le \"'IN|
|000025c0| 53 54 41 4c 4c 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |STALL'\"|.else.ec|
|000025d0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000025e0| 69 6e 67 20 5c 22 27 49 | 4e 53 54 41 4c 4c 27 5c |ing \"'I|NSTALL'\|
|000025f0| 22 20 5c 28 33 34 37 34 | 20 63 68 61 72 61 63 74 |" \(3474| charact|
|00002600| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00002610| 2f 22 20 3e 27 49 4e 53 | 54 41 4c 4c 27 20 3c 3c |/" >'INS|TALL' <<|
|00002620| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|00002630| 21 2f 62 69 6e 2f 73 68 | 0a 58 0a 58 23 20 43 68 |!/bin/sh|.X.X# Ch|
|00002640| 61 6e 67 65 20 6b 6d 65 | 6d 20 74 6f 20 73 74 61 |ange kme|m to sta|
|00002650| 66 66 20 61 6e 64 20 6d | 6f 64 65 20 74 6f 20 30 |ff and m|ode to 0|
|00002660| 37 35 35 20 69 66 20 79 | 6f 75 20 64 6f 6e 27 74 |755 if y|ou don't|
|00002670| 20 68 61 76 65 20 61 20 | 6b 6d 65 6d 20 67 72 6f | have a |kmem gro|
|00002680| 75 70 2c 0a 58 23 20 6f | 72 20 69 66 20 79 6f 75 |up,.X# o|r if you|
|00002690| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 6e 6f 72 6d | don't w|ant norm|
|000026a0| 61 6c 20 75 73 65 72 73 | 20 74 6f 20 62 65 20 61 |al users| to be a|
|000026b0| 62 6c 65 20 74 6f 20 75 | 73 65 20 74 68 65 73 65 |ble to u|se these|
|000026c0| 20 75 74 69 6c 69 74 69 | 65 73 2e 0a 58 4d 45 4d | utiliti|es..XMEM|
|000026d0| 3d 6b 6d 65 6d 0a 58 4d | 4f 44 45 3d 30 32 37 35 |=kmem.XM|ODE=0275|
|000026e0| 35 0a 58 0a 58 23 20 54 | 68 65 73 65 20 6d 75 73 |5.X.X# T|hese mus|
|000026f0| 74 20 61 6c 6c 20 62 65 | 20 69 6e 20 74 68 65 20 |t all be| in the |
|00002700| 73 61 6d 65 20 66 69 6c | 65 73 79 73 74 65 6d 2e |same fil|esystem.|
|00002710| 0a 58 41 55 54 48 44 3d | 2f 65 74 63 2f 61 75 74 |.XAUTHD=|/etc/aut|
|00002720| 68 64 0a 58 54 43 50 55 | 49 44 3d 2f 65 74 63 2f |hd.XTCPU|ID=/etc/|
|00002730| 74 63 70 75 69 64 0a 58 | 54 43 50 55 4e 41 4d 45 |tcpuid.X|TCPUNAME|
|00002740| 3d 2f 65 74 63 2f 74 63 | 70 75 6e 61 6d 65 0a 58 |=/etc/tc|puname.X|
|00002750| 0a 58 41 55 54 48 55 53 | 45 52 3d 2f 75 73 72 2f |.XAUTHUS|ER=/usr/|
|00002760| 6c 69 62 2f 6c 69 62 61 | 75 74 68 75 73 65 72 2e |lib/liba|uthuser.|
|00002770| 61 0a 58 0a 58 23 20 4d | 61 6e 20 70 61 67 65 73 |a.X.X# M|an pages|
|00002780| 2e 0a 58 4d 41 55 54 48 | 55 53 45 52 3d 2f 75 73 |..XMAUTH|USER=/us|
|00002790| 72 2f 6d 61 6e 2f 6d 61 | 6e 33 2f 61 75 74 68 75 |r/man/ma|n3/authu|
|000027a0| 73 65 72 2e 33 0a 58 4d | 41 55 54 48 44 3d 2f 75 |ser.3.XM|AUTHD=/u|
|000027b0| 73 72 2f 6d 61 6e 2f 6d | 61 6e 38 2f 61 75 74 68 |sr/man/m|an8/auth|
|000027c0| 64 2e 38 0a 58 4d 54 43 | 50 55 49 44 3d 2f 75 73 |d.8.XMTC|PUID=/us|
|000027d0| 72 2f 6d 61 6e 2f 6d 61 | 6e 38 2f 74 63 70 75 69 |r/man/ma|n8/tcpui|
|000027e0| 64 2e 38 0a 58 4d 54 43 | 50 55 4e 41 4d 45 3d 2f |d.8.XMTC|PUNAME=/|
|000027f0| 75 73 72 2f 6d 61 6e 2f | 6d 61 6e 38 2f 74 63 70 |usr/man/|man8/tcp|
|00002800| 75 6e 61 6d 65 2e 38 0a | 58 0a 58 23 20 4e 61 6d |uname.8.|X.X# Nam|
|00002810| 65 20 6f 66 20 70 6f 72 | 74 20 31 31 33 20 69 6e |e of por|t 113 in|
|00002820| 20 2f 65 74 63 2f 73 65 | 72 76 69 63 65 73 2e 0a | /etc/se|rvices..|
|00002830| 58 50 4f 52 54 4e 41 4d | 45 3d 61 75 74 68 0a 58 |XPORTNAM|E=auth.X|
|00002840| 0a 58 65 63 68 6f 20 22 | 45 61 63 68 20 61 63 74 |.Xecho "|Each act|
|00002850| 69 6f 6e 20 77 69 6c 6c | 20 62 65 20 70 72 69 6e |ion will| be prin|
|00002860| 74 65 64 20 62 65 66 6f | 72 65 20 69 74 20 69 73 |ted befo|re it is|
|00002870| 20 72 75 6e 2e 20 50 72 | 65 73 73 20 72 65 74 75 | run. Pr|ess retu|
|00002880| 72 6e 20 74 6f 20 70 72 | 6f 63 65 65 64 2e 22 0a |rn to pr|oceed.".|
|00002890| 58 0a 58 65 63 68 6f 20 | 22 31 2e 20 49 6e 73 74 |X.Xecho |"1. Inst|
|000028a0| 61 6c 6c 20 61 75 74 68 | 64 2c 20 74 63 70 75 69 |all auth|d, tcpui|
|000028b0| 64 2c 20 61 6e 64 20 74 | 63 70 75 6e 61 6d 65 2e |d, and t|cpuname.|
|000028c0| 22 0a 58 65 63 68 6f 20 | 22 21 20 69 6e 73 74 61 |".Xecho |"! insta|
|000028d0| 6c 6c 20 2d 63 20 2d 67 | 20 24 4d 45 4d 20 2d 6d |ll -c -g| $MEM -m|
|000028e0| 20 24 4d 4f 44 45 20 61 | 75 74 68 64 20 24 41 55 | $MODE a|uthd $AU|
|000028f0| 54 48 44 3a 20 22 20 7c | 20 74 72 20 2d 64 20 27 |THD: " || tr -d '|
|00002900| 5c 30 31 32 27 0a 58 72 | 65 61 64 20 6c 69 6e 65 |\012'.Xr|ead line|
|00002910| 0a 58 69 6e 73 74 61 6c | 6c 20 2d 63 20 2d 67 20 |.Xinstal|l -c -g |
|00002920| 22 24 4d 45 4d 22 20 2d | 6d 20 22 24 4d 4f 44 45 |"$MEM" -|m "$MODE|
|00002930| 22 20 61 75 74 68 64 20 | 22 24 41 55 54 48 44 22 |" authd |"$AUTHD"|
|00002940| 0a 58 0a 58 65 63 68 6f | 20 22 21 20 72 6d 20 2d |.X.Xecho| "! rm -|
|00002950| 66 20 24 54 43 50 55 49 | 44 3b 20 6c 6e 20 24 41 |f $TCPUI|D; ln $A|
|00002960| 55 54 48 44 20 24 54 43 | 50 55 49 44 3a 20 22 20 |UTHD $TC|PUID: " |
|00002970| 7c 20 74 72 20 2d 64 20 | 27 5c 30 31 32 27 0a 58 || tr -d |'\012'.X|
|00002980| 72 65 61 64 20 6c 69 6e | 65 0a 58 72 6d 20 2d 66 |read lin|e.Xrm -f|
|00002990| 20 22 24 54 43 50 55 49 | 44 22 3b 20 6c 6e 20 22 | "$TCPUI|D"; ln "|
|000029a0| 24 41 55 54 48 44 22 20 | 22 24 54 43 50 55 49 44 |$AUTHD" |"$TCPUID|
|000029b0| 22 0a 58 0a 58 65 63 68 | 6f 20 22 21 20 72 6d 20 |".X.Xech|o "! rm |
|000029c0| 2d 66 20 24 54 43 50 55 | 4e 41 4d 45 3b 20 6c 6e |-f $TCPU|NAME; ln|
|000029d0| 20 24 41 55 54 48 44 20 | 24 54 43 50 55 4e 41 4d | $AUTHD |$TCPUNAM|
|000029e0| 45 3a 20 22 20 7c 20 74 | 72 20 2d 64 20 27 5c 30 |E: " | t|r -d '\0|
|000029f0| 31 32 27 0a 58 72 65 61 | 64 20 6c 69 6e 65 0a 58 |12'.Xrea|d line.X|
|00002a00| 72 6d 20 2d 66 20 22 24 | 54 43 50 55 4e 41 4d 45 |rm -f "$|TCPUNAME|
|00002a10| 22 3b 20 6c 6e 20 22 24 | 41 55 54 48 44 22 20 22 |"; ln "$|AUTHD" "|
|00002a20| 24 54 43 50 55 4e 41 4d | 45 22 0a 58 0a 58 65 63 |$TCPUNAM|E".X.Xec|
|00002a30| 68 6f 20 22 32 2e 20 49 | 6e 73 74 61 6c 6c 20 74 |ho "2. I|nstall t|
|00002a40| 68 65 20 61 75 74 68 75 | 73 65 72 20 6c 69 62 72 |he authu|ser libr|
|00002a50| 61 72 79 2e 22 0a 58 65 | 63 68 6f 20 22 21 20 61 |ary.".Xe|cho "! a|
|00002a60| 72 20 72 76 20 24 41 55 | 54 48 55 53 45 52 20 61 |r rv $AU|THUSER a|
|00002a70| 75 74 68 75 73 65 72 2e | 6f 3a 20 22 20 7c 20 74 |uthuser.|o: " | t|
|00002a80| 72 20 2d 64 20 27 5c 30 | 31 32 27 0a 58 72 65 61 |r -d '\0|12'.Xrea|
|00002a90| 64 20 6c 69 6e 65 0a 58 | 61 72 20 72 76 20 22 24 |d line.X|ar rv "$|
|00002aa0| 41 55 54 48 55 53 45 52 | 22 20 61 75 74 68 75 73 |AUTHUSER|" authus|
|00002ab0| 65 72 2e 6f 0a 58 0a 58 | 65 63 68 6f 20 22 21 20 |er.o.X.X|echo "! |
|00002ac0| 72 61 6e 6c 69 62 20 24 | 41 55 54 48 55 53 45 52 |ranlib $|AUTHUSER|
|00002ad0| 3a 20 22 20 7c 20 74 72 | 20 2d 64 20 27 5c 30 31 |: " | tr| -d '\01|
|00002ae0| 32 27 0a 58 72 65 61 64 | 20 6c 69 6e 65 0a 58 72 |2'.Xread| line.Xr|
|00002af0| 61 6e 6c 69 62 20 22 24 | 41 55 54 48 55 53 45 52 |anlib "$|AUTHUSER|
|00002b00| 22 0a 58 0a 58 65 63 68 | 6f 20 22 21 20 63 68 6d |".X.Xech|o "! chm|
|00002b10| 6f 64 20 36 34 34 20 24 | 41 55 54 48 55 53 45 52 |od 644 $|AUTHUSER|
|00002b20| 3a 20 22 20 7c 20 74 72 | 20 2d 64 20 27 5c 30 31 |: " | tr| -d '\01|
|00002b30| 32 27 0a 58 72 65 61 64 | 20 6c 69 6e 65 0a 58 63 |2'.Xread| line.Xc|
|00002b40| 68 6d 6f 64 20 36 34 34 | 20 22 24 41 55 54 48 55 |hmod 644| "$AUTHU|
|00002b50| 53 45 52 22 0a 58 0a 58 | 65 63 68 6f 20 22 33 2e |SER".X.X|echo "3.|
|00002b60| 20 4d 61 6b 65 20 74 68 | 65 20 6d 61 6e 20 70 61 | Make th|e man pa|
|00002b70| 67 65 73 20 61 76 61 69 | 6c 61 62 6c 65 2e 22 0a |ges avai|lable.".|
|00002b80| 58 65 63 68 6f 20 22 21 | 20 69 6e 73 74 61 6c 6c |Xecho "!| install|
|00002b90| 20 2d 63 20 2d 6d 20 30 | 34 34 34 20 61 75 74 68 | -c -m 0|444 auth|
|00002ba0| 75 73 65 72 2e 33 20 24 | 4d 41 55 54 48 55 53 45 |user.3 $|MAUTHUSE|
|00002bb0| 52 3a 20 22 20 7c 20 74 | 72 20 2d 64 20 27 5c 30 |R: " | t|r -d '\0|
|00002bc0| 31 32 27 0a 58 72 65 61 | 64 20 6c 69 6e 65 0a 58 |12'.Xrea|d line.X|
|00002bd0| 69 6e 73 74 61 6c 6c 20 | 2d 63 20 2d 6d 20 30 34 |install |-c -m 04|
|00002be0| 34 34 20 61 75 74 68 75 | 73 65 72 2e 33 20 22 24 |44 authu|ser.3 "$|
|00002bf0| 4d 41 55 54 48 55 53 45 | 52 22 0a 58 0a 58 65 63 |MAUTHUSE|R".X.Xec|
|00002c00| 68 6f 20 22 21 20 69 6e | 73 74 61 6c 6c 20 2d 63 |ho "! in|stall -c|
|00002c10| 20 2d 6d 20 30 34 34 34 | 20 61 75 74 68 64 2e 38 | -m 0444| authd.8|
|00002c20| 20 24 4d 41 55 54 48 44 | 3a 20 22 20 7c 20 74 72 | $MAUTHD|: " | tr|
|00002c30| 20 2d 64 20 27 5c 30 31 | 32 27 0a 58 72 65 61 64 | -d '\01|2'.Xread|
|00002c40| 20 6c 69 6e 65 0a 58 69 | 6e 73 74 61 6c 6c 20 2d | line.Xi|nstall -|
|00002c50| 63 20 2d 6d 20 30 34 34 | 34 20 61 75 74 68 64 2e |c -m 044|4 authd.|
|00002c60| 38 20 22 24 4d 41 55 54 | 48 44 22 0a 58 0a 58 65 |8 "$MAUT|HD".X.Xe|
|00002c70| 63 68 6f 20 22 21 20 69 | 6e 73 74 61 6c 6c 20 2d |cho "! i|nstall -|
|00002c80| 63 20 2d 6d 20 30 34 34 | 34 20 74 63 70 75 69 64 |c -m 044|4 tcpuid|
|00002c90| 2e 38 20 24 4d 54 43 50 | 55 49 44 3a 20 22 20 7c |.8 $MTCP|UID: " ||
|00002ca0| 20 74 72 20 2d 64 20 27 | 5c 30 31 32 27 0a 58 72 | tr -d '|\012'.Xr|
|00002cb0| 65 61 64 20 6c 69 6e 65 | 0a 58 69 6e 73 74 61 6c |ead line|.Xinstal|
|00002cc0| 6c 20 2d 63 20 2d 6d 20 | 30 34 34 34 20 74 63 70 |l -c -m |0444 tcp|
|00002cd0| 75 69 64 2e 38 20 22 24 | 4d 54 43 50 55 49 44 22 |uid.8 "$|MTCPUID"|
|00002ce0| 0a 58 0a 58 65 63 68 6f | 20 22 21 20 69 6e 73 74 |.X.Xecho| "! inst|
|00002cf0| 61 6c 6c 20 2d 63 20 2d | 6d 20 30 34 34 34 20 74 |all -c -|m 0444 t|
|00002d00| 63 70 75 6e 61 6d 65 2e | 38 20 24 4d 54 43 50 55 |cpuname.|8 $MTCPU|
|00002d10| 4e 41 4d 45 3a 20 22 20 | 7c 20 74 72 20 2d 64 20 |NAME: " || tr -d |
|00002d20| 27 5c 30 31 32 27 0a 58 | 72 65 61 64 20 6c 69 6e |'\012'.X|read lin|
|00002d30| 65 0a 58 69 6e 73 74 61 | 6c 6c 20 2d 63 20 2d 6d |e.Xinsta|ll -c -m|
|00002d40| 20 30 34 34 34 20 74 63 | 70 75 6e 61 6d 65 2e 38 | 0444 tc|puname.8|
|00002d50| 20 22 24 4d 54 43 50 55 | 4e 41 4d 45 22 0a 58 0a | "$MTCPU|NAME".X.|
|00002d60| 58 65 63 68 6f 20 22 34 | 2e 20 4d 61 6b 65 20 73 |Xecho "4|. Make s|
|00002d70| 75 72 65 20 61 6e 20 61 | 75 74 68 20 70 6f 72 74 |ure an a|uth port|
|00002d80| 20 69 73 20 69 6e 20 2f | 65 74 63 2f 73 65 72 76 | is in /|etc/serv|
|00002d90| 69 63 65 73 2e 22 0a 58 | 65 63 68 6f 20 22 4c 65 |ices.".X|echo "Le|
|00002da0| 74 20 6d 65 20 67 6c 61 | 6e 63 65 20 61 74 20 2f |t me gla|nce at /|
|00002db0| 65 74 63 2f 73 65 72 76 | 69 63 65 73 20 66 6f 72 |etc/serv|ices for|
|00002dc0| 20 79 6f 75 2e 2e 2e 22 | 0a 58 69 66 20 67 72 65 | you..."|.Xif gre|
|00002dd0| 70 20 27 5e 27 24 50 4f | 52 54 4e 41 4d 45 27 5b |p '^'$PO|RTNAME'[|
|00002de0| 20 09 5d 2a 31 31 33 2f | 74 63 70 27 20 2f 65 74 | .]*113/|tcp' /et|
|00002df0| 63 2f 73 65 72 76 69 63 | 65 73 20 3e 2f 64 65 76 |c/servic|es >/dev|
|00002e00| 2f 6e 75 6c 6c 20 32 3e | 26 31 0a 58 74 68 65 6e |/null 2>|&1.Xthen|
|00002e10| 20 65 63 68 6f 20 22 4f | 6b 61 79 2c 20 79 6f 75 | echo "O|kay, you|
|00002e20| 20 68 61 76 65 20 69 74 | 20 61 6c 72 65 61 64 79 | have it| already|
|00002e30| 2e 20 4c 65 74 27 73 20 | 63 6f 6e 74 69 6e 75 65 |. Let's |continue|
|00002e40| 2e 22 0a 58 65 6c 73 65 | 20 65 63 68 6f 20 22 4e |.".Xelse| echo "N|
|00002e50| 6f 70 65 2c 20 69 74 27 | 73 20 6e 6f 74 20 74 68 |ope, it'|s not th|
|00002e60| 65 72 65 2e 22 0a 58 20 | 20 20 20 20 65 63 68 6f |ere.".X | echo|
|00002e70| 20 22 4c 65 74 20 6d 65 | 20 63 68 65 63 6b 20 74 | "Let me| check t|
|00002e80| 68 61 74 20 79 6f 75 20 | 64 6f 6e 27 74 20 68 61 |hat you |don't ha|
|00002e90| 76 65 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 61 |ve a dif|ferent a|
|00002ea0| 75 74 68 20 70 6f 72 74 | 2e 2e 2e 22 0a 58 20 20 |uth port|...".X |
|00002eb0| 20 20 20 69 66 20 67 72 | 65 70 20 27 5e 27 24 50 | if gr|ep '^'$P|
|00002ec0| 4f 52 54 4e 41 4d 45 27 | 5b 20 09 5d 5b 20 09 5d |ORTNAME'|[ .][ .]|
|00002ed0| 2a 27 20 2f 65 74 63 2f | 73 65 72 76 69 63 65 73 |*' /etc/|services|
|00002ee0| 20 3e 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 | >/dev/n|ull 2>&1|
|00002ef0| 0a 58 20 20 20 20 20 74 | 68 65 6e 20 65 63 68 6f |.X t|hen echo|
|00002f00| 20 22 41 61 61 63 6b 21 | 20 24 50 4f 52 54 4e 41 | "Aaack!| $PORTNA|
|00002f10| 4d 45 20 69 73 20 61 6c | 72 65 61 64 79 20 75 73 |ME is al|ready us|
|00002f20| 65 64 20 69 6e 20 2f 65 | 74 63 2f 73 65 72 76 69 |ed in /e|tc/servi|
|00002f30| 63 65 73 2e 20 45 78 69 | 74 69 6e 67 2e 22 0a 58 |ces. Exi|ting.".X|
|00002f40| 09 20 20 65 78 69 74 20 | 31 0a 58 20 20 20 20 20 |. exit |1.X |
|00002f50| 66 69 0a 58 20 20 20 20 | 20 65 63 68 6f 20 22 21 |fi.X | echo "!|
|00002f60| 20 65 63 68 6f 20 24 50 | 4f 52 54 4e 41 4d 45 27 | echo $P|ORTNAME'|
|00002f70| 09 31 31 33 2f 74 63 70 | 27 20 3e 3e 20 2f 65 74 |.113/tcp|' >> /et|
|00002f80| 63 2f 73 65 72 76 69 63 | 65 73 3a 20 22 20 7c 20 |c/servic|es: " | |
|00002f90| 74 72 20 2d 64 20 27 5c | 30 31 32 27 0a 58 20 20 |tr -d '\|012'.X |
|00002fa0| 20 20 20 72 65 61 64 20 | 6c 69 6e 65 0a 58 20 20 | read |line.X |
|00002fb0| 20 20 20 65 63 68 6f 20 | 22 24 50 4f 52 54 4e 41 | echo |"$PORTNA|
|00002fc0| 4d 45 22 27 09 09 31 31 | 33 2f 74 63 70 27 20 3e |ME"'..11|3/tcp' >|
|00002fd0| 3e 20 2f 65 74 63 2f 73 | 65 72 76 69 63 65 73 0a |> /etc/s|ervices.|
|00002fe0| 58 66 69 0a 58 0a 58 65 | 63 68 6f 20 22 35 2e 20 |Xfi.X.Xe|cho "5. |
|00002ff0| 45 6e 61 62 6c 65 20 61 | 75 74 68 20 69 6e 20 2f |Enable a|uth in /|
|00003000| 65 74 63 2f 69 6e 65 74 | 64 2e 63 6f 6e 66 2e 22 |etc/inet|d.conf."|
|00003010| 0a 58 65 63 68 6f 20 22 | 4c 65 74 20 6d 65 20 67 |.Xecho "|Let me g|
|00003020| 6c 61 6e 63 65 20 61 74 | 20 2f 65 74 63 2f 69 6e |lance at| /etc/in|
|00003030| 65 74 64 2e 63 6f 6e 66 | 20 66 6f 72 20 79 6f 75 |etd.conf| for you|
|00003040| 2e 2e 2e 22 0a 58 69 66 | 20 67 72 65 70 20 27 5e |...".Xif| grep '^|
|00003050| 27 22 24 50 4f 52 54 4e | 41 4d 45 22 27 5b 20 09 |'"$PORTN|AME"'[ .|
|00003060| 5d 27 20 2f 65 74 63 2f | 69 6e 65 74 64 2e 63 6f |]' /etc/|inetd.co|
|00003070| 6e 66 20 3e 2f 64 65 76 | 2f 6e 75 6c 6c 20 32 3e |nf >/dev|/null 2>|
|00003080| 26 31 0a 58 74 68 65 6e | 20 65 63 68 6f 20 22 4f |&1.Xthen| echo "O|
|00003090| 6b 61 79 2c 20 69 74 27 | 73 20 61 6c 72 65 61 64 |kay, it'|s alread|
|000030a0| 79 20 74 68 65 72 65 2e | 20 54 68 61 74 27 73 20 |y there.| That's |
|000030b0| 69 74 21 22 0a 58 20 20 | 20 20 20 65 78 69 74 20 |it!".X | exit |
|000030c0| 30 0a 58 66 69 0a 58 69 | 66 20 67 72 65 70 20 27 |0.Xfi.Xi|f grep '|
|000030d0| 74 65 6c 6e 65 74 2e 2a | 72 6f 6f 74 27 20 2f 65 |telnet.*|root' /e|
|000030e0| 74 63 2f 69 6e 65 74 64 | 2e 63 6f 6e 66 20 3e 2f |tc/inetd|.conf >/|
|000030f0| 64 65 76 2f 6e 75 6c 6c | 20 32 3e 26 31 0a 58 74 |dev/null| 2>&1.Xt|
|00003100| 68 65 6e 20 65 63 68 6f | 20 22 49 74 27 73 20 6e |hen echo| "It's n|
|00003110| 6f 74 20 74 68 65 72 65 | 20 79 65 74 2e 20 48 6d |ot there| yet. Hm|
|00003120| 6d 6d 2c 20 6c 6f 6f 6b | 73 20 6c 69 6b 65 20 79 |mm, look|s like y|
|00003130| 6f 75 20 68 61 76 65 20 | 61 20 53 75 6e 2d 73 74 |ou have |a Sun-st|
|00003140| 79 6c 65 20 69 6e 65 74 | 64 2e 22 0a 58 20 20 20 |yle inet|d.".X |
|00003150| 20 20 65 63 68 6f 20 22 | 21 20 65 63 68 6f 20 24 | echo "|! echo $|
|00003160| 50 4f 52 54 4e 41 4d 45 | 27 20 73 74 72 65 61 6d |PORTNAME|' stream|
|00003170| 20 74 63 70 20 6e 6f 77 | 61 69 74 20 72 6f 6f 74 | tcp now|ait root|
|00003180| 20 27 24 41 55 54 48 44 | 27 20 61 75 74 68 64 27 | '$AUTHD|' authd'|
|00003190| 20 3e 3e 20 2f 65 74 63 | 2f 69 6e 65 74 64 2e 63 | >> /etc|/inetd.c|
|000031a0| 6f 6e 66 3a 20 22 20 7c | 20 74 72 20 2d 64 20 27 |onf: " || tr -d '|
|000031b0| 5c 30 31 32 27 0a 58 20 | 20 20 20 20 72 65 61 64 |\012'.X | read|
|000031c0| 20 6c 69 6e 65 0a 58 20 | 20 20 20 20 65 63 68 6f | line.X | echo|
|000031d0| 20 22 24 50 4f 52 54 4e | 41 4d 45 22 27 09 73 74 | "$PORTN|AME"'.st|
|000031e0| 72 65 61 6d 09 74 63 70 | 09 6e 6f 77 61 69 74 09 |ream.tcp|.nowait.|
|000031f0| 72 6f 6f 74 09 27 22 24 | 41 55 54 48 44 22 27 09 |root.'"$|AUTHD"'.|
|00003200| 61 75 74 68 64 27 20 3e | 3e 20 2f 65 74 63 2f 69 |authd' >|> /etc/i|
|00003210| 6e 65 74 64 2e 63 6f 6e | 66 0a 58 65 6c 73 65 20 |netd.con|f.Xelse |
|00003220| 65 63 68 6f 20 22 49 74 | 27 73 20 6e 6f 74 20 74 |echo "It|'s not t|
|00003230| 68 65 72 65 20 79 65 74 | 2e 22 0a 58 20 20 20 20 |here yet|.".X |
|00003240| 20 65 63 68 6f 20 22 21 | 20 65 63 68 6f 20 24 50 | echo "!| echo $P|
|00003250| 4f 52 54 4e 41 4d 45 27 | 20 73 74 72 65 61 6d 20 |ORTNAME'| stream |
|00003260| 74 63 70 20 6e 6f 77 61 | 69 74 20 27 24 41 55 54 |tcp nowa|it '$AUT|
|00003270| 48 44 27 20 61 75 74 68 | 64 27 20 3e 3e 20 2f 65 |HD' auth|d' >> /e|
|00003280| 74 63 2f 69 6e 65 74 64 | 2e 63 6f 6e 66 3a 20 22 |tc/inetd|.conf: "|
|00003290| 20 7c 20 74 72 20 2d 64 | 20 27 5c 30 31 32 27 0a | | tr -d| '\012'.|
|000032a0| 58 20 20 20 20 20 72 65 | 61 64 20 6c 69 6e 65 0a |X re|ad line.|
|000032b0| 58 20 20 20 20 20 65 63 | 68 6f 20 22 24 50 4f 52 |X ec|ho "$POR|
|000032c0| 54 4e 41 4d 45 22 27 09 | 73 74 72 65 61 6d 09 74 |TNAME"'.|stream.t|
|000032d0| 63 70 09 6e 6f 77 61 69 | 74 09 27 22 24 41 55 54 |cp.nowai|t.'"$AUT|
|000032e0| 48 44 22 27 09 61 75 74 | 68 64 27 20 3e 3e 20 2f |HD"'.aut|hd' >> /|
|000032f0| 65 74 63 2f 69 6e 65 74 | 64 2e 63 6f 6e 66 0a 58 |etc/inet|d.conf.X|
|00003300| 66 69 0a 58 0a 58 65 63 | 68 6f 20 22 36 2e 20 4c |fi.X.Xec|ho "6. L|
|00003310| 65 74 20 69 6e 65 74 64 | 20 6b 6e 6f 77 20 61 62 |et inetd| know ab|
|00003320| 6f 75 74 20 74 68 65 20 | 6e 65 77 20 73 65 72 76 |out the |new serv|
|00003330| 69 63 65 2e 22 0a 58 65 | 63 68 6f 20 22 4f 6e 20 |ice.".Xe|cho "On |
|00003340| 6d 6f 73 74 20 6d 61 63 | 68 69 6e 65 73 20 79 6f |most mac|hines yo|
|00003350| 75 20 68 61 76 65 20 74 | 6f 20 25 20 6b 69 6c 6c |u have t|o % kill|
|00003360| 20 2d 48 55 50 20 6e 6e | 22 0a 58 65 63 68 6f 20 | -HUP nn|".Xecho |
|00003370| 22 77 68 65 72 65 20 6e | 6e 20 69 73 20 74 68 65 |"where n|n is the|
|00003380| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 69 | number |of the i|
|00003390| 6e 65 74 64 20 70 72 6f | 63 65 73 73 2e 22 0a 58 |netd pro|cess.".X|
|000033a0| 65 63 68 6f 20 22 48 65 | 72 65 27 73 20 77 68 61 |echo "He|re's wha|
|000033b0| 74 20 70 73 20 61 75 67 | 78 20 73 68 6f 77 73 20 |t ps aug|x shows |
|000033c0| 61 62 6f 75 74 20 69 6e | 65 74 64 3a 22 0a 58 70 |about in|etd:".Xp|
|000033d0| 73 20 61 75 67 78 20 7c | 20 73 65 64 20 2d 6e 20 |s augx || sed -n |
|000033e0| 2d 65 20 31 70 20 2d 65 | 20 2f 69 6e 65 74 64 2f |-e 1p -e| /inetd/|
|000033f0| 70 0a 58 65 63 68 6f 20 | 22 49 27 6c 6c 20 6c 65 |p.Xecho |"I'll le|
|00003400| 61 76 65 20 74 68 69 73 | 20 73 74 65 70 20 74 6f |ave this| step to|
|00003410| 20 79 6f 75 2e 20 54 68 | 61 74 27 73 20 69 74 21 | you. Th|at's it!|
|00003420| 22 0a 58 0a 58 65 78 69 | 74 20 30 0a 45 4e 44 5f |".X.Xexi|t 0.END_|
|00003430| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00003440| 33 34 37 34 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |3474 -ne| `wc -c |
|00003450| 3c 27 49 4e 53 54 41 4c | 4c 27 60 3b 20 74 68 65 |<'INSTAL|L'`; the|
|00003460| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00003470| 20 5c 22 27 49 4e 53 54 | 41 4c 4c 27 5c 22 20 75 | \"'INST|ALL'\" u|
|00003480| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00003490| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 63 68 6d 6f |ng size!|.fi.chmo|
|000034a0| 64 20 2b 78 20 27 49 4e | 53 54 41 4c 4c 27 0a 23 |d +x 'IN|STALL'.#|
|000034b0| 20 65 6e 64 20 6f 66 20 | 27 49 4e 53 54 41 4c 4c | end of |'INSTALL|
|000034c0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|000034d0| 27 4d 61 6b 65 66 69 6c | 65 27 20 2d 61 20 22 24 |'Makefil|e' -a "$|
|000034e0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000034f0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00003500| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00003510| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00003520| 20 5c 22 27 4d 61 6b 65 | 66 69 6c 65 27 5c 22 0a | \"'Make|file'\".|
|00003530| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00003540| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 4d 61 |Extracti|ng \"'Ma|
|00003550| 6b 65 66 69 6c 65 27 5c | 22 20 5c 28 35 36 39 20 |kefile'\|" \(569 |
|00003560| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00003570| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 4d 61 6b 65 | "s/^X//|" >'Make|
|00003580| 66 69 6c 65 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |file' <<|'END_OF_|
|00003590| 46 49 4c 45 27 0a 58 43 | 43 3d 63 63 0a 58 43 43 |FILE'.XC|C=cc.XCC|
|000035a0| 4f 50 54 53 3d 2d 67 0a | 58 0a 58 64 65 66 61 75 |OPTS=-g.|X.Xdefau|
|000035b0| 6c 74 3a 20 61 6c 6c 0a | 58 0a 58 73 68 61 72 3a |lt: all.|X.Xshar:|
|000035c0| 20 61 75 74 68 64 2e 73 | 68 61 72 0a 58 0a 58 61 | authd.s|har.X.Xa|
|000035d0| 6c 6c 3a 20 61 75 74 68 | 64 20 74 63 70 75 69 64 |ll: auth|d tcpuid|
|000035e0| 20 74 63 70 75 6e 61 6d | 65 20 61 75 74 68 75 73 | tcpunam|e authus|
|000035f0| 65 72 2e 6f 20 74 65 73 | 74 0a 58 0a 58 61 75 74 |er.o tes|t.X.Xaut|
|00003600| 68 64 3a 20 61 75 74 68 | 64 2e 63 20 4d 61 6b 65 |hd: auth|d.c Make|
|00003610| 66 69 6c 65 0a 58 09 24 | 28 43 43 29 20 24 28 43 |file.X.$|(CC) $(C|
|00003620| 43 4f 50 54 53 29 20 2d | 6f 20 61 75 74 68 64 20 |COPTS) -|o authd |
|00003630| 61 75 74 68 64 2e 63 0a | 58 0a 58 74 63 70 75 69 |authd.c.|X.Xtcpui|
|00003640| 64 3a 20 61 75 74 68 64 | 20 4d 61 6b 65 66 69 6c |d: authd| Makefil|
|00003650| 65 0a 58 09 72 6d 20 2d | 66 20 74 63 70 75 69 64 |e.X.rm -|f tcpuid|
|00003660| 0a 58 09 6c 6e 20 61 75 | 74 68 64 20 74 63 70 75 |.X.ln au|thd tcpu|
|00003670| 69 64 0a 58 0a 58 74 63 | 70 75 6e 61 6d 65 3a 20 |id.X.Xtc|puname: |
|00003680| 61 75 74 68 64 20 4d 61 | 6b 65 66 69 6c 65 0a 58 |authd Ma|kefile.X|
|00003690| 09 72 6d 20 2d 66 20 74 | 63 70 75 6e 61 6d 65 0a |.rm -f t|cpuname.|
|000036a0| 58 09 6c 6e 20 61 75 74 | 68 64 20 74 63 70 75 6e |X.ln aut|hd tcpun|
|000036b0| 61 6d 65 0a 58 0a 58 61 | 75 74 68 75 73 65 72 2e |ame.X.Xa|uthuser.|
|000036c0| 6f 3a 20 61 75 74 68 75 | 73 65 72 2e 63 20 61 75 |o: authu|ser.c au|
|000036d0| 74 68 75 73 65 72 2e 68 | 20 4d 61 6b 65 66 69 6c |thuser.h| Makefil|
|000036e0| 65 0a 58 09 24 28 43 43 | 29 20 24 28 43 43 4f 50 |e.X.$(CC|) $(CCOP|
|000036f0| 54 53 29 20 2d 63 20 61 | 75 74 68 75 73 65 72 2e |TS) -c a|uthuser.|
|00003700| 63 0a 58 0a 58 74 65 73 | 74 3a 20 61 75 74 68 75 |c.X.Xtes|t: authu|
|00003710| 73 65 72 2e 6f 20 61 75 | 74 68 75 73 65 72 2e 68 |ser.o au|thuser.h|
|00003720| 20 74 65 73 74 2e 63 20 | 4d 61 6b 65 66 69 6c 65 | test.c |Makefile|
|00003730| 0a 58 09 24 28 43 43 29 | 20 24 28 43 43 4f 50 54 |.X.$(CC)| $(CCOPT|
|00003740| 53 29 20 2d 6f 20 74 65 | 73 74 20 74 65 73 74 2e |S) -o te|st test.|
|00003750| 63 20 61 75 74 68 75 73 | 65 72 2e 6f 0a 58 0a 58 |c authus|er.o.X.X|
|00003760| 61 75 74 68 64 2e 73 68 | 61 72 3a 20 46 49 4c 45 |authd.sh|ar: FILE|
|00003770| 53 0a 58 09 73 68 61 72 | 20 60 63 61 74 20 46 49 |S.X.shar| `cat FI|
|00003780| 4c 45 53 60 20 3e 20 61 | 75 74 68 64 2e 73 68 61 |LES` > a|uthd.sha|
|00003790| 72 0a 58 09 63 68 6d 6f | 64 20 34 30 30 20 61 75 |r.X.chmo|d 400 au|
|000037a0| 74 68 64 2e 73 68 61 72 | 0a 58 0a 58 69 6e 73 74 |thd.shar|.X.Xinst|
|000037b0| 61 6c 6c 3a 0a 58 09 65 | 63 68 6f 20 27 52 75 6e |all:.X.e|cho 'Run|
|000037c0| 20 74 68 65 20 49 4e 53 | 54 41 4c 4c 20 73 68 65 | the INS|TALL she|
|000037d0| 6c 6c 20 73 63 72 69 70 | 74 2e 27 0a 58 0a 58 63 |ll scrip|t.'.X.Xc|
|000037e0| 6c 65 61 6e 3a 0a 58 09 | 72 6d 20 2d 66 20 2a 2e |lean:.X.|rm -f *.|
|000037f0| 6f 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |o.END_OF|_FILE.if|
|00003800| 20 74 65 73 74 20 35 36 | 39 20 2d 6e 65 20 60 77 | test 56|9 -ne `w|
|00003810| 63 20 2d 63 20 3c 27 4d | 61 6b 65 66 69 6c 65 27 |c -c <'M|akefile'|
|00003820| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00003830| 20 73 68 61 72 3a 20 5c | 22 27 4d 61 6b 65 66 69 | shar: \|"'Makefi|
|00003840| 6c 65 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |le'\" un|packed w|
|00003850| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00003860| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 4d 61 6b |fi.# end| of 'Mak|
|00003870| 65 66 69 6c 65 27 0a 66 | 69 0a 69 66 20 74 65 73 |efile'.f|i.if tes|
|00003880| 74 20 2d 66 20 27 61 75 | 74 68 64 2e 38 27 20 2d |t -f 'au|thd.8' -|
|00003890| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000038a0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000038b0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000038c0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000038d0| 66 69 6c 65 20 5c 22 27 | 61 75 74 68 64 2e 38 27 |file \"'|authd.8'|
|000038e0| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|000038f0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00003900| 27 61 75 74 68 64 2e 38 | 27 5c 22 20 5c 28 31 35 |'authd.8|'\" \(15|
|00003910| 33 31 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |31 chara|cters\).|
|00003920| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 61 |sed "s/^|X//" >'a|
|00003930| 75 74 68 64 2e 38 27 20 | 3c 3c 27 45 4e 44 5f 4f |uthd.8' |<<'END_O|
|00003940| 46 5f 46 49 4c 45 27 0a | 58 2e 54 48 20 61 75 74 |F_FILE'.|X.TH aut|
|00003950| 68 64 20 38 0a 58 2e 53 | 48 20 4e 41 4d 45 0a 58 |hd 8.X.S|H NAME.X|
|00003960| 61 75 74 68 64 20 5c 2d | 20 41 75 74 68 65 6e 74 |authd \-| Authent|
|00003970| 69 63 61 74 69 6f 6e 20 | 53 65 72 76 65 72 20 64 |ication |Server d|
|00003980| 61 65 6d 6f 6e 0a 58 2e | 53 48 20 53 59 4e 54 41 |aemon.X.|SH SYNTA|
|00003990| 58 0a 58 61 75 74 68 64 | 0a 58 2e 53 48 20 44 45 |X.Xauthd|.X.SH DE|
|000039a0| 53 43 52 49 50 54 49 4f | 4e 0a 58 2e 49 20 61 75 |SCRIPTIO|N.X.I au|
|000039b0| 74 68 64 0a 58 69 73 20 | 61 20 64 61 65 6d 6f 6e |thd.Xis |a daemon|
|000039c0| 20 69 6d 70 6c 65 6d 65 | 6e 74 69 6e 67 20 74 68 | impleme|nting th|
|000039d0| 65 0a 58 52 46 43 20 39 | 33 31 20 41 75 74 68 65 |e.XRFC 9|31 Authe|
|000039e0| 6e 74 69 63 61 74 69 6f | 6e 20 53 65 72 76 65 72 |nticatio|n Server|
|000039f0| 20 70 72 6f 74 6f 63 6f | 6c 2e 0a 58 49 74 20 73 | protoco|l..XIt s|
|00003a00| 68 6f 75 6c 64 20 62 65 | 20 69 6e 76 6f 6b 65 64 |hould be| invoked|
|00003a10| 20 62 79 20 61 20 6e 65 | 74 77 6f 72 6b 20 73 65 | by a ne|twork se|
|00003a20| 72 76 65 72 2c 0a 58 73 | 75 63 68 20 61 73 0a 58 |rver,.Xs|uch as.X|
|00003a30| 2e 49 20 61 74 74 61 63 | 68 70 6f 72 74 28 31 29 |.I attac|hport(1)|
|00003a40| 0a 58 6f 72 0a 58 2e 49 | 20 69 6e 65 74 64 28 38 |.Xor.X.I| inetd(8|
|00003a50| 29 2c 0a 58 66 6f 72 20 | 63 6f 6e 6e 65 63 74 69 |),.Xfor |connecti|
|00003a60| 6f 6e 73 20 74 6f 20 54 | 43 50 20 70 6f 72 74 20 |ons to T|CP port |
|00003a70| 31 31 33 20 28 61 75 74 | 68 29 2e 0a 58 2e 50 50 |113 (aut|h)..X.PP|
|00003a80| 0a 58 54 68 65 20 63 6c | 69 65 6e 74 20 68 6f 73 |.XThe cl|ient hos|
|00003a90| 74 0a 58 67 69 76 65 73 | 0a 58 2e 49 20 61 75 74 |t.Xgives|.X.I aut|
|00003aa0| 68 64 0a 58 74 77 6f 20 | 6e 75 6d 62 65 72 73 20 |hd.Xtwo |numbers |
|00003ab0| 73 65 70 61 72 61 74 65 | 64 20 62 79 20 61 20 63 |separate|d by a c|
|00003ac0| 6f 6d 6d 61 2e 0a 58 2e | 49 20 61 75 74 68 64 0a |omma..X.|I authd.|
|00003ad0| 58 69 6e 74 65 72 70 72 | 65 74 73 20 74 68 65 20 |Xinterpr|ets the |
|00003ae0| 6e 75 6d 62 65 72 73 20 | 61 73 20 54 43 50 20 70 |numbers |as TCP p|
|00003af0| 6f 72 74 20 6e 75 6d 62 | 65 72 73 0a 58 66 6f 72 |ort numb|ers.Xfor|
|00003b00| 20 74 68 65 20 6c 6f 63 | 61 6c 20 61 6e 64 20 72 | the loc|al and r|
|00003b10| 65 6d 6f 74 65 20 73 69 | 64 65 73 20 72 65 73 70 |emote si|des resp|
|00003b20| 65 63 74 69 76 65 6c 79 | 0a 58 6f 66 20 61 20 54 |ectively|.Xof a T|
|00003b30| 43 50 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 62 65 |CP conne|ction be|
|00003b40| 74 77 65 65 6e 20 74 68 | 69 73 20 68 6f 73 74 20 |tween th|is host |
|00003b50| 61 6e 64 20 74 68 65 20 | 63 6c 69 65 6e 74 20 68 |and the |client h|
|00003b60| 6f 73 74 2e 0a 58 49 74 | 20 72 65 74 75 72 6e 73 |ost..XIt| returns|
|00003b70| 20 61 20 6c 69 6e 65 20 | 6f 66 20 74 68 65 20 66 | a line |of the f|
|00003b80| 6f 72 6d 0a 58 2e 45 58 | 0a 58 6c 6f 63 61 6c 70 |orm.X.EX|.Xlocalp|
|00003b90| 6f 72 74 2c 20 72 65 6d | 6f 74 65 70 6f 72 74 3a |ort, rem|oteport:|
|00003ba0| 20 55 53 45 52 49 44 3a | 20 55 4e 49 58 3a 20 75 | USERID:| UNIX: u|
|00003bb0| 73 65 72 6e 61 6d 65 0a | 58 2e 45 45 0a 58 77 68 |sername.|X.EE.Xwh|
|00003bc0| 65 72 65 20 75 73 65 72 | 6e 61 6d 65 0a 58 69 73 |ere user|name.Xis|
|00003bd0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|00003be0| 20 75 73 65 72 20 6f 6e | 20 74 68 69 73 20 73 69 | user on| this si|
|00003bf0| 64 65 20 6f 66 0a 58 74 | 68 65 20 73 70 65 63 69 |de of.Xt|he speci|
|00003c00| 66 69 65 64 20 63 6f 6e | 6e 65 63 74 69 6f 6e 2e |fied con|nection.|
|00003c10| 0a 58 49 66 0a 58 2e 49 | 20 61 75 74 68 64 0a 58 |.XIf.X.I| authd.X|
|00003c20| 64 6f 65 73 20 6e 6f 74 | 20 68 61 76 65 20 61 6e |does not| have an|
|00003c30| 20 61 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 20 | authent|ication |
|00003c40| 65 6e 74 72 79 20 66 6f | 72 20 74 68 61 74 20 63 |entry fo|r that c|
|00003c50| 6f 6e 6e 65 63 74 69 6f | 6e 2c 0a 58 69 74 20 72 |onnectio|n,.Xit r|
|00003c60| 65 74 75 72 6e 73 20 61 | 20 6c 69 6e 65 20 6f 66 |eturns a| line of|
|00003c70| 20 74 68 65 20 66 6f 72 | 6d 0a 58 2e 45 58 0a 58 | the for|m.X.EX.X|
|00003c80| 6c 6f 63 61 6c 70 6f 72 | 74 2c 20 72 65 6d 6f 74 |localpor|t, remot|
|00003c90| 65 70 6f 72 74 3a 20 45 | 52 52 4f 52 3a 20 55 4e |eport: E|RROR: UN|
|00003ca0| 4b 4e 4f 57 4e 2d 45 52 | 52 4f 52 2e 0a 58 2e 45 |KNOWN-ER|ROR..X.E|
|00003cb0| 45 0a 58 2e 50 50 0a 58 | 2e 53 48 20 44 49 41 47 |E.X.PP.X|.SH DIAG|
|00003cc0| 4e 4f 53 54 49 43 53 0a | 58 2e 54 50 0a 58 4e 6f |NOSTICS.|X.TP.XNo|
|00003cd0| 6e 65 2e 0a 58 2e 53 48 | 20 42 55 47 53 0a 58 4e |ne..X.SH| BUGS.XN|
|00003ce0| 6f 6e 65 20 6b 6e 6f 77 | 6e 2e 0a 58 2e 53 48 20 |one know|n..X.SH |
|00003cf0| 56 45 52 53 49 4f 4e 0a | 58 61 75 74 68 64 20 76 |VERSION.|Xauthd v|
|00003d00| 65 72 73 69 6f 6e 20 33 | 2e 30 2c 20 46 65 62 72 |ersion 3|.0, Febr|
|00003d10| 75 61 72 79 20 35 2c 20 | 31 39 39 31 2e 0a 58 2e |uary 5, |1991..X.|
|00003d20| 53 48 20 41 55 54 48 4f | 52 0a 58 50 6c 61 63 65 |SH AUTHO|R.XPlace|
|00003d30| 64 20 69 6e 74 6f 20 74 | 68 65 20 70 75 62 6c 69 |d into t|he publi|
|00003d40| 63 20 64 6f 6d 61 69 6e | 20 62 79 20 44 61 6e 69 |c domain| by Dani|
|00003d50| 65 6c 20 4a 2e 20 42 65 | 72 6e 73 74 65 69 6e 2e |el J. Be|rnstein.|
|00003d60| 0a 58 50 61 72 74 69 61 | 6c 6c 79 20 69 6e 73 70 |.XPartia|lly insp|
|00003d70| 69 72 65 64 20 62 79 20 | 63 6f 64 65 20 77 72 69 |ired by |code wri|
|00003d80| 74 74 65 6e 20 62 79 20 | 56 69 63 20 41 62 65 6c |tten by |Vic Abel|
|00003d90| 6c 20 66 6f 72 20 6f 66 | 69 6c 65 73 2e 0a 58 2e |l for of|iles..X.|
|00003da0| 53 48 20 52 45 46 45 52 | 45 4e 43 45 53 0a 58 54 |SH REFER|ENCES.XT|
|00003db0| 68 65 20 61 75 74 68 65 | 6e 74 69 63 61 74 69 6f |he authe|nticatio|
|00003dc0| 6e 20 73 65 72 76 65 72 | 20 69 73 20 6d 6f 72 65 |n server| is more|
|00003dd0| 20 73 65 63 75 72 65 20 | 74 68 61 6e 20 70 61 73 | secure |than pas|
|00003de0| 73 77 6f 72 64 73 0a 58 | 69 6e 20 73 6f 6d 65 20 |swords.X|in some |
|00003df0| 77 61 79 73 2c 20 62 75 | 74 20 6c 65 73 73 20 73 |ways, bu|t less s|
|00003e00| 65 63 75 72 65 20 74 68 | 61 6e 20 70 61 73 73 77 |ecure th|an passw|
|00003e10| 6f 72 64 73 20 69 6e 20 | 6d 61 6e 79 20 77 61 79 |ords in |many way|
|00003e20| 73 2e 0a 58 28 49 74 27 | 73 20 63 65 72 74 61 69 |s..X(It'|s certai|
|00003e30| 6e 6c 79 20 62 65 74 74 | 65 72 20 74 68 61 6e 20 |nly bett|er than |
|00003e40| 6e 6f 20 70 61 73 73 77 | 6f 72 64 20 61 74 20 61 |no passw|ord at a|
|00003e50| 6c 6c 2d 2d 2d 65 2e 67 | 2e 2c 20 66 6f 72 0a 58 |ll---e.g|., for.X|
|00003e60| 6d 61 69 6c 20 6f 72 20 | 6e 65 77 73 2e 29 0a 58 |mail or |news.).X|
|00003e70| 49 74 20 69 73 20 6e 6f | 74 20 74 68 65 20 66 69 |It is no|t the fi|
|00003e80| 6e 61 6c 20 73 6f 6c 75 | 74 69 6f 6e 2e 0a 58 46 |nal solu|tion..XF|
|00003e90| 6f 72 20 61 6e 20 65 78 | 63 65 6c 6c 65 6e 74 20 |or an ex|cellent |
|00003ea0| 64 69 73 63 75 73 73 69 | 6f 6e 20 6f 66 20 73 65 |discussi|on of se|
|00003eb0| 63 75 72 69 74 79 20 70 | 72 6f 62 6c 65 6d 73 20 |curity p|roblems |
|00003ec0| 77 69 74 68 69 6e 0a 58 | 74 68 65 20 54 43 50 2f |within.X|the TCP/|
|00003ed0| 49 50 20 70 72 6f 74 6f | 63 6f 6c 20 73 75 69 74 |IP proto|col suit|
|00003ee0| 65 2c 20 73 65 65 0a 58 | 53 74 65 76 65 20 42 65 |e, see.X|Steve Be|
|00003ef0| 6c 6c 6f 76 69 6e 27 73 | 20 61 72 74 69 63 6c 65 |llovin's| article|
|00003f00| 0a 58 60 60 53 65 63 75 | 72 69 74 79 20 50 72 6f |.X``Secu|rity Pro|
|00003f10| 62 6c 65 6d 73 20 69 6e | 20 74 68 65 20 54 43 50 |blems in| the TCP|
|00003f20| 2f 49 50 20 50 72 6f 74 | 6f 63 6f 6c 20 53 75 69 |/IP Prot|ocol Sui|
|00003f30| 74 65 2e 27 27 0a 58 2e | 53 48 20 22 53 45 45 20 |te.''.X.|SH "SEE |
|00003f40| 41 4c 53 4f 22 0a 58 61 | 75 74 68 74 63 70 28 31 |ALSO".Xa|uthtcp(1|
|00003f50| 29 2c 0a 58 61 74 74 61 | 63 68 70 6f 72 74 28 31 |),.Xatta|chport(1|
|00003f60| 29 2c 0a 58 61 75 74 68 | 75 73 65 72 28 33 29 2c |),.Xauth|user(3),|
|00003f70| 0a 58 74 63 70 28 34 29 | 2c 0a 58 69 6e 65 74 64 |.Xtcp(4)|,.Xinetd|
|00003f80| 28 38 29 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |(8).END_|OF_FILE.|
|00003f90| 69 66 20 74 65 73 74 20 | 31 35 33 31 20 2d 6e 65 |if test |1531 -ne|
|00003fa0| 20 60 77 63 20 2d 63 20 | 3c 27 61 75 74 68 64 2e | `wc -c |<'authd.|
|00003fb0| 38 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |8'`; the|n. ec|
|00003fc0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 61 75 74 68 |ho shar:| \"'auth|
|00003fd0| 64 2e 38 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |d.8'\" u|npacked |
|00003fe0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00003ff0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 61 75 |.fi.# en|d of 'au|
|00004000| 74 68 64 2e 38 27 0a 66 | 69 0a 69 66 20 74 65 73 |thd.8'.f|i.if tes|
|00004010| 74 20 2d 66 20 27 61 75 | 74 68 75 73 65 72 2e 33 |t -f 'au|thuser.3|
|00004020| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004030| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00004040| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00004050| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00004060| 6e 67 20 66 69 6c 65 20 | 5c 22 27 61 75 74 68 75 |ng file |\"'authu|
|00004070| 73 65 72 2e 33 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |ser.3'\"|.else.ec|
|00004080| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00004090| 69 6e 67 20 5c 22 27 61 | 75 74 68 75 73 65 72 2e |ing \"'a|uthuser.|
|000040a0| 33 27 5c 22 20 5c 28 33 | 33 35 34 20 63 68 61 72 |3'\" \(3|354 char|
|000040b0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|000040c0| 5e 58 2f 2f 22 20 3e 27 | 61 75 74 68 75 73 65 72 |^X//" >'|authuser|
|000040d0| 2e 33 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.3' <<'E|ND_OF_FI|
|000040e0| 4c 45 27 0a 58 2e 54 48 | 20 61 75 74 68 75 73 65 |LE'.X.TH| authuse|
|000040f0| 72 20 33 0a 58 2e 53 48 | 20 4e 41 4d 45 0a 58 61 |r 3.X.SH| NAME.Xa|
|00004100| 75 74 68 75 73 65 72 20 | 5c 2d 20 72 65 6d 6f 74 |uthuser |\- remot|
|00004110| 65 20 61 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |e authen|tication|
|00004120| 20 6c 69 62 72 61 72 79 | 20 75 73 69 6e 67 20 74 | library| using t|
|00004130| 68 65 20 41 75 74 68 65 | 6e 74 69 63 61 74 69 6f |he Authe|nticatio|
|00004140| 6e 20 53 65 72 76 65 72 | 0a 58 2e 53 48 20 53 59 |n Server|.X.SH SY|
|00004150| 4e 54 41 58 0a 58 2e 42 | 20 23 69 6e 63 6c 75 64 |NTAX.X.B| #includ|
|00004160| 65 20 3c 61 75 74 68 75 | 73 65 72 2e 68 3e 0a 58 |e <authu|ser.h>.X|
|00004170| 2e 50 50 0a 58 2e 42 20 | 75 6e 73 69 67 6e 65 64 |.PP.X.B |unsigned|
|00004180| 20 73 68 6f 72 74 20 61 | 75 74 68 5f 74 63 70 70 | short a|uth_tcpp|
|00004190| 6f 72 74 3b 0a 58 2e 50 | 50 0a 58 2e 42 20 63 68 |ort;.X.P|P.X.B ch|
|000041a0| 61 72 20 2a 61 75 74 68 | 5f 78 6c 69 6e 65 28 75 |ar *auth|_xline(u|
|000041b0| 73 65 72 2c 66 64 2c 26 | 69 6e 29 3b 0a 58 2e 50 |ser,fd,&|in);.X.P|
|000041c0| 50 0a 58 2e 42 20 69 6e | 74 20 61 75 74 68 5f 66 |P.X.B in|t auth_f|
|000041d0| 64 28 66 64 2c 26 69 6e | 2c 26 6c 6f 63 61 6c 2c |d(fd,&in|,&local,|
|000041e0| 26 72 65 6d 6f 74 65 29 | 3b 0a 58 2e 50 50 0a 58 |&remote)|;.X.PP.X|
|000041f0| 2e 42 20 63 68 61 72 20 | 2a 61 75 74 68 5f 74 63 |.B char |*auth_tc|
|00004200| 70 75 73 65 72 28 69 6e | 2c 6c 6f 63 61 6c 2c 72 |puser(in|,local,r|
|00004210| 65 6d 6f 74 65 29 3b 0a | 58 2e 50 50 0a 58 2e 42 |emote);.|X.PP.X.B|
|00004220| 20 63 68 61 72 20 2a 75 | 73 65 72 3b 0a 58 2e 62 | char *u|ser;.X.b|
|00004230| 72 0a 58 2e 42 20 69 6e | 74 20 66 64 3b 0a 58 2e |r.X.B in|t fd;.X.|
|00004240| 62 72 0a 58 2e 42 20 75 | 6e 73 69 67 6e 65 64 20 |br.X.B u|nsigned |
|00004250| 6c 6f 6e 67 20 69 6e 3b | 0a 58 2e 62 72 0a 58 2e |long in;|.X.br.X.|
|00004260| 42 20 75 6e 73 69 67 6e | 65 64 20 73 68 6f 72 74 |B unsign|ed short|
|00004270| 20 6c 6f 63 61 6c 3b 0a | 58 2e 62 72 0a 58 2e 42 | local;.|X.br.X.B|
|00004280| 20 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 20 | unsigne|d short |
|00004290| 72 65 6d 6f 74 65 3b 0a | 58 2e 53 48 20 44 45 53 |remote;.|X.SH DES|
|000042a0| 43 52 49 50 54 49 4f 4e | 0a 58 54 68 65 0a 58 2e |CRIPTION|.XThe.X.|
|000042b0| 49 20 61 75 74 68 75 73 | 65 72 0a 58 6c 69 62 72 |I authus|er.Xlibr|
|000042c0| 61 72 79 20 70 72 6f 76 | 69 64 65 73 20 61 20 73 |ary prov|ides a s|
|000042d0| 69 6d 70 6c 65 20 69 6e | 74 65 72 66 61 63 65 20 |imple in|terface |
|000042e0| 66 6f 72 0a 58 66 69 6e | 64 69 6e 67 20 6f 75 74 |for.Xfin|ding out|
|000042f0| 20 74 68 65 20 72 65 6d | 6f 74 65 20 69 64 65 6e | the rem|ote iden|
|00004300| 74 69 74 79 0a 58 6f 66 | 20 61 20 63 6f 6e 6e 65 |tity.Xof| a conne|
|00004310| 63 74 69 6f 6e 20 74 68 | 72 6f 75 67 68 20 74 68 |ction th|rough th|
|00004320| 65 0a 58 41 75 74 68 65 | 6e 74 69 63 61 74 69 6f |e.XAuthe|nticatio|
|00004330| 6e 20 53 65 72 76 65 72 | 0a 58 61 73 20 73 70 65 |n Server|.Xas spe|
|00004340| 63 69 66 69 65 64 20 62 | 79 20 52 46 43 20 39 33 |cified b|y RFC 93|
|00004350| 31 2e 0a 58 55 73 65 20 | 74 68 65 20 2d 6c 61 75 |1..XUse |the -lau|
|00004360| 74 68 75 73 65 72 20 6c | 6f 61 64 65 72 20 6f 70 |thuser l|oader op|
|00004370| 74 69 6f 6e 0a 58 74 6f | 20 63 6f 6d 70 69 6c 65 |tion.Xto| compile|
|00004380| 20 61 20 70 72 6f 67 72 | 61 6d 20 77 69 74 68 20 | a progr|am with |
|00004390| 74 68 69 73 20 6c 69 62 | 72 61 72 79 2e 0a 58 2e |this lib|rary..X.|
|000043a0| 50 50 0a 58 2e 42 20 61 | 75 74 68 5f 78 6c 69 6e |PP.X.B a|uth_xlin|
|000043b0| 65 28 75 73 65 72 2c 66 | 64 2c 26 69 6e 29 0a 58 |e(user,f|d,&in).X|
|000043c0| 72 65 74 75 72 6e 73 20 | 61 20 6c 69 6e 65 20 6f |returns |a line o|
|000043d0| 66 20 74 68 65 20 66 6f | 72 6d 20 58 2d 41 75 74 |f the fo|rm X-Aut|
|000043e0| 68 2d 55 73 65 72 3a 20 | 75 73 65 72 20 6f 72 20 |h-User: |user or |
|000043f0| 58 2d 46 6f 72 67 65 72 | 79 2d 42 79 3a 20 75 73 |X-Forger|y-By: us|
|00004400| 65 72 6e 61 6d 65 2c 0a | 58 64 65 70 65 6e 64 69 |ername,.|Xdependi|
|00004410| 6e 67 20 75 70 6f 6e 20 | 77 68 61 74 20 74 68 65 |ng upon |what the|
|00004420| 20 68 6f 73 74 20 6f 6e | 20 74 68 65 20 6f 74 68 | host on| the oth|
|00004430| 65 72 20 73 69 64 65 20 | 6f 66 0a 58 2e 42 20 66 |er side |of.X.B f|
|00004440| 64 0a 58 74 68 69 6e 6b | 73 20 6f 66 20 74 68 65 |d.Xthink|s of the|
|00004450| 20 75 73 65 72 2e 0a 58 | 54 68 69 73 20 69 73 20 | user..X|This is |
|00004460| 70 61 72 74 69 63 75 6c | 61 72 6c 79 20 61 70 70 |particul|arly app|
|00004470| 72 6f 70 72 69 61 74 65 | 20 66 6f 72 0a 58 6d 61 |ropriate| for.Xma|
|00004480| 69 6c 20 61 6e 64 20 6e | 65 77 73 20 68 65 61 64 |il and n|ews head|
|00004490| 65 72 73 2e 0a 58 2e 50 | 50 0a 58 49 66 20 74 68 |ers..X.P|P.XIf th|
|000044a0| 65 20 72 65 6d 6f 74 65 | 20 68 6f 73 74 20 72 65 |e remote| host re|
|000044b0| 70 6f 72 74 73 20 74 68 | 61 74 0a 58 2e 42 20 75 |ports th|at.X.B u|
|000044c0| 73 65 72 0a 58 6f 77 6e | 73 20 74 68 65 20 63 6f |ser.Xown|s the co|
|000044d0| 6e 6e 65 63 74 69 6f 6e | 20 6f 6e 20 74 68 61 74 |nnection| on that|
|000044e0| 20 73 69 64 65 2c 0a 58 | 2e 42 20 61 75 74 68 5f | side,.X|.B auth_|
|000044f0| 78 6c 69 6e 65 0a 58 77 | 69 6c 6c 20 72 65 74 75 |xline.Xw|ill retu|
|00004500| 72 6e 20 58 2d 41 75 74 | 68 2d 55 73 65 72 3a 20 |rn X-Aut|h-User: |
|00004510| 75 73 65 72 2e 0a 58 49 | 66 20 74 68 65 20 72 65 |user..XI|f the re|
|00004520| 6d 6f 74 65 20 68 6f 73 | 74 20 72 65 70 6f 72 74 |mote hos|t report|
|00004530| 73 20 74 68 61 74 20 61 | 20 64 69 66 66 65 72 65 |s that a| differe|
|00004540| 6e 74 0a 58 2e 42 20 75 | 73 65 72 6e 61 6d 65 0a |nt.X.B u|sername.|
|00004550| 58 6f 77 6e 73 20 74 68 | 65 20 63 6f 6e 6e 65 63 |Xowns th|e connec|
|00004560| 74 69 6f 6e 2c 0a 58 2e | 42 20 61 75 74 68 5f 78 |tion,.X.|B auth_x|
|00004570| 6c 69 6e 65 0a 58 77 69 | 6c 6c 20 72 65 74 75 72 |line.Xwi|ll retur|
|00004580| 6e 20 58 2d 46 6f 72 67 | 65 72 79 2d 42 79 3a 20 |n X-Forg|ery-By: |
|00004590| 75 73 65 72 6e 61 6d 65 | 2e 0a 58 49 66 20 75 73 |username|..XIf us|
|000045a0| 65 72 20 69 73 20 4e 55 | 4c 4c 2c 0a 58 69 74 20 |er is NU|LL,.Xit |
|000045b0| 72 65 74 75 72 6e 73 20 | 58 2d 41 75 74 68 2d 55 |returns |X-Auth-U|
|000045c0| 73 65 72 3a 20 75 73 65 | 72 6e 61 6d 65 0a 58 77 |ser: use|rname.Xw|
|000045d0| 69 74 68 20 74 68 65 20 | 75 73 65 72 6e 61 6d 65 |ith the |username|
|000045e0| 20 72 65 70 6f 72 74 65 | 64 20 62 79 20 74 68 65 | reporte|d by the|
|000045f0| 20 72 65 6d 6f 74 65 20 | 68 6f 73 74 2e 0a 58 49 | remote |host..XI|
|00004600| 66 20 0a 58 2e 42 20 66 | 64 0a 58 69 73 20 6e 6f |f .X.B f|d.Xis no|
|00004610| 74 20 61 20 54 43 50 20 | 63 6f 6e 6e 65 63 74 69 |t a TCP |connecti|
|00004620| 6f 6e 0a 58 6f 72 20 61 | 75 74 68 65 6e 74 69 63 |on.Xor a|uthentic|
|00004630| 61 74 69 6f 6e 20 69 73 | 20 69 6d 70 6f 73 73 69 |ation is| impossi|
|00004640| 62 6c 65 2c 0a 58 2e 42 | 20 61 75 74 68 5f 78 6c |ble,.X.B| auth_xl|
|00004650| 69 6e 65 0a 58 72 65 74 | 75 72 6e 73 20 4e 55 4c |ine.Xret|urns NUL|
|00004660| 4c 2c 20 73 65 74 74 69 | 6e 67 20 65 72 72 6e 6f |L, setti|ng errno|
|00004670| 20 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 2e 0a | appropr|iately..|
|00004680| 58 2e 50 50 0a 58 54 68 | 65 20 6c 69 6e 65 20 69 |X.PP.XTh|e line i|
|00004690| 73 20 6e 6f 74 20 63 72 | 2d 6c 66 20 74 65 72 6d |s not cr|-lf term|
|000046a0| 69 6e 61 74 65 64 2e 0a | 58 49 74 20 69 73 20 73 |inated..|XIt is s|
|000046b0| 74 6f 72 65 64 20 69 6e | 20 61 20 73 74 61 74 69 |tored in| a stati|
|000046c0| 63 20 61 72 65 61 0a 58 | 77 68 69 63 68 20 69 73 |c area.X|which is|
|000046d0| 20 6f 76 65 72 77 72 69 | 74 74 65 6e 20 6f 6e 20 | overwri|tten on |
|000046e0| 65 61 63 68 20 63 61 6c | 6c 20 74 6f 0a 58 2e 42 |each cal|l to.X.B|
|000046f0| 20 61 75 74 68 5f 78 6c | 69 6e 65 2e 0a 58 2e 42 | auth_xl|ine..X.B|
|00004700| 20 61 75 74 68 5f 78 6c | 69 6e 65 0a 58 70 6c 61 | auth_xl|ine.Xpla|
|00004710| 63 65 73 20 74 68 65 20 | 49 6e 74 65 72 6e 65 74 |ces the |Internet|
|00004720| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the |
|00004730| 6f 74 68 65 72 20 68 6f | 73 74 20 69 6e 74 6f 20 |other ho|st into |
|00004740| 69 6e 2e 0a 58 2e 50 50 | 0a 58 2e 42 20 61 75 74 |in..X.PP|.X.B aut|
|00004750| 68 5f 66 64 28 66 64 2c | 26 69 6e 2c 26 6c 6f 63 |h_fd(fd,|&in,&loc|
|00004760| 61 6c 2c 26 72 65 6d 6f | 74 65 29 0a 58 72 65 74 |al,&remo|te).Xret|
|00004770| 72 69 65 76 65 73 20 61 | 64 64 72 65 73 73 20 69 |rieves a|ddress i|
|00004780| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 72 6f 6d 20 |nformati|on from |
|00004790| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 69 |the conn|ection i|
|000047a0| 6e 20 73 6f 63 6b 65 74 | 0a 58 2e 42 20 66 64 2e |n socket|.X.B fd.|
|000047b0| 0a 58 49 74 20 70 6c 61 | 63 65 73 20 74 68 65 0a |.XIt pla|ces the.|
|000047c0| 58 49 6e 74 65 72 6e 65 | 74 20 61 64 64 72 65 73 |XInterne|t addres|
|000047d0| 73 20 6f 66 20 74 68 65 | 20 68 6f 73 74 20 6f 6e |s of the| host on|
|000047e0| 20 6f 74 68 65 72 20 73 | 69 64 65 20 69 6e 74 6f | other s|ide into|
|000047f0| 0a 58 2e 42 20 69 6e 0a | 58 61 6e 64 20 74 68 65 |.X.B in.|Xand the|
|00004800| 20 6c 6f 63 61 6c 20 61 | 6e 64 20 72 65 6d 6f 74 | local a|nd remot|
|00004810| 65 0a 58 54 43 50 20 70 | 6f 72 74 73 20 69 6e 74 |e.XTCP p|orts int|
|00004820| 6f 20 0a 58 2e 42 20 6c | 6f 63 61 6c 0a 58 61 6e |o .X.B l|ocal.Xan|
|00004830| 64 20 0a 58 2e 42 20 72 | 65 6d 6f 74 65 2e 0a 58 |d .X.B r|emote..X|
|00004840| 2e 42 20 61 75 74 68 5f | 66 64 0a 58 72 65 74 75 |.B auth_|fd.Xretu|
|00004850| 72 6e 73 20 2d 31 20 75 | 70 6f 6e 20 65 72 72 6f |rns -1 u|pon erro|
|00004860| 72 2c 20 73 65 74 74 69 | 6e 67 20 65 72 72 6e 6f |r, setti|ng errno|
|00004870| 20 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 2e 0a | appropr|iately..|
|00004880| 58 2e 50 50 0a 58 2e 42 | 20 61 75 74 68 5f 74 63 |X.PP.X.B| auth_tc|
|00004890| 70 75 73 65 72 28 69 6e | 2c 6c 6f 63 61 6c 2c 72 |puser(in|,local,r|
|000048a0| 65 6d 6f 74 65 29 0a 58 | 72 65 74 75 72 6e 73 20 |emote).X|returns |
|000048b0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|000048c0| 75 73 65 72 20 6f 6e 20 | 74 68 65 20 6f 74 68 65 |user on |the othe|
|000048d0| 72 20 65 6e 64 20 6f 66 | 20 74 68 65 20 54 43 50 |r end of| the TCP|
|000048e0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 0a 58 62 65 74 | connect|ion.Xbet|
|000048f0| 77 65 65 6e 0a 58 2e 42 | 20 72 65 6d 6f 74 65 40 |ween.X.B| remote@|
|00004900| 69 6e 0a 58 61 6e 64 0a | 58 2e 42 20 6c 6f 63 61 |in.Xand.|X.B loca|
|00004910| 6c 2e 0a 58 49 66 20 61 | 75 74 68 65 6e 74 69 63 |l..XIf a|uthentic|
|00004920| 61 74 69 6f 6e 20 69 73 | 20 69 6d 70 6f 73 73 69 |ation is| impossi|
|00004930| 62 6c 65 2c 0a 58 2e 42 | 20 61 75 74 68 5f 74 63 |ble,.X.B| auth_tc|
|00004940| 70 75 73 65 72 0a 58 72 | 65 74 75 72 6e 73 0a 58 |puser.Xr|eturns.X|
|00004950| 4e 55 4c 4c 2c 20 73 65 | 74 74 69 6e 67 20 65 72 |NULL, se|tting er|
|00004960| 72 6e 6f 20 61 70 70 72 | 6f 70 72 69 61 74 65 6c |rno appr|opriatel|
|00004970| 79 2e 0a 58 54 68 65 20 | 75 73 65 72 20 6e 61 6d |y..XThe |user nam|
|00004980| 65 20 69 73 20 73 74 6f | 72 65 64 20 69 6e 20 61 |e is sto|red in a|
|00004990| 20 73 74 61 74 69 63 20 | 61 72 65 61 0a 58 77 68 | static |area.Xwh|
|000049a0| 69 63 68 20 69 73 20 6f | 76 65 72 77 72 69 74 74 |ich is o|verwritt|
|000049b0| 65 6e 20 6f 6e 20 65 61 | 63 68 20 63 61 6c 6c 20 |en on ea|ch call |
|000049c0| 74 6f 0a 58 2e 42 20 61 | 75 74 68 5f 74 63 70 75 |to.X.B a|uth_tcpu|
|000049d0| 73 65 72 0a 58 61 6e 64 | 0a 58 2e 42 20 61 75 74 |ser.Xand|.X.B aut|
|000049e0| 68 5f 78 6c 69 6e 65 2e | 0a 58 2e 50 50 0a 58 54 |h_xline.|.X.PP.XT|
|000049f0| 68 65 20 61 75 74 68 65 | 6e 74 69 63 61 74 69 6f |he authe|nticatio|
|00004a00| 6e 20 72 6f 75 74 69 6e | 65 73 20 63 68 65 63 6b |n routin|es check|
|00004a10| 20 77 69 74 68 20 74 68 | 65 0a 58 72 65 6d 6f 74 | with th|e.Xremot|
|00004a20| 65 20 41 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |e Authen|tication|
|00004a30| 20 53 65 72 76 65 72 20 | 6f 6e 20 70 6f 72 74 0a | Server |on port.|
|00004a40| 58 2e 42 20 61 75 74 68 | 5f 74 63 70 70 6f 72 74 |X.B auth|_tcpport|
|00004a50| 2c 0a 58 77 68 69 63 68 | 20 64 65 66 61 75 6c 74 |,.Xwhich| default|
|00004a60| 73 20 74 6f 20 31 31 33 | 0a 58 61 73 20 73 70 65 |s to 113|.Xas spe|
|00004a70| 63 69 66 69 65 64 20 62 | 79 20 52 46 43 20 39 33 |cified b|y RFC 93|
|00004a80| 31 2e 0a 58 59 6f 75 20 | 63 61 6e 20 73 65 74 0a |1..XYou |can set.|
|00004a90| 58 2e 42 20 61 75 74 68 | 5f 74 63 70 70 6f 72 74 |X.B auth|_tcpport|
|00004aa0| 0a 58 74 6f 20 6f 74 68 | 65 72 20 76 61 6c 75 65 |.Xto oth|er value|
|00004ab0| 73 0a 58 66 6f 72 20 6e | 6f 6e 73 74 61 6e 64 61 |s.Xfor n|onstanda|
|00004ac0| 72 64 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |rd imple|mentatio|
|00004ad0| 6e 73 2e 0a 58 2e 50 50 | 0a 58 2e 53 48 20 52 45 |ns..X.PP|.X.SH RE|
|00004ae0| 53 54 52 49 43 54 49 4f | 4e 53 0a 58 2e 49 20 61 |STRICTIO|NS.X.I a|
|00004af0| 75 74 68 75 73 65 72 0a | 58 64 6f 65 73 20 6e 6f |uthuser.|Xdoes no|
|00004b00| 20 62 61 63 6b 73 6c 61 | 73 68 20 69 6e 74 65 72 | backsla|sh inter|
|00004b10| 70 72 65 74 61 74 69 6f | 6e 0a 58 75 70 6f 6e 20 |pretatio|n.Xupon |
|00004b20| 74 68 65 20 72 65 6d 6f | 74 65 20 75 73 65 72 20 |the remo|te user |
|00004b30| 6e 61 6d 65 2e 0a 58 48 | 6f 70 65 66 75 6c 6c 79 |name..XH|opefully|
|00004b40| 20 74 68 65 20 6e 65 78 | 74 20 72 65 76 69 73 69 | the nex|t revisi|
|00004b50| 6f 6e 20 6f 66 20 52 46 | 43 20 39 33 31 0a 58 77 |on of RF|C 931.Xw|
|00004b60| 69 6c 6c 20 6d 61 6b 65 | 20 63 6c 65 61 72 20 65 |ill make| clear e|
|00004b70| 78 61 63 74 6c 79 20 77 | 68 61 74 20 62 61 63 6b |xactly w|hat back|
|00004b80| 73 6c 61 73 68 0a 58 69 | 6e 74 65 72 70 72 65 74 |slash.Xi|nterpret|
|00004b90| 61 74 69 6f 6e 20 73 68 | 6f 75 6c 64 20 62 65 20 |ation sh|ould be |
|00004ba0| 67 6f 69 6e 67 20 6f 6e | 2e 0a 58 2e 50 50 0a 58 |going on|..X.PP.X|
|00004bb0| 2e 49 20 61 75 74 68 75 | 73 65 72 0a 58 64 6f 65 |.I authu|ser.Xdoe|
|00004bc0| 73 20 6e 6f 74 20 75 73 | 65 20 74 68 65 20 6f 70 |s not us|e the op|
|00004bd0| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 20 74 |erating |system t|
|00004be0| 79 70 65 0a 58 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ype.Xinf|ormation|
|00004bf0| 20 70 72 6f 76 69 64 65 | 64 20 62 79 20 74 68 65 | provide|d by the|
|00004c00| 20 41 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 20 | Authent|ication |
|00004c10| 53 65 72 76 65 72 2e 0a | 58 2e 53 48 20 56 45 52 |Server..|X.SH VER|
|00004c20| 53 49 4f 4e 0a 58 61 75 | 74 68 75 73 65 72 20 76 |SION.Xau|thuser v|
|00004c30| 65 72 73 69 6f 6e 20 33 | 2e 30 2c 20 46 65 62 72 |ersion 3|.0, Febr|
|00004c40| 75 61 72 79 20 35 2c 20 | 31 39 39 31 2e 0a 58 2e |uary 5, |1991..X.|
|00004c50| 53 48 20 41 55 54 48 4f | 52 0a 58 50 6c 61 63 65 |SH AUTHO|R.XPlace|
|00004c60| 64 20 69 6e 74 6f 20 74 | 68 65 20 70 75 62 6c 69 |d into t|he publi|
|00004c70| 63 20 64 6f 6d 61 69 6e | 20 62 79 20 44 61 6e 69 |c domain| by Dani|
|00004c80| 65 6c 20 4a 2e 20 42 65 | 72 6e 73 74 65 69 6e 2e |el J. Be|rnstein.|
|00004c90| 0a 58 2e 53 48 20 52 45 | 46 45 52 45 4e 43 45 53 |.X.SH RE|FERENCES|
|00004ca0| 0a 58 54 68 65 20 61 75 | 74 68 65 6e 74 69 63 61 |.XThe au|thentica|
|00004cb0| 74 69 6f 6e 20 73 65 72 | 76 65 72 20 69 73 20 6d |tion ser|ver is m|
|00004cc0| 6f 72 65 20 73 65 63 75 | 72 65 20 74 68 61 6e 20 |ore secu|re than |
|00004cd0| 70 61 73 73 77 6f 72 64 | 73 0a 58 69 6e 20 73 6f |password|s.Xin so|
|00004ce0| 6d 65 20 77 61 79 73 2c | 20 62 75 74 20 6c 65 73 |me ways,| but les|
|00004cf0| 73 20 73 65 63 75 72 65 | 20 74 68 61 6e 20 70 61 |s secure| than pa|
|00004d00| 73 73 77 6f 72 64 73 20 | 69 6e 20 6d 61 6e 79 20 |sswords |in many |
|00004d10| 77 61 79 73 2e 0a 58 28 | 49 74 27 73 20 63 65 72 |ways..X(|It's cer|
|00004d20| 74 61 69 6e 6c 79 20 62 | 65 74 74 65 72 20 74 68 |tainly b|etter th|
|00004d30| 61 6e 20 6e 6f 20 70 61 | 73 73 77 6f 72 64 20 61 |an no pa|ssword a|
|00004d40| 74 20 61 6c 6c 2d 2d 2d | 65 2e 67 2e 2c 20 66 6f |t all---|e.g., fo|
|00004d50| 72 0a 58 6d 61 69 6c 20 | 6f 72 20 6e 65 77 73 2e |r.Xmail |or news.|
|00004d60| 29 0a 58 49 74 20 69 73 | 20 6e 6f 74 20 74 68 65 |).XIt is| not the|
|00004d70| 20 66 69 6e 61 6c 20 73 | 6f 6c 75 74 69 6f 6e 2e | final s|olution.|
|00004d80| 0a 58 46 6f 72 20 61 6e | 20 65 78 63 65 6c 6c 65 |.XFor an| excelle|
|00004d90| 6e 74 20 64 69 73 63 75 | 73 73 69 6f 6e 20 6f 66 |nt discu|ssion of|
|00004da0| 20 73 65 63 75 72 69 74 | 79 20 70 72 6f 62 6c 65 | securit|y proble|
|00004db0| 6d 73 20 77 69 74 68 69 | 6e 0a 58 74 68 65 20 54 |ms withi|n.Xthe T|
|00004dc0| 43 50 2f 49 50 20 70 72 | 6f 74 6f 63 6f 6c 20 73 |CP/IP pr|otocol s|
|00004dd0| 75 69 74 65 2c 20 73 65 | 65 0a 58 53 74 65 76 65 |uite, se|e.XSteve|
|00004de0| 20 42 65 6c 6c 6f 76 69 | 6e 27 73 20 61 72 74 69 | Bellovi|n's arti|
|00004df0| 63 6c 65 0a 58 60 60 53 | 65 63 75 72 69 74 79 20 |cle.X``S|ecurity |
|00004e00| 50 72 6f 62 6c 65 6d 73 | 20 69 6e 20 74 68 65 20 |Problems| in the |
|00004e10| 54 43 50 2f 49 50 20 50 | 72 6f 74 6f 63 6f 6c 20 |TCP/IP P|rotocol |
|00004e20| 53 75 69 74 65 2e 27 27 | 0a 58 2e 53 48 20 22 53 |Suite.''|.X.SH "S|
|00004e30| 45 45 20 41 4c 53 4f 22 | 0a 58 61 75 74 68 74 63 |EE ALSO"|.Xauthtc|
|00004e40| 70 28 31 29 2c 0a 58 61 | 74 74 61 63 68 70 6f 72 |p(1),.Xa|ttachpor|
|00004e50| 74 28 31 29 2c 0a 58 67 | 65 74 70 65 65 72 6e 61 |t(1),.Xg|etpeerna|
|00004e60| 6d 65 28 33 29 2c 0a 58 | 67 65 74 73 6f 63 6b 6e |me(3),.X|getsockn|
|00004e70| 61 6d 65 28 33 29 2c 0a | 58 74 63 70 28 34 29 2c |ame(3),.|Xtcp(4),|
|00004e80| 0a 58 61 75 74 68 64 28 | 38 29 0a 45 4e 44 5f 4f |.Xauthd(|8).END_O|
|00004e90| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 33 |F_FILE.i|f test 3|
|00004ea0| 33 35 34 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |354 -ne |`wc -c <|
|00004eb0| 27 61 75 74 68 75 73 65 | 72 2e 33 27 60 3b 20 74 |'authuse|r.3'`; t|
|00004ec0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004ed0| 72 3a 20 5c 22 27 61 75 | 74 68 75 73 65 72 2e 33 |r: \"'au|thuser.3|
|00004ee0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00004ef0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00004f00| 0a 23 20 65 6e 64 20 6f | 66 20 27 61 75 74 68 75 |.# end o|f 'authu|
|00004f10| 73 65 72 2e 33 27 0a 66 | 69 0a 69 66 20 74 65 73 |ser.3'.f|i.if tes|
|00004f20| 74 20 2d 66 20 27 74 63 | 70 75 69 64 2e 38 27 20 |t -f 'tc|puid.8' |
|00004f30| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00004f40| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00004f50| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00004f60| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00004f70| 20 66 69 6c 65 20 5c 22 | 27 74 63 70 75 69 64 2e | file \"|'tcpuid.|
|00004f80| 38 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |8'\".els|e.echo s|
|00004f90| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00004fa0| 5c 22 27 74 63 70 75 69 | 64 2e 38 27 5c 22 20 5c |\"'tcpui|d.8'\" \|
|00004fb0| 28 36 31 37 20 63 68 61 | 72 61 63 74 65 72 73 5c |(617 cha|racters\|
|00004fc0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00004fd0| 27 74 63 70 75 69 64 2e | 38 27 20 3c 3c 27 45 4e |'tcpuid.|8' <<'EN|
|00004fe0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2e 54 48 20 |D_OF_FIL|E'.X.TH |
|00004ff0| 74 63 70 75 69 64 20 38 | 0a 58 2e 53 48 20 4e 41 |tcpuid 8|.X.SH NA|
|00005000| 4d 45 0a 58 74 63 70 75 | 69 64 20 5c 2d 20 73 68 |ME.Xtcpu|id \- sh|
|00005010| 6f 77 20 74 68 65 20 75 | 73 65 72 20 69 64 20 74 |ow the u|ser id t|
|00005020| 68 61 74 20 63 72 65 61 | 74 65 64 20 61 20 6e 65 |hat crea|ted a ne|
|00005030| 74 77 6f 72 6b 20 63 6f | 6e 6e 65 63 74 69 6f 6e |twork co|nnection|
|00005040| 0a 58 2e 53 48 20 53 59 | 4e 54 41 58 0a 58 74 63 |.X.SH SY|NTAX.Xtc|
|00005050| 70 75 69 64 0a 58 2e 49 | 20 72 65 6d 2e 6f 74 65 |puid.X.I| rem.ote|
|00005060| 2e 69 6e 2e 61 64 64 72 | 0a 58 2e 49 20 72 65 6d |.in.addr|.X.I rem|
|00005070| 70 6f 72 74 0a 58 2e 49 | 20 6c 6f 63 2e 61 6c 2e |port.X.I| loc.al.|
|00005080| 69 6e 2e 61 64 64 72 0a | 58 2e 49 20 6c 6f 63 70 |in.addr.|X.I locp|
|00005090| 6f 72 74 0a 58 2e 53 48 | 20 44 45 53 43 52 49 50 |ort.X.SH| DESCRIP|
|000050a0| 54 49 4f 4e 0a 58 2e 49 | 20 74 63 70 75 69 64 0a |TION.X.I| tcpuid.|
|000050b0| 58 70 72 69 6e 74 73 20 | 74 68 65 20 6e 75 6d 65 |Xprints |the nume|
|000050c0| 72 69 63 20 75 73 65 72 | 20 69 64 20 6f 66 0a 58 |ric user| id of.X|
|000050d0| 74 68 65 20 75 73 65 72 | 20 77 68 6f 20 63 72 65 |the user| who cre|
|000050e0| 61 74 65 64 0a 58 74 68 | 65 20 6e 65 74 77 6f 72 |ated.Xth|e networ|
|000050f0| 6b 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 73 70 65 |k connec|tion spe|
|00005100| 63 69 66 69 65 64 20 62 | 79 20 69 74 73 20 61 72 |cified b|y its ar|
|00005110| 67 75 6d 65 6e 74 73 2e | 0a 58 2e 50 50 0a 58 2e |guments.|.X.PP.X.|
|00005120| 53 48 20 44 49 41 47 4e | 4f 53 54 49 43 53 0a 58 |SH DIAGN|OSTICS.X|
|00005130| 2e 54 50 0a 58 4c 6f 74 | 73 2c 20 6e 6f 6e 65 20 |.TP.XLot|s, none |
|00005140| 6f 66 20 77 68 69 63 68 | 20 73 68 6f 75 6c 64 20 |of which| should |
|00005150| 68 61 70 70 65 6e 20 69 | 66 20 74 68 65 20 73 70 |happen i|f the sp|
|00005160| 65 63 69 66 69 65 64 0a | 58 63 6f 6e 6e 65 63 74 |ecified.|Xconnect|
|00005170| 69 6f 6e 20 69 73 20 76 | 61 6c 69 64 2e 0a 58 2e |ion is v|alid..X.|
|00005180| 53 48 20 42 55 47 53 0a | 58 4e 6f 6e 65 20 6b 6e |SH BUGS.|XNone kn|
|00005190| 6f 77 6e 2e 0a 58 2e 53 | 48 20 56 45 52 53 49 4f |own..X.S|H VERSIO|
|000051a0| 4e 0a 58 74 63 70 75 69 | 64 20 76 65 72 73 69 6f |N.Xtcpui|d versio|
|000051b0| 6e 20 33 2e 30 2c 20 46 | 65 62 72 75 61 72 79 20 |n 3.0, F|ebruary |
|000051c0| 35 2c 20 31 39 39 31 2e | 0a 58 2e 53 48 20 41 55 |5, 1991.|.X.SH AU|
|000051d0| 54 48 4f 52 0a 58 50 6c | 61 63 65 64 20 69 6e 74 |THOR.XPl|aced int|
|000051e0| 6f 20 74 68 65 20 70 75 | 62 6c 69 63 20 64 6f 6d |o the pu|blic dom|
|000051f0| 61 69 6e 20 62 79 20 44 | 61 6e 69 65 6c 20 4a 2e |ain by D|aniel J.|
|00005200| 20 42 65 72 6e 73 74 65 | 69 6e 2e 0a 58 50 61 72 | Bernste|in..XPar|
|00005210| 74 69 61 6c 6c 79 20 69 | 6e 73 70 69 72 65 64 20 |tially i|nspired |
|00005220| 62 79 20 63 6f 64 65 20 | 77 72 69 74 74 65 6e 20 |by code |written |
|00005230| 62 79 20 56 69 63 20 41 | 62 65 6c 6c 20 66 6f 72 |by Vic A|bell for|
|00005240| 20 6f 66 69 6c 65 73 2e | 0a 58 2e 53 48 20 22 53 | ofiles.|.X.SH "S|
|00005250| 45 45 20 41 4c 53 4f 22 | 0a 58 61 75 74 68 64 28 |EE ALSO"|.Xauthd(|
|00005260| 38 29 2c 0a 58 74 63 70 | 75 6e 61 6d 65 28 38 29 |8),.Xtcp|uname(8)|
|00005270| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00005280| 74 65 73 74 20 36 31 37 | 20 2d 6e 65 20 60 77 63 |test 617| -ne `wc|
|00005290| 20 2d 63 20 3c 27 74 63 | 70 75 69 64 2e 38 27 60 | -c <'tc|puid.8'`|
|000052a0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000052b0| 73 68 61 72 3a 20 5c 22 | 27 74 63 70 75 69 64 2e |shar: \"|'tcpuid.|
|000052c0| 38 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |8'\" unp|acked wi|
|000052d0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000052e0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 74 63 70 75 |i.# end |of 'tcpu|
|000052f0| 69 64 2e 38 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |id.8'.fi|.if test|
|00005300| 20 2d 66 20 27 74 63 70 | 75 6e 61 6d 65 2e 38 27 | -f 'tcp|uname.8'|
|00005310| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00005320| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00005330| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00005340| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00005350| 67 20 66 69 6c 65 20 5c | 22 27 74 63 70 75 6e 61 |g file \|"'tcpuna|
|00005360| 6d 65 2e 38 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |me.8'\".|else.ech|
|00005370| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00005380| 6e 67 20 5c 22 27 74 63 | 70 75 6e 61 6d 65 2e 38 |ng \"'tc|puname.8|
|00005390| 27 5c 22 20 5c 28 36 32 | 30 20 63 68 61 72 61 63 |'\" \(62|0 charac|
|000053a0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|000053b0| 2f 2f 22 20 3e 27 74 63 | 70 75 6e 61 6d 65 2e 38 |//" >'tc|puname.8|
|000053c0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000053d0| 27 0a 58 2e 54 48 20 74 | 63 70 75 6e 61 6d 65 20 |'.X.TH t|cpuname |
|000053e0| 38 0a 58 2e 53 48 20 4e | 41 4d 45 0a 58 74 63 70 |8.X.SH N|AME.Xtcp|
|000053f0| 75 6e 61 6d 65 20 5c 2d | 20 73 68 6f 77 20 74 68 |uname \-| show th|
|00005400| 65 20 75 73 65 72 20 6e | 61 6d 65 20 74 68 61 74 |e user n|ame that|
|00005410| 20 63 72 65 61 74 65 64 | 20 61 20 6e 65 74 77 6f | created| a netwo|
|00005420| 72 6b 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 0a 58 2e |rk conne|ction.X.|
|00005430| 53 48 20 53 59 4e 54 41 | 58 0a 58 74 63 70 75 6e |SH SYNTA|X.Xtcpun|
|00005440| 61 6d 65 0a 58 2e 49 20 | 72 65 6d 2e 6f 74 65 2e |ame.X.I |rem.ote.|
|00005450| 69 6e 2e 61 64 64 72 0a | 58 2e 49 20 72 65 6d 70 |in.addr.|X.I remp|
|00005460| 6f 72 74 0a 58 2e 49 20 | 6c 6f 63 2e 61 6c 2e 69 |ort.X.I |loc.al.i|
|00005470| 6e 2e 61 64 64 72 0a 58 | 2e 49 20 6c 6f 63 70 6f |n.addr.X|.I locpo|
|00005480| 72 74 0a 58 2e 53 48 20 | 44 45 53 43 52 49 50 54 |rt.X.SH |DESCRIPT|
|00005490| 49 4f 4e 0a 58 2e 49 20 | 74 63 70 75 6e 61 6d 65 |ION.X.I |tcpuname|
|000054a0| 0a 58 70 72 69 6e 74 73 | 20 74 68 65 20 75 73 65 |.Xprints| the use|
|000054b0| 72 6e 61 6d 65 20 6f 66 | 0a 58 74 68 65 20 75 73 |rname of|.Xthe us|
|000054c0| 65 72 20 77 68 6f 20 63 | 72 65 61 74 65 64 0a 58 |er who c|reated.X|
|000054d0| 74 68 65 20 6e 65 74 77 | 6f 72 6b 20 63 6f 6e 6e |the netw|ork conn|
|000054e0| 65 63 74 69 6f 6e 20 73 | 70 65 63 69 66 69 65 64 |ection s|pecified|
|000054f0| 20 62 79 20 69 74 73 20 | 61 72 67 75 6d 65 6e 74 | by its |argument|
|00005500| 73 2e 0a 58 2e 50 50 0a | 58 2e 53 48 20 44 49 41 |s..X.PP.|X.SH DIA|
|00005510| 47 4e 4f 53 54 49 43 53 | 0a 58 2e 54 50 0a 58 4c |GNOSTICS|.X.TP.XL|
|00005520| 6f 74 73 2c 20 6e 6f 6e | 65 20 6f 66 20 77 68 69 |ots, non|e of whi|
|00005530| 63 68 20 73 68 6f 75 6c | 64 20 68 61 70 70 65 6e |ch shoul|d happen|
|00005540| 20 69 66 20 74 68 65 20 | 73 70 65 63 69 66 69 65 | if the |specifie|
|00005550| 64 0a 58 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 69 73 |d.Xconne|ction is|
|00005560| 20 76 61 6c 69 64 2e 0a | 58 2e 53 48 20 42 55 47 | valid..|X.SH BUG|
|00005570| 53 0a 58 4e 6f 6e 65 20 | 6b 6e 6f 77 6e 2e 0a 58 |S.XNone |known..X|
|00005580| 2e 53 48 20 56 45 52 53 | 49 4f 4e 0a 58 74 63 70 |.SH VERS|ION.Xtcp|
|00005590| 75 6e 61 6d 65 20 76 65 | 72 73 69 6f 6e 20 33 2e |uname ve|rsion 3.|
|000055a0| 30 2c 20 46 65 62 72 75 | 61 72 79 20 35 2c 20 31 |0, Febru|ary 5, 1|
|000055b0| 39 39 31 2e 0a 58 2e 53 | 48 20 41 55 54 48 4f 52 |991..X.S|H AUTHOR|
|000055c0| 0a 58 50 6c 61 63 65 64 | 20 69 6e 74 6f 20 74 68 |.XPlaced| into th|
|000055d0| 65 20 70 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 20 |e public| domain |
|000055e0| 62 79 20 44 61 6e 69 65 | 6c 20 4a 2e 20 42 65 72 |by Danie|l J. Ber|
|000055f0| 6e 73 74 65 69 6e 2e 0a | 58 50 61 72 74 69 61 6c |nstein..|XPartial|
|00005600| 6c 79 20 69 6e 73 70 69 | 72 65 64 20 62 79 20 63 |ly inspi|red by c|
|00005610| 6f 64 65 20 77 72 69 74 | 74 65 6e 20 62 79 20 56 |ode writ|ten by V|
|00005620| 69 63 20 41 62 65 6c 6c | 20 66 6f 72 20 6f 66 69 |ic Abell| for ofi|
|00005630| 6c 65 73 2e 0a 58 2e 53 | 48 20 22 53 45 45 20 41 |les..X.S|H "SEE A|
|00005640| 4c 53 4f 22 0a 58 61 75 | 74 68 64 28 38 29 2c 0a |LSO".Xau|thd(8),.|
|00005650| 58 74 63 70 75 69 64 28 | 38 29 0a 45 4e 44 5f 4f |Xtcpuid(|8).END_O|
|00005660| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 36 |F_FILE.i|f test 6|
|00005670| 32 30 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |20 -ne `|wc -c <'|
|00005680| 74 63 70 75 6e 61 6d 65 | 2e 38 27 60 3b 20 74 68 |tcpuname|.8'`; th|
|00005690| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000056a0| 3a 20 5c 22 27 74 63 70 | 75 6e 61 6d 65 2e 38 27 |: \"'tcp|uname.8'|
|000056b0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|000056c0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|000056d0| 23 20 65 6e 64 20 6f 66 | 20 27 74 63 70 75 6e 61 |# end of| 'tcpuna|
|000056e0| 6d 65 2e 38 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |me.8'.fi|.if test|
|000056f0| 20 2d 66 20 27 61 75 74 | 68 64 2e 63 27 20 2d 61 | -f 'aut|hd.c' -a|
|00005700| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00005710| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00005720| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00005730| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00005740| 69 6c 65 20 5c 22 27 61 | 75 74 68 64 2e 63 27 5c |ile \"'a|uthd.c'\|
|00005750| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00005760| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00005770| 61 75 74 68 64 2e 63 27 | 5c 22 20 5c 28 37 38 37 |authd.c'|\" \(787|
|00005780| 32 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |2 charac|ters\).s|
|00005790| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 61 75 |ed "s/^X|//" >'au|
|000057a0| 74 68 64 2e 63 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |thd.c' <|<'END_OF|
|000057b0| 5f 46 49 4c 45 27 0a 58 | 23 64 65 66 69 6e 65 20 |_FILE'.X|#define |
|000057c0| 4b 4d 45 4d 20 22 2f 64 | 65 76 2f 6b 6d 65 6d 22 |KMEM "/d|ev/kmem"|
|000057d0| 0a 58 23 64 65 66 69 6e | 65 20 56 4d 55 4e 49 58 |.X#defin|e VMUNIX|
|000057e0| 20 22 2f 76 6d 75 6e 69 | 78 22 0a 58 23 64 65 66 | "/vmuni|x".X#def|
|000057f0| 69 6e 65 20 4e 45 54 53 | 54 41 54 20 22 2f 75 73 |ine NETS|TAT "/us|
|00005800| 72 2f 75 63 62 2f 6e 65 | 74 73 74 61 74 20 2d 6e |r/ucb/ne|tstat -n|
|00005810| 20 2d 41 20 2d 66 20 69 | 6e 65 74 22 0a 58 23 64 | -A -f i|net".X#d|
|00005820| 65 66 69 6e 65 20 4e 45 | 54 53 54 41 54 42 55 46 |efine NE|TSTATBUF|
|00005830| 20 32 30 30 20 2f 2a 20 | 38 30 20 77 6f 75 6c 64 | 200 /* |80 would|
|00005840| 20 73 75 66 66 69 63 65 | 20 2a 2f 0a 58 23 64 65 | suffice| */.X#de|
|00005850| 66 69 6e 65 20 4e 45 54 | 53 54 41 54 52 45 4d 4f |fine NET|STATREMO|
|00005860| 54 45 20 34 39 0a 58 23 | 64 65 66 69 6e 65 20 4e |TE 49.X#|define N|
|00005870| 45 54 53 54 41 54 57 49 | 44 54 48 20 31 37 0a 58 |ETSTATWI|DTH 17.X|
|00005880| 23 64 65 66 69 6e 65 20 | 52 45 4d 4f 54 45 53 49 |#define |REMOTESI|
|00005890| 5a 45 20 31 30 30 20 2f | 2a 20 67 75 61 72 61 6e |ZE 100 /|* guaran|
|000058a0| 74 65 65 64 20 74 6f 20 | 62 65 20 65 6e 6f 75 67 |teed to |be enoug|
|000058b0| 68 20 2a 2f 0a 58 0a 58 | 23 69 6e 63 6c 75 64 65 |h */.X.X|#include|
|000058c0| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 58 23 69 6e 63 | <stdio.|h>.X#inc|
|000058d0| 6c 75 64 65 20 3c 63 74 | 79 70 65 2e 68 3e 0a 58 |lude <ct|ype.h>.X|
|000058e0| 23 69 66 64 65 66 20 55 | 53 45 5f 53 59 53 4c 4f |#ifdef U|SE_SYSLO|
|000058f0| 47 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |G.X#incl|ude <sys|
|00005900| 6c 6f 67 2e 68 3e 0a 58 | 23 65 6e 64 69 66 0a 58 |log.h>.X|#endif.X|
|00005910| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 79 |#include| <sys/ty|
|00005920| 70 65 73 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |pes.h>.X|#include|
|00005930| 20 3c 73 79 73 2f 70 61 | 72 61 6d 2e 68 3e 0a 58 | <sys/pa|ram.h>.X|
|00005940| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 64 69 |#include| <sys/di|
|00005950| 72 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |r.h>.X#i|nclude <|
|00005960| 73 79 73 2f 75 73 65 72 | 2e 68 3e 0a 58 23 69 66 |sys/user|.h>.X#if|
|00005970| 64 65 66 20 63 6f 6e 76 | 65 78 0a 58 23 69 6e 63 |def conv|ex.X#inc|
|00005980| 6c 75 64 65 20 3c 73 79 | 73 2f 75 63 72 65 64 2e |lude <sy|s/ucred.|
|00005990| 68 3e 20 2f 2a 20 64 6f | 72 6b 73 20 2a 2f 0a 58 |h> /* do|rks */.X|
|000059a0| 23 64 65 66 69 6e 65 20 | 46 43 52 45 44 5f 49 53 |#define |FCRED_IS|
|000059b0| 4e 4f 54 5f 50 4f 49 4e | 54 45 52 0a 58 23 65 6e |NOT_POIN|TER.X#en|
|000059c0| 64 69 66 0a 58 23 64 65 | 66 69 6e 65 20 4b 45 52 |dif.X#de|fine KER|
|000059d0| 4e 45 4c 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |NEL.X#in|clude <s|
|000059e0| 79 73 2f 66 69 6c 65 2e | 68 3e 0a 58 23 75 6e 64 |ys/file.|h>.X#und|
|000059f0| 65 66 20 4b 45 52 4e 45 | 4c 0a 58 23 69 66 64 65 |ef KERNE|L.X#ifde|
|00005a00| 66 20 42 53 44 0a 58 23 | 69 6e 63 6c 75 64 65 20 |f BSD.X#|include |
|00005a10| 3c 6c 69 6d 69 74 73 2e | 68 3e 0a 58 23 65 6e 64 |<limits.|h>.X#end|
|00005a20| 69 66 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 6e 6c |if.X#inc|lude <nl|
|00005a30| 69 73 74 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |ist.h>.X|#include|
|00005a40| 20 3c 73 79 73 2f 73 6f | 63 6b 65 74 2e 68 3e 0a | <sys/so|cket.h>.|
|00005a50| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 73 |X#includ|e <sys/s|
|00005a60| 6f 63 6b 65 74 76 61 72 | 2e 68 3e 0a 58 23 69 66 |ocketvar|.h>.X#if|
|00005a70| 64 65 66 20 63 6f 6e 76 | 65 78 0a 58 23 69 6e 63 |def conv|ex.X#inc|
|00005a80| 6c 75 64 65 20 3c 73 79 | 73 2f 6d 62 75 66 2e 68 |lude <sy|s/mbuf.h|
|00005a90| 3e 0a 58 23 65 6e 64 69 | 66 0a 58 23 69 6e 63 6c |>.X#endi|f.X#incl|
|00005aa0| 75 64 65 20 3c 6e 65 74 | 2f 72 6f 75 74 65 2e 68 |ude <net|/route.h|
|00005ab0| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 6e 65 74 |>.X#incl|ude <net|
|00005ac0| 69 6e 65 74 2f 69 6e 2e | 68 3e 0a 58 23 69 6e 63 |inet/in.|h>.X#inc|
|00005ad0| 6c 75 64 65 20 3c 6e 65 | 74 69 6e 65 74 2f 69 6e |lude <ne|tinet/in|
|00005ae0| 5f 70 63 62 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |_pcb.h>.|X#includ|
|00005af0| 65 20 3c 6e 65 74 69 6e | 65 74 2f 74 63 70 2e 68 |e <netin|et/tcp.h|
|00005b00| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 6e 65 74 |>.X#incl|ude <net|
|00005b10| 69 6e 65 74 2f 74 63 70 | 5f 66 73 6d 2e 68 3e 0a |inet/tcp|_fsm.h>.|
|00005b20| 58 23 69 6e 63 6c 75 64 | 65 20 3c 6e 65 74 69 6e |X#includ|e <netin|
|00005b30| 65 74 2f 74 63 70 5f 74 | 69 6d 65 72 2e 68 3e 0a |et/tcp_t|imer.h>.|
|00005b40| 58 23 69 6e 63 6c 75 64 | 65 20 3c 6e 65 74 69 6e |X#includ|e <netin|
|00005b50| 65 74 2f 74 63 70 5f 76 | 61 72 2e 68 3e 0a 58 23 |et/tcp_v|ar.h>.X#|
|00005b60| 69 6e 63 6c 75 64 65 20 | 3c 61 72 70 61 2f 69 6e |include |<arpa/in|
|00005b70| 65 74 2e 68 3e 0a 58 23 | 69 6e 63 6c 75 64 65 20 |et.h>.X#|include |
|00005b80| 3c 70 77 64 2e 68 3e 0a | 58 65 78 74 65 72 6e 20 |<pwd.h>.|Xextern |
|00005b90| 63 68 61 72 20 2a 63 61 | 6c 6c 6f 63 28 29 3b 0a |char *ca|lloc();.|
|00005ba0| 58 65 78 74 65 72 6e 20 | 6c 6f 6e 67 20 6c 73 65 |Xextern |long lse|
|00005bb0| 65 6b 28 29 3b 0a 58 0a | 58 23 64 65 66 69 6e 65 |ek();.X.|X#define|
|00005bc0| 20 5a 41 50 28 78 2c 65 | 72 72 29 20 69 66 20 28 | ZAP(x,e|rr) if (|
|00005bd0| 78 29 20 69 66 20 28 66 | 6c 61 67 61 75 74 68 64 |x) if (f|lagauthd|
|00005be0| 29 20 5c 0a 58 7b 70 72 | 69 6e 74 66 28 22 25 73 |) \.X{pr|intf("%s|
|00005bf0| 2c 20 25 73 3a 20 45 52 | 52 4f 52 3a 20 55 4e 4b |, %s: ER|ROR: UNK|
|00005c00| 4e 4f 57 4e 2d 45 52 52 | 4f 52 5c 72 5c 6e 22 2c |NOWN-ERR|OR\r\n",|
|00005c10| 6c 6f 63 61 6c 70 6f 72 | 74 2c 72 65 6d 6f 74 65 |localpor|t,remote|
|00005c20| 70 6f 72 74 29 3b 65 78 | 69 74 28 33 37 29 3b 7d |port);ex|it(37);}|
|00005c30| 20 5c 0a 58 65 6c 73 65 | 20 7b 20 66 70 72 69 6e | \.Xelse| { fprin|
|00005c40| 74 66 28 73 74 64 65 72 | 72 2c 22 25 73 3a 20 66 |tf(stder|r,"%s: f|
|00005c50| 61 74 61 6c 3a 20 25 73 | 5c 6e 22 2c 61 72 67 76 |atal: %s|\n",argv|
|00005c60| 5b 30 5d 2c 65 72 72 29 | 3b 20 65 78 69 74 28 33 |[0],err)|; exit(3|
|00005c70| 37 29 3b 20 7d 0a 58 2f | 2a 20 52 65 70 6f 72 74 |7); }.X/|* Report|
|00005c80| 69 6e 67 20 65 72 72 6f | 72 73 20 68 6f 6e 65 73 |ing erro|rs hones|
|00005c90| 74 6c 79 20 74 6f 20 61 | 20 72 65 6d 6f 74 65 20 |tly to a| remote |
|00005ca0| 68 6f 73 74 20 63 6f 75 | 6c 64 20 64 61 6d 61 67 |host cou|ld damag|
|00005cb0| 65 20 73 65 63 75 72 69 | 74 79 2e 20 2a 2f 0a 58 |e securi|ty. */.X|
|00005cc0| 0a 58 73 74 61 74 69 63 | 20 73 74 72 75 63 74 20 |.Xstatic| struct |
|00005cd0| 6e 6c 69 73 74 20 6e 6c | 5b 5d 20 3d 20 7b 20 7b |nlist nl|[] = { {|
|00005ce0| 20 22 5f 66 69 6c 65 22 | 20 7d 2c 20 7b 20 22 5f | "_file"| }, { "_|
|00005cf0| 6e 66 69 6c 65 22 20 7d | 2c 20 7b 20 22 22 20 7d |nfile" }|, { "" }|
|00005d00| 20 7d 3b 0a 58 23 64 65 | 66 69 6e 65 20 53 46 49 | };.X#de|fine SFI|
|00005d10| 4c 20 30 0a 58 23 64 65 | 66 69 6e 65 20 53 4e 46 |L 0.X#de|fine SNF|
|00005d20| 49 4c 45 20 31 0a 58 0a | 58 73 74 61 74 69 63 20 |ILE 1.X.|Xstatic |
|00005d30| 63 68 61 72 20 73 5b 4e | 45 54 53 54 41 54 42 55 |char s[N|ETSTATBU|
|00005d40| 46 5d 3b 0a 58 73 74 61 | 74 69 63 20 63 68 61 72 |F];.Xsta|tic char|
|00005d50| 20 72 65 6d 6f 74 65 5b | 52 45 4d 4f 54 45 53 49 | remote[|REMOTESI|
|00005d60| 5a 45 5d 3b 0a 58 0a 58 | 6d 61 69 6e 28 61 72 67 |ZE];.X.X|main(arg|
|00005d70| 63 2c 61 72 67 76 29 0a | 58 69 6e 74 20 61 72 67 |c,argv).|Xint arg|
|00005d80| 63 3b 0a 58 63 68 61 72 | 20 2a 61 72 67 76 5b 5d |c;.Xchar| *argv[]|
|00005d90| 3b 0a 58 7b 0a 58 20 72 | 65 67 69 73 74 65 72 20 |;.X{.X r|egister |
|00005da0| 73 74 72 75 63 74 20 66 | 69 6c 65 20 2a 78 66 69 |struct f|ile *xfi|
|00005db0| 6c 65 3b 0a 58 20 72 65 | 67 69 73 74 65 72 20 73 |le;.X re|gister s|
|00005dc0| 74 72 75 63 74 20 66 69 | 6c 65 20 2a 66 70 3b 0a |truct fi|le *fp;.|
|00005dd0| 58 20 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 |X regist|er char |
|00005de0| 2a 73 6f 63 6b 6c 6f 63 | 3b 0a 58 20 69 6e 74 20 |*sockloc|;.X int |
|00005df0| 6e 66 69 6c 65 3b 0a 58 | 20 73 74 72 75 63 74 20 |nfile;.X| struct |
|00005e00| 74 63 70 63 62 20 74 63 | 70 3b 0a 58 20 73 74 72 |tcpcb tc|p;.X str|
|00005e10| 75 63 74 20 69 6e 70 63 | 62 20 69 6e 70 3b 0a 58 |uct inpc|b inp;.X|
|00005e20| 20 73 74 72 75 63 74 20 | 73 6f 63 6b 65 74 20 73 | struct |socket s|
|00005e30| 6f 63 6b 3b 0a 58 20 73 | 74 72 75 63 74 20 75 63 |ock;.X s|truct uc|
|00005e40| 72 65 64 20 75 63 3b 0a | 58 20 73 74 72 75 63 74 |red uc;.|X struct|
|00005e50| 20 66 69 6c 65 20 2a 66 | 74 70 3b 0a 58 20 46 49 | file *f|tp;.X FI|
|00005e60| 4c 45 20 2a 66 69 3b 0a | 58 20 69 6e 74 20 66 64 |LE *fi;.|X int fd|
|00005e70| 3b 0a 58 20 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |;.X unsi|gned lon|
|00005e80| 67 20 70 63 62 6c 3b 0a | 58 20 69 6e 74 20 70 63 |g pcbl;.|X int pc|
|00005e90| 62 3b 0a 58 20 69 6e 74 | 20 72 31 3b 20 69 6e 74 |b;.X int| r1; int|
|00005ea0| 20 72 32 3b 20 69 6e 74 | 20 72 33 3b 20 69 6e 74 | r2; int| r3; int|
|00005eb0| 20 72 34 3b 20 69 6e 74 | 20 72 70 3b 0a 58 20 69 | r4; int| rp;.X i|
|00005ec0| 6e 74 20 6c 31 3b 20 69 | 6e 74 20 6c 32 3b 20 69 |nt l1; i|nt l2; i|
|00005ed0| 6e 74 20 6c 33 3b 20 69 | 6e 74 20 6c 34 3b 20 69 |nt l3; i|nt l4; i|
|00005ee0| 6e 74 20 6c 70 3b 0a 58 | 20 69 6e 74 20 75 69 64 |nt lp;.X| int uid|
|00005ef0| 3b 0a 58 20 73 74 72 75 | 63 74 20 70 61 73 73 77 |;.X stru|ct passw|
|00005f00| 64 20 2a 70 77 3b 0a 58 | 20 69 6e 74 20 66 6c 61 |d *pw;.X| int fla|
|00005f10| 67 70 77 6e 61 6d 20 3d | 20 30 3b 0a 58 20 69 6e |gpwnam =| 0;.X in|
|00005f20| 74 20 66 6c 61 67 61 75 | 74 68 64 20 3d 20 30 3b |t flagau|thd = 0;|
|00005f30| 0a 58 20 63 68 61 72 20 | 6c 6f 63 61 6c 70 6f 72 |.X char |localpor|
|00005f40| 74 5b 31 30 5d 3b 0a 58 | 20 63 68 61 72 20 72 65 |t[10];.X| char re|
|00005f50| 6d 6f 74 65 70 6f 72 74 | 5b 31 30 5d 3b 0a 58 20 |moteport|[10];.X |
|00005f60| 0a 58 20 69 66 20 28 28 | 21 73 74 72 63 6d 70 28 |.X if ((|!strcmp(|
|00005f70| 61 72 67 76 5b 30 5d 2c | 22 61 75 74 68 64 22 29 |argv[0],|"authd")|
|00005f80| 29 0a 58 20 20 7c 7c 20 | 28 28 73 74 72 6c 65 6e |).X || |((strlen|
|00005f90| 28 61 72 67 76 5b 30 5d | 29 20 3e 3d 20 36 29 0a |(argv[0]|) >= 6).|
|00005fa0| 58 20 20 20 26 26 20 28 | 21 73 74 72 63 6d 70 28 |X && (|!strcmp(|
|00005fb0| 61 72 67 76 5b 30 5d 20 | 2b 20 73 74 72 6c 65 6e |argv[0] |+ strlen|
|00005fc0| 28 61 72 67 76 5b 30 5d | 29 20 2d 20 36 2c 22 2f |(argv[0]|) - 6,"/|
|00005fd0| 61 75 74 68 64 22 29 29 | 29 29 0a 58 20 20 20 66 |authd"))|)).X f|
|00005fe0| 6c 61 67 61 75 74 68 64 | 20 3d 20 66 6c 61 67 70 |lagauthd| = flagp|
|00005ff0| 77 6e 61 6d 20 3d 20 31 | 3b 0a 58 20 65 6c 73 65 |wnam = 1|;.X else|
|00006000| 0a 58 20 20 20 69 66 20 | 28 28 21 73 74 72 63 6d |.X if |((!strcm|
|00006010| 70 28 61 72 67 76 5b 30 | 5d 2c 22 74 63 70 75 6e |p(argv[0|],"tcpun|
|00006020| 61 6d 65 22 29 29 0a 58 | 20 20 20 20 7c 7c 20 28 |ame")).X| || (|
|00006030| 28 73 74 72 6c 65 6e 28 | 61 72 67 76 5b 30 5d 29 |(strlen(|argv[0])|
|00006040| 20 3e 3d 20 39 29 0a 58 | 20 20 20 20 20 26 26 20 | >= 9).X| && |
|00006050| 28 21 73 74 72 63 6d 70 | 28 61 72 67 76 5b 30 5d |(!strcmp|(argv[0]|
|00006060| 20 2b 20 73 74 72 6c 65 | 6e 28 61 72 67 76 5b 30 | + strle|n(argv[0|
|00006070| 5d 29 20 2d 20 39 2c 22 | 2f 74 63 70 75 6e 61 6d |]) - 9,"|/tcpunam|
|00006080| 65 22 29 29 29 29 0a 58 | 20 20 20 20 20 66 6c 61 |e")))).X| fla|
|00006090| 67 70 77 6e 61 6d 20 3d | 20 31 3b 0a 58 0a 58 20 |gpwnam =| 1;.X.X |
|000060a0| 69 66 20 28 66 6c 61 67 | 61 75 74 68 64 29 0a 58 |if (flag|authd).X|
|000060b0| 20 20 7b 0a 58 20 20 20 | 69 6e 74 20 63 68 3b 0a | {.X |int ch;.|
|000060c0| 58 20 20 20 69 6e 74 20 | 6c 6f 63 61 6c 70 6f 72 |X int |localpor|
|000060d0| 74 6c 65 6e 3b 0a 58 20 | 20 20 69 6e 74 20 72 65 |tlen;.X | int re|
|000060e0| 6d 6f 74 65 70 6f 72 74 | 6c 65 6e 3b 0a 58 20 20 |moteport|len;.X |
|000060f0| 20 69 6e 74 20 6c 6f 6f | 70 3b 0a 58 20 20 20 73 | int loo|p;.X s|
|00006100| 74 72 75 63 74 20 73 6f | 63 6b 61 64 64 72 5f 69 |truct so|ckaddr_i|
|00006110| 6e 20 73 61 3b 0a 58 20 | 20 20 69 6e 74 20 73 61 |n sa;.X | int sa|
|00006120| 6c 65 6e 3b 0a 58 0a 58 | 20 20 20 6c 6f 63 61 6c |len;.X.X| local|
|00006130| 70 6f 72 74 6c 65 6e 20 | 3d 20 72 65 6d 6f 74 65 |portlen |= remote|
|00006140| 70 6f 72 74 6c 65 6e 20 | 3d 20 6c 6f 6f 70 20 3d |portlen |= loop =|
|00006150| 20 30 3b 0a 58 0a 58 20 | 20 20 77 68 69 6c 65 20 | 0;.X.X | while |
|00006160| 28 28 63 68 20 3d 20 67 | 65 74 63 68 61 72 28 29 |((ch = g|etchar()|
|00006170| 29 20 21 3d 20 27 2c 27 | 29 0a 58 20 20 20 20 7b |) != ','|).X {|
|00006180| 0a 58 20 20 20 20 20 69 | 66 20 28 69 73 61 73 63 |.X i|f (isasc|
|00006190| 69 69 28 63 68 29 20 26 | 26 20 69 73 64 69 67 69 |ii(ch) &|& isdigi|
|000061a0| 74 28 63 68 29 29 20 6c | 6f 63 61 6c 70 6f 72 74 |t(ch)) l|ocalport|
|000061b0| 5b 6c 6f 63 61 6c 70 6f | 72 74 6c 65 6e 2b 2b 5d |[localpo|rtlen++]|
|000061c0| 20 3d 20 63 68 3b 0a 58 | 20 20 20 20 20 69 66 20 | = ch;.X| if |
|000061d0| 28 6c 6f 63 61 6c 70 6f | 72 74 6c 65 6e 20 3d 3d |(localpo|rtlen ==|
|000061e0| 20 36 29 20 2f 2a 20 74 | 6f 75 67 68 20 6c 75 63 | 6) /* t|ough luc|
|000061f0| 6b 21 20 2a 2f 20 65 78 | 69 74 28 32 29 3b 0a 58 |k! */ ex|it(2);.X|
|00006200| 20 20 20 20 20 69 66 20 | 28 28 2b 2b 6c 6f 6f 70 | if |((++loop|
|00006210| 29 20 3e 20 31 30 30 30 | 29 20 2f 2a 20 74 6f 75 |) > 1000|) /* tou|
|00006220| 67 68 20 6c 75 63 6b 21 | 20 2a 2f 20 65 78 69 74 |gh luck!| */ exit|
|00006230| 28 33 29 3b 0a 58 20 20 | 20 20 7d 0a 58 20 20 20 |(3);.X | }.X |
|00006240| 77 68 69 6c 65 20 28 28 | 63 68 20 3d 20 67 65 74 |while ((|ch = get|
|00006250| 63 68 61 72 28 29 29 20 | 21 3d 20 27 5c 6e 27 29 |char()) |!= '\n')|
|00006260| 0a 58 20 20 20 20 7b 0a | 58 20 20 20 20 20 69 66 |.X {.|X if|
|00006270| 20 28 69 73 61 73 63 69 | 69 28 63 68 29 20 26 26 | (isasci|i(ch) &&|
|00006280| 20 69 73 64 69 67 69 74 | 28 63 68 29 29 20 72 65 | isdigit|(ch)) re|
|00006290| 6d 6f 74 65 70 6f 72 74 | 5b 72 65 6d 6f 74 65 70 |moteport|[remotep|
|000062a0| 6f 72 74 6c 65 6e 2b 2b | 5d 20 3d 20 63 68 3b 0a |ortlen++|] = ch;.|
|000062b0| 58 20 20 20 20 20 69 66 | 20 28 72 65 6d 6f 74 65 |X if| (remote|
|000062c0| 70 6f 72 74 6c 65 6e 20 | 3d 3d 20 36 29 20 2f 2a |portlen |== 6) /*|
|000062d0| 20 74 6f 75 67 68 20 6c | 75 63 6b 21 20 2a 2f 20 | tough l|uck! */ |
|000062e0| 65 78 69 74 28 34 29 3b | 0a 58 20 20 20 20 20 69 |exit(4);|.X i|
|000062f0| 66 20 28 28 2b 2b 6c 6f | 6f 70 29 20 3e 20 31 30 |f ((++lo|op) > 10|
|00006300| 30 30 29 20 2f 2a 20 74 | 6f 75 67 68 20 6c 75 63 |00) /* t|ough luc|
|00006310| 6b 21 20 2a 2f 20 65 78 | 69 74 28 35 29 3b 0a 58 |k! */ ex|it(5);.X|
|00006320| 20 20 20 20 7d 0a 58 0a | 58 20 20 20 6c 6f 63 61 | }.X.|X loca|
|00006330| 6c 70 6f 72 74 5b 6c 6f | 63 61 6c 70 6f 72 74 6c |lport[lo|calportl|
|00006340| 65 6e 5d 20 3d 20 72 65 | 6d 6f 74 65 70 6f 72 74 |en] = re|moteport|
|00006350| 5b 72 65 6d 6f 74 65 70 | 6f 72 74 6c 65 6e 5d 20 |[remotep|ortlen] |
|00006360| 3d 20 30 3b 0a 58 20 20 | 20 6c 70 20 3d 20 61 74 |= 0;.X | lp = at|
|00006370| 6f 69 28 6c 6f 63 61 6c | 70 6f 72 74 29 3b 0a 58 |oi(local|port);.X|
|00006380| 20 20 20 72 70 20 3d 20 | 61 74 6f 69 28 72 65 6d | rp = |atoi(rem|
|00006390| 6f 74 65 70 6f 72 74 29 | 3b 0a 58 0a 58 20 20 20 |oteport)|;.X.X |
|000063a0| 73 61 6c 65 6e 20 3d 20 | 73 69 7a 65 6f 66 28 73 |salen = |sizeof(s|
|000063b0| 61 29 3b 0a 58 20 20 20 | 69 66 20 28 67 65 74 70 |a);.X |if (getp|
|000063c0| 65 65 72 6e 61 6d 65 28 | 30 2c 26 73 61 2c 26 73 |eername(|0,&sa,&s|
|000063d0| 61 6c 65 6e 29 20 3d 3d | 20 2d 31 29 0a 58 20 20 |alen) ==| -1).X |
|000063e0| 20 20 7b 0a 58 20 20 20 | 20 20 70 72 69 6e 74 66 | {.X | printf|
|000063f0| 28 22 25 73 2c 20 25 73 | 3a 20 45 52 52 4f 52 3a |("%s, %s|: ERROR:|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.