home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / system / network / daemons / munetd.taz / munetd
Tape Archive  |  1993-04-27  |  310.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory munetd/, mode 2775 , uid 700 , gid 62 , size 0 , seconds 5365061746, user mitch, group users default
98% file data default
41% TrID Sybase iAnywhere database files default (weak)
36% TrID TAR - Tape ARchive (GNU) default
21% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU) default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6d 75 6e 65 74 64 2f 00 | 00 00 00 00 00 00 00 00 |munetd/.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 32 37 | 37 35 20 00 20 20 20 37 |.... 27|75 . 7|
|00000070| 30 30 20 00 20 20 20 20 | 36 32 20 00 20 20 20 20 |00 . |62 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 33 36 35 30 36 31 | 0 | 5365061|
|00000090| 37 34 36 20 20 31 30 37 | 32 36 00 20 35 00 00 00 |746 107|26. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6d 69 74 63 68 00 00 |.ustar |.mitch..|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6d 75 6e 65 74 64 2f 52 | 45 41 44 4d 45 00 00 00 |munetd/R|EADME...|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 37 |.... 6|44 . 7|
|00000270| 30 30 20 00 20 20 20 20 | 36 32 20 00 20 20 20 20 |00 . |62 . |
|00000280| 20 20 20 35 32 37 31 20 | 20 35 33 36 30 37 35 32 | 5271 | 5360752|
|00000290| 34 32 37 20 20 31 31 36 | 34 35 00 20 30 00 00 00 |427 116|45. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6d 69 74 63 68 00 00 |.ustar |.mitch..|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 0a 23 20 40 28 23 29 | 52 45 41 44 4d 45 09 33 |#.# @(#)|README.3|
|00000410| 2e 31 20 39 33 2f 30 34 | 2f 30 38 09 2d 20 41 20 |.1 93/04|/08.- A |
|00000420| 4d 6f 72 65 20 55 6e 69 | 76 65 72 73 61 6c 20 4e |More Uni|versal N|
|00000430| 65 74 77 6f 72 6b 20 73 | 75 70 65 72 73 65 72 76 |etwork s|uperserv|
|00000440| 65 72 0a 23 0a 0a 4e 4f | 54 45 3a 20 66 65 61 74 |er.#..NO|TE: feat|
|00000450| 75 72 65 20 31 29 20 62 | 65 6c 6f 77 20 6e 6f 77 |ure 1) b|elow now|
|00000460| 20 69 6e 20 61 20 73 65 | 70 61 72 61 74 65 20 70 | in a se|parate p|
|00000470| 72 6f 67 72 61 6d 2e 20 | 49 20 66 6f 75 6e 64 20 |rogram. |I found |
|00000480| 74 68 61 74 20 69 6e 74 | 65 67 72 61 74 69 6f 6e |that int|egration|
|00000490| 0a 6f 66 20 74 68 69 73 | 20 69 6e 74 6f 20 74 68 |.of this| into th|
|000004a0| 65 20 6d 61 69 6e 20 73 | 74 72 65 61 6d 20 63 6f |e main s|tream co|
|000004b0| 64 65 20 63 6f 75 6c 64 | 20 6e 6f 74 20 62 65 20 |de could| not be |
|000004c0| 64 6f 6e 65 20 65 6c 65 | 67 61 6e 74 6c 79 2e 0a |done ele|gantly..|
|000004d0| 0a 0a 6d 75 6e 65 74 64 | 28 38 29 20 69 73 20 61 |..munetd|(8) is a|
|000004e0| 20 6d 6f 64 69 66 69 65 | 64 20 76 65 72 73 69 6f | modifie|d versio|
|000004f0| 6e 20 6f 66 20 74 68 65 | 20 42 53 44 20 69 6e 65 |n of the| BSD ine|
|00000500| 74 64 28 38 29 20 76 65 | 72 73 69 6f 6e 20 35 2e |td(8) ve|rsion 5.|
|00000510| 32 35 2c 20 61 73 20 64 | 69 73 74 72 69 62 75 74 |25, as d|istribut|
|00000520| 65 64 0a 62 79 20 73 65 | 76 65 72 61 6c 20 46 54 |ed.by se|veral FT|
|00000530| 50 20 61 72 63 68 69 76 | 65 20 73 69 74 65 73 2e |P archiv|e sites.|
|00000540| 20 0a 0a 46 45 41 54 55 | 52 45 53 3a 0a 0a 09 31 | ..FEATU|RES:...1|
|00000550| 29 20 4c 69 73 74 65 6e | 69 6e 67 20 66 6f 72 20 |) Listen|ing for |
|00000560| 63 6f 6e 6e 65 63 74 69 | 6f 6e 73 20 6f 6e 20 70 |connecti|ons on p|
|00000570| 73 65 75 64 6f 2d 74 65 | 72 6d 69 6e 61 6c 73 20 |seudo-te|rminals |
|00000580| 28 70 74 79 27 73 29 2c | 20 75 73 65 66 75 6c 0a |(pty's),| useful.|
|00000590| 09 20 20 20 66 6f 72 20 | 70 72 6f 67 72 61 6d 6d |. for |programm|
|000005a0| 65 73 20 74 68 61 74 20 | 65 78 70 65 63 74 20 61 |es that |expect a|
|000005b0| 20 74 65 72 6d 69 6e 61 | 6c 20 61 73 20 74 68 65 | termina|l as the|
|000005c0| 69 72 20 73 74 64 69 6f | 20 62 75 74 20 79 6f 75 |ir stdio| but you|
|000005d0| 0a 09 20 20 20 77 61 6e | 74 20 74 6f 20 72 75 6e |.. wan|t to run|
|000005e0| 20 6f 6e 20 61 20 6e 65 | 74 77 6f 72 6b 20 63 6f | on a ne|twork co|
|000005f0| 6e 6e 65 63 74 69 6f 6e | 20 28 65 67 2e 20 74 69 |nnection| (eg. ti|
|00000600| 70 28 31 29 2c 20 6c 70 | 64 28 38 29 2c 20 75 75 |p(1), lp|d(8), uu|
|00000610| 63 70 29 2e 0a 09 20 20 | 20 45 78 61 6d 70 6c 65 |cp)... | Example|
|00000620| 3a 20 74 68 65 20 63 6f | 6e 66 69 67 75 72 61 74 |: the co|nfigurat|
|00000630| 69 6f 6e 20 65 6e 74 72 | 79 0a 0a 09 20 20 20 2f |ion entr|y... /|
|00000640| 64 65 76 2f 70 74 79 72 | 66 20 73 74 72 65 61 6d |dev/ptyr|f stream|
|00000650| 20 20 70 74 79 20 20 77 | 61 69 74 20 20 72 6f 6f | pty w|ait roo|
|00000660| 74 20 20 2f 75 73 72 2f | 6c 6f 63 61 6c 2f 65 74 |t /usr/|local/et|
|00000670| 63 2f 74 74 2e 6a 65 74 | 64 20 20 74 74 2e 6a 65 |c/tt.jet|d tt.je|
|00000680| 74 64 20 2d 68 20 70 63 | 2d 6c 77 0a 0a 09 20 20 |td -h pc|-lw... |
|00000690| 20 77 6f 75 6c 64 20 61 | 6c 6c 6f 77 20 6c 70 64 | would a|llow lpd|
|000006a0| 28 38 29 20 6f 72 20 74 | 69 70 28 31 29 20 74 6f |(8) or t|ip(1) to|
|000006b0| 20 63 6f 6e 6e 65 63 74 | 20 74 6f 20 61 20 4c 61 | connect| to a La|
|000006c0| 73 65 72 20 70 72 69 6e | 74 65 72 20 6f 6e 20 74 |ser prin|ter on t|
|000006d0| 68 65 0a 09 20 20 20 6e | 65 74 77 6f 72 6b 20 28 |he.. n|etwork (|
|000006e0| 60 74 74 2e 6a 65 74 64 | 27 20 74 79 70 69 63 61 |`tt.jetd|' typica|
|000006f0| 6c 6c 79 20 73 65 74 73 | 20 75 70 20 74 68 65 20 |lly sets| up the |
|00000700| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 75 73 69 6e 67 |connecti|on using|
|00000710| 20 54 43 50 20 61 6e 64 | 0a 09 20 20 20 74 68 65 | TCP and|.. the|
|00000720| 6e 20 61 63 74 73 20 61 | 73 20 61 20 62 69 2d 64 |n acts a|s a bi-d|
|00000730| 69 72 65 63 74 69 6f 6e | 61 6c 20 74 72 61 6e 73 |irection|al trans|
|00000740| 66 65 72 20 61 67 65 6e | 74 29 2e 0a 0a 09 32 29 |fer agen|t)....2)|
|00000750| 20 53 75 70 70 6f 72 74 | 20 66 6f 72 20 41 46 5f | Support| for AF_|
|00000760| 55 4e 49 58 20 73 6f 63 | 6b 65 74 73 20 6f 6e 20 |UNIX soc|kets on |
|00000770| 74 68 65 20 6c 6f 63 61 | 6c 20 6d 61 63 68 69 6e |the loca|l machin|
|00000780| 65 2e 0a 09 20 20 20 41 | 73 20 79 65 74 2c 20 49 |e... A|s yet, I|
|00000790| 20 68 61 76 65 20 66 6f | 75 6e 64 20 6e 6f 20 75 | have fo|und no u|
|000007a0| 73 65 66 75 6c 20 70 75 | 72 70 6f 73 65 20 66 6f |seful pu|rpose fo|
|000007b0| 72 20 74 68 69 73 2c 20 | 62 75 74 20 69 74 20 77 |r this, |but it w|
|000007c0| 61 73 0a 09 20 20 20 72 | 65 6c 61 74 69 76 65 6c |as.. r|elativel|
|000007d0| 79 20 65 61 73 79 20 74 | 6f 20 61 64 64 2e 20 41 |y easy t|o add. A|
|000007e0| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 6c | configu|ration l|
|000007f0| 69 6e 65 20 77 6f 75 6c | 64 20 67 6f 20 6c 69 6b |ine woul|d go lik|
|00000800| 65 20 74 68 69 73 3a 0a | 0a 09 20 20 20 2f 74 6d |e this:.|.. /tm|
|00000810| 70 2f 79 6f 75 72 2d 73 | 6f 63 6b 20 73 74 72 65 |p/your-s|ock stre|
|00000820| 61 6d 20 75 6e 69 78 20 | 6e 6f 77 61 69 74 20 72 |am unix |nowait r|
|00000830| 6f 6f 74 20 2f 65 74 63 | 2f 79 6f 75 72 2d 64 61 |oot /etc|/your-da|
|00000840| 65 6d 6f 6e 20 3c 61 72 | 67 73 3e 0a 0a 0a 09 33 |emon <ar|gs>....3|
|00000850| 29 20 53 75 70 70 6f 72 | 74 20 66 6f 72 20 52 50 |) Suppor|t for RP|
|00000860| 43 20 62 61 73 65 64 20 | 64 61 65 6d 6f 6e 73 2e |C based |daemons.|
|00000870| 0a 09 20 20 20 53 79 6e | 74 61 78 20 61 73 20 75 |.. Syn|tax as u|
|00000880| 73 65 64 20 62 79 20 53 | 75 6e 20 4d 69 63 72 6f |sed by S|un Micro|
|00000890| 73 79 73 74 65 6d 73 2c | 20 65 78 61 6d 70 6c 65 |systems,| example|
|000008a0| 3a 0a 0a 09 20 20 20 72 | 75 73 65 72 73 64 2f 31 |:... r|usersd/1|
|000008b0| 2d 32 09 64 67 72 61 6d | 09 72 70 63 2f 75 64 70 |-2.dgram|.rpc/udp|
|000008c0| 09 77 61 69 74 20 6e 6f | 62 6f 64 79 20 2f 75 73 |.wait no|body /us|
|000008d0| 72 2f 65 74 63 2f 72 70 | 63 2e 72 75 73 65 72 73 |r/etc/rp|c.rusers|
|000008e0| 64 20 72 70 63 2e 72 75 | 73 65 72 73 64 0a 0a 09 |d rpc.ru|sersd...|
|000008f0| 34 29 20 53 61 76 69 6e | 67 20 74 68 65 20 70 72 |4) Savin|g the pr|
|00000900| 6f 63 65 73 73 20 49 44 | 20 69 6e 20 61 20 66 69 |ocess ID| in a fi|
|00000910| 6c 65 20 28 74 79 70 69 | 63 61 6c 6c 79 20 60 2f |le (typi|cally `/|
|00000920| 65 74 63 2f 6d 75 6e 65 | 74 64 2e 70 69 64 27 29 |etc/mune|td.pid')|
|00000930| 20 66 6f 72 0a 09 20 20 | 20 65 61 73 69 65 72 20 | for.. | easier |
|00000940| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 20 6f 66 20 |installa|tion of |
|00000950| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 63 68 |configur|ation ch|
|00000960| 61 6e 67 65 73 2e 20 54 | 68 69 73 20 63 6f 6d 65 |anges. T|his come|
|00000970| 73 20 69 6e 0a 09 20 20 | 20 68 61 6e 64 79 20 69 |s in.. | handy i|
|00000980| 66 20 79 6f 75 20 61 75 | 74 6f 6d 61 74 65 20 28 |f you au|tomate (|
|00000990| 61 73 20 77 65 20 64 6f | 29 20 74 68 65 20 64 69 |as we do|) the di|
|000009a0| 73 74 72 69 62 75 74 69 | 6f 6e 20 6f 66 20 63 6f |stributi|on of co|
|000009b0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 0a 09 20 20 20 |nfigurat|ion.. |
|000009c0| 66 69 6c 65 73 20 6f 6e | 20 61 20 62 75 6e 64 6c |files on| a bundl|
|000009d0| 65 20 6f 66 20 6d 61 63 | 68 69 6e 65 73 2e 0a 0a |e of mac|hines...|
|000009e0| 09 35 29 20 53 6f 6d 65 | 20 62 75 67 20 66 69 78 |.5) Some| bug fix|
|000009f0| 65 73 20 28 65 73 70 65 | 63 69 61 6c 6c 79 20 69 |es (espe|cially i|
|00000a00| 6e 20 74 68 65 20 68 61 | 6e 64 6c 69 6e 67 20 6f |n the ha|ndling o|
|00000a10| 66 20 48 41 4e 47 55 50 | 20 73 69 67 6e 61 6c 73 |f HANGUP| signals|
|00000a20| 29 0a 0a 09 36 29 20 53 | 70 65 63 69 66 69 63 61 |)...6) S|pecifica|
|00000a30| 74 69 6f 6e 20 6f 6e 20 | 61 20 70 65 72 20 73 65 |tion on |a per se|
|00000a40| 72 76 69 63 65 20 62 61 | 73 69 73 20 6f 66 20 74 |rvice ba|sis of t|
|00000a50| 68 65 20 6d 61 78 69 6d | 75 6d 20 6e 75 6d 62 65 |he maxim|um numbe|
|00000a60| 72 20 6f 66 0a 09 20 20 | 20 61 6c 6c 6f 77 65 64 |r of.. | allowed|
|00000a70| 20 72 65 71 75 65 73 74 | 73 20 77 69 74 68 69 6e | request|s within|
|00000a80| 20 61 20 66 69 78 65 64 | 20 74 69 6d 65 20 69 6e | a fixed| time in|
|00000a90| 74 65 72 76 61 6c 2e 20 | 54 68 69 73 20 6d 61 79 |terval. |This may|
|00000aa0| 20 62 65 20 75 73 65 64 | 0a 09 20 20 20 74 6f 20 | be used|.. to |
|00000ab0| 70 72 65 76 65 6e 74 20 | 22 73 65 72 76 69 63 65 |prevent |"service|
|00000ac0| 20 66 61 69 6c 65 64 20 | 28 6c 6f 6f 70 69 6e 67 | failed |(looping|
|00000ad0| 29 22 20 66 6f 72 20 68 | 65 61 76 69 6c 79 20 75 |)" for h|eavily u|
|00000ae0| 73 65 64 20 73 65 72 76 | 69 63 65 73 2c 0a 09 20 |sed serv|ices,.. |
|00000af0| 20 20 77 68 69 6c 65 20 | 72 65 74 61 69 6e 69 6e | while |retainin|
|00000b00| 67 20 74 68 69 73 20 73 | 61 66 65 74 79 20 62 61 |g this s|afety ba|
|00000b10| 72 72 69 65 72 20 66 6f | 72 20 73 65 72 76 69 63 |rrier fo|r servic|
|00000b20| 65 73 20 66 6f 72 20 77 | 68 69 63 68 20 73 75 63 |es for w|hich suc|
|00000b30| 68 0a 09 20 20 20 72 61 | 70 69 64 6c 79 20 73 75 |h.. ra|pidly su|
|00000b40| 63 63 65 65 64 69 6e 67 | 20 69 6e 76 6f 63 61 74 |cceeding| invocat|
|00000b50| 69 6f 6e 73 20 69 6e 64 | 69 63 61 74 65 73 20 65 |ions ind|icates e|
|00000b60| 72 72 6f 6e 65 6f 75 73 | 20 62 65 68 61 76 69 6f |rroneous| behavio|
|00000b70| 75 72 20 28 6f 66 0a 09 | 20 20 20 61 6e 6f 74 68 |ur (of..| anoth|
|00000b80| 65 72 20 68 6f 73 74 29 | 2e 0a 0a 09 37 29 20 41 |er host)|....7) A|
|00000b90| 6c 6c 6f 77 20 73 65 72 | 76 69 63 65 73 20 74 6f |llow ser|vices to|
|00000ba0| 20 72 75 6e 20 77 69 74 | 68 20 61 20 73 70 65 63 | run wit|h a spec|
|00000bb0| 69 66 69 65 64 20 70 72 | 69 6d 61 72 79 20 67 72 |ified pr|imary gr|
|00000bc0| 6f 75 70 20 69 64 2c 20 | 69 6e 20 73 74 65 61 64 |oup id, |in stead|
|00000bd0| 0a 09 20 20 20 6f 66 20 | 74 68 65 20 67 72 6f 75 |.. of |the grou|
|00000be0| 70 20 69 64 20 6e 6f 72 | 6d 61 6c 6c 79 20 61 73 |p id nor|mally as|
|00000bf0| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|00000c00| 65 20 75 73 65 72 20 69 | 64 20 67 69 76 65 6e 20 |e user i|d given |
|00000c10| 69 6e 0a 09 20 20 20 74 | 68 65 20 60 60 75 73 65 |in.. t|he ``use|
|00000c20| 72 27 27 20 66 69 65 6c | 64 20 6f 66 20 74 68 65 |r'' fiel|d of the|
|00000c30| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 66 | configu|ration f|
|00000c40| 69 6c 65 2e 0a 09 20 20 | 20 54 68 69 73 20 69 64 |ile... | This id|
|00000c50| 65 61 20 77 61 73 20 70 | 72 6f 70 6f 73 65 64 20 |ea was p|roposed |
|00000c60| 62 79 20 44 61 72 72 65 | 6e 20 52 65 65 64 20 28 |by Darre|n Reed (|
|00000c70| 61 76 61 6c 6f 6e 40 63 | 6f 6f 6d 62 73 2e 61 6e |avalon@c|oombs.an|
|00000c80| 75 2e 65 64 75 2e 61 75 | 29 0a 09 20 20 20 61 6e |u.edu.au|).. an|
|00000c90| 64 20 57 69 65 74 73 65 | 20 56 65 6e 65 6d 61 20 |d Wietse| Venema |
|00000ca0| 28 77 69 65 74 73 65 40 | 77 7a 76 2e 77 69 6e 2e |(wietse@|wzv.win.|
|00000cb0| 74 75 65 2e 6e 6c 29 2e | 0a 0a 0a 49 4e 53 54 41 |tue.nl).|...INSTA|
|00000cc0| 4c 4c 41 54 49 4f 4e 0a | 0a 09 44 65 66 69 6e 65 |LLATION.|..Define|
|00000cd0| 20 52 50 43 3d 30 20 69 | 6e 20 74 68 65 20 6d 61 | RPC=0 i|n the ma|
|00000ce0| 6b 65 66 69 6c 65 20 69 | 66 20 79 6f 75 72 20 6c |kefile i|f your l|
|00000cf0| 69 62 72 61 72 69 65 73 | 20 64 6f 20 6e 6f 74 20 |ibraries| do not |
|00000d00| 63 6f 6e 74 61 69 6e 0a | 09 74 68 65 20 72 6f 75 |contain.|.the rou|
|00000d10| 74 69 6e 65 73 20 60 70 | 6d 61 70 5f 73 65 74 27 |tines `p|map_set'|
|00000d20| 20 61 6e 64 20 60 70 6d | 61 70 5f 75 6e 73 65 74 | and `pm|ap_unset|
|00000d30| 27 2e 0a 0a 09 54 79 70 | 65 20 60 6d 61 6b 65 20 |'....Typ|e `make |
|00000d40| 77 69 74 68 6c 69 62 27 | 20 69 66 20 6c 69 62 72 |withlib'| if libr|
|00000d50| 61 72 79 20 72 6f 75 74 | 69 6e 65 73 20 60 64 61 |ary rout|ines `da|
|00000d60| 65 6d 6f 6e 27 20 6f 72 | 20 60 73 65 74 65 6e 76 |emon' or| `setenv|
|00000d70| 27 20 0a 09 61 72 65 20 | 6e 6f 74 20 61 76 61 69 |' ..are |not avai|
|00000d80| 6c 61 62 6c 65 20 6f 6e | 20 79 6f 75 72 20 73 79 |lable on| your sy|
|00000d90| 73 74 65 6d 2e 0a 0a 0a | 54 4f 44 4f 0a 09 53 68 |stem....|TODO..Sh|
|00000da0| 6f 75 6c 64 20 68 6f 6c | 64 20 61 20 6c 6f 63 6b |ould hol|d a lock|
|00000db0| 20 6f 6e 20 60 2f 65 74 | 63 2f 6d 75 6e 65 74 64 | on `/et|c/munetd|
|00000dc0| 2e 70 69 64 27 20 77 68 | 69 6c 65 20 72 75 6e 6e |.pid' wh|ile runn|
|00000dd0| 69 6e 67 20 74 6f 0a 09 | 61 76 6f 69 64 20 69 6e |ing to..|avoid in|
|00000de0| 61 64 76 65 72 74 65 6e | 74 20 6b 69 6c 6c 69 6e |adverten|t killin|
|00000df0| 67 73 2e 0a 0a 0a 46 54 | 50 0a 0a 09 60 6d 75 6e |gs....FT|P...`mun|
|00000e00| 65 74 64 27 20 69 73 20 | 61 76 61 69 6c 61 62 6c |etd' is |availabl|
|00000e10| 65 20 62 79 20 41 6e 6f | 6e 79 6d 6f 75 73 20 46 |e by Ano|nymous F|
|00000e20| 54 50 20 66 72 6f 6d 20 | 60 66 74 70 2e 63 73 2e |TP from |`ftp.cs.|
|00000e30| 66 65 77 2e 65 75 72 2e | 6e 6c 27 0a 09 28 66 69 |few.eur.|nl'..(fi|
|00000e40| 6c 65 3a 20 60 70 75 62 | 2f 6d 75 6e 65 74 64 2e |le: `pub|/munetd.|
|00000e50| 74 61 72 2e 5a 27 29 0a | 0a 0a 52 45 4d 41 52 4b |tar.Z').|..REMARK|
|00000e60| 53 20 54 4f 0a 0a 09 50 | 61 75 6c 20 4b 72 61 6e |S TO...P|aul Kran|
|00000e70| 65 6e 62 75 72 67 2c 20 | 44 65 70 74 2e 20 43 2e |enburg, |Dept. C.|
|00000e80| 20 53 63 2e 2c 20 45 72 | 61 73 6d 75 73 20 55 6e | Sc., Er|asmus Un|
|00000e90| 69 76 65 72 73 69 74 79 | 20 52 6f 74 74 65 72 64 |iversity| Rotterd|
|00000ea0| 61 6d 2c 20 4e 4c 0a 09 | 70 6b 40 63 73 2e 66 65 |am, NL..|pk@cs.fe|
|00000eb0| 77 2e 65 75 72 2e 6e 6c | 0a 00 00 00 00 00 00 00 |w.eur.nl|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 6d 75 6e 65 74 64 2f 4d | 61 6b 65 66 69 6c 65 00 |munetd/M|akefile.|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 37 |.... 6|44 . 7|
|00001070| 30 30 20 00 20 20 20 20 | 36 32 20 00 20 20 20 20 |00 . |62 . |
|00001080| 20 20 20 32 35 35 36 20 | 20 35 33 36 35 30 36 31 | 2556 | 5365061|
|00001090| 36 35 33 20 20 31 32 34 | 32 37 00 20 30 00 00 00 |653 124|27. 0...|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 75 73 74 61 72 20 20 | 00 6d 69 74 63 68 00 00 |.ustar |.mitch..|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 23 0a 23 20 40 28 23 29 | 4d 61 6b 65 66 69 6c 65 |#.# @(#)|Makefile|
|00001210| 09 33 2e 31 20 39 33 2f | 30 34 2f 30 38 0a 23 0a |.3.1 93/|04/08.#.|
|00001220| 0a 23 0a 23 20 43 68 6f | 6f 73 65 20 70 61 74 68 |.#.# Cho|ose path|
|00001230| 20 6e 61 6d 65 73 20 73 | 75 69 74 61 62 6c 65 20 | names s|uitable |
|00001240| 66 6f 72 20 79 6f 75 72 | 20 73 79 73 74 65 6d 2e |for your| system.|
|00001250| 0a 23 0a 23 20 53 65 74 | 20 52 50 43 3d 31 20 69 |.#.# Set| RPC=1 i|
|00001260| 6e 20 44 45 46 49 4e 45 | 53 20 62 65 6c 6f 77 20 |n DEFINE|S below |
|00001270| 74 6f 20 65 6e 61 62 6c | 65 20 52 50 43 20 73 65 |to enabl|e RPC se|
|00001280| 72 76 69 63 65 73 0a 23 | 20 20 54 68 69 73 20 61 |rvices.#| This a|
|00001290| 73 73 75 6d 65 73 20 79 | 6f 75 20 68 61 76 65 20 |ssumes y|ou have |
|000012a0| 74 68 65 20 72 6f 75 74 | 69 6e 65 73 0a 23 20 20 |the rout|ines.# |
|000012b0| 60 70 6d 61 70 5f 73 65 | 74 27 20 61 6e 64 20 60 |`pmap_se|t' and `|
|000012c0| 70 6d 61 70 5f 75 6e 73 | 65 74 27 20 69 6e 20 79 |pmap_uns|et' in y|
|000012d0| 6f 75 72 20 6c 69 62 72 | 61 72 69 65 73 2e 0a 23 |our libr|aries..#|
|000012e0| 0a 23 20 53 65 74 20 4d | 55 4c 4f 47 3d 3c 66 61 |.# Set M|ULOG=<fa|
|000012f0| 63 69 6c 69 74 79 3e 20 | 74 6f 20 65 6e 61 62 6c |cility> |to enabl|
|00001300| 65 20 6c 6f 67 67 69 6e | 67 20 73 75 70 70 6f 72 |e loggin|g suppor|
|00001310| 74 20 74 68 72 6f 75 67 | 68 0a 23 20 73 79 73 6c |t throug|h.# sysl|
|00001320| 6f 67 64 20 61 74 20 74 | 68 65 20 67 69 76 65 6e |ogd at t|he given|
|00001330| 20 66 61 63 69 6c 69 74 | 79 20 63 6f 64 65 2e 0a | facilit|y code..|
|00001340| 23 0a 0a 42 49 4e 44 49 | 52 09 3d 09 2f 65 74 63 |#..BINDI|R.=./etc|
|00001350| 0a 4d 41 4e 44 49 52 09 | 3d 09 2f 75 73 72 2f 6d |.MANDIR.|=./usr/m|
|00001360| 61 6e 0a 44 45 46 49 4e | 45 53 09 3d 09 2d 44 52 |an.DEFIN|ES.=.-DR|
|00001370| 50 43 3d 31 20 24 28 54 | 43 50 44 29 20 23 2d 44 |PC=1 $(T|CPD) #-D|
|00001380| 4d 55 4c 4f 47 3d 4c 4f | 47 5f 44 41 45 4d 4f 4e |MULOG=LO|G_DAEMON|
|00001390| 0a 43 43 09 3d 09 67 63 | 63 0a 54 43 50 44 09 3d |.CC.=.gc|c.TCPD.=|
|000013a0| 09 2d 44 54 43 50 44 20 | 2d 49 74 63 70 64 20 2d |.-DTCPD |-Itcpd -|
|000013b0| 44 54 43 50 44 4c 4f 47 | 3d 4c 4f 47 5f 44 41 45 |DTCPDLOG|=LOG_DAE|
|000013c0| 4d 4f 4e 0a 43 46 4c 41 | 47 53 09 3d 09 2d 4f 36 |MON.CFLA|GS.=.-O6|
|000013d0| 20 2d 73 20 2d 49 2f 75 | 73 72 2f 69 6e 63 6c 75 | -s -I/u|sr/inclu|
|000013e0| 64 65 2f 62 73 64 20 24 | 28 44 45 46 49 4e 45 53 |de/bsd $|(DEFINES|
|000013f0| 29 0a 4f 42 4a 53 09 3d | 09 6d 75 6e 65 74 64 2e |).OBJS.=|.munetd.|
|00001400| 6f 0a 4c 49 42 4f 42 4a | 53 09 3d 09 23 64 61 65 |o.LIBOBJ|S.=.#dae|
|00001410| 6d 6f 6e 2e 6f 20 67 65 | 74 65 6e 76 2e 6f 20 73 |mon.o ge|tenv.o s|
|00001420| 65 74 65 6e 76 2e 6f 0a | 4c 49 42 53 09 3d 09 2d |etenv.o.|LIBS.=.-|
|00001430| 6c 62 73 64 34 34 20 2d | 6c 62 73 64 20 20 2d 4c |lbsd44 -|lbsd -L|
|00001440| 74 63 70 64 20 2d 6c 77 | 72 61 70 0a 44 49 53 54 |tcpd -lw|rap.DIST|
|00001450| 52 49 42 09 3d 09 52 45 | 41 44 4d 45 20 4d 61 6b |RIB.=.RE|ADME Mak|
|00001460| 65 66 69 6c 65 20 6d 75 | 6e 65 74 64 2e 38 20 70 |efile mu|netd.8 p|
|00001470| 74 79 64 2e 38 20 5c 0a | 09 09 6d 75 6e 65 74 64 |tyd.8 \.|..munetd|
|00001480| 2e 63 20 70 74 79 64 2e | 63 20 70 61 74 68 6e 61 |.c ptyd.|c pathna|
|00001490| 6d 65 73 2e 68 20 67 65 | 74 65 6e 76 2e 63 20 73 |mes.h ge|tenv.c s|
|000014a0| 65 74 65 6e 76 2e 63 20 | 64 61 65 6d 6f 6e 2e 63 |etenv.c |daemon.c|
|000014b0| 0a 0a 4c 49 42 53 45 41 | 52 43 48 20 3d 20 2d 4c |..LIBSEA|RCH = -L|
|000014c0| 2e 0a 4c 49 42 44 45 50 | 20 3d 20 6c 69 62 62 73 |..LIBDEP| = libbs|
|000014d0| 64 34 34 2e 61 0a 0a 61 | 6c 6c 3a 20 6d 75 6e 65 |d44.a..a|ll: mune|
|000014e0| 74 64 20 70 74 79 64 0a | 77 69 74 68 6c 69 62 3a |td ptyd.|withlib:|
|000014f0| 20 24 24 28 4c 49 42 44 | 45 50 29 20 61 6c 6c 0a | $$(LIBD|EP) all.|
|00001500| 0a 6c 69 62 62 73 64 34 | 34 2e 61 3a 20 24 28 4c |.libbsd4|4.a: $(L|
|00001510| 49 42 4f 42 4a 53 29 0a | 09 61 72 20 63 72 6c 75 |IBOBJS).|.ar crlu|
|00001520| 20 24 40 20 24 28 4c 49 | 42 4f 42 4a 53 29 0a 09 | $@ $(LI|BOBJS)..|
|00001530| 72 61 6e 6c 69 62 20 24 | 40 0a 0a 6d 75 6e 65 74 |ranlib $|@..munet|
|00001540| 64 3a 20 24 28 4f 42 4a | 53 29 20 24 28 4c 49 42 |d: $(OBJ|S) $(LIB|
|00001550| 44 45 50 29 0a 09 24 28 | 43 43 29 20 24 28 43 46 |DEP)..$(|CC) $(CF|
|00001560| 4c 41 47 53 29 20 2d 6f | 20 24 40 20 24 28 4f 42 |LAGS) -o| $@ $(OB|
|00001570| 4a 53 29 20 24 28 4c 49 | 42 53 45 41 52 43 48 29 |JS) $(LI|BSEARCH)|
|00001580| 20 24 28 4c 49 42 53 29 | 20 24 28 54 43 50 44 29 | $(LIBS)| $(TCPD)|
|00001590| 0a 0a 70 74 79 64 3a 20 | 70 74 79 64 2e 6f 20 24 |..ptyd: |ptyd.o $|
|000015a0| 28 4c 49 42 44 45 50 29 | 0a 09 24 28 43 43 29 20 |(LIBDEP)|..$(CC) |
|000015b0| 24 28 43 46 4c 41 47 53 | 29 20 2d 6f 20 24 40 20 |$(CFLAGS|) -o $@ |
|000015c0| 70 74 79 64 2e 6f 20 24 | 28 4c 49 42 53 45 41 52 |ptyd.o $|(LIBSEAR|
|000015d0| 43 48 29 20 24 28 4c 49 | 42 53 29 0a 0a 69 6e 73 |CH) $(LI|BS)..ins|
|000015e0| 74 61 6c 6c 3a 20 6d 75 | 6e 65 74 64 20 70 74 79 |tall: mu|netd pty|
|000015f0| 64 0a 09 69 6e 73 74 61 | 6c 6c 20 2d 6f 20 72 6f |d..insta|ll -o ro|
|00001600| 6f 74 20 2d 6d 20 35 35 | 35 20 6d 75 6e 65 74 64 |ot -m 55|5 munetd|
|00001610| 20 24 28 42 49 4e 44 49 | 52 29 0a 09 69 6e 73 74 | $(BINDI|R)..inst|
|00001620| 61 6c 6c 20 2d 6f 20 72 | 6f 6f 74 20 2d 6d 20 35 |all -o r|oot -m 5|
|00001630| 35 35 20 70 74 79 64 20 | 24 28 42 49 4e 44 49 52 |55 ptyd |$(BINDIR|
|00001640| 29 0a 0a 69 6e 73 74 61 | 6c 6c 2e 6d 61 6e 3a 20 |)..insta|ll.man: |
|00001650| 6d 75 6e 65 74 64 2e 38 | 20 70 74 79 64 2e 38 0a |munetd.8| ptyd.8.|
|00001660| 09 69 6e 73 74 61 6c 6c | 20 2d 6f 20 72 6f 6f 74 |.install| -o root|
|00001670| 20 2d 6d 20 34 34 34 20 | 6d 75 6e 65 74 64 2e 38 | -m 444 |munetd.8|
|00001680| 20 24 28 4d 41 4e 44 49 | 52 29 2f 6d 61 6e 38 0a | $(MANDI|R)/man8.|
|00001690| 09 69 6e 73 74 61 6c 6c | 20 2d 6f 20 72 6f 6f 74 |.install| -o root|
|000016a0| 20 2d 6d 20 34 34 34 20 | 70 74 79 64 2e 38 20 24 | -m 444 |ptyd.8 $|
|000016b0| 28 4d 41 4e 44 49 52 29 | 2f 6d 61 6e 38 0a 0a 63 |(MANDIR)|/man8..c|
|000016c0| 6c 65 61 6e 3a 0a 09 72 | 6d 20 2d 66 20 63 6f 72 |lean:..r|m -f cor|
|000016d0| 65 20 61 2e 6f 75 74 20 | 6d 75 6e 65 74 64 20 6c |e a.out |munetd l|
|000016e0| 69 62 62 73 64 34 34 2e | 61 20 2a 2e 6f 0a 0a 6b |ibbsd44.|a *.o..k|
|000016f0| 69 74 3a 09 24 28 44 49 | 53 54 52 49 42 29 0a 09 |it:.$(DI|STRIB)..|
|00001700| 6d 61 6b 65 6b 69 74 20 | 2d 6d 20 24 28 44 49 53 |makekit |-m $(DIS|
|00001710| 54 52 49 42 29 0a 0a 74 | 61 72 3a 09 24 28 44 49 |TRIB)..t|ar:.$(DI|
|00001720| 53 54 52 49 42 29 0a 09 | 74 61 72 20 63 66 20 2d |STRIB)..|tar cf -|
|00001730| 20 24 28 44 49 53 54 52 | 49 42 29 20 7c 20 63 6f | $(DISTR|IB) | co|
|00001740| 6d 70 72 65 73 73 20 3e | 20 6d 75 6e 65 74 64 2e |mpress >| munetd.|
|00001750| 74 61 72 2e 5a 0a 0a 0a | 6d 75 6e 65 74 64 2e 6f |tar.Z...|munetd.o|
|00001760| 3a 20 70 61 74 68 6e 61 | 6d 65 73 2e 68 0a 00 00 |: pathna|mes.h...|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 6d 75 6e 65 74 64 2f 6d | 75 6e 65 74 64 2e 38 00 |munetd/m|unetd.8.|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 37 |.... 6|44 . 7|
|00001870| 30 30 20 00 20 20 20 20 | 36 32 20 00 20 20 20 20 |00 . |62 . |
|00001880| 20 20 31 37 35 36 33 20 | 20 35 33 36 30 37 35 32 | 17563 | 5360752|
|00001890| 34 32 36 20 20 31 32 34 | 30 30 00 20 30 00 00 00 |426 124|00. 0...|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 75 73 74 61 72 20 20 | 00 6d 69 74 63 68 00 00 |.ustar |.mitch..|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |.\" Copy|right (c|
|00001a10| 29 20 31 39 38 35 20 54 | 68 65 20 52 65 67 65 6e |) 1985 T|he Regen|
|00001a20| 74 73 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |ts of th|e Univer|
|00001a30| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00001a40| 69 61 2e 0a 2e 5c 22 20 | 41 6c 6c 20 72 69 67 68 |ia...\" |All righ|
|00001a50| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 2e 5c 22 |ts reser|ved...\"|
|00001a60| 0a 2e 5c 22 20 52 65 64 | 69 73 74 72 69 62 75 74 |..\" Red|istribut|
|00001a70| 69 6f 6e 20 61 6e 64 20 | 75 73 65 20 69 6e 20 73 |ion and |use in s|
|00001a80| 6f 75 72 63 65 20 61 6e | 64 20 62 69 6e 61 72 79 |ource an|d binary|
|00001a90| 20 66 6f 72 6d 73 20 61 | 72 65 20 70 65 72 6d 69 | forms a|re permi|
|00001aa0| 74 74 65 64 20 70 72 6f | 76 69 64 65 64 0a 2e 5c |tted pro|vided..\|
|00001ab0| 22 20 74 68 61 74 3a 20 | 28 31 29 20 73 6f 75 72 |" that: |(1) sour|
|00001ac0| 63 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 73 |ce distr|ibutions|
|00001ad0| 20 72 65 74 61 69 6e 20 | 74 68 69 73 20 65 6e 74 | retain |this ent|
|00001ae0| 69 72 65 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |ire copy|right no|
|00001af0| 74 69 63 65 20 61 6e 64 | 0a 2e 5c 22 20 63 6f 6d |tice and|..\" com|
|00001b00| 6d 65 6e 74 2c 20 61 6e | 64 20 28 32 29 20 64 69 |ment, an|d (2) di|
|00001b10| 73 74 72 69 62 75 74 69 | 6f 6e 73 20 69 6e 63 6c |stributi|ons incl|
|00001b20| 75 64 69 6e 67 20 62 69 | 6e 61 72 69 65 73 20 64 |uding bi|naries d|
|00001b30| 69 73 70 6c 61 79 20 74 | 68 65 20 66 6f 6c 6c 6f |isplay t|he follo|
|00001b40| 77 69 6e 67 0a 2e 5c 22 | 20 61 63 6b 6e 6f 77 6c |wing..\"| acknowl|
|00001b50| 65 64 67 65 6d 65 6e 74 | 3a 20 20 60 60 54 68 69 |edgement|: ``Thi|
|00001b60| 73 20 70 72 6f 64 75 63 | 74 20 69 6e 63 6c 75 64 |s produc|t includ|
|00001b70| 65 73 20 73 6f 66 74 77 | 61 72 65 20 64 65 76 65 |es softw|are deve|
|00001b80| 6c 6f 70 65 64 20 62 79 | 20 74 68 65 0a 2e 5c 22 |loped by| the..\"|
|00001b90| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 43 | Univers|ity of C|
|00001ba0| 61 6c 69 66 6f 72 6e 69 | 61 2c 20 42 65 72 6b 65 |aliforni|a, Berke|
|00001bb0| 6c 65 79 20 61 6e 64 20 | 69 74 73 20 63 6f 6e 74 |ley and |its cont|
|00001bc0| 72 69 62 75 74 6f 72 73 | 27 27 20 69 6e 20 74 68 |ributors|'' in th|
|00001bd0| 65 0a 2e 5c 22 20 64 6f | 63 75 6d 65 6e 74 61 74 |e..\" do|cumentat|
|00001be0| 69 6f 6e 20 6f 72 20 6f | 74 68 65 72 20 6d 61 74 |ion or o|ther mat|
|00001bf0| 65 72 69 61 6c 73 20 70 | 72 6f 76 69 64 65 64 20 |erials p|rovided |
|00001c00| 77 69 74 68 20 74 68 65 | 20 64 69 73 74 72 69 62 |with the| distrib|
|00001c10| 75 74 69 6f 6e 20 61 6e | 64 20 69 6e 0a 2e 5c 22 |ution an|d in..\"|
|00001c20| 20 61 6c 6c 20 61 64 76 | 65 72 74 69 73 69 6e 67 | all adv|ertising|
|00001c30| 20 6d 61 74 65 72 69 61 | 6c 73 20 6d 65 6e 74 69 | materia|ls menti|
|00001c40| 6f 6e 69 6e 67 20 66 65 | 61 74 75 72 65 73 20 6f |oning fe|atures o|
|00001c50| 72 20 75 73 65 20 6f 66 | 20 74 68 69 73 20 73 6f |r use of| this so|
|00001c60| 66 74 77 61 72 65 2e 0a | 2e 5c 22 20 4e 65 69 74 |ftware..|.\" Neit|
|00001c70| 68 65 72 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |her the |name of |
|00001c80| 74 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6e |the Univ|ersity n|
|00001c90| 6f 72 20 74 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |or the n|ames of |
|00001ca0| 69 74 73 20 63 6f 6e 74 | 72 69 62 75 74 6f 72 73 |its cont|ributors|
|00001cb0| 20 6d 61 79 0a 2e 5c 22 | 20 62 65 20 75 73 65 64 | may..\"| be used|
|00001cc0| 20 74 6f 20 65 6e 64 6f | 72 73 65 20 6f 72 20 70 | to endo|rse or p|
|00001cd0| 72 6f 6d 6f 74 65 20 70 | 72 6f 64 75 63 74 73 20 |romote p|roducts |
|00001ce0| 64 65 72 69 76 65 64 20 | 66 72 6f 6d 20 74 68 69 |derived |from thi|
|00001cf0| 73 20 73 6f 66 74 77 61 | 72 65 20 77 69 74 68 6f |s softwa|re witho|
|00001d00| 75 74 0a 2e 5c 22 20 73 | 70 65 63 69 66 69 63 20 |ut..\" s|pecific |
|00001d10| 70 72 69 6f 72 20 77 72 | 69 74 74 65 6e 20 70 65 |prior wr|itten pe|
|00001d20| 72 6d 69 73 73 69 6f 6e | 2e 0a 2e 5c 22 20 54 48 |rmission|...\" TH|
|00001d30| 49 53 20 53 4f 46 54 57 | 41 52 45 20 49 53 20 50 |IS SOFTW|ARE IS P|
|00001d40| 52 4f 56 49 44 45 44 20 | 60 60 41 53 20 49 53 27 |ROVIDED |``AS IS'|
|00001d50| 27 20 41 4e 44 20 57 49 | 54 48 4f 55 54 20 41 4e |' AND WI|THOUT AN|
|00001d60| 59 20 45 58 50 52 45 53 | 53 20 4f 52 20 49 4d 50 |Y EXPRES|S OR IMP|
|00001d70| 4c 49 45 44 0a 2e 5c 22 | 20 57 41 52 52 41 4e 54 |LIED..\"| WARRANT|
|00001d80| 49 45 53 2c 20 49 4e 43 | 4c 55 44 49 4e 47 2c 20 |IES, INC|LUDING, |
|00001d90| 57 49 54 48 4f 55 54 20 | 4c 49 4d 49 54 41 54 49 |WITHOUT |LIMITATI|
|00001da0| 4f 4e 2c 20 54 48 45 20 | 49 4d 50 4c 49 45 44 20 |ON, THE |IMPLIED |
|00001db0| 57 41 52 52 41 4e 54 49 | 45 53 20 4f 46 0a 2e 5c |WARRANTI|ES OF..\|
|00001dc0| 22 20 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 |" MERCHA|NTABILIT|
|00001dd0| 59 20 41 4e 44 20 46 49 | 54 4e 45 53 53 20 46 4f |Y AND FI|TNESS FO|
|00001de0| 52 20 41 20 50 41 52 54 | 49 43 55 4c 41 52 20 50 |R A PART|ICULAR P|
|00001df0| 55 52 50 4f 53 45 2e 0a | 2e 5c 22 0a 2e 5c 22 09 |URPOSE..|.\"..\".|
|00001e00| 40 28 23 29 69 6e 65 74 | 64 2e 38 09 36 2e 36 20 |@(#)inet|d.8.6.6 |
|00001e10| 28 42 65 72 6b 65 6c 65 | 79 29 20 36 2f 32 34 2f |(Berkele|y) 6/24/|
|00001e20| 39 30 0a 2e 5c 22 0a 2e | 54 48 20 4d 55 4e 45 54 |90..\"..|TH MUNET|
|00001e30| 44 20 38 20 22 4a 61 6e | 75 61 72 79 20 31 36 2c |D 8 "Jan|uary 16,|
|00001e40| 20 31 39 39 32 22 0a 2e | 55 43 20 36 0a 2e 53 48 | 1992"..|UC 6..SH|
|00001e50| 20 4e 41 4d 45 0a 6d 75 | 6e 65 74 64 20 5c 2d 20 | NAME.mu|netd \- |
|00001e60| 6e 65 74 77 6f 72 6b 20 | 60 60 73 75 70 65 72 5c |network |``super\|
|00001e70| 2d 73 65 72 76 65 72 27 | 27 0a 2e 53 48 20 53 59 |-server'|'..SH SY|
|00001e80| 4e 4f 50 53 49 53 0a 2e | 42 20 6d 75 6e 65 74 64 |NOPSIS..|B munetd|
|00001e90| 0a 5b 0a 2e 42 20 5c 2d | 64 0a 5d 20 5b 20 63 6f |.[..B \-|d.] [ co|
|00001ea0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 66 69 6c 65 |nfigurat|ion file|
|00001eb0| 20 5d 0a 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 | ]..SH D|ESCRIPTI|
|00001ec0| 4f 4e 0a 2e 49 20 4d 75 | 6e 65 74 64 0a 73 68 6f |ON..I Mu|netd.sho|
|00001ed0| 75 6c 64 20 62 65 20 72 | 75 6e 20 61 74 20 62 6f |uld be r|un at bo|
|00001ee0| 6f 74 20 74 69 6d 65 20 | 62 79 0a 2e 49 52 20 2f |ot time |by..IR /|
|00001ef0| 65 74 63 2f 72 63 2e 6c | 6f 63 61 6c 20 2e 0a 49 |etc/rc.l|ocal ..I|
|00001f00| 74 20 74 68 65 6e 20 6c | 69 73 74 65 6e 73 20 66 |t then l|istens f|
|00001f10| 6f 72 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 73 20 6f |or conne|ctions o|
|00001f20| 6e 20 63 65 72 74 61 69 | 6e 0a 69 6e 74 65 72 6e |n certai|n.intern|
|00001f30| 65 74 20 73 6f 63 6b 65 | 74 73 2e 20 20 57 68 65 |et socke|ts. Whe|
|00001f40| 6e 20 61 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 69 |n a conn|ection i|
|00001f50| 73 20 66 6f 75 6e 64 20 | 6f 6e 20 6f 6e 65 0a 6f |s found |on one.o|
|00001f60| 66 20 69 74 73 20 73 6f | 63 6b 65 74 73 2c 20 69 |f its so|ckets, i|
|00001f70| 74 20 64 65 63 69 64 65 | 73 20 77 68 61 74 20 73 |t decide|s what s|
|00001f80| 65 72 76 69 63 65 20 74 | 68 65 20 73 6f 63 6b 65 |ervice t|he socke|
|00001f90| 74 0a 63 6f 72 72 65 73 | 70 6f 6e 64 73 20 74 6f |t.corres|ponds to|
|00001fa0| 2c 20 61 6e 64 20 69 6e | 76 6f 6b 65 73 20 61 20 |, and in|vokes a |
|00001fb0| 70 72 6f 67 72 61 6d 20 | 74 6f 20 73 65 72 76 69 |program |to servi|
|00001fc0| 63 65 20 74 68 65 20 72 | 65 71 75 65 73 74 2e 0a |ce the r|equest..|
|00001fd0| 41 66 74 65 72 20 74 68 | 65 20 70 72 6f 67 72 61 |After th|e progra|
|00001fe0| 6d 20 69 73 0a 66 69 6e | 69 73 68 65 64 2c 20 69 |m is.fin|ished, i|
|00001ff0| 74 20 63 6f 6e 74 69 6e | 75 65 73 20 74 6f 20 6c |t contin|ues to l|
|00002000| 69 73 74 65 6e 20 6f 6e | 20 74 68 65 20 73 6f 63 |isten on| the soc|
|00002010| 6b 65 74 20 28 65 78 63 | 65 70 74 20 69 6e 20 73 |ket (exc|ept in s|
|00002020| 6f 6d 65 20 63 61 73 65 | 73 20 77 68 69 63 68 0a |ome case|s which.|
|00002030| 77 69 6c 6c 20 62 65 20 | 64 65 73 63 72 69 62 65 |will be |describe|
|00002040| 64 20 62 65 6c 6f 77 29 | 2e 20 20 45 73 73 65 6e |d below)|. Essen|
|00002050| 74 69 61 6c 6c 79 2c 0a | 2e 49 20 6d 75 6e 65 74 |tially,.|.I munet|
|00002060| 64 0a 61 6c 6c 6f 77 73 | 20 72 75 6e 6e 69 6e 67 |d.allows| running|
|00002070| 20 6f 6e 65 20 64 61 65 | 6d 6f 6e 20 74 6f 20 69 | one dae|mon to i|
|00002080| 6e 76 6f 6b 65 20 73 65 | 76 65 72 61 6c 20 6f 74 |nvoke se|veral ot|
|00002090| 68 65 72 73 2c 0a 72 65 | 64 75 63 69 6e 67 20 6c |hers,.re|ducing l|
|000020a0| 6f 61 64 20 6f 6e 20 74 | 68 65 20 73 79 73 74 65 |oad on t|he syste|
|000020b0| 6d 2e 0a 2e 50 50 0a 55 | 70 6f 6e 20 65 78 65 63 |m...PP.U|pon exec|
|000020c0| 75 74 69 6f 6e 2c 0a 2e | 49 20 6d 75 6e 65 74 64 |ution,..|I munetd|
|000020d0| 0a 72 65 61 64 73 20 69 | 74 73 20 63 6f 6e 66 69 |.reads i|ts confi|
|000020e0| 67 75 72 61 74 69 6f 6e | 20 69 6e 66 6f 72 6d 61 |guration| informa|
|000020f0| 74 69 6f 6e 20 66 72 6f | 6d 20 61 20 63 6f 6e 66 |tion fro|m a conf|
|00002100| 69 67 75 72 61 74 69 6f | 6e 0a 66 69 6c 65 20 77 |iguratio|n.file w|
|00002110| 68 69 63 68 2c 20 62 79 | 20 64 65 66 61 75 6c 74 |hich, by| default|
|00002120| 2c 20 69 73 0a 2e 49 52 | 20 2f 65 74 63 2f 6d 75 |, is..IR| /etc/mu|
|00002130| 6e 65 74 64 2e 63 6f 6e | 66 0a 28 62 75 74 20 73 |netd.con|f.(but s|
|00002140| 65 65 20 60 60 70 61 74 | 68 6e 61 6d 65 73 2e 68 |ee ``pat|hnames.h|
|00002150| 27 27 29 2e 20 54 68 65 | 72 65 20 6d 75 73 74 20 |''). The|re must |
|00002160| 62 65 20 61 6e 20 65 6e | 74 72 79 20 66 6f 72 20 |be an en|try for |
|00002170| 65 61 63 68 20 66 69 65 | 6c 64 20 6f 66 20 74 68 |each fie|ld of th|
|00002180| 65 0a 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |e.config|uration |
|00002190| 66 69 6c 65 2c 20 77 69 | 74 68 20 65 6e 74 72 69 |file, wi|th entri|
|000021a0| 65 73 20 66 6f 72 20 65 | 61 63 68 20 66 69 65 6c |es for e|ach fiel|
|000021b0| 64 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 61 |d separa|ted by a|
|000021c0| 20 74 61 62 20 6f 72 0a | 61 20 73 70 61 63 65 2e | tab or.|a space.|
|000021d0| 20 20 43 6f 6d 6d 65 6e | 74 73 20 61 72 65 20 64 | Commen|ts are d|
|000021e0| 65 6e 6f 74 65 64 20 62 | 79 20 61 20 60 60 23 27 |enoted b|y a ``#'|
|000021f0| 27 20 61 74 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |' at the| beginni|
|00002200| 6e 67 0a 6f 66 20 61 20 | 6c 69 6e 65 2e 20 20 54 |ng.of a |line. T|
|00002210| 68 65 72 65 20 6d 75 73 | 74 20 62 65 20 61 6e 20 |here mus|t be an |
|00002220| 65 6e 74 72 79 20 66 6f | 72 20 65 61 63 68 20 66 |entry fo|r each f|
|00002230| 69 65 6c 64 2e 20 20 54 | 68 65 0a 66 69 65 6c 64 |ield. T|he.field|
|00002240| 73 20 6f 66 20 74 68 65 | 20 63 6f 6e 66 69 67 75 |s of the| configu|
|00002250| 72 61 74 69 6f 6e 20 66 | 69 6c 65 20 61 72 65 20 |ration f|ile are |
|00002260| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 0a 2e 62 72 0a |as follo|ws:..br.|
|00002270| 09 73 65 72 76 69 63 65 | 20 6e 61 6d 65 0a 2e 62 |.service| name..b|
|00002280| 72 0a 09 73 6f 63 6b 65 | 74 20 74 79 70 65 0a 2e |r..socke|t type..|
|00002290| 62 72 0a 09 70 72 6f 74 | 6f 63 6f 6c 0a 2e 62 72 |br..prot|ocol..br|
|000022a0| 0a 09 77 61 69 74 2f 6e | 6f 77 61 69 74 5b 2e 6d |..wait/n|owait[.m|
|000022b0| 61 78 5d 0a 2e 62 72 0a | 09 75 73 65 72 5b 2e 67 |ax]..br.|.user[.g|
|000022c0| 72 6f 75 70 5d 0a 2e 62 | 72 0a 09 73 65 72 76 65 |roup]..b|r..serve|
|000022d0| 72 20 70 72 6f 67 72 61 | 6d 0a 2e 62 72 0a 09 73 |r progra|m..br..s|
|000022e0| 65 72 76 65 72 20 70 72 | 6f 67 72 61 6d 20 61 72 |erver pr|ogram ar|
|000022f0| 67 75 6d 65 6e 74 73 0a | 2e 50 50 0a 54 68 65 0a |guments.|.PP.The.|
|00002300| 2e 49 20 73 65 72 76 69 | 63 65 20 6e 61 6d 65 0a |.I servi|ce name.|
|00002310| 65 6e 74 72 79 20 69 73 | 20 69 6e 74 65 72 70 72 |entry is| interpr|
|00002320| 65 74 65 64 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |eted acc|ording t|
|00002330| 6f 20 74 68 65 0a 2e 49 | 20 70 72 6f 74 6f 63 6f |o the..I| protoco|
|00002340| 6c 0a 66 69 65 6c 64 2e | 20 49 74 20 63 61 6e 20 |l.field.| It can |
|00002350| 62 65 20 6e 75 6d 65 72 | 69 63 20 6f 72 20 74 68 |be numer|ic or th|
|00002360| 65 20 6e 61 6d 65 20 6f | 66 20 61 20 76 61 6c 69 |e name o|f a vali|
|00002370| 64 20 73 65 72 76 69 63 | 65 20 69 6e 20 74 68 65 |d servic|e in the|
|00002380| 20 66 69 6c 65 0a 2e 49 | 52 20 2f 65 74 63 2f 73 | file..I|R /etc/s|
|00002390| 65 72 76 69 63 65 73 2c | 0a 2e 49 52 20 2f 65 74 |ervices,|..IR /et|
|000023a0| 63 2f 72 70 63 0a 6f 72 | 20 61 20 41 46 5f 55 4e |c/rpc.or| a AF_UN|
|000023b0| 49 58 20 70 69 70 65 2c | 20 72 65 73 70 65 63 74 |IX pipe,| respect|
|000023c0| 69 76 65 6c 79 20 66 6f | 72 20 73 74 61 6e 64 61 |ively fo|r standa|
|000023d0| 72 64 20 49 4e 45 54 20 | 73 65 72 76 69 63 65 73 |rd INET |services|
|000023e0| 2c 0a 52 50 43 20 73 65 | 72 76 69 63 65 73 20 61 |,.RPC se|rvices a|
|000023f0| 6e 64 20 55 4e 49 58 20 | 73 65 72 76 69 63 65 73 |nd UNIX |services|
|00002400| 2e 0a 46 6f 72 20 52 50 | 43 20 73 65 72 76 69 63 |..For RP|C servic|
|00002410| 65 73 2c 20 74 68 65 20 | 73 65 72 76 69 63 65 20 |es, the |service |
|00002420| 6e 61 6d 65 20 66 69 65 | 6c 64 20 63 6f 6e 73 69 |name fie|ld consi|
|00002430| 73 74 73 20 6f 66 20 61 | 20 6e 61 6d 65 20 6f 72 |sts of a| name or|
|00002440| 20 70 72 6f 74 6f 63 6f | 6c 20 6e 75 6d 62 65 72 | protoco|l number|
|00002450| 0a 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 20 73 |.followe|d by a s|
|00002460| 6c 61 73 68 20 61 6e 64 | 20 61 20 76 65 72 73 69 |lash and| a versi|
|00002470| 6f 6e 20 6e 75 6d 62 65 | 72 20 6f 72 20 72 61 6e |on numbe|r or ran|
|00002480| 67 65 20 6f 66 20 76 65 | 72 73 69 6f 6e 20 6e 75 |ge of ve|rsion nu|
|00002490| 6d 62 65 72 73 0a 28 65 | 67 2e 20 72 75 73 65 72 |mbers.(e|g. ruser|
|000024a0| 73 2f 31 2d 32 29 2e 0a | 46 6f 72 20 60 60 69 6e |s/1-2)..|For ``in|
|000024b0| 74 65 72 6e 61 6c 27 27 | 20 73 65 72 76 69 63 65 |ternal''| service|
|000024c0| 73 20 28 64 69 73 63 75 | 73 73 65 64 20 62 65 6c |s (discu|ssed bel|
|000024d0| 6f 77 29 2c 20 74 68 65 | 20 73 65 72 76 69 63 65 |ow), the| service|
|000024e0| 0a 6e 61 6d 65 0a 2e 49 | 20 6d 75 73 74 0a 62 65 |.name..I| must.be|
|000024f0| 20 74 68 65 20 6f 66 66 | 69 63 69 61 6c 20 6e 61 | the off|icial na|
|00002500| 6d 65 20 6f 66 20 74 68 | 65 20 73 65 72 76 69 63 |me of th|e servic|
|00002510| 65 20 28 74 68 61 74 20 | 69 73 2c 20 74 68 65 20 |e (that |is, the |
|00002520| 66 69 72 73 74 20 65 6e | 74 72 79 20 69 6e 0a 2e |first en|try in..|
|00002530| 49 52 20 2f 65 74 63 2f | 73 65 72 76 69 63 65 73 |IR /etc/|services|
|00002540| 20 29 2e 0a 2e 50 50 0a | 54 68 65 0a 2e 49 20 73 | )...PP.|The..I s|
|00002550| 6f 63 6b 65 74 20 74 79 | 70 65 0a 73 68 6f 75 6c |ocket ty|pe.shoul|
|00002560| 64 20 62 65 20 6f 6e 65 | 20 6f 66 20 60 60 73 74 |d be one| of ``st|
|00002570| 72 65 61 6d 27 27 2c 20 | 60 60 64 67 72 61 6d 27 |ream'', |``dgram'|
|00002580| 27 2c 20 60 60 72 61 77 | 27 27 2c 20 60 60 72 64 |', ``raw|'', ``rd|
|00002590| 6d 27 27 2c 20 6f 72 20 | 60 60 73 65 71 70 61 63 |m'', or |``seqpac|
|000025a0| 6b 65 74 27 27 2c 0a 64 | 65 70 65 6e 64 69 6e 67 |ket'',.d|epending|
|000025b0| 20 6f 6e 20 77 68 65 74 | 68 65 72 20 74 68 65 20 | on whet|her the |
|000025c0| 73 6f 63 6b 65 74 20 69 | 73 20 61 20 73 74 72 65 |socket i|s a stre|
|000025d0| 61 6d 2c 20 64 61 74 61 | 67 72 61 6d 2c 20 72 61 |am, data|gram, ra|
|000025e0| 77 2c 0a 72 65 6c 69 61 | 62 6c 79 20 64 65 6c 69 |w,.relia|bly deli|
|000025f0| 76 65 72 65 64 20 6d 65 | 73 73 61 67 65 2c 20 6f |vered me|ssage, o|
|00002600| 72 20 73 65 71 75 65 6e | 63 65 64 20 70 61 63 6b |r sequen|ced pack|
|00002610| 65 74 20 73 6f 63 6b 65 | 74 2e 0a 2e 50 50 0a 54 |et socke|t...PP.T|
|00002620| 68 65 0a 2e 49 20 70 72 | 6f 74 6f 63 6f 6c 0a 6d |he..I pr|otocol.m|
|00002630| 75 73 74 20 62 65 20 60 | 60 75 6e 69 78 27 27 20 |ust be `|`unix'' |
|00002640| 6f 72 20 61 20 76 61 6c | 69 64 20 70 72 6f 74 6f |or a val|id proto|
|00002650| 63 6f 6c 20 61 73 20 67 | 69 76 65 6e 20 69 6e 0a |col as g|iven in.|
|00002660| 2e 49 52 20 2f 65 74 63 | 2f 70 72 6f 74 6f 63 6f |.IR /etc|/protoco|
|00002670| 6c 73 20 2e 0a 45 78 61 | 6d 70 6c 65 73 20 6d 69 |ls ..Exa|mples mi|
|00002680| 67 68 74 20 62 65 20 60 | 60 74 63 70 27 27 20 6f |ght be `|`tcp'' o|
|00002690| 72 20 60 60 75 64 70 27 | 27 2e 0a 46 6f 72 20 52 |r ``udp'|'..For R|
|000026a0| 50 43 20 73 65 72 76 69 | 63 65 73 2c 20 74 68 65 |PC servi|ces, the|
|000026b0| 20 70 72 6f 74 6f 63 6f | 6c 20 66 69 65 6c 64 20 | protoco|l field |
|000026c0| 68 61 73 20 74 68 65 20 | 66 6f 72 6d 61 74 20 72 |has the |format r|
|000026d0| 70 63 2f 5c 63 0a 2e 49 | 20 70 72 6f 74 6f 0a 77 |pc/\c..I| proto.w|
|000026e0| 68 65 72 65 0a 2e 49 20 | 70 72 6f 74 6f 0a 69 73 |here..I |proto.is|
|000026f0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|00002700| 20 75 6e 64 65 72 6c 79 | 69 6e 67 20 74 72 61 6e | underly|ing tran|
|00002710| 73 70 6f 72 74 20 73 65 | 72 76 69 63 65 20 28 60 |sport se|rvice (`|
|00002720| 60 74 63 70 27 27 20 6f | 72 20 60 60 75 64 70 27 |`tcp'' o|r ``udp'|
|00002730| 27 29 2e 0a 2e 50 50 0a | 54 68 65 0a 2e 49 20 77 |')...PP.|The..I w|
|00002740| 61 69 74 2f 6e 6f 77 61 | 69 74 0a 65 6e 74 72 79 |ait/nowa|it.entry|
|00002750| 20 69 73 20 61 70 70 6c | 69 63 61 62 6c 65 20 74 | is appl|icable t|
|00002760| 6f 20 64 61 74 61 67 72 | 61 6d 20 73 6f 63 6b 65 |o datagr|am socke|
|00002770| 74 73 20 6f 6e 6c 79 20 | 28 6f 74 68 65 72 20 73 |ts only |(other s|
|00002780| 6f 63 6b 65 74 73 20 73 | 68 6f 75 6c 64 0a 68 61 |ockets s|hould.ha|
|00002790| 76 65 20 61 20 60 60 6e | 6f 77 61 69 74 27 27 20 |ve a ``n|owait'' |
|000027a0| 65 6e 74 72 79 20 69 6e | 20 74 68 69 73 20 73 70 |entry in| this sp|
|000027b0| 61 63 65 29 2e 20 20 49 | 66 20 61 20 64 61 74 61 |ace). I|f a data|
|000027c0| 67 72 61 6d 20 73 65 72 | 76 65 72 20 63 6f 6e 6e |gram ser|ver conn|
|000027d0| 65 63 74 73 0a 74 6f 20 | 69 74 73 20 70 65 65 72 |ects.to |its peer|
|000027e0| 2c 20 66 72 65 65 69 6e | 67 20 74 68 65 20 73 6f |, freein|g the so|
|000027f0| 63 6b 65 74 20 73 6f 0a | 2e 49 20 6d 75 6e 65 74 |cket so.|.I munet|
|00002800| 64 0a 63 61 6e 20 72 65 | 63 65 69 76 65 20 66 75 |d.can re|ceive fu|
|00002810| 72 74 68 65 72 20 6d 65 | 73 73 61 67 65 73 20 6f |rther me|ssages o|
|00002820| 6e 20 74 68 65 20 73 6f | 63 6b 65 74 2c 20 69 74 |n the so|cket, it|
|00002830| 20 69 73 20 73 61 69 64 | 20 74 6f 20 62 65 0a 61 | is said| to be.a|
|00002840| 20 60 60 6d 75 6c 74 69 | 2d 74 68 72 65 61 64 65 | ``multi|-threade|
|00002850| 64 27 27 20 73 65 72 76 | 65 72 2c 20 61 6e 64 20 |d'' serv|er, and |
|00002860| 73 68 6f 75 6c 64 20 75 | 73 65 20 74 68 65 20 60 |should u|se the `|
|00002870| 60 6e 6f 77 61 69 74 27 | 27 0a 65 6e 74 72 79 2e |`nowait'|'.entry.|
|00002880| 20 20 46 6f 72 20 64 61 | 74 61 67 72 61 6d 20 73 | For da|tagram s|
|00002890| 65 72 76 65 72 73 20 77 | 68 69 63 68 20 70 72 6f |ervers w|hich pro|
|000028a0| 63 65 73 73 20 61 6c 6c | 20 69 6e 63 6f 6d 69 6e |cess all| incomin|
|000028b0| 67 20 64 61 74 61 67 72 | 61 6d 73 0a 6f 6e 20 61 |g datagr|ams.on a|
|000028c0| 20 73 6f 63 6b 65 74 20 | 61 6e 64 20 65 76 65 6e | socket |and even|
|000028d0| 74 75 61 6c 6c 79 20 74 | 69 6d 65 20 6f 75 74 2c |tually t|ime out,|
|000028e0| 20 74 68 65 20 73 65 72 | 76 65 72 20 69 73 20 73 | the ser|ver is s|
|000028f0| 61 69 64 20 74 6f 20 62 | 65 0a 60 60 73 69 6e 67 |aid to b|e.``sing|
|00002900| 6c 65 2d 74 68 72 65 61 | 64 65 64 27 27 20 61 6e |le-threa|ded'' an|
|00002910| 64 20 73 68 6f 75 6c 64 | 20 75 73 65 20 61 20 60 |d should| use a `|
|00002920| 60 77 61 69 74 27 27 20 | 65 6e 74 72 79 2e 20 20 |`wait'' |entry. |
|00002930| 60 60 43 6f 6d 73 61 74 | 27 27 20 28 60 60 62 69 |``Comsat|'' (``bi|
|00002940| 66 66 27 27 29 0a 61 6e | 64 20 60 60 74 61 6c 6b |ff'').an|d ``talk|
|00002950| 27 27 20 61 72 65 20 62 | 6f 74 68 20 65 78 61 6d |'' are b|oth exam|
|00002960| 70 6c 65 73 20 6f 66 20 | 74 68 65 20 6c 61 74 74 |ples of |the latt|
|00002970| 65 72 20 74 79 70 65 20 | 6f 66 0a 64 61 74 61 67 |er type |of.datag|
|00002980| 72 61 6d 20 73 65 72 76 | 65 72 2e 0a 2e 49 20 54 |ram serv|er...I T|
|00002990| 66 74 70 64 0a 69 73 20 | 61 6e 20 65 78 63 65 70 |ftpd.is |an excep|
|000029a0| 74 69 6f 6e 3b 20 69 74 | 20 69 73 20 61 20 64 61 |tion; it| is a da|
|000029b0| 74 61 67 72 61 6d 20 73 | 65 72 76 65 72 20 74 68 |tagram s|erver th|
|000029c0| 61 74 20 65 73 74 61 62 | 6c 69 73 68 65 73 20 70 |at estab|lishes p|
|000029d0| 73 65 75 64 6f 2d 63 6f | 6e 6e 65 63 74 69 6f 6e |seudo-co|nnection|
|000029e0| 73 2e 0a 49 74 20 6d 75 | 73 74 20 62 65 20 6c 69 |s..It mu|st be li|
|000029f0| 73 74 65 64 20 61 73 20 | 60 60 77 61 69 74 27 27 |sted as |``wait''|
|00002a00| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 61 76 6f | in orde|r to avo|
|00002a10| 69 64 20 61 20 72 61 63 | 65 3b 0a 74 68 65 20 73 |id a rac|e;.the s|
|00002a20| 65 72 76 65 72 20 72 65 | 61 64 73 20 74 68 65 20 |erver re|ads the |
|00002a30| 66 69 72 73 74 20 70 61 | 63 6b 65 74 2c 20 63 72 |first pa|cket, cr|
|00002a40| 65 61 74 65 73 20 61 20 | 6e 65 77 20 73 6f 63 6b |eates a |new sock|
|00002a50| 65 74 2c 0a 61 6e 64 20 | 74 68 65 6e 20 66 6f 72 |et,.and |then for|
|00002a60| 6b 73 20 61 6e 64 20 65 | 78 69 74 73 20 74 6f 20 |ks and e|xits to |
|00002a70| 61 6c 6c 6f 77 0a 2e 49 | 20 6d 75 6e 65 74 64 0a |allow..I| munetd.|
|00002a80| 74 6f 20 63 68 65 63 6b | 20 66 6f 72 20 6e 65 77 |to check| for new|
|00002a90| 20 73 65 72 76 69 63 65 | 20 72 65 71 75 65 73 74 | service| request|
|00002aa0| 73 20 74 6f 20 73 70 61 | 77 6e 20 6e 65 77 20 73 |s to spa|wn new s|
|00002ab0| 65 72 76 65 72 73 2e 0a | 54 68 65 20 6f 70 74 69 |ervers..|The opti|
|00002ac0| 6f 6e 61 6c 0a 2e 49 20 | 6d 61 78 0a 73 75 66 66 |onal..I |max.suff|
|00002ad0| 69 78 20 28 77 68 69 63 | 68 20 69 73 20 73 65 70 |ix (whic|h is sep|
|00002ae0| 61 72 61 74 65 64 20 66 | 72 6f 6d 20 60 60 77 61 |arated f|rom ``wa|
|00002af0| 69 74 27 27 20 6f 72 20 | 60 60 6e 6f 77 61 69 74 |it'' or |``nowait|
|00002b00| 27 27 20 62 79 20 61 20 | 64 6f 74 29 20 73 70 65 |'' by a |dot) spe|
|00002b10| 63 69 66 69 65 73 0a 74 | 68 65 20 6d 61 78 69 6d |cifies.t|he maxim|
|00002b20| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 65 72 |um numbe|r of ser|
|00002b30| 76 69 63 65 20 69 6e 73 | 74 61 6e 63 65 73 20 74 |vice ins|tances t|
|00002b40| 68 61 74 20 63 61 6e 20 | 62 65 20 73 74 61 72 74 |hat can |be start|
|00002b50| 65 64 20 66 72 6f 6d 0a | 2e 49 20 6d 75 6e 65 74 |ed from.|.I munet|
|00002b60| 64 0a 77 69 74 68 69 6e | 20 61 20 74 69 6d 65 20 |d.within| a time |
|00002b70| 69 6e 74 65 72 76 61 6c | 20 67 69 76 65 6e 20 62 |interval| given b|
|00002b80| 79 20 74 68 65 20 63 6f | 6e 73 74 61 6e 74 20 43 |y the co|nstant C|
|00002b90| 4e 54 5f 49 4e 54 56 4c | 20 28 63 75 72 72 65 6e |NT_INTVL| (curren|
|00002ba0| 74 6c 79 20 36 30 20 73 | 65 63 6f 6e 64 73 29 2e |tly 60 s|econds).|
|00002bb0| 0a 49 66 20 6f 6d 69 74 | 74 65 64 0a 2e 49 20 6d |.If omit|ted..I m|
|00002bc0| 61 78 0a 64 65 66 61 75 | 6c 74 73 20 74 6f 20 74 |ax.defau|lts to t|
|00002bd0| 68 65 20 63 6f 6e 73 74 | 61 6e 74 20 54 4f 4f 4d |he const|ant TOOM|
|00002be0| 41 4e 59 20 28 63 75 72 | 72 65 6e 74 6c 79 20 34 |ANY (cur|rently 4|
|00002bf0| 30 29 2e 0a 2e 50 50 0a | 54 68 65 0a 2e 49 20 75 |0)...PP.|The..I u|
|00002c00| 73 65 72 0a 65 6e 74 72 | 79 20 73 68 6f 75 6c 64 |ser.entr|y should|
|00002c10| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 75 73 65 | contain| the use|
|00002c20| 72 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 75 73 |r name o|f the us|
|00002c30| 65 72 20 61 73 20 77 68 | 6f 6d 20 74 68 65 20 73 |er as wh|om the s|
|00002c40| 65 72 76 65 72 0a 73 68 | 6f 75 6c 64 20 72 75 6e |erver.sh|ould run|
|00002c50| 2e 20 20 54 68 69 73 20 | 61 6c 6c 6f 77 73 20 66 |. This |allows f|
|00002c60| 6f 72 20 73 65 72 76 65 | 72 73 20 74 6f 20 62 65 |or serve|rs to be|
|00002c70| 20 67 69 76 65 6e 20 6c | 65 73 73 20 70 65 72 6d | given l|ess perm|
|00002c80| 69 73 73 69 6f 6e 0a 74 | 68 61 6e 20 72 6f 6f 74 |ission.t|han root|
|00002c90| 2e 20 49 66 20 74 68 69 | 73 20 69 73 20 74 68 65 |. If thi|s is the|
|00002ca0| 20 63 61 73 65 2c 20 74 | 68 65 20 70 72 69 6d 61 | case, t|he prima|
|00002cb0| 72 79 20 67 72 6f 75 70 | 20 69 64 20 69 73 20 61 |ry group| id is a|
|00002cc0| 6c 73 6f 20 73 65 74 20 | 61 73 20 77 65 6c 6c 20 |lso set |as well |
|00002cd0| 61 73 0a 74 68 65 20 73 | 65 74 20 6f 66 20 73 75 |as.the s|et of su|
|00002ce0| 70 70 6c 65 6d 65 74 61 | 72 79 20 67 72 6f 75 70 |pplemeta|ry group|
|00002cf0| 73 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |s associ|ated wit|
|00002d00| 68 20 74 68 65 20 67 69 | 76 65 6e 20 75 73 65 72 |h the gi|ven user|
|00002d10| 20 69 64 2e 0a 41 6e 20 | 6f 70 74 69 6f 6e 61 6c | id..An |optional|
|00002d20| 20 67 72 6f 75 70 20 63 | 61 6e 20 62 65 20 73 70 | group c|an be sp|
|00002d30| 65 63 69 66 69 65 64 20 | 62 79 20 61 70 70 65 6e |ecified |by appen|
|00002d40| 64 69 6e 67 20 61 20 64 | 6f 74 20 61 6e 64 20 74 |ding a d|ot and t|
|00002d50| 68 65 20 67 72 6f 75 70 | 0a 6e 61 6d 65 20 74 6f |he group|.name to|
|00002d60| 20 74 68 65 20 75 73 65 | 72 20 6e 61 6d 65 2e 20 | the use|r name. |
|00002d70| 54 68 69 73 20 61 6c 6c | 6f 77 73 20 74 6f 20 72 |This all|ows to r|
|00002d80| 75 6e 20 73 65 72 76 65 | 72 73 20 77 69 74 68 20 |un serve|rs with |
|00002d90| 61 20 64 69 66 66 65 72 | 65 6e 74 20 28 70 72 69 |a differ|ent (pri|
|00002da0| 6d 61 72 79 29 0a 67 72 | 6f 75 70 20 69 64 20 74 |mary).gr|oup id t|
|00002db0| 68 61 6e 20 73 70 65 63 | 69 66 69 65 64 20 69 6e |han spec|ified in|
|00002dc0| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 20 66 69 | the pas|sword fi|
|00002dd0| 6c 65 2e 20 49 6e 20 74 | 68 69 73 20 63 61 73 65 |le. In t|his case|
|00002de0| 2c 20 69 66 20 72 75 6e | 20 77 69 74 68 20 61 0a |, if run| with a.|
|00002df0| 75 73 65 72 20 69 64 20 | 6f 74 68 65 72 20 74 68 |user id |other th|
|00002e00| 61 6e 20 72 6f 6f 74 2c | 20 74 68 65 20 73 75 70 |an root,| the sup|
|00002e10| 70 6c 65 6d 65 6e 74 61 | 72 79 20 67 72 6f 75 70 |plementa|ry group|
|00002e20| 73 20 77 69 6c 6c 20 73 | 74 69 6c 6c 20 62 65 20 |s will s|till be |
|00002e30| 73 65 74 20 28 6f 6e 6c | 79 0a 74 68 65 20 70 72 |set (onl|y.the pr|
|00002e40| 69 6d 61 72 79 20 67 72 | 6f 75 70 20 69 64 20 64 |imary gr|oup id d|
|00002e50| 69 66 66 65 72 73 29 2e | 0a 54 68 65 0a 2e 49 20 |iffers).|.The..I |
|00002e60| 73 65 72 76 65 72 20 70 | 72 6f 67 72 61 6d 0a 65 |server p|rogram.e|
|00002e70| 6e 74 72 79 20 73 68 6f | 75 6c 64 20 63 6f 6e 74 |ntry sho|uld cont|
|00002e80| 61 69 6e 20 74 68 65 20 | 70 61 74 68 6e 61 6d 65 |ain the |pathname|
|00002e90| 20 6f 66 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | of the |program |
|00002ea0| 77 68 69 63 68 20 69 73 | 20 74 6f 20 62 65 0a 65 |which is| to be.e|
|00002eb0| 78 65 63 75 74 65 64 20 | 62 79 0a 2e 49 20 6d 75 |xecuted |by..I mu|
|00002ec0| 6e 65 74 64 0a 77 68 65 | 6e 20 61 20 72 65 71 75 |netd.whe|n a requ|
|00002ed0| 65 73 74 20 69 73 20 66 | 6f 75 6e 64 20 6f 6e 20 |est is f|ound on |
|00002ee0| 69 74 73 20 73 6f 63 6b | 65 74 2e 20 20 49 66 0a |its sock|et. If.|
|00002ef0| 2e 49 20 6d 75 6e 65 74 | 64 0a 70 72 6f 76 69 64 |.I munet|d.provid|
|00002f00| 65 73 20 74 68 69 73 20 | 73 65 72 76 69 63 65 20 |es this |service |
|00002f10| 69 6e 74 65 72 6e 61 6c | 6c 79 2c 20 74 68 69 73 |internal|ly, this|
|00002f20| 20 65 6e 74 72 79 20 73 | 68 6f 75 6c 64 0a 62 65 | entry s|hould.be|
|00002f30| 20 60 60 69 6e 74 65 72 | 6e 61 6c 27 27 2e 0a 2e | ``inter|nal''...|
|00002f40| 50 50 0a 54 68 65 20 61 | 72 67 75 6d 65 6e 74 73 |PP.The a|rguments|
|00002f50| 20 74 6f 20 74 68 65 20 | 73 65 72 76 65 72 20 70 | to the |server p|
|00002f60| 72 6f 67 72 61 6d 20 73 | 68 6f 75 6c 64 20 62 65 |rogram s|hould be|
|00002f70| 20 6a 75 73 74 20 61 73 | 20 74 68 65 79 0a 6e 6f | just as| they.no|
|00002f80| 72 6d 61 6c 6c 79 20 61 | 72 65 2c 20 73 74 61 72 |rmally a|re, star|
|00002f90| 74 69 6e 67 20 77 69 74 | 68 20 61 72 67 76 5b 30 |ting wit|h argv[0|
|00002fa0| 5d 2c 20 77 68 69 63 68 | 20 69 73 20 74 68 65 20 |], which| is the |
|00002fb0| 6e 61 6d 65 20 6f 66 0a | 74 68 65 20 70 72 6f 67 |name of.|the prog|
|00002fc0| 72 61 6d 2e 20 20 49 66 | 20 74 68 65 20 73 65 72 |ram. If| the ser|
|00002fd0| 76 69 63 65 20 69 73 20 | 70 72 6f 76 69 64 65 64 |vice is |provided|
|00002fe0| 20 69 6e 74 65 72 6e 61 | 6c 6c 79 2c 20 74 68 65 | interna|lly, the|
|00002ff0| 0a 77 6f 72 64 20 60 60 | 69 6e 74 65 72 6e 61 6c |.word ``|internal|
|00003000| 27 27 20 73 68 6f 75 6c | 64 20 74 61 6b 65 20 74 |'' shoul|d take t|
|00003010| 68 65 20 70 6c 61 63 65 | 20 6f 66 20 74 68 69 73 |he place| of this|
|00003020| 20 65 6e 74 72 79 2e 0a | 2e 50 50 0a 49 66 0a 2e | entry..|.PP.If..|
|00003030| 49 20 6d 75 6e 65 74 64 | 0a 69 73 20 63 6f 6d 70 |I munetd|.is comp|
|00003040| 69 6c 65 64 20 77 69 74 | 68 20 74 68 65 20 6c 6f |iled wit|h the lo|
|00003050| 67 67 69 6e 67 20 65 6e | 61 62 6c 65 64 20 28 63 |gging en|abled (c|
|00003060| 6f 6d 70 69 6c 65 20 6f | 70 74 69 6f 6e 20 60 60 |ompile o|ption ``|
|00003070| 4d 55 4c 4f 47 27 27 29 | 2c 0a 61 72 67 76 5b 30 |MULOG'')|,.argv[0|
|00003080| 5d 20 69 73 20 73 63 61 | 6e 6e 65 64 20 66 6f 72 |] is sca|nned for|
|00003090| 20 6c 6f 67 67 69 6e 67 | 20 6f 70 74 69 6f 6e 73 | logging| options|
|000030a0| 20 77 68 69 63 68 20 61 | 72 65 20 69 6e 64 69 63 | which a|re indic|
|000030b0| 61 74 65 64 20 62 79 20 | 74 68 65 20 6f 63 63 75 |ated by |the occu|
|000030c0| 72 65 6e 63 65 0a 6f 66 | 20 61 20 73 65 6d 69 63 |rence.of| a semic|
|000030d0| 6f 6c 6f 6e 20 28 27 3a | 27 29 2e 20 54 68 65 20 |olon (':|'). The |
|000030e0| 73 75 62 73 74 72 69 6e | 67 20 62 65 66 6f 72 65 |substrin|g before|
|000030f0| 20 74 68 65 20 73 65 6d | 69 63 6f 6c 6f 6e 20 69 | the sem|icolon i|
|00003100| 73 20 69 6e 74 65 72 70 | 72 65 74 65 64 20 61 73 |s interp|reted as|
|00003110| 0a 64 65 73 63 72 69 62 | 65 64 20 62 65 6c 6f 77 |.describ|ed below|
|00003120| 2c 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 6e 61 |, the pr|ogram na|
|00003130| 6d 65 20 69 73 20 73 65 | 74 20 74 6f 20 74 68 65 |me is se|t to the|
|00003140| 20 72 65 6d 61 69 6e 69 | 6e 67 20 73 74 72 69 6e | remaini|ng strin|
|00003150| 67 2e 0a 2e 49 50 0a 2e | 42 20 22 4c 6f 67 67 69 |g...IP..|B "Loggi|
|00003160| 6e 67 20 6f 70 74 69 6f | 6e 73 2e 22 0a 2e 49 50 |ng optio|ns."..IP|
|00003170| 0a 54 68 65 20 6c 65 74 | 74 65 72 20 27 6c 27 20 |.The let|ter 'l' |
|00003180| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 6e 20 6f |followed| by an o|
|00003190| 70 74 69 6f 6e 61 6c 20 | 6e 75 6d 62 65 72 20 73 |ptional |number s|
|000031a0| 65 74 73 20 74 68 65 20 | 6c 6f 67 67 69 6e 67 0a |ets the |logging.|
|000031b0| 6c 65 76 65 6c 2e 20 4c | 6f 67 67 69 6e 67 20 6c |level. L|ogging l|
|000031c0| 65 76 65 6c 20 31 20 6c | 6f 67 73 20 61 6c 6c 20 |evel 1 l|ogs all |
|000031d0| 72 65 71 75 65 73 74 73 | 20 66 72 6f 6d 20 6f 75 |requests| from ou|
|000031e0| 74 73 69 64 65 20 74 68 | 65 20 63 75 72 72 65 6e |tside th|e curren|
|000031f0| 74 0a 64 6f 6d 61 69 6e | 20 28 69 66 20 73 65 74 |t.domain| (if set|
|00003200| 29 2e 20 4c 65 76 65 6c | 20 32 20 6c 6f 67 73 20 |). Level| 2 logs |
|00003210| 61 6c 6c 20 72 65 71 75 | 65 73 74 73 2e 20 54 68 |all requ|ests. Th|
|00003220| 65 20 6c 6f 67 20 65 6e | 74 72 79 20 63 6f 6e 74 |e log en|try cont|
|00003230| 61 69 6e 73 20 74 68 65 | 20 6e 61 6d 65 0a 6f 66 |ains the| name.of|
|00003240| 20 74 68 65 20 68 6f 73 | 74 20 28 6f 72 20 69 74 | the hos|t (or it|
|00003250| 73 20 49 50 20 61 64 64 | 72 65 73 73 29 20 72 65 |s IP add|ress) re|
|00003260| 71 75 65 73 74 69 6e 67 | 20 74 68 65 20 73 65 72 |questing| the ser|
|00003270| 76 69 63 65 20 61 6e 64 | 20 74 68 65 20 6e 61 6d |vice and| the nam|
|00003280| 65 20 6f 66 20 74 68 65 | 0a 73 65 72 76 69 63 65 |e of the|.service|
|00003290| 20 74 68 61 74 20 69 73 | 20 72 65 71 75 65 73 74 | that is| request|
|000032a0| 65 64 20 61 6e 64 20 69 | 73 20 72 65 70 6f 72 74 |ed and i|s report|
|000032b0| 65 64 20 74 68 72 6f 75 | 67 68 20 73 79 73 6c 6f |ed throu|gh syslo|
|000032c0| 67 20 28 66 61 63 69 6c | 69 74 79 20 4c 4f 43 41 |g (facil|ity LOCA|
|000032d0| 4c 32 29 2e 0a 54 68 65 | 20 64 65 66 61 75 6c 74 |L2)..The| default|
|000032e0| 20 6c 6f 67 67 69 6e 67 | 20 6c 65 76 65 6c 20 69 | logging| level i|
|000032f0| 73 20 31 2e 0a 2e 49 50 | 0a 54 68 65 20 6c 65 74 |s 1...IP|.The let|
|00003300| 74 65 72 20 27 61 27 20 | 77 69 6c 6c 20 6d 61 6b |ter 'a' |will mak|
|00003310| 65 20 61 6e 20 61 74 74 | 65 6d 70 74 20 74 6f 20 |e an att|empt to |
|00003320| 6c 6f 67 20 74 68 65 20 | 75 73 65 72 6e 61 6d 65 |log the |username|
|00003330| 20 61 73 73 6f 63 69 61 | 74 65 64 0a 77 69 74 68 | associa|ted.with|
|00003340| 20 74 68 65 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 | the con|nection |
|00003350| 61 73 20 77 65 6c 6c 20 | 62 79 20 71 75 65 72 79 |as well |by query|
|00003360| 69 6e 67 20 61 6e 20 61 | 75 74 68 65 6e 74 69 63 |ing an a|uthentic|
|00003370| 61 74 69 6f 6e 20 73 65 | 72 76 65 72 0a 61 73 20 |ation se|rver.as |
|00003380| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 52 46 43 |describe|d in RFC|
|00003390| 39 33 31 2e 0a 2e 49 50 | 0a 46 6f 72 20 65 78 61 |931...IP|.For exa|
|000033a0| 6d 70 6c 65 2c 20 74 68 | 65 20 6c 69 6e 65 0a 2e |mple, th|e line..|
|000033b0| 49 50 0a 74 65 6c 6e 65 | 74 20 73 74 72 65 61 6d |IP.telne|t stream|
|000033c0| 20 74 63 70 20 6e 6f 77 | 61 69 74 20 72 6f 6f 74 | tcp now|ait root|
|000033d0| 20 2f 75 73 72 2f 65 74 | 63 2f 69 6e 2e 74 65 6c | /usr/et|c/in.tel|
|000033e0| 6e 65 74 64 20 6c 31 61 | 3a 69 6e 2e 74 65 6c 6e |netd l1a|:in.teln|
|000033f0| 65 74 64 0a 2e 49 50 0a | 73 70 65 63 69 66 69 65 |etd..IP.|specifie|
|00003400| 73 20 74 68 61 74 20 61 | 6c 6c 20 69 6e 63 6f 6d |s that a|ll incom|
|00003410| 69 6e 67 0a 2e 49 20 74 | 65 6c 6e 65 74 0a 63 6f |ing..I t|elnet.co|
|00003420| 6e 6e 65 63 74 69 6f 6e | 73 20 66 72 6f 6d 20 6f |nnection|s from o|
|00003430| 75 74 73 69 64 65 20 6f | 75 72 20 63 75 72 72 65 |utside o|ur curre|
|00003440| 6e 74 20 64 6f 6d 61 69 | 6e 20 73 68 6f 75 6c 64 |nt domai|n should|
|00003450| 20 62 65 20 6c 6f 67 67 | 65 64 20 77 69 74 68 0a | be logg|ed with.|
|00003460| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 72 6f 6d |informat|ion from|
|00003470| 20 61 6e 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 | an auth|enticati|
|00003480| 6f 6e 20 73 65 72 76 65 | 72 2e 0a 2e 49 50 0a 54 |on serve|r...IP.T|
|00003490| 68 65 20 63 75 72 72 65 | 6e 74 20 64 6f 6d 61 69 |he curre|nt domai|
|000034a0| 6e 20 63 61 6e 20 62 65 | 20 73 65 74 20 62 79 20 |n can be| set by |
|000034b0| 61 64 64 69 6e 67 20 61 | 20 6c 69 6e 65 20 6f 66 |adding a| line of|
|000034c0| 20 74 68 65 20 66 6f 72 | 6d 0a 2e 49 50 0a 23 44 | the for|m..IP.#D|
|000034d0| 4f 4d 41 49 4e 20 79 6f | 75 72 2e 66 61 76 6f 72 |OMAIN yo|ur.favor|
|000034e0| 69 74 65 2e 64 6f 6d 61 | 69 6e 0a 2e 49 50 0a 74 |ite.doma|in..IP.t|
|000034f0| 6f 20 74 68 65 0a 2e 49 | 20 6d 75 6e 65 74 64 0a |o the..I| munetd.|
|00003500| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 69 |configur|ation fi|
|00003510| 6c 65 2e 20 20 41 6e 79 | 20 6e 75 6d 62 65 72 20 |le. Any| number |
|00003520| 6f 66 20 73 75 63 68 20 | 6c 69 6e 65 73 20 6d 61 |of such |lines ma|
|00003530| 79 20 6f 63 63 75 72 20 | 69 6e 20 74 68 65 20 63 |y occur |in the c|
|00003540| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 0a 66 69 6c |onfigura|tion.fil|
|00003550| 65 2e 20 41 20 63 75 72 | 72 65 6e 74 20 64 6f 6d |e. A cur|rent dom|
|00003560| 61 69 6e 20 6e 61 6d 65 | 20 72 65 6d 61 69 6e 73 |ain name| remains|
|00003570| 20 69 6e 20 65 66 66 65 | 63 74 20 66 6f 72 20 61 | in effe|ct for a|
|00003580| 6c 6c 20 73 65 72 76 69 | 63 65 73 0a 69 6e 20 74 |ll servi|ces.in t|
|00003590| 68 65 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |he confi|guration|
|000035a0| 20 66 69 6c 65 20 75 6e | 74 69 6c 20 61 20 6e 65 | file un|til a ne|
|000035b0| 77 20 6f 6e 65 20 69 73 | 20 73 65 74 2e 20 4c 65 |w one is| set. Le|
|000035c0| 61 76 69 6e 67 20 6f 75 | 74 20 74 68 65 0a 64 6f |aving ou|t the.do|
|000035d0| 6d 61 69 6e 20 6e 61 6d | 65 20 22 75 6e 73 65 74 |main nam|e "unset|
|000035e0| 73 22 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |s" the c|urrent d|
|000035f0| 6f 6d 61 69 6e 2e 0a 2e | 49 50 0a 54 68 65 20 73 |omain...|IP.The s|
|00003600| 74 72 61 74 65 67 79 20 | 65 6d 70 6c 6f 79 65 64 |trategy |employed|
|00003610| 20 69 6e 20 74 68 65 20 | 73 70 65 63 69 66 69 63 | in the |specific|
|00003620| 61 74 69 6f 6e 20 6f 66 | 20 6c 6f 67 67 69 6e 67 |ation of| logging|
|00003630| 20 6f 70 74 69 6f 6e 73 | 20 74 6f 0a 2e 49 20 6d | options| to..I m|
|00003640| 75 6e 65 74 64 0a 69 73 | 20 73 75 63 68 20 61 73 |unetd.is| such as|
|00003650| 20 74 6f 20 6d 61 78 69 | 6d 69 7a 65 20 63 6f 6d | to maxi|mize com|
|00003660| 70 61 74 69 62 69 6c 69 | 74 79 20 77 69 74 68 20 |patibili|ty with |
|00003670| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 0a 2e 49 20 |the orig|inal..I |
|00003680| 69 6e 65 74 64 0a 63 6f | 6e 66 69 67 75 72 61 74 |inetd.co|nfigurat|
|00003690| 69 6f 6e 20 66 69 6c 65 | 20 66 6f 72 6d 61 74 2e |ion file| format.|
|000036a0| 0a 2e 50 50 0a 2e 49 20 | 4d 75 6e 65 74 64 0a 70 |..PP..I |Munetd.p|
|000036b0| 72 6f 76 69 64 65 73 20 | 73 65 76 65 72 61 6c 20 |rovides |several |
|000036c0| 60 60 74 72 69 76 69 61 | 6c 27 27 20 73 65 72 76 |``trivia|l'' serv|
|000036d0| 69 63 65 73 20 69 6e 74 | 65 72 6e 61 6c 6c 79 20 |ices int|ernally |
|000036e0| 62 79 20 75 73 65 20 6f | 66 0a 72 6f 75 74 69 6e |by use o|f.routin|
|000036f0| 65 73 20 77 69 74 68 69 | 6e 20 69 74 73 65 6c 66 |es withi|n itself|
|00003700| 2e 20 20 54 68 65 73 65 | 20 73 65 72 76 69 63 65 |. These| service|
|00003710| 73 20 61 72 65 20 60 60 | 65 63 68 6f 27 27 2c 0a |s are ``|echo'',.|
|00003720| 60 60 64 69 73 63 61 72 | 64 27 27 2c 20 60 60 63 |``discar|d'', ``c|
|00003730| 68 61 72 67 65 6e 27 27 | 20 28 63 68 61 72 61 63 |hargen''| (charac|
|00003740| 74 65 72 20 67 65 6e 65 | 72 61 74 6f 72 29 2c 20 |ter gene|rator), |
|00003750| 60 60 64 61 79 74 69 6d | 65 27 27 0a 28 68 75 6d |``daytim|e''.(hum|
|00003760| 61 6e 20 72 65 61 64 61 | 62 6c 65 20 74 69 6d 65 |an reada|ble time|
|00003770| 29 2c 20 61 6e 64 20 60 | 60 74 69 6d 65 27 27 20 |), and `|`time'' |
|00003780| 28 6d 61 63 68 69 6e 65 | 20 72 65 61 64 61 62 6c |(machine| readabl|
|00003790| 65 20 74 69 6d 65 2c 0a | 69 6e 20 74 68 65 20 66 |e time,.|in the f|
|000037a0| 6f 72 6d 20 6f 66 20 74 | 68 65 20 6e 75 6d 62 65 |orm of t|he numbe|
|000037b0| 72 20 6f 66 20 73 65 63 | 6f 6e 64 73 20 73 69 6e |r of sec|onds sin|
|000037c0| 63 65 20 6d 69 64 6e 69 | 67 68 74 2c 20 4a 61 6e |ce midni|ght, Jan|
|000037d0| 75 61 72 79 0a 31 2c 20 | 31 39 30 30 29 2e 20 20 |uary.1, |1900). |
|000037e0| 41 6c 6c 20 6f 66 20 74 | 68 65 73 65 20 73 65 72 |All of t|hese ser|
|000037f0| 76 69 63 65 73 20 61 72 | 65 20 74 63 70 20 62 61 |vices ar|e tcp ba|
|00003800| 73 65 64 2e 20 20 46 6f | 72 0a 64 65 74 61 69 6c |sed. Fo|r.detail|
|00003810| 73 20 6f 66 20 74 68 65 | 73 65 20 73 65 72 76 69 |s of the|se servi|
|00003820| 63 65 73 2c 20 63 6f 6e | 73 75 6c 74 20 74 68 65 |ces, con|sult the|
|00003830| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 52 46 43 | appropr|iate RFC|
|00003840| 0a 66 72 6f 6d 20 74 68 | 65 20 4e 65 74 77 6f 72 |.from th|e Networ|
|00003850| 6b 20 49 6e 66 6f 72 6d | 61 74 69 6f 6e 20 43 65 |k Inform|ation Ce|
|00003860| 6e 74 65 72 2e 0a 2e 50 | 50 0a 2e 49 20 4d 75 6e |nter...P|P..I Mun|
|00003870| 65 74 64 0a 72 65 72 65 | 61 64 73 20 69 74 73 20 |etd.rere|ads its |
|00003880| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 69 |configur|ation fi|
|00003890| 6c 65 20 77 68 65 6e 20 | 69 74 20 72 65 63 65 69 |le when |it recei|
|000038a0| 76 65 73 20 61 20 68 61 | 6e 67 75 70 20 73 69 67 |ves a ha|ngup sig|
|000038b0| 6e 61 6c 2c 20 53 49 47 | 48 55 50 2e 0a 53 65 72 |nal, SIG|HUP..Ser|
|000038c0| 76 69 63 65 73 20 6d 61 | 79 20 62 65 20 61 64 64 |vices ma|y be add|
|000038d0| 65 64 2c 20 64 65 6c 65 | 74 65 64 20 6f 72 20 6d |ed, dele|ted or m|
|000038e0| 6f 64 69 66 69 65 64 20 | 77 68 65 6e 20 74 68 65 |odified |when the|
|000038f0| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 66 | configu|ration f|
|00003900| 69 6c 65 0a 69 73 20 72 | 65 72 65 61 64 2e 0a 2e |ile.is r|eread...|
|00003910| 53 48 20 22 53 45 45 20 | 41 4c 53 4f 22 0a 63 6f |SH "SEE |ALSO".co|
|00003920| 6d 73 61 74 28 38 29 2c | 20 66 69 6e 67 65 72 64 |msat(8),| fingerd|
|00003930| 28 38 29 2c 20 66 74 70 | 64 28 38 29 2c 20 72 65 |(8), ftp|d(8), re|
|00003940| 78 65 63 64 28 38 29 2c | 20 72 6c 6f 67 69 6e 64 |xecd(8),| rlogind|
|00003950| 28 38 29 2c 20 72 73 68 | 64 28 38 29 2c 0a 74 65 |(8), rsh|d(8),.te|
|00003960| 6c 6e 65 74 64 28 38 29 | 2c 20 74 66 74 70 64 28 |lnetd(8)|, tftpd(|
|00003970| 38 29 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |8)......|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 6d 75 6e 65 74 64 2f 70 | 74 79 64 2e 38 00 00 00 |munetd/p|tyd.8...|
|00003a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 37 |.... 6|44 . 7|
|00003a70| 30 30 20 00 20 20 20 20 | 36 32 20 00 20 20 20 20 |00 . |62 . |
|00003a80| 20 20 20 37 35 37 30 20 | 20 35 33 36 30 37 35 32 | 7570 | 5360752|
|00003a90| 34 35 32 20 20 31 32 30 | 34 30 00 20 30 00 00 00 |452 120|40. 0...|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 75 73 74 61 72 20 20 | 00 6d 69 74 63 68 00 00 |.ustar |.mitch..|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |.\" Copy|right (c|
|00003c10| 29 20 31 39 38 35 20 54 | 68 65 20 52 65 67 65 6e |) 1985 T|he Regen|
|00003c20| 74 73 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |ts of th|e Univer|
|00003c30| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00003c40| 69 61 2e 0a 2e 5c 22 20 | 41 6c 6c 20 72 69 67 68 |ia...\" |All righ|
|00003c50| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 2e 5c 22 |ts reser|ved...\"|
|00003c60| 0a 2e 5c 22 20 52 65 64 | 69 73 74 72 69 62 75 74 |..\" Red|istribut|
|00003c70| 69 6f 6e 20 61 6e 64 20 | 75 73 65 20 69 6e 20 73 |ion and |use in s|
|00003c80| 6f 75 72 63 65 20 61 6e | 64 20 62 69 6e 61 72 79 |ource an|d binary|
|00003c90| 20 66 6f 72 6d 73 20 61 | 72 65 20 70 65 72 6d 69 | forms a|re permi|
|00003ca0| 74 74 65 64 20 70 72 6f | 76 69 64 65 64 0a 2e 5c |tted pro|vided..\|
|00003cb0| 22 20 74 68 61 74 3a 20 | 28 31 29 20 73 6f 75 72 |" that: |(1) sour|
|00003cc0| 63 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 73 |ce distr|ibutions|
|00003cd0| 20 72 65 74 61 69 6e 20 | 74 68 69 73 20 65 6e 74 | retain |this ent|
|00003ce0| 69 72 65 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |ire copy|right no|
|00003cf0| 74 69 63 65 20 61 6e 64 | 0a 2e 5c 22 20 63 6f 6d |tice and|..\" com|
|00003d00| 6d 65 6e 74 2c 20 61 6e | 64 20 28 32 29 20 64 69 |ment, an|d (2) di|
|00003d10| 73 74 72 69 62 75 74 69 | 6f 6e 73 20 69 6e 63 6c |stributi|ons incl|
|00003d20| 75 64 69 6e 67 20 62 69 | 6e 61 72 69 65 73 20 64 |uding bi|naries d|
|00003d30| 69 73 70 6c 61 79 20 74 | 68 65 20 66 6f 6c 6c 6f |isplay t|he follo|
|00003d40| 77 69 6e 67 0a 2e 5c 22 | 20 61 63 6b 6e 6f 77 6c |wing..\"| acknowl|
|00003d50| 65 64 67 65 6d 65 6e 74 | 3a 20 20 60 60 54 68 69 |edgement|: ``Thi|
|00003d60| 73 20 70 72 6f 64 75 63 | 74 20 69 6e 63 6c 75 64 |s produc|t includ|
|00003d70| 65 73 20 73 6f 66 74 77 | 61 72 65 20 64 65 76 65 |es softw|are deve|
|00003d80| 6c 6f 70 65 64 20 62 79 | 20 74 68 65 0a 2e 5c 22 |loped by| the..\"|
|00003d90| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 43 | Univers|ity of C|
|00003da0| 61 6c 69 66 6f 72 6e 69 | 61 2c 20 42 65 72 6b 65 |aliforni|a, Berke|
|00003db0| 6c 65 79 20 61 6e 64 20 | 69 74 73 20 63 6f 6e 74 |ley and |its cont|
|00003dc0| 72 69 62 75 74 6f 72 73 | 27 27 20 69 6e 20 74 68 |ributors|'' in th|
|00003dd0| 65 0a 2e 5c 22 20 64 6f | 63 75 6d 65 6e 74 61 74 |e..\" do|cumentat|
|00003de0| 69 6f 6e 20 6f 72 20 6f | 74 68 65 72 20 6d 61 74 |ion or o|ther mat|
|00003df0| 65 72 69 61 6c 73 20 70 | 72 6f 76 69 64 65 64 20 |erials p|rovided |
|00003e00| 77 69 74 68 20 74 68 65 | 20 64 69 73 74 72 69 62 |with the| distrib|
|00003e10| 75 74 69 6f 6e 20 61 6e | 64 20 69 6e 0a 2e 5c 22 |ution an|d in..\"|
|00003e20| 20 61 6c 6c 20 61 64 76 | 65 72 74 69 73 69 6e 67 | all adv|ertising|
|00003e30| 20 6d 61 74 65 72 69 61 | 6c 73 20 6d 65 6e 74 69 | materia|ls menti|
|00003e40| 6f 6e 69 6e 67 20 66 65 | 61 74 75 72 65 73 20 6f |oning fe|atures o|
|00003e50| 72 20 75 73 65 20 6f 66 | 20 74 68 69 73 20 73 6f |r use of| this so|
|00003e60| 66 74 77 61 72 65 2e 0a | 2e 5c 22 20 4e 65 69 74 |ftware..|.\" Neit|
|00003e70| 68 65 72 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |her the |name of |
|00003e80| 74 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6e |the Univ|ersity n|
|00003e90| 6f 72 20 74 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |or the n|ames of |
|00003ea0| 69 74 73 20 63 6f 6e 74 | 72 69 62 75 74 6f 72 73 |its cont|ributors|
|00003eb0| 20 6d 61 79 0a 2e 5c 22 | 20 62 65 20 75 73 65 64 | may..\"| be used|
|00003ec0| 20 74 6f 20 65 6e 64 6f | 72 73 65 20 6f 72 20 70 | to endo|rse or p|
|00003ed0| 72 6f 6d 6f 74 65 20 70 | 72 6f 64 75 63 74 73 20 |romote p|roducts |
|00003ee0| 64 65 72 69 76 65 64 20 | 66 72 6f 6d 20 74 68 69 |derived |from thi|
|00003ef0| 73 20 73 6f 66 74 77 61 | 72 65 20 77 69 74 68 6f |s softwa|re witho|
|00003f00| 75 74 0a 2e 5c 22 20 73 | 70 65 63 69 66 69 63 20 |ut..\" s|pecific |
|00003f10| 70 72 69 6f 72 20 77 72 | 69 74 74 65 6e 20 70 65 |prior wr|itten pe|
|00003f20| 72 6d 69 73 73 69 6f 6e | 2e 0a 2e 5c 22 20 54 48 |rmission|...\" TH|
|00003f30| 49 53 20 53 4f 46 54 57 | 41 52 45 20 49 53 20 50 |IS SOFTW|ARE IS P|
|00003f40| 52 4f 56 49 44 45 44 20 | 60 60 41 53 20 49 53 27 |ROVIDED |``AS IS'|
|00003f50| 27 20 41 4e 44 20 57 49 | 54 48 4f 55 54 20 41 4e |' AND WI|THOUT AN|
|00003f60| 59 20 45 58 50 52 45 53 | 53 20 4f 52 20 49 4d 50 |Y EXPRES|S OR IMP|
|00003f70| 4c 49 45 44 0a 2e 5c 22 | 20 57 41 52 52 41 4e 54 |LIED..\"| WARRANT|
|00003f80| 49 45 53 2c 20 49 4e 43 | 4c 55 44 49 4e 47 2c 20 |IES, INC|LUDING, |
|00003f90| 57 49 54 48 4f 55 54 20 | 4c 49 4d 49 54 41 54 49 |WITHOUT |LIMITATI|
|00003fa0| 4f 4e 2c 20 54 48 45 20 | 49 4d 50 4c 49 45 44 20 |ON, THE |IMPLIED |
|00003fb0| 57 41 52 52 41 4e 54 49 | 45 53 20 4f 46 0a 2e 5c |WARRANTI|ES OF..\|
|00003fc0| 22 20 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 |" MERCHA|NTABILIT|
|00003fd0| 59 20 41 4e 44 20 46 49 | 54 4e 45 53 53 20 46 4f |Y AND FI|TNESS FO|
|00003fe0| 52 20 41 20 50 41 52 54 | 49 43 55 4c 41 52 20 50 |R A PART|ICULAR P|
|00003ff0| 55 52 50 4f 53 45 2e 0a | 2e 5c 22 0a 2e 5c 22 09 |URPOSE..|.\"..\".|
|00004000| 40 28 23 29 69 6e 65 74 | 64 2e 38 09 36 2e 36 20 |@(#)inet|d.8.6.6 |
|00004010| 28 42 65 72 6b 65 6c 65 | 79 29 20 36 2f 32 34 2f |(Berkele|y) 6/24/|
|00004020| 39 30 0a 2e 5c 22 0a 2e | 54 48 20 50 54 59 44 20 |90..\"..|TH PTYD |
|00004030| 38 20 22 4d 61 72 63 68 | 20 32 39 2c 20 31 39 39 |8 "March| 29, 199|
|00004040| 33 22 0a 2e 55 43 20 36 | 0a 2e 53 48 20 4e 41 4d |3"..UC 6|..SH NAM|
|00004050| 45 0a 70 74 79 64 20 5c | 2d 20 50 54 59 20 60 60 |E.ptyd \|- PTY ``|
|00004060| 73 75 70 65 72 5c 2d 73 | 65 72 76 65 72 27 27 0a |super\-s|erver''.|
|00004070| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 2e 42 20 |.SH SYNO|PSIS..B |
|00004080| 70 74 79 64 0a 5b 0a 2e | 42 20 5c 2d 64 0a 5d 20 |ptyd.[..|B \-d.] |
|00004090| 5b 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |[ config|uration |
|000040a0| 66 69 6c 65 20 5d 0a 2e | 53 48 20 44 45 53 43 52 |file ]..|SH DESCR|
|000040b0| 49 50 54 49 4f 4e 0a 2e | 49 20 50 74 79 64 0a 73 |IPTION..|I Ptyd.s|
|000040c0| 68 6f 75 6c 64 20 62 65 | 20 72 75 6e 20 61 74 20 |hould be| run at |
|000040d0| 62 6f 6f 74 20 74 69 6d | 65 20 62 79 0a 2e 49 52 |boot tim|e by..IR|
|000040e0| 20 2f 65 74 63 2f 72 63 | 2e 6c 6f 63 61 6c 20 2e | /etc/rc|.local .|
|000040f0| 0a 49 74 20 74 68 65 6e | 20 6c 69 73 74 65 6e 73 |.It then| listens|
|00004100| 20 66 6f 72 20 63 6f 6e | 6e 65 63 74 69 6f 6e 73 | for con|nections|
|00004110| 20 6f 6e 20 63 65 72 74 | 61 69 6e 0a 70 73 65 75 | on cert|ain.pseu|
|00004120| 64 6f 20 74 74 79 20 64 | 65 76 69 63 65 73 2e 20 |do tty d|evices. |
|00004130| 20 57 68 65 6e 20 61 20 | 63 6f 6e 6e 65 63 74 69 | When a |connecti|
|00004140| 6f 6e 20 69 73 20 66 6f | 75 6e 64 20 6f 6e 20 6f |on is fo|und on o|
|00004150| 6e 65 0a 6f 66 20 69 74 | 73 20 6d 61 73 74 65 72 |ne.of it|s master|
|00004160| 20 70 74 79 27 73 2c 20 | 69 74 20 64 65 63 69 64 | pty's, |it decid|
|00004170| 65 73 20 77 68 61 74 20 | 73 65 72 76 69 63 65 20 |es what |service |
|00004180| 74 68 65 20 73 6f 63 6b | 65 74 0a 63 6f 72 72 65 |the sock|et.corre|
|00004190| 73 70 6f 6e 64 73 20 74 | 6f 2c 20 61 6e 64 20 69 |sponds t|o, and i|
|000041a0| 6e 76 6f 6b 65 73 20 61 | 20 70 72 6f 67 72 61 6d |nvokes a| program|
|000041b0| 20 74 6f 20 73 65 72 76 | 69 63 65 20 74 68 65 20 | to serv|ice the |
|000041c0| 72 65 71 75 65 73 74 2e | 0a 41 66 74 65 72 20 74 |request.|.After t|
|000041d0| 68 65 20 70 72 6f 67 72 | 61 6d 20 69 73 0a 66 69 |he progr|am is.fi|
|000041e0| 6e 69 73 68 65 64 2c 20 | 69 74 20 63 6f 6e 74 69 |nished, |it conti|
|000041f0| 6e 75 65 73 20 74 6f 20 | 6c 69 73 74 65 6e 20 6f |nues to |listen o|
|00004200| 6e 20 74 68 65 20 70 74 | 79 20 28 65 78 63 65 70 |n the pt|y (excep|
|00004210| 74 20 69 6e 20 73 6f 6d | 65 20 63 61 73 65 73 20 |t in som|e cases |
|00004220| 77 68 69 63 68 0a 77 69 | 6c 6c 20 62 65 20 64 65 |which.wi|ll be de|
|00004230| 73 63 72 69 62 65 64 20 | 62 65 6c 6f 77 29 2e 20 |scribed |below). |
|00004240| 20 45 73 73 65 6e 74 69 | 61 6c 6c 79 2c 0a 2e 49 | Essenti|ally,..I|
|00004250| 20 70 74 79 64 0a 61 6c | 6c 6f 77 73 20 72 75 6e | ptyd.al|lows run|
|00004260| 6e 69 6e 67 20 6f 6e 65 | 20 64 61 65 6d 6f 6e 20 |ning one| daemon |
|00004270| 74 6f 20 69 6e 76 6f 6b | 65 20 73 65 76 65 72 61 |to invok|e severa|
|00004280| 6c 20 6f 74 68 65 72 73 | 2c 0a 72 65 64 75 63 69 |l others|,.reduci|
|00004290| 6e 67 20 6c 6f 61 64 20 | 6f 6e 20 74 68 65 20 73 |ng load |on the s|
|000042a0| 79 73 74 65 6d 2e 0a 2e | 50 50 0a 55 70 6f 6e 20 |ystem...|PP.Upon |
|000042b0| 65 78 65 63 75 74 69 6f | 6e 2c 0a 2e 49 20 70 74 |executio|n,..I pt|
|000042c0| 79 64 0a 72 65 61 64 73 | 20 69 74 73 20 63 6f 6e |yd.reads| its con|
|000042d0| 66 69 67 75 72 61 74 69 | 6f 6e 20 69 6e 66 6f 72 |figurati|on infor|
|000042e0| 6d 61 74 69 6f 6e 20 66 | 72 6f 6d 20 61 20 63 6f |mation f|rom a co|
|000042f0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 0a 66 69 6c 65 |nfigurat|ion.file|
|00004300| 20 77 68 69 63 68 2c 20 | 62 79 20 64 65 66 61 75 | which, |by defau|
|00004310| 6c 74 2c 20 69 73 0a 2e | 49 52 20 2f 65 74 63 2f |lt, is..|IR /etc/|
|00004320| 70 74 79 64 2e 63 6f 6e | 66 0a 28 62 75 74 20 73 |ptyd.con|f.(but s|
|00004330| 65 65 20 60 60 70 61 74 | 68 6e 61 6d 65 73 2e 68 |ee ``pat|hnames.h|
|00004340| 27 27 29 2e 20 54 68 65 | 72 65 20 6d 75 73 74 20 |''). The|re must |
|00004350| 62 65 20 61 6e 20 65 6e | 74 72 79 20 66 6f 72 20 |be an en|try for |
|00004360| 65 61 63 68 20 66 69 65 | 6c 64 20 6f 66 20 74 68 |each fie|ld of th|
|00004370| 65 0a 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |e.config|uration |
|00004380| 66 69 6c 65 2c 20 77 69 | 74 68 20 65 6e 74 72 69 |file, wi|th entri|
|00004390| 65 73 20 66 6f 72 20 65 | 61 63 68 20 66 69 65 6c |es for e|ach fiel|
|000043a0| 64 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 61 |d separa|ted by a|
|000043b0| 20 74 61 62 20 6f 72 0a | 61 20 73 70 61 63 65 2e | tab or.|a space.|
|000043c0| 20 20 43 6f 6d 6d 65 6e | 74 73 20 61 72 65 20 64 | Commen|ts are d|
|000043d0| 65 6e 6f 74 65 64 20 62 | 79 20 61 20 60 60 23 27 |enoted b|y a ``#'|
|000043e0| 27 20 61 74 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |' at the| beginni|
|000043f0| 6e 67 0a 6f 66 20 61 20 | 6c 69 6e 65 2e 20 20 54 |ng.of a |line. T|
|00004400| 68 65 72 65 20 6d 75 73 | 74 20 62 65 20 61 6e 20 |here mus|t be an |
|00004410| 65 6e 74 72 79 20 66 6f | 72 20 65 61 63 68 20 66 |entry fo|r each f|
|00004420| 69 65 6c 64 2e 20 20 54 | 68 65 0a 66 69 65 6c 64 |ield. T|he.field|
|00004430| 73 20 6f 66 20 74 68 65 | 20 63 6f 6e 66 69 67 75 |s of the| configu|
|00004440| 72 61 74 69 6f 6e 20 66 | 69 6c 65 20 61 72 65 20 |ration f|ile are |
|00004450| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 0a 2e 62 72 0a |as follo|ws:..br.|
|00004460| 09 70 74 79 20 64 65 76 | 69 63 65 0a 2e 62 72 0a |.pty dev|ice..br.|
|00004470| 09 66 6c 61 67 73 0a 2e | 62 72 0a 09 77 61 69 74 |.flags..|br..wait|
|00004480| 2f 6e 6f 77 61 69 74 5b | 2e 6d 61 78 5d 0a 2e 62 |/nowait[|.max]..b|
|00004490| 72 0a 09 75 73 65 72 5b | 2e 67 72 6f 75 70 5d 0a |r..user[|.group].|
|000044a0| 2e 62 72 0a 09 73 65 72 | 76 65 72 20 70 72 6f 67 |.br..ser|ver prog|
|000044b0| 72 61 6d 0a 2e 62 72 0a | 09 73 65 72 76 65 72 20 |ram..br.|.server |
|000044c0| 70 72 6f 67 72 61 6d 20 | 61 72 67 75 6d 65 6e 74 |program |argument|
|000044d0| 73 0a 2e 50 50 0a 54 68 | 65 0a 2e 49 20 70 74 79 |s..PP.Th|e..I pty|
|000044e0| 20 64 65 76 69 63 65 0a | 69 73 20 74 68 65 20 70 | device.|is the p|
|000044f0| 61 74 68 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |ath name| of the |
|00004500| 6d 61 73 74 65 72 20 73 | 69 64 65 20 6f 66 20 61 |master s|ide of a|
|00004510| 20 70 73 65 75 64 6f 20 | 74 65 72 6d 69 6e 61 6c | pseudo |terminal|
|00004520| 0a 54 68 65 0a 2e 49 20 | 66 6c 61 67 73 0a 66 69 |.The..I |flags.fi|
|00004530| 65 6c 64 20 73 68 6f 75 | 6c 64 20 62 65 20 6f 6e |eld shou|ld be on|
|00004540| 65 20 6f 66 20 60 60 2d | 27 27 2c 20 60 60 72 27 |e of ``-|'', ``r'|
|00004550| 27 20 6f 72 20 60 60 70 | 27 27 2c 0a 6d 65 61 6e |' or ``p|'',.mean|
|00004560| 69 6e 67 20 60 60 6e 6f | 20 66 6c 61 67 73 27 27 |ing ``no| flags''|
|00004570| 2c 20 60 60 72 65 6d 6f | 74 65 27 27 20 6d 6f 64 |, ``remo|te'' mod|
|00004580| 65 20 61 6e 64 20 60 60 | 70 61 63 6b 65 74 27 27 |e and ``|packet''|
|00004590| 20 6d 6f 64 65 2c 20 72 | 65 73 70 65 63 74 69 76 | mode, r|espectiv|
|000045a0| 65 6c 79 2e 0a 2e 50 50 | 0a 54 68 65 0a 2e 49 20 |ely...PP|.The..I |
|000045b0| 77 61 69 74 2f 6e 6f 77 | 61 69 74 0a 66 69 65 6c |wait/now|ait.fiel|
|000045c0| 64 20 73 68 6f 75 6c 64 | 20 63 75 72 72 65 6e 74 |d should| current|
|000045d0| 6c 79 20 62 65 20 73 65 | 74 20 74 6f 20 60 60 77 |ly be se|t to ``w|
|000045e0| 61 69 74 27 27 20 69 6e | 20 61 6c 6c 20 63 61 73 |ait'' in| all cas|
|000045f0| 65 73 2e 0a 54 68 65 20 | 6f 70 74 69 6f 6e 61 6c |es..The |optional|
|00004600| 0a 2e 49 20 6d 61 78 0a | 73 75 66 66 69 78 20 28 |..I max.|suffix (|
|00004610| 77 68 69 63 68 20 69 73 | 20 73 65 70 61 72 61 74 |which is| separat|
|00004620| 65 64 20 66 72 6f 6d 20 | 60 60 77 61 69 74 27 27 |ed from |``wait''|
|00004630| 20 6f 72 20 60 60 6e 6f | 77 61 69 74 27 27 20 62 | or ``no|wait'' b|
|00004640| 79 20 61 20 64 6f 74 29 | 20 73 70 65 63 69 66 69 |y a dot)| specifi|
|00004650| 65 73 0a 74 68 65 20 6d | 61 78 69 6d 75 6d 20 6e |es.the m|aximum n|
|00004660| 75 6d 62 65 72 20 6f 66 | 20 73 65 72 76 69 63 65 |umber of| service|
|00004670| 20 69 6e 73 74 61 6e 63 | 65 73 20 74 68 61 74 20 | instanc|es that |
|00004680| 63 61 6e 20 62 65 20 73 | 74 61 72 74 65 64 20 66 |can be s|tarted f|
|00004690| 72 6f 6d 0a 2e 49 20 70 | 74 79 64 0a 77 69 74 68 |rom..I p|tyd.with|
|000046a0| 69 6e 20 61 20 74 69 6d | 65 20 69 6e 74 65 72 76 |in a tim|e interv|
|000046b0| 61 6c 20 67 69 76 65 6e | 20 62 79 20 74 68 65 20 |al given| by the |
|000046c0| 63 6f 6e 73 74 61 6e 74 | 20 43 4e 54 5f 49 4e 54 |constant| CNT_INT|
|000046d0| 56 4c 20 28 63 75 72 72 | 65 6e 74 6c 79 20 36 30 |VL (curr|ently 60|
|000046e0| 20 73 65 63 6f 6e 64 73 | 29 2e 0a 49 66 20 6f 6d | seconds|)..If om|
|000046f0| 69 74 74 65 64 0a 2e 49 | 20 6d 61 78 0a 64 65 66 |itted..I| max.def|
|00004700| 61 75 6c 74 73 20 74 6f | 20 74 68 65 20 63 6f 6e |aults to| the con|
|00004710| 73 74 61 6e 74 20 54 4f | 4f 4d 41 4e 59 20 28 63 |stant TO|OMANY (c|
|00004720| 75 72 72 65 6e 74 6c 79 | 20 34 30 29 2e 0a 2e 50 |urrently| 40)...P|
|00004730| 50 0a 54 68 65 0a 2e 49 | 20 75 73 65 72 0a 65 6e |P.The..I| user.en|
|00004740| 74 72 79 20 73 68 6f 75 | 6c 64 20 63 6f 6e 74 61 |try shou|ld conta|
|00004750| 69 6e 20 74 68 65 20 75 | 73 65 72 20 6e 61 6d 65 |in the u|ser name|
|00004760| 20 6f 66 20 74 68 65 20 | 75 73 65 72 20 61 73 20 | of the |user as |
|00004770| 77 68 6f 6d 20 74 68 65 | 20 73 65 72 76 65 72 0a |whom the| server.|
|00004780| 73 68 6f 75 6c 64 20 72 | 75 6e 2e 20 20 54 68 69 |should r|un. Thi|
|00004790| 73 20 61 6c 6c 6f 77 73 | 20 66 6f 72 20 73 65 72 |s allows| for ser|
|000047a0| 76 65 72 73 20 74 6f 20 | 62 65 20 67 69 76 65 6e |vers to |be given|
|000047b0| 20 6c 65 73 73 20 70 65 | 72 6d 69 73 73 69 6f 6e | less pe|rmission|
|000047c0| 0a 74 68 61 6e 20 72 6f | 6f 74 2e 20 49 66 20 74 |.than ro|ot. If t|
|000047d0| 68 69 73 20 69 73 20 74 | 68 65 20 63 61 73 65 2c |his is t|he case,|
|000047e0| 20 74 68 65 20 70 72 69 | 6d 61 72 79 20 67 72 6f | the pri|mary gro|
|000047f0| 75 70 20 69 64 20 69 73 | 20 61 6c 73 6f 20 73 65 |up id is| also se|
|00004800| 74 20 61 73 20 77 65 6c | 6c 20 61 73 0a 74 68 65 |t as wel|l as.the|
|00004810| 20 73 65 74 20 6f 66 20 | 73 75 70 70 6c 65 6d 65 | set of |suppleme|
|00004820| 74 61 72 79 20 67 72 6f | 75 70 73 20 61 73 73 6f |tary gro|ups asso|
|00004830| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00004840| 67 69 76 65 6e 20 75 73 | 65 72 20 69 64 2e 0a 41 |given us|er id..A|
|00004850| 6e 20 6f 70 74 69 6f 6e | 61 6c 20 67 72 6f 75 70 |n option|al group|
|00004860| 20 63 61 6e 20 62 65 20 | 73 70 65 63 69 66 69 65 | can be |specifie|
|00004870| 64 20 62 79 20 61 70 70 | 65 6e 64 69 6e 67 20 61 |d by app|ending a|
|00004880| 20 64 6f 74 20 61 6e 64 | 20 74 68 65 20 67 72 6f | dot and| the gro|
|00004890| 75 70 0a 6e 61 6d 65 20 | 74 6f 20 74 68 65 20 75 |up.name |to the u|
|000048a0| 73 65 72 20 6e 61 6d 65 | 2e 20 54 68 69 73 20 61 |ser name|. This a|
|000048b0| 6c 6c 6f 77 73 20 74 6f | 20 72 75 6e 20 73 65 72 |llows to| run ser|
|000048c0| 76 65 72 73 20 77 69 74 | 68 20 61 20 64 69 66 66 |vers wit|h a diff|
|000048d0| 65 72 65 6e 74 20 28 70 | 72 69 6d 61 72 79 29 0a |erent (p|rimary).|
|000048e0| 67 72 6f 75 70 20 69 64 | 20 74 68 61 6e 20 73 70 |group id| than sp|
|000048f0| 65 63 69 66 69 65 64 20 | 69 6e 20 74 68 65 20 70 |ecified |in the p|
|00004900| 61 73 73 77 6f 72 64 20 | 66 69 6c 65 2e 20 49 6e |assword |file. In|
|00004910| 20 74 68 69 73 20 63 61 | 73 65 2c 20 69 66 20 72 | this ca|se, if r|
|00004920| 75 6e 20 77 69 74 68 20 | 61 0a 75 73 65 72 20 69 |un with |a.user i|
|00004930| 64 20 6f 74 68 65 72 20 | 74 68 61 6e 20 72 6f 6f |d other |than roo|
|00004940| 74 2c 20 74 68 65 20 73 | 75 70 70 6c 65 6d 65 6e |t, the s|upplemen|
|00004950| 74 61 72 79 20 67 72 6f | 75 70 73 20 77 69 6c 6c |tary gro|ups will|
|00004960| 20 73 74 69 6c 6c 20 62 | 65 20 73 65 74 20 28 6f | still b|e set (o|
|00004970| 6e 6c 79 0a 74 68 65 20 | 70 72 69 6d 61 72 79 20 |nly.the |primary |
|00004980| 67 72 6f 75 70 20 69 64 | 20 64 69 66 66 65 72 73 |group id| differs|
|00004990| 29 2e 0a 54 68 65 0a 2e | 49 20 73 65 72 76 65 72 |)..The..|I server|
|000049a0| 20 70 72 6f 67 72 61 6d | 0a 65 6e 74 72 79 20 73 | program|.entry s|
|000049b0| 68 6f 75 6c 64 20 63 6f | 6e 74 61 69 6e 20 74 68 |hould co|ntain th|
|000049c0| 65 20 70 61 74 68 6e 61 | 6d 65 20 6f 66 20 74 68 |e pathna|me of th|
|000049d0| 65 20 70 72 6f 67 72 61 | 6d 20 77 68 69 63 68 20 |e progra|m which |
|000049e0| 69 73 20 74 6f 20 62 65 | 0a 65 78 65 63 75 74 65 |is to be|.execute|
|000049f0| 64 20 62 79 0a 2e 49 20 | 70 74 79 64 0a 77 68 65 |d by..I |ptyd.whe|
|00004a00| 6e 20 61 20 72 65 71 75 | 65 73 74 20 69 73 20 66 |n a requ|est is f|
|00004a10| 6f 75 6e 64 20 6f 6e 20 | 69 74 73 20 73 6f 63 6b |ound on |its sock|
|00004a20| 65 74 2e 0a 2e 50 50 0a | 54 68 65 20 61 72 67 75 |et...PP.|The argu|
|00004a30| 6d 65 6e 74 73 20 74 6f | 20 74 68 65 20 73 65 72 |ments to| the ser|
|00004a40| 76 65 72 20 70 72 6f 67 | 72 61 6d 20 73 68 6f 75 |ver prog|ram shou|
|00004a50| 6c 64 20 62 65 20 6a 75 | 73 74 20 61 73 20 74 68 |ld be ju|st as th|
|00004a60| 65 79 0a 6e 6f 72 6d 61 | 6c 6c 79 20 61 72 65 2c |ey.norma|lly are,|
|00004a70| 20 73 74 61 72 74 69 6e | 67 20 77 69 74 68 20 61 | startin|g with a|
|00004a80| 72 67 76 5b 30 5d 2c 20 | 77 68 69 63 68 20 69 73 |rgv[0], |which is|
|00004a90| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 0a 74 68 65 | the nam|e of.the|
|00004aa0| 20 70 72 6f 67 72 61 6d | 2e 0a 2e 49 20 50 74 79 | program|...I Pty|
|00004ab0| 64 0a 72 65 72 65 61 64 | 73 20 69 74 73 20 63 6f |d.reread|s its co|
|00004ac0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 66 69 6c 65 |nfigurat|ion file|
|00004ad0| 20 77 68 65 6e 20 69 74 | 20 72 65 63 65 69 76 65 | when it| receive|
|00004ae0| 73 20 61 20 68 61 6e 67 | 75 70 20 73 69 67 6e 61 |s a hang|up signa|
|00004af0| 6c 2c 20 53 49 47 48 55 | 50 2e 0a 53 65 72 76 69 |l, SIGHU|P..Servi|
|00004b00| 63 65 73 20 6d 61 79 20 | 62 65 20 61 64 64 65 64 |ces may |be added|
|00004b10| 2c 20 64 65 6c 65 74 65 | 64 20 6f 72 20 6d 6f 64 |, delete|d or mod|
|00004b20| 69 66 69 65 64 20 77 68 | 65 6e 20 74 68 65 20 63 |ified wh|en the c|
|00004b30| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 66 69 6c |onfigura|tion fil|
|00004b40| 65 0a 69 73 20 72 65 72 | 65 61 64 2e 0a 2e 53 48 |e.is rer|ead...SH|
|00004b50| 20 22 53 45 45 20 41 4c | 53 4f 22 0a 69 6e 65 74 | "SEE AL|SO".inet|
|00004b60| 64 28 38 29 2c 20 6d 75 | 6e 65 74 64 28 38 29 2c |d(8), mu|netd(8),|
|00004b70| 20 70 74 79 28 34 29 0a | 00 00 00 00 00 00 00 00 | pty(4).|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 6d 75 6e 65 74 64 2f 6d | 75 6e 65 74 64 2e 63 00 |munetd/m|unetd.c.|
|00004c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 37 |.... 6|44 . 7|
|00004c70| 30 30 20 00 20 20 20 20 | 36 32 20 00 20 20 20 20 |00 . |62 . |
|00004c80| 20 31 30 37 36 35 35 20 | 20 35 33 36 35 30 36 31 | 107655 | 5365061|
|00004c90| 36 36 30 20 20 31 32 34 | 37 33 00 20 30 00 00 00 |660 124|73. 0...|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 75 73 74 61 72 20 20 | 00 6d 69 74 63 68 00 00 |.ustar |.mitch..|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 2f 2a 0a 20 2a 20 40 28 | 23 29 6d 75 6e 65 74 64 |/*. * @(|#)munetd|
|00004e10| 2e 63 09 33 2e 31 20 39 | 33 2f 30 34 2f 30 38 09 |.c.3.1 9|3/04/08.|
|00004e20| 2d 20 65 78 74 65 6e 64 | 65 64 20 69 6e 65 74 64 |- extend|ed inetd|
|00004e30| 2c 20 62 61 73 65 64 20 | 6f 6e 20 4e 45 54 2f 32 |, based |on NET/2|
|00004e40| 20 69 6e 65 74 64 2e 63 | 0a 20 2a 2f 0a 0a 2f 2a | inetd.c|. */../*|
|00004e50| 0a 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |. * Copy|right (c|
|00004e60| 29 20 31 39 38 33 20 52 | 65 67 65 6e 74 73 20 6f |) 1983 R|egents o|
|00004e70| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|00004e80| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 0a | of Cali|fornia..|
|00004e90| 20 2a 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 | * All r|ights re|
|00004ea0| 73 65 72 76 65 64 2e 0a | 20 2a 0a 20 2a 20 52 65 |served..| *. * Re|
|00004eb0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 61 6e 64 |distribu|tion and|
|00004ec0| 20 75 73 65 20 69 6e 20 | 73 6f 75 72 63 65 20 61 | use in |source a|
|00004ed0| 6e 64 20 62 69 6e 61 72 | 79 20 66 6f 72 6d 73 20 |nd binar|y forms |
|00004ee0| 61 72 65 20 70 65 72 6d | 69 74 74 65 64 20 70 72 |are perm|itted pr|
|00004ef0| 6f 76 69 64 65 64 0a 20 | 2a 20 74 68 61 74 3a 20 |ovided. |* that: |
|00004f00| 28 31 29 20 73 6f 75 72 | 63 65 20 64 69 73 74 72 |(1) sour|ce distr|
|00004f10| 69 62 75 74 69 6f 6e 73 | 20 72 65 74 61 69 6e 20 |ibutions| retain |
|00004f20| 74 68 69 73 20 65 6e 74 | 69 72 65 20 63 6f 70 79 |this ent|ire copy|
|00004f30| 72 69 67 68 74 20 6e 6f | 74 69 63 65 20 61 6e 64 |right no|tice and|
|00004f40| 0a 20 2a 20 63 6f 6d 6d | 65 6e 74 2c 20 61 6e 64 |. * comm|ent, and|
|00004f50| 20 28 32 29 20 64 69 73 | 74 72 69 62 75 74 69 6f | (2) dis|tributio|
|00004f60| 6e 73 20 69 6e 63 6c 75 | 64 69 6e 67 20 62 69 6e |ns inclu|ding bin|
|00004f70| 61 72 69 65 73 20 64 69 | 73 70 6c 61 79 20 74 68 |aries di|splay th|
|00004f80| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 0a 20 2a 20 61 |e follow|ing. * a|
|00004f90| 63 6b 6e 6f 77 6c 65 64 | 67 65 6d 65 6e 74 3a 20 |cknowled|gement: |
|00004fa0| 20 60 60 54 68 69 73 20 | 70 72 6f 64 75 63 74 20 | ``This |product |
|00004fb0| 69 6e 63 6c 75 64 65 73 | 20 73 6f 66 74 77 61 72 |includes| softwar|
|00004fc0| 65 20 64 65 76 65 6c 6f | 70 65 64 20 62 79 20 74 |e develo|ped by t|
|00004fd0| 68 65 0a 20 2a 20 55 6e | 69 76 65 72 73 69 74 79 |he. * Un|iversity|
|00004fe0| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2c 20 | of Cali|fornia, |
|00004ff0| 42 65 72 6b 65 6c 65 79 | 20 61 6e 64 20 69 74 73 |Berkeley| and its|
|00005000| 20 63 6f 6e 74 72 69 62 | 75 74 6f 72 73 27 27 20 | contrib|utors'' |
|00005010| 69 6e 20 74 68 65 0a 20 | 2a 20 64 6f 63 75 6d 65 |in the. |* docume|
|00005020| 6e 74 61 74 69 6f 6e 20 | 6f 72 20 6f 74 68 65 72 |ntation |or other|
|00005030| 20 6d 61 74 65 72 69 61 | 6c 73 20 70 72 6f 76 69 | materia|ls provi|
|00005040| 64 65 64 20 77 69 74 68 | 20 74 68 65 20 64 69 73 |ded with| the dis|
|00005050| 74 72 69 62 75 74 69 6f | 6e 20 61 6e 64 20 69 6e |tributio|n and in|
|00005060| 0a 20 2a 20 61 6c 6c 20 | 61 64 76 65 72 74 69 73 |. * all |advertis|
|00005070| 69 6e 67 20 6d 61 74 65 | 72 69 61 6c 73 20 6d 65 |ing mate|rials me|
|00005080| 6e 74 69 6f 6e 69 6e 67 | 20 66 65 61 74 75 72 65 |ntioning| feature|
|00005090| 73 20 6f 72 20 75 73 65 | 20 6f 66 20 74 68 69 73 |s or use| of this|
|000050a0| 20 73 6f 66 74 77 61 72 | 65 2e 0a 20 2a 20 4e 65 | softwar|e.. * Ne|
|000050b0| 69 74 68 65 72 20 74 68 | 65 20 6e 61 6d 65 20 6f |ither th|e name o|
|000050c0| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|000050d0| 20 6e 6f 72 20 74 68 65 | 20 6e 61 6d 65 73 20 6f | nor the| names o|
|000050e0| 66 20 69 74 73 20 63 6f | 6e 74 72 69 62 75 74 6f |f its co|ntributo|
|000050f0| 72 73 20 6d 61 79 0a 20 | 2a 20 62 65 20 75 73 65 |rs may. |* be use|
|00005100| 64 20 74 6f 20 65 6e 64 | 6f 72 73 65 20 6f 72 20 |d to end|orse or |
|00005110| 70 72 6f 6d 6f 74 65 20 | 70 72 6f 64 75 63 74 73 |promote |products|
|00005120| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 74 68 | derived| from th|
|00005130| 69 73 20 73 6f 66 74 77 | 61 72 65 20 77 69 74 68 |is softw|are with|
|00005140| 6f 75 74 0a 20 2a 20 73 | 70 65 63 69 66 69 63 20 |out. * s|pecific |
|00005150| 70 72 69 6f 72 20 77 72 | 69 74 74 65 6e 20 70 65 |prior wr|itten pe|
|00005160| 72 6d 69 73 73 69 6f 6e | 2e 0a 20 2a 20 54 48 49 |rmission|.. * THI|
|00005170| 53 20 53 4f 46 54 57 41 | 52 45 20 49 53 20 50 52 |S SOFTWA|RE IS PR|
|00005180| 4f 56 49 44 45 44 20 60 | 60 41 53 20 49 53 27 27 |OVIDED `|`AS IS''|
|00005190| 20 41 4e 44 20 57 49 54 | 48 4f 55 54 20 41 4e 59 | AND WIT|HOUT ANY|
|000051a0| 20 45 58 50 52 45 53 53 | 20 4f 52 20 49 4d 50 4c | EXPRESS| OR IMPL|
|000051b0| 49 45 44 0a 20 2a 20 57 | 41 52 52 41 4e 54 49 45 |IED. * W|ARRANTIE|
|000051c0| 53 2c 20 49 4e 43 4c 55 | 44 49 4e 47 2c 20 57 49 |S, INCLU|DING, WI|
|000051d0| 54 48 4f 55 54 20 4c 49 | 4d 49 54 41 54 49 4f 4e |THOUT LI|MITATION|
|000051e0| 2c 20 54 48 45 20 49 4d | 50 4c 49 45 44 20 57 41 |, THE IM|PLIED WA|
|000051f0| 52 52 41 4e 54 49 45 53 | 20 4f 46 0a 20 2a 20 4d |RRANTIES| OF. * M|
|00005200| 45 52 43 48 41 4e 54 41 | 42 49 4c 49 54 59 20 41 |ERCHANTA|BILITY A|
|00005210| 4e 44 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |ND FITNE|SS FOR A|
|00005220| 20 50 41 52 54 49 43 55 | 4c 41 52 20 50 55 52 50 | PARTICU|LAR PURP|
|00005230| 4f 53 45 2e 0a 20 2a 2f | 0a 0a 23 69 66 6e 64 65 |OSE.. */|..#ifnde|
|00005240| 66 20 6c 69 6e 74 0a 63 | 68 61 72 20 63 6f 70 79 |f lint.c|har copy|
|00005250| 72 69 67 68 74 5b 5d 20 | 3d 0a 22 40 28 23 29 20 |right[] |=."@(#) |
|00005260| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00005270| 38 33 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |83 Regen|ts of th|
|00005280| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00005290| 43 61 6c 69 66 6f 72 6e | 69 61 2e 5c 6e 5c 0a 20 |Californ|ia.\n\. |
|000052a0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000052b0| 76 65 64 2e 5c 6e 22 3b | 0a 23 65 6e 64 69 66 20 |ved.\n";|.#endif |
|000052c0| 2f 2a 20 6e 6f 74 20 6c | 69 6e 74 20 2a 2f 0a 0a |/* not l|int */..|
|000052d0| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|000052e0| 74 69 63 20 63 68 61 72 | 20 62 73 64 73 63 63 73 |tic char| bsdsccs|
|000052f0| 69 64 5b 5d 20 3d 20 22 | 40 28 23 29 69 6e 65 74 |id[] = "|@(#)inet|
|00005300| 64 2e 63 20 20 20 20 20 | 35 2e 32 35 20 28 42 65 |d.c |5.25 (Be|
|00005310| 72 6b 65 6c 65 79 29 20 | 36 2f 32 39 2f 39 30 22 |rkeley) |6/29/90"|
|00005320| 3b 0a 73 74 61 74 69 63 | 20 63 68 61 72 20 73 63 |;.static| char sc|
|00005330| 63 73 69 64 5b 5d 20 3d | 20 22 40 28 23 29 6d 75 |csid[] =| "@(#)mu|
|00005340| 6e 65 74 64 2e 63 09 33 | 2e 31 20 28 45 72 61 73 |netd.c.3|.1 (Eras|
|00005350| 6d 75 73 29 20 34 2f 38 | 2f 39 33 22 3b 0a 23 65 |mus) 4/8|/93";.#e|
|00005360| 6e 64 69 66 20 2f 2a 20 | 6e 6f 74 20 6c 69 6e 74 |ndif /* |not lint|
|00005370| 20 2a 2f 0a 0a 2f 2a 0a | 20 2a 20 49 6e 65 74 64 | */../*.| * Inetd|
|00005380| 20 2d 20 49 6e 74 65 72 | 6e 65 74 20 73 75 70 65 | - Inter|net supe|
|00005390| 72 2d 73 65 72 76 65 72 | 0a 20 2a 0a 20 2a 20 54 |r-server|. *. * T|
|000053a0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 69 6e 76 6f |his prog|ram invo|
|000053b0| 6b 65 73 20 61 6c 6c 20 | 69 6e 74 65 72 6e 65 74 |kes all |internet|
|000053c0| 20 73 65 72 76 69 63 65 | 73 20 61 73 20 6e 65 65 | service|s as nee|
|000053d0| 64 65 64 2e 0a 20 2a 20 | 63 6f 6e 6e 65 63 74 69 |ded.. * |connecti|
|000053e0| 6f 6e 2d 6f 72 69 65 6e | 74 65 64 20 73 65 72 76 |on-orien|ted serv|
|000053f0| 69 63 65 73 20 61 72 65 | 20 69 6e 76 6f 6b 65 64 |ices are| invoked|
|00005400| 20 65 61 63 68 20 74 69 | 6d 65 20 61 0a 20 2a 20 | each ti|me a. * |
|00005410| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 69 73 20 6d 61 |connecti|on is ma|
|00005420| 64 65 2c 20 62 79 20 63 | 72 65 61 74 69 6e 67 20 |de, by c|reating |
|00005430| 61 20 70 72 6f 63 65 73 | 73 2e 20 20 54 68 69 73 |a proces|s. This|
|00005440| 20 70 72 6f 63 65 73 73 | 0a 20 2a 20 69 73 20 70 | process|. * is p|
|00005450| 61 73 73 65 64 20 74 68 | 65 20 63 6f 6e 6e 65 63 |assed th|e connec|
|00005460| 74 69 6f 6e 20 61 73 20 | 66 69 6c 65 20 64 65 73 |tion as |file des|
|00005470| 63 72 69 70 74 6f 72 20 | 30 20 61 6e 64 20 69 73 |criptor |0 and is|
|00005480| 0a 20 2a 20 65 78 70 65 | 63 74 65 64 20 74 6f 20 |. * expe|cted to |
|00005490| 64 6f 20 61 20 67 65 74 | 70 65 65 72 6e 61 6d 65 |do a get|peername|
|000054a0| 20 74 6f 20 66 69 6e 64 | 20 6f 75 74 20 74 68 65 | to find| out the|
|000054b0| 20 73 6f 75 72 63 65 20 | 68 6f 73 74 0a 20 2a 20 | source |host. * |
|000054c0| 61 6e 64 20 70 6f 72 74 | 2e 0a 20 2a 0a 20 2a 20 |and port|.. *. * |
|000054d0| 44 61 74 61 67 72 61 6d | 20 6f 72 69 65 6e 74 65 |Datagram| oriente|
|000054e0| 64 20 73 65 72 76 69 63 | 65 73 20 61 72 65 20 69 |d servic|es are i|
|000054f0| 6e 76 6f 6b 65 64 20 77 | 68 65 6e 20 61 20 64 61 |nvoked w|hen a da|
|00005500| 74 61 67 72 61 6d 0a 20 | 2a 20 61 72 72 69 76 65 |tagram. |* arrive|
|00005510| 73 3b 20 61 20 70 72 6f | 63 65 73 73 20 69 73 20 |s; a pro|cess is |
|00005520| 63 72 65 61 74 65 64 20 | 61 6e 64 20 70 61 73 73 |created |and pass|
|00005530| 65 64 20 61 20 70 65 6e | 64 69 6e 67 20 6d 65 73 |ed a pen|ding mes|
|00005540| 73 61 67 65 0a 20 2a 20 | 6f 6e 20 66 69 6c 65 20 |sage. * |on file |
|00005550| 64 65 73 63 72 69 70 74 | 6f 72 20 30 2e 20 20 44 |descript|or 0. D|
|00005560| 61 74 61 67 72 61 6d 20 | 73 65 72 76 65 72 73 20 |atagram |servers |
|00005570| 6d 61 79 20 65 69 74 68 | 65 72 20 63 6f 6e 6e 65 |may eith|er conne|
|00005580| 63 74 0a 20 2a 20 74 6f | 20 74 68 65 69 72 20 70 |ct. * to| their p|
|00005590| 65 65 72 2c 20 66 72 65 | 65 69 6e 67 20 75 70 20 |eer, fre|eing up |
|000055a0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 73 6f 63 |the orig|inal soc|
|000055b0| 6b 65 74 20 66 6f 72 20 | 69 6e 65 74 64 0a 20 2a |ket for |inetd. *|
|000055c0| 20 74 6f 20 72 65 63 65 | 69 76 65 20 66 75 72 74 | to rece|ive furt|
|000055d0| 68 65 72 20 6d 65 73 73 | 61 67 65 73 20 6f 6e 2c |her mess|ages on,|
|000055e0| 20 6f 72 20 60 60 74 61 | 6b 65 20 6f 76 65 72 20 | or ``ta|ke over |
|000055f0| 74 68 65 20 73 6f 63 6b | 65 74 27 27 2c 0a 20 2a |the sock|et'',. *|
|00005600| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 61 6c 6c 20 | process|ing all |
|00005610| 61 72 72 69 76 69 6e 67 | 20 64 61 74 61 67 72 61 |arriving| datagra|
|00005620| 6d 73 20 61 6e 64 2c 20 | 65 76 65 6e 74 75 61 6c |ms and, |eventual|
|00005630| 6c 79 2c 20 74 69 6d 69 | 6e 67 0a 20 2a 20 6f 75 |ly, timi|ng. * ou|
|00005640| 74 2e 09 20 54 68 65 20 | 66 69 72 73 74 20 74 79 |t.. The |first ty|
|00005650| 70 65 20 6f 66 20 73 65 | 72 76 65 72 20 69 73 20 |pe of se|rver is |
|00005660| 73 61 69 64 20 74 6f 20 | 62 65 20 60 60 6d 75 6c |said to |be ``mul|
|00005670| 74 69 2d 74 68 72 65 61 | 64 65 64 27 27 3b 0a 20 |ti-threa|ded'';. |
|00005680| 2a 20 74 68 65 20 73 65 | 63 6f 6e 64 20 74 79 70 |* the se|cond typ|
|00005690| 65 20 6f 66 20 73 65 72 | 76 65 72 20 60 60 73 69 |e of ser|ver ``si|
|000056a0| 6e 67 6c 65 2d 74 68 72 | 65 61 64 65 64 27 27 2e |ngle-thr|eaded''.|
|000056b0| 20 0a 20 2a 0a 20 2a 20 | 49 6e 65 74 64 20 75 73 | . *. * |Inetd us|
|000056c0| 65 73 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |es a con|figurati|
|000056d0| 6f 6e 20 66 69 6c 65 20 | 77 68 69 63 68 20 69 73 |on file |which is|
|000056e0| 20 72 65 61 64 20 61 74 | 20 73 74 61 72 74 75 70 | read at| startup|
|000056f0| 0a 20 2a 20 61 6e 64 2c | 20 70 6f 73 73 69 62 6c |. * and,| possibl|
|00005700| 79 2c 20 61 74 20 73 6f | 6d 65 20 6c 61 74 65 72 |y, at so|me later|
|00005710| 20 74 69 6d 65 20 69 6e | 20 72 65 73 70 6f 6e 73 | time in| respons|
|00005720| 65 20 74 6f 20 61 20 68 | 61 6e 67 75 70 20 73 69 |e to a h|angup si|
|00005730| 67 6e 61 6c 2e 0a 20 2a | 20 54 68 65 20 63 6f 6e |gnal.. *| The con|
|00005740| 66 69 67 75 72 61 74 69 | 6f 6e 20 66 69 6c 65 20 |figurati|on file |
|00005750| 69 73 20 60 60 66 72 65 | 65 20 66 6f 72 6d 61 74 |is ``fre|e format|
|00005760| 27 27 20 77 69 74 68 20 | 66 69 65 6c 64 73 20 67 |'' with |fields g|
|00005770| 69 76 65 6e 20 69 6e 20 | 74 68 65 0a 20 2a 20 6f |iven in |the. * o|
|00005780| 72 64 65 72 20 73 68 6f | 77 6e 20 62 65 6c 6f 77 |rder sho|wn below|
|00005790| 2e 20 20 43 6f 6e 74 69 | 6e 75 61 74 69 6f 6e 20 |. Conti|nuation |
|000057a0| 6c 69 6e 65 73 20 66 6f | 72 20 61 6e 20 65 6e 74 |lines fo|r an ent|
|000057b0| 72 79 20 6d 75 73 74 20 | 62 65 69 6e 67 20 77 69 |ry must |being wi|
|000057c0| 74 68 0a 20 2a 20 61 20 | 73 70 61 63 65 20 6f 72 |th. * a |space or|
|000057d0| 20 74 61 62 2e 20 20 41 | 6c 6c 20 66 69 65 6c 64 | tab. A|ll field|
|000057e0| 73 20 6d 75 73 74 20 62 | 65 20 70 72 65 73 65 6e |s must b|e presen|
|000057f0| 74 20 69 6e 20 65 61 63 | 68 20 65 6e 74 72 79 2e |t in eac|h entry.|
|00005800| 0a 20 2a 0a 20 2a 09 73 | 65 72 76 69 63 65 20 6e |. *. *.s|ervice n|
|00005810| 61 6d 65 09 09 09 6d 75 | 73 74 20 62 65 20 69 6e |ame...mu|st be in|
|00005820| 20 2f 65 74 63 2f 73 65 | 72 76 69 63 65 73 0a 20 | /etc/se|rvices. |
|00005830| 2a 09 73 6f 63 6b 65 74 | 20 74 79 70 65 09 09 09 |*.socket| type...|
|00005840| 73 74 72 65 61 6d 2f 64 | 67 72 61 6d 2f 72 61 77 |stream/d|gram/raw|
|00005850| 2f 72 64 6d 2f 73 65 71 | 70 61 63 6b 65 74 0a 20 |/rdm/seq|packet. |
|00005860| 2a 09 70 72 6f 74 6f 63 | 6f 6c 09 09 09 6d 75 73 |*.protoc|ol...mus|
|00005870| 74 20 62 65 20 69 6e 20 | 2f 65 74 63 2f 70 72 6f |t be in |/etc/pro|
|00005880| 74 6f 63 6f 6c 73 0a 20 | 2a 09 77 61 69 74 2f 6e |tocols. |*.wait/n|
|00005890| 6f 77 61 69 74 5b 2e 6d | 61 78 5d 09 09 73 69 6e |owait[.m|ax]..sin|
|000058a0| 67 6c 65 2d 74 68 72 65 | 61 64 65 64 2f 6d 75 6c |gle-thre|aded/mul|
|000058b0| 74 69 2d 74 68 72 65 61 | 64 65 64 2c 20 6d 61 78 |ti-threa|ded, max|
|000058c0| 20 23 0a 20 2a 09 75 73 | 65 72 5b 2e 67 72 6f 75 | #. *.us|er[.grou|
|000058d0| 70 5d 09 09 09 75 73 65 | 72 2f 67 72 6f 75 70 20 |p]...use|r/group |
|000058e0| 74 6f 20 72 75 6e 20 64 | 61 65 6d 6f 6e 20 61 73 |to run d|aemon as|
|000058f0| 0a 20 2a 09 73 65 72 76 | 65 72 20 70 72 6f 67 72 |. *.serv|er progr|
|00005900| 61 6d 09 09 09 66 75 6c | 6c 20 70 61 74 68 20 6e |am...ful|l path n|
|00005910| 61 6d 65 0a 20 2a 09 73 | 65 72 76 65 72 20 70 72 |ame. *.s|erver pr|
|00005920| 6f 67 72 61 6d 20 61 72 | 67 75 6d 65 6e 74 73 09 |ogram ar|guments.|
|00005930| 6d 61 78 69 6d 75 6d 20 | 6f 66 20 4d 41 58 41 52 |maximum |of MAXAR|
|00005940| 47 53 20 28 32 30 29 0a | 20 2a 0a 20 2a 20 43 6f |GS (20).| *. * Co|
|00005950| 6d 6d 65 6e 74 20 6c 69 | 6e 65 73 20 61 72 65 20 |mment li|nes are |
|00005960| 69 6e 64 69 63 61 74 65 | 64 20 62 79 20 61 20 60 |indicate|d by a `|
|00005970| 23 27 20 69 6e 20 63 6f | 6c 75 6d 6e 20 31 2e 0a |#' in co|lumn 1..|
|00005980| 20 2a 2f 0a 0a 2f 2a 0a | 20 2a 20 48 65 72 65 27 | */../*.| * Here'|
|00005990| 73 20 74 68 65 20 73 63 | 6f 6f 70 20 63 6f 6e 63 |s the sc|oop conc|
|000059a0| 65 72 6e 69 6e 67 20 75 | 73 65 72 2e 67 72 6f 75 |erning u|ser.grou|
|000059b0| 70 20 66 65 61 74 75 72 | 65 3a 0a 20 2a 0a 20 2a |p featur|e:. *. *|
|000059c0| 20 31 29 20 73 65 74 2d | 67 72 6f 75 70 2d 6f 70 | 1) set-|group-op|
|000059d0| 74 69 6f 6e 20 6f 66 66 | 2e 0a 20 2a 20 0a 20 2a |tion off|.. * . *|
|000059e0| 20 09 61 29 20 75 73 65 | 72 20 3d 20 72 6f 6f 74 | .a) use|r = root|
|000059f0| 3a 09 4e 4f 20 73 65 74 | 75 69 64 28 29 20 6f 72 |:.NO set|uid() or|
|00005a00| 20 73 65 74 67 69 64 28 | 29 20 69 73 20 64 6f 6e | setgid(|) is don|
|00005a10| 65 0a 20 2a 20 0a 20 2a | 20 09 62 29 20 6f 74 68 |e. * . *| .b) oth|
|00005a20| 65 72 3a 09 73 65 74 75 | 69 64 28 29 0a 20 2a 20 |er:.setu|id(). * |
|00005a30| 09 09 09 73 65 74 67 69 | 64 28 70 72 69 6d 61 72 |...setgi|d(primar|
|00005a40| 79 20 67 72 6f 75 70 20 | 61 73 20 66 6f 75 6e 64 |y group |as found|
|00005a50| 20 69 6e 20 70 61 73 73 | 77 64 29 0a 20 2a 20 09 | in pass|wd). * .|
|00005a60| 09 09 69 6e 69 74 67 72 | 6f 75 70 73 28 6e 61 6d |..initgr|oups(nam|
|00005a70| 65 2c 20 70 72 69 6d 61 | 72 79 20 67 72 6f 75 70 |e, prima|ry group|
|00005a80| 29 0a 20 2a 20 0a 20 2a | 20 32 29 20 73 65 74 2d |). * . *| 2) set-|
|00005a90| 67 72 6f 75 70 2d 6f 70 | 74 69 6f 6e 20 6f 6e 2e |group-op|tion on.|
|00005aa0| 0a 20 2a 20 0a 20 2a 20 | 09 61 29 20 75 73 65 72 |. * . * |.a) user|
|00005ab0| 20 3d 20 72 6f 6f 74 3a | 09 4e 4f 20 73 65 74 75 | = root:|.NO setu|
|00005ac0| 69 64 28 29 0a 20 2a 20 | 09 09 09 73 65 74 67 69 |id(). * |...setgi|
|00005ad0| 64 28 73 70 65 63 69 66 | 69 65 64 20 67 72 6f 75 |d(specif|ied grou|
|00005ae0| 70 29 0a 20 2a 20 09 09 | 09 4e 4f 20 69 6e 69 74 |p). * ..|.NO init|
|00005af0| 67 72 6f 75 70 73 28 29 | 0a 20 2a 20 0a 20 2a 20 |groups()|. * . * |
|00005b00| 09 62 29 20 6f 74 68 65 | 72 3a 09 73 65 74 75 69 |.b) othe|r:.setui|
|00005b10| 64 28 29 0a 20 2a 20 09 | 09 09 73 65 74 67 69 64 |d(). * .|..setgid|
|00005b20| 28 73 70 65 63 69 66 69 | 65 64 20 67 72 6f 75 70 |(specifi|ed group|
|00005b30| 29 0a 20 2a 20 09 09 09 | 69 6e 69 74 67 72 6f 75 |). * ...|initgrou|
|00005b40| 70 73 28 6e 61 6d 65 2c | 20 73 70 65 63 69 66 69 |ps(name,| specifi|
|00005b50| 65 64 20 67 72 6f 75 70 | 29 0a 20 2a 20 0a 20 2a |ed group|). * . *|
|00005b60| 2f 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |/..#incl|ude <sys|
|00005b70| 2f 70 61 72 61 6d 2e 68 | 3e 0a 23 69 6e 63 6c 75 |/param.h|>.#inclu|
|00005b80| 64 65 20 3c 73 79 73 2f | 73 74 61 74 2e 68 3e 0a |de <sys/|stat.h>.|
|00005b90| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 69 6f |#include| <sys/io|
|00005ba0| 63 74 6c 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ctl.h>.#|include |
|00005bb0| 3c 73 79 73 2f 73 6f 63 | 6b 65 74 2e 68 3e 0a 23 |<sys/soc|ket.h>.#|
|00005bc0| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 75 6e 2e |include |<sys/un.|
|00005bd0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |h>.#incl|ude <sys|
|00005be0| 2f 66 69 6c 65 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |/file.h>|.#includ|
|00005bf0| 65 20 3c 73 79 73 2f 77 | 61 69 74 2e 68 3e 0a 23 |e <sys/w|ait.h>.#|
|00005c00| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 74 69 6d |include |<sys/tim|
|00005c10| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |e.h>.#in|clude <s|
|00005c20| 79 73 2f 72 65 73 6f 75 | 72 63 65 2e 68 3e 0a 0a |ys/resou|rce.h>..|
|00005c30| 23 69 66 64 65 66 20 54 | 43 50 44 0a 23 69 6e 63 |#ifdef T|CPD.#inc|
|00005c40| 6c 75 64 65 20 22 6c 6f | 67 5f 74 63 70 2e 68 22 |lude "lo|g_tcp.h"|
|00005c50| 0a 23 65 6e 64 69 66 0a | 0a 23 69 66 64 65 66 20 |.#endif.|.#ifdef |
|00005c60| 52 4c 49 4d 49 54 5f 4e | 4f 46 49 4c 45 09 2f 2a |RLIMIT_N|OFILE./*|
|00005c70| 20 53 75 6e 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 | Sun */.|#define |
|00005c80| 52 4c 49 4d 49 54 5f 4f | 46 49 4c 45 09 52 4c 49 |RLIMIT_O|FILE.RLI|
|00005c90| 4d 49 54 5f 4e 4f 46 49 | 4c 45 0a 23 65 6e 64 69 |MIT_NOFI|LE.#endi|
|00005ca0| 66 0a 0a 23 69 66 64 65 | 66 20 52 50 43 0a 23 69 |f..#ifde|f RPC.#i|
|00005cb0| 6e 63 6c 75 64 65 20 3c | 72 70 63 2f 72 70 63 2e |nclude <|rpc/rpc.|
|00005cc0| 68 3e 0a 23 65 6c 73 65 | 0a 23 69 6e 63 6c 75 64 |h>.#else|.#includ|
|00005cd0| 65 20 3c 6e 65 74 69 6e | 65 74 2f 69 6e 2e 68 3e |e <netin|et/in.h>|
|00005ce0| 0a 23 65 6e 64 69 66 0a | 23 69 6e 63 6c 75 64 65 |.#endif.|#include|
|00005cf0| 20 3c 61 72 70 61 2f 69 | 6e 65 74 2e 68 3e 0a 0a | <arpa/i|net.h>..|
|00005d00| 23 69 6e 63 6c 75 64 65 | 20 3c 65 72 72 6e 6f 2e |#include| <errno.|
|00005d10| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 69 67 |h>.#incl|ude <sig|
|00005d20| 6e 61 6c 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |nal.h>.#|include |
|00005d30| 3c 6e 65 74 64 62 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<netdb.h|>.#inclu|
|00005d40| 64 65 20 3c 73 79 73 6c | 6f 67 2e 68 3e 0a 23 69 |de <sysl|og.h>.#i|
|00005d50| 6e 63 6c 75 64 65 20 3c | 70 77 64 2e 68 3e 0a 23 |nclude <|pwd.h>.#|
|00005d60| 69 6e 63 6c 75 64 65 20 | 3c 67 72 70 2e 68 3e 0a |include |<grp.h>.|
|00005d70| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00005d80| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |h>.#incl|ude <str|
|00005d90| 69 6e 67 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ing.h>.#|include |
|00005da0| 22 70 61 74 68 6e 61 6d | 65 73 2e 68 22 0a 0a 23 |"pathnam|es.h"..#|
|00005db0| 64 65 66 69 6e 65 09 54 | 4f 4f 4d 41 4e 59 09 09 |define.T|OOMANY..|
|00005dc0| 34 30 09 09 2f 2a 20 64 | 6f 6e 27 74 20 73 74 61 |40../* d|on't sta|
|00005dd0| 72 74 20 6d 6f 72 65 20 | 74 68 61 6e 20 54 4f 4f |rt more |than TOO|
|00005de0| 4d 41 4e 59 20 2a 2f 0a | 23 64 65 66 69 6e 65 09 |MANY */.|#define.|
|00005df0| 43 4e 54 5f 49 4e 54 56 | 4c 09 36 30 09 09 2f 2a |CNT_INTV|L.60../*|
|00005e00| 20 73 65 72 76 65 72 73 | 20 69 6e 20 43 4e 54 5f | servers| in CNT_|
|00005e10| 49 4e 54 56 4c 20 73 65 | 63 2e 20 2a 2f 0a 23 64 |INTVL se|c. */.#d|
|00005e20| 65 66 69 6e 65 09 52 45 | 54 52 59 54 49 4d 45 09 |efine.RE|TRYTIME.|
|00005e30| 28 36 30 2a 31 30 29 09 | 09 2f 2a 20 72 65 74 72 |(60*10).|./* retr|
|00005e40| 79 20 61 66 74 65 72 20 | 62 69 6e 64 20 6f 72 20 |y after |bind or |
|00005e50| 73 65 72 76 65 72 20 66 | 61 69 6c 20 2a 2f 0a 0a |server f|ail */..|
|00005e60| 23 64 65 66 69 6e 65 09 | 53 49 47 42 4c 4f 43 4b |#define.|SIGBLOCK|
|00005e70| 09 28 73 69 67 6d 61 73 | 6b 28 53 49 47 43 48 4c |.(sigmas|k(SIGCHL|
|00005e80| 44 29 7c 73 69 67 6d 61 | 73 6b 28 53 49 47 48 55 |D)|sigma|sk(SIGHU|
|00005e90| 50 29 7c 73 69 67 6d 61 | 73 6b 28 53 49 47 41 4c |P)|sigma|sk(SIGAL|
|00005ea0| 52 4d 29 29 0a 0a 65 78 | 74 65 72 6e 09 69 6e 74 |RM))..ex|tern.int|
|00005eb0| 20 65 72 72 6e 6f 3b 0a | 0a 76 6f 69 64 09 63 6f | errno;.|.void.co|
|00005ec0| 6e 66 69 67 28 29 2c 20 | 72 65 61 70 63 68 69 6c |nfig(), |reapchil|
|00005ed0| 64 28 29 2c 20 72 65 74 | 72 79 28 29 2c 20 6d 75 |d(), ret|ry(), mu|
|00005ee0| 65 78 69 74 28 29 3b 0a | 63 68 61 72 09 2a 69 6e |exit();.|char.*in|
|00005ef0| 64 65 78 28 29 3b 0a 23 | 69 66 6e 64 65 66 20 52 |dex();.#|ifndef R|
|00005f00| 50 43 09 2f 2a 20 58 58 | 58 20 2d 20 72 70 63 2f |PC./* XX|X - rpc/|
|00005f10| 74 79 70 65 73 2e 68 20 | 73 68 6f 75 6c 64 20 6e |types.h |should n|
|00005f20| 6f 74 20 64 65 63 6c 61 | 72 65 20 60 6d 61 6c 6c |ot decla|re `mall|
|00005f30| 6f 63 27 20 2a 2f 0a 63 | 68 61 72 09 2a 6d 61 6c |oc' */.c|har.*mal|
|00005f40| 6c 6f 63 28 29 3b 0a 23 | 65 6e 64 69 66 0a 0a 69 |loc();.#|endif..i|
|00005f50| 6e 74 09 64 65 62 75 67 | 20 3d 20 30 3b 0a 69 6e |nt.debug| = 0;.in|
|00005f60| 74 09 6e 73 6f 63 6b 2c | 20 6d 61 78 73 6f 63 6b |t.nsock,| maxsock|
|00005f70| 3b 0a 66 64 5f 73 65 74 | 09 61 6c 6c 73 6f 63 6b |;.fd_set|.allsock|
|00005f80| 3b 0a 69 6e 74 09 6f 70 | 74 69 6f 6e 73 3b 0a 69 |;.int.op|tions;.i|
|00005f90| 6e 74 09 74 69 6d 69 6e | 67 6f 75 74 3b 0a 73 74 |nt.timin|gout;.st|
|00005fa0| 72 75 63 74 09 73 65 72 | 76 65 6e 74 20 2a 73 70 |ruct.ser|vent *sp|
|00005fb0| 3b 0a 63 68 61 72 09 2a | 63 75 72 64 6f 6d 3b 0a |;.char.*|curdom;.|
|00005fc0| 0a 23 69 66 6e 64 65 66 | 20 4f 50 45 4e 5f 4d 41 |.#ifndef| OPEN_MA|
|00005fd0| 58 0a 23 64 65 66 69 6e | 65 20 4f 50 45 4e 5f 4d |X.#defin|e OPEN_M|
|00005fe0| 41 58 09 36 34 0a 23 65 | 6e 64 69 66 0a 0a 2f 2a |AX.64.#e|ndif../*|
|00005ff0| 20 52 65 73 65 72 76 65 | 20 73 6f 6d 65 20 64 65 | Reserve| some de|
|00006000| 73 63 72 69 70 74 6f 72 | 73 2c 20 33 20 73 74 64 |scriptor|s, 3 std|
|00006010| 69 6f 20 2b 20 61 74 20 | 6c 65 61 73 74 3a 20 31 |io + at |least: 1|
|00006020| 20 6c 6f 67 2c 20 31 20 | 63 6f 6e 66 2e 20 66 69 | log, 1 |conf. fi|
|00006030| 6c 65 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 46 44 |le */.#d|efine FD|
|00006040| 5f 4d 41 52 47 49 4e 09 | 28 38 29 0a 69 6e 74 09 |_MARGIN.|(8).int.|
|00006050| 72 6c 69 6d 5f 6f 66 69 | 6c 65 5f 63 75 72 20 3d |rlim_ofi|le_cur =|
|00006060| 20 4f 50 45 4e 5f 4d 41 | 58 3b 0a 0a 23 69 66 64 | OPEN_MA|X;..#ifd|
|00006070| 65 66 20 52 4c 49 4d 49 | 54 5f 4f 46 49 4c 45 0a |ef RLIMI|T_OFILE.|
|00006080| 73 74 72 75 63 74 20 72 | 6c 69 6d 69 74 09 72 6c |struct r|limit.rl|
|00006090| 69 6d 5f 6f 66 69 6c 65 | 3b 0a 23 65 6e 64 69 66 |im_ofile|;.#endif|
|000060a0| 0a 0a 73 74 72 75 63 74 | 09 73 65 72 76 74 61 62 |..struct|.servtab|
|000060b0| 20 7b 0a 09 63 68 61 72 | 09 2a 73 65 5f 73 65 72 | {..char|.*se_ser|
|000060c0| 76 69 63 65 3b 09 09 2f | 2a 20 6e 61 6d 65 20 6f |vice;../|* name o|
|000060d0| 66 20 73 65 72 76 69 63 | 65 20 2a 2f 0a 09 69 6e |f servic|e */..in|
|000060e0| 74 09 73 65 5f 73 6f 63 | 6b 74 79 70 65 3b 09 09 |t.se_soc|ktype;..|
|000060f0| 2f 2a 20 74 79 70 65 20 | 6f 66 20 73 6f 63 6b 65 |/* type |of socke|
|00006100| 74 20 74 6f 20 75 73 65 | 20 2a 2f 0a 09 69 6e 74 |t to use| */..int|
|00006110| 09 73 65 5f 66 61 6d 69 | 6c 79 3b 09 09 2f 2a 20 |.se_fami|ly;../* |
|00006120| 61 64 64 72 65 73 73 20 | 66 61 6d 69 6c 79 20 2a |address |family *|
|00006130| 2f 0a 09 63 68 61 72 09 | 2a 73 65 5f 70 72 6f 74 |/..char.|*se_prot|
|00006140| 6f 3b 09 09 2f 2a 20 70 | 72 6f 74 6f 63 6f 6c 20 |o;../* p|rotocol |
|00006150| 75 73 65 64 20 2a 2f 0a | 09 69 6e 74 09 73 65 5f |used */.|.int.se_|
|00006160| 72 70 63 70 72 6f 67 3b | 09 09 2f 2a 20 72 70 63 |rpcprog;|../* rpc|
|00006170| 20 70 72 6f 67 72 61 6d | 20 6e 75 6d 62 65 72 20 | program| number |
|00006180| 2a 2f 0a 09 69 6e 74 09 | 73 65 5f 72 70 63 76 65 |*/..int.|se_rpcve|
|00006190| 72 73 6c 3b 09 09 2f 2a | 20 72 70 63 20 70 72 6f |rsl;../*| rpc pro|
|000061a0| 67 72 61 6d 20 6c 6f 77 | 65 73 74 20 76 65 72 73 |gram low|est vers|
|000061b0| 69 6f 6e 20 2a 2f 0a 09 | 69 6e 74 09 73 65 5f 72 |ion */..|int.se_r|
|000061c0| 70 63 76 65 72 73 68 3b | 09 09 2f 2a 20 72 70 63 |pcversh;|../* rpc|
|000061d0| 20 70 72 6f 67 72 61 6d | 20 68 69 67 68 65 73 74 | program| highest|
|000061e0| 20 76 65 72 73 69 6f 6e | 20 2a 2f 0a 23 64 65 66 | version| */.#def|
|000061f0| 69 6e 65 20 69 73 72 70 | 63 73 65 72 76 69 63 65 |ine isrp|cservice|
|00006200| 28 73 65 70 29 09 28 28 | 73 65 70 29 2d 3e 73 65 |(sep).((|sep)->se|
|00006210| 5f 72 70 63 76 65 72 73 | 6c 20 21 3d 20 30 29 0a |_rpcvers|l != 0).|
|00006220| 09 73 68 6f 72 74 09 73 | 65 5f 77 61 69 74 3b 09 |.short.s|e_wait;.|
|00006230| 09 2f 2a 20 73 69 6e 67 | 6c 65 20 74 68 72 65 61 |./* sing|le threa|
|00006240| 64 65 64 20 73 65 72 76 | 65 72 20 2a 2f 0a 09 73 |ded serv|er */..s|
|00006250| 68 6f 72 74 09 73 65 5f | 63 68 65 63 6b 65 64 3b |hort.se_|checked;|
|00006260| 09 09 2f 2a 20 6c 6f 6f | 6b 65 64 20 61 74 20 64 |../* loo|ked at d|
|00006270| 75 72 69 6e 67 20 6d 65 | 72 67 65 20 2a 2f 0a 09 |uring me|rge */..|
|00006280| 63 68 61 72 09 2a 73 65 | 5f 75 73 65 72 3b 09 09 |char.*se|_user;..|
|00006290| 2f 2a 20 75 73 65 72 20 | 6e 61 6d 65 20 74 6f 20 |/* user |name to |
|000062a0| 72 75 6e 20 61 73 20 2a | 2f 0a 09 63 68 61 72 09 |run as *|/..char.|
|000062b0| 2a 73 65 5f 67 72 6f 75 | 70 3b 09 09 2f 2a 20 67 |*se_grou|p;../* g|
|000062c0| 72 6f 75 70 20 6e 61 6d | 65 20 74 6f 20 72 75 6e |roup nam|e to run|
|000062d0| 20 61 73 20 2a 2f 0a 09 | 73 74 72 75 63 74 09 62 | as */..|struct.b|
|000062e0| 69 6c 74 69 6e 20 2a 73 | 65 5f 62 69 3b 09 09 2f |iltin *s|e_bi;../|
|000062f0| 2a 20 69 66 20 62 75 69 | 6c 74 2d 69 6e 2c 20 64 |* if bui|lt-in, d|
|00006300| 65 73 63 72 69 70 74 69 | 6f 6e 20 2a 2f 0a 09 63 |escripti|on */..c|
|00006310| 68 61 72 09 2a 73 65 5f | 73 65 72 76 65 72 3b 09 |har.*se_|server;.|
|00006320| 09 2f 2a 20 73 65 72 76 | 65 72 20 70 72 6f 67 72 |./* serv|er progr|
|00006330| 61 6d 20 2a 2f 0a 23 64 | 65 66 69 6e 65 09 4d 41 |am */.#d|efine.MA|
|00006340| 58 41 52 47 56 20 32 30 | 0a 09 63 68 61 72 09 2a |XARGV 20|..char.*|
|00006350| 73 65 5f 61 72 67 76 5b | 4d 41 58 41 52 47 56 2b |se_argv[|MAXARGV+|
|00006360| 31 5d 3b 09 2f 2a 20 70 | 72 6f 67 72 61 6d 20 61 |1];./* p|rogram a|
|00006370| 72 67 75 6d 65 6e 74 73 | 20 2a 2f 0a 09 69 6e 74 |rguments| */..int|
|00006380| 09 73 65 5f 66 64 3b 09 | 09 09 2f 2a 20 6f 70 65 |.se_fd;.|../* ope|
|00006390| 6e 20 64 65 73 63 72 69 | 70 74 6f 72 20 2a 2f 0a |n descri|ptor */.|
|000063a0| 09 75 6e 69 6f 6e 20 7b | 0a 09 09 73 74 72 75 63 |.union {|...struc|
|000063b0| 74 09 73 6f 63 6b 61 64 | 64 72 20 73 65 5f 75 6e |t.sockad|dr se_un|
|000063c0| 5f 63 74 72 6c 61 64 64 | 72 3b 0a 09 09 73 74 72 |_ctrladd|r;...str|
|000063d0| 75 63 74 09 73 6f 63 6b | 61 64 64 72 5f 69 6e 20 |uct.sock|addr_in |
|000063e0| 73 65 5f 75 6e 5f 63 74 | 72 6c 61 64 64 72 5f 69 |se_un_ct|rladdr_i|
|000063f0| 6e 3b 0a 09 09 73 74 72 | 75 63 74 09 73 6f 63 6b |n;...str|uct.sock|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.