home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: 3bconect.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file 3bconnect/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404031713
| default
| |
98%
| file
| data
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 33 62 63 6f 6e 6e 65 63 | 74 2f 00 00 00 00 00 00 |3bconnec|t/......|
|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 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 33 31 | 0 | 4404031|
|00000090| 37 31 33 20 20 20 35 36 | 36 36 00 20 00 00 00 00 |713 56|66. ....|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 00 00 00 |........|........|
|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| 33 62 63 6f 6e 6e 65 63 | 74 2f 53 68 61 72 46 69 |3bconnec|t/SharFi|
|00000210| 6c 65 2e 48 65 61 64 65 | 72 73 00 00 00 00 00 00 |le.Heade|rs......|
|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 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 31 31 30 30 20 | 20 34 34 30 34 30 33 31 | 1100 | 4404031|
|00000290| 37 31 34 20 20 31 30 37 | 33 36 00 20 00 00 00 00 |714 107|36. ....|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 00 00 00 |........|........|
|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| 3d 3d 3d 20 33 62 63 6f | 6e 6e 65 63 74 2e 73 68 |=== 3bco|nnect.sh|
|00000410| 61 72 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ar =====|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 46 72 6f |========|====.Fro|
|00000430| 6d 20 70 75 72 2d 65 65 | 21 6a 2e 63 63 2e 70 75 |m pur-ee|!j.cc.pu|
|00000440| 72 64 75 65 2e 65 64 75 | 21 69 2e 63 63 2e 70 75 |rdue.edu|!i.cc.pu|
|00000450| 72 64 75 65 2e 65 64 75 | 21 70 75 72 64 75 65 21 |rdue.edu|!purdue!|
|00000460| 67 61 74 65 63 68 21 62 | 62 6e 21 62 62 6e 2e 63 |gatech!b|bn!bbn.c|
|00000470| 6f 6d 21 72 73 61 6c 7a | 20 54 75 65 20 4d 61 79 |om!rsalz| Tue May|
|00000480| 20 31 30 20 31 32 3a 34 | 38 3a 32 39 20 45 53 54 | 10 12:4|8:29 EST|
|00000490| 20 31 39 38 38 0a 0a 53 | 75 62 6d 69 74 74 65 64 | 1988..S|ubmitted|
|000004a0| 2d 62 79 3a 20 44 61 76 | 65 20 53 65 74 74 6c 65 |-by: Dav|e Settle|
|000004b0| 20 3c 6d 63 76 61 78 21 | 6f 73 63 61 72 2e 73 6d | <mcvax!|oscar.sm|
|000004c0| 62 2e 63 6f 2e 75 6b 21 | 64 61 76 65 40 75 75 6e |b.co.uk!|dave@uun|
|000004d0| 65 74 2e 75 75 2e 6e 65 | 74 3e 0a 50 6f 73 74 69 |et.uu.ne|t>.Posti|
|000004e0| 6e 67 2d 6e 75 6d 62 65 | 72 3a 20 56 6f 6c 75 6d |ng-numbe|r: Volum|
|000004f0| 65 20 31 34 2c 20 49 73 | 73 75 65 20 38 35 0a 41 |e 14, Is|sue 85.A|
|00000500| 72 63 68 69 76 65 2d 6e | 61 6d 65 3a 20 33 62 63 |rchive-n|ame: 3bc|
|00000510| 6f 6e 6e 65 63 74 0a 0a | 5b 20 20 49 20 64 6f 6e |onnect..|[ I don|
|00000520| 27 74 20 68 61 76 65 20 | 61 20 33 42 2c 20 73 6f |'t have |a 3B, so|
|00000530| 20 79 6f 75 27 72 65 20 | 6f 6e 20 79 6f 75 72 20 | you're |on your |
|00000540| 6f 77 6e 2e 20 20 2d 2d | 72 24 20 20 5d 0a 0a 54 |own. --|r$ ]..T|
|00000550| 68 69 73 20 73 65 74 20 | 69 73 20 63 61 6c 6c 65 |his set |is calle|
|00000560| 64 20 27 63 6f 6e 6e 65 | 63 74 27 2c 20 61 6e 64 |d 'conne|ct', and|
|00000570| 20 69 73 20 61 20 75 74 | 69 6c 69 74 79 20 66 6f | is a ut|ility fo|
|00000580| 72 20 41 54 26 54 20 33 | 42 32 0a 33 42 4e 45 54 |r AT&T 3|B2.3BNET|
|00000590| 20 28 65 74 68 65 72 6e | 65 74 29 20 6e 65 74 77 | (ethern|et) netw|
|000005a0| 6f 72 6b 73 2c 20 70 72 | 6f 76 69 64 69 6e 67 20 |orks, pr|oviding |
|000005b0| 61 20 72 65 6d 6f 74 65 | 20 6c 6f 67 69 6e 20 66 |a remote| login f|
|000005c0| 61 63 69 6c 69 74 79 2c | 20 61 6e 64 20 61 0a 66 |acility,| and a.f|
|000005d0| 69 6c 65 20 74 72 61 6e | 73 66 65 72 20 63 61 70 |ile tran|sfer cap|
|000005e0| 61 62 69 6c 69 74 79 2e | 0a 0a 09 44 61 76 65 2e |ability.|...Dave.|
|000005f0| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000610| 2d 2d 2d 2d 43 55 54 20 | 48 45 52 45 2d 2d 2d 2d |----CUT |HERE----|
|00000620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 33 62 63 6f 6e 6e 65 63 | 74 2f 52 45 41 44 4d 45 |3bconnec|t/README|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000880| 20 20 31 30 30 37 37 20 | 20 34 34 30 34 30 33 31 | 10077 | 4404031|
|00000890| 36 35 30 20 20 20 36 36 | 36 30 00 20 00 00 00 00 |650 66|60. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 41 54 26 54 20 33 42 32 | 20 45 74 68 65 72 6e 65 |AT&T 3B2| Etherne|
|00000a10| 74 20 43 6f 6e 6e 65 63 | 74 69 6f 6e 20 61 6e 64 |t Connec|tion and|
|00000a20| 20 46 69 6c 65 20 54 72 | 61 6e 73 66 65 72 20 55 | File Tr|ansfer U|
|00000a30| 74 69 6c 69 74 79 0a 0a | 54 68 69 73 20 70 61 63 |tility..|This pac|
|00000a40| 6b 61 67 65 20 61 6c 6c | 6f 77 73 20 79 6f 75 20 |kage all|ows you |
|00000a50| 74 6f 20 6c 6f 67 69 6e | 20 74 6f 20 6f 74 68 65 |to login| to othe|
|00000a60| 72 20 33 42 32 20 63 6f | 6d 70 75 74 65 72 73 20 |r 3B2 co|mputers |
|00000a70| 63 6f 6e 6e 65 63 74 65 | 64 20 76 69 61 20 33 42 |connecte|d via 3B|
|00000a80| 6e 65 74 2c 20 0a 69 6e | 20 61 20 73 69 6d 69 6c |net, .in| a simil|
|00000a90| 61 72 20 66 61 73 68 69 | 6f 6e 20 74 6f 20 27 63 |ar fashi|on to 'c|
|00000aa0| 75 27 2c 20 61 6e 64 20 | 61 6c 73 6f 20 74 6f 20 |u', and |also to |
|00000ab0| 74 72 61 6e 73 66 65 72 | 20 66 69 6c 65 73 20 61 |transfer| files a|
|00000ac0| 63 72 6f 73 73 20 74 68 | 65 20 65 74 68 65 72 6e |cross th|e ethern|
|00000ad0| 65 74 2e 0a 0a 43 4f 4e | 4e 45 43 54 0a 0a 27 43 |et...CON|NECT..'C|
|00000ae0| 6f 6e 6e 65 63 74 27 20 | 70 72 6f 76 69 64 65 73 |onnect' |provides|
|00000af0| 20 61 20 73 69 6d 70 6c | 65 20 63 6f 6e 6e 65 63 | a simpl|e connec|
|00000b00| 74 69 6f 6e 20 74 6f 20 | 61 20 73 68 65 6c 6c 20 |tion to |a shell |
|00000b10| 6f 6e 20 74 68 65 20 72 | 65 6d 6f 74 65 20 6d 61 |on the r|emote ma|
|00000b20| 63 68 69 6e 65 2c 20 6c | 69 6e 6b 65 64 0a 74 6f |chine, l|inked.to|
|00000b30| 20 79 6f 75 72 20 74 65 | 72 6d 69 6e 61 6c 20 76 | your te|rminal v|
|00000b40| 69 61 20 70 69 70 65 73 | 2e 20 49 6e 69 74 69 61 |ia pipes|. Initia|
|00000b50| 6c 6c 79 2c 20 59 4f 55 | 52 20 74 65 72 6d 69 6e |lly, YOU|R termin|
|00000b60| 61 6c 20 77 69 6c 6c 20 | 62 65 20 64 6f 69 6e 67 |al will |be doing|
|00000b70| 20 74 68 65 20 65 63 68 | 6f 69 6e 67 0a 28 69 6e | the ech|oing.(in|
|00000b80| 20 63 6f 6e 74 72 61 73 | 74 20 74 6f 20 27 63 75 | contras|t to 'cu|
|00000b90| 27 29 2c 20 77 69 74 68 | 20 6c 69 6e 65 73 20 73 |'), with| lines s|
|00000ba0| 68 69 70 70 65 64 20 61 | 63 72 6f 73 73 20 74 68 |hipped a|cross th|
|00000bb0| 65 20 65 74 68 65 72 6e | 65 74 20 6f 6e 6c 79 20 |e ethern|et only |
|00000bc0| 77 68 65 6e 20 79 6f 75 | 0a 68 69 74 20 52 45 54 |when you|.hit RET|
|00000bd0| 55 52 4e 2e 0a 0a 59 6f | 75 20 63 61 6e 20 66 6f |URN...Yo|u can fo|
|00000be0| 72 63 65 20 74 68 65 20 | 63 6f 6e 6e 65 63 74 69 |rce the |connecti|
|00000bf0| 6f 6e 20 69 6e 74 6f 20 | 27 72 61 77 27 20 6d 6f |on into |'raw' mo|
|00000c00| 64 65 20 28 65 61 63 68 | 20 63 68 61 72 61 63 74 |de (each| charact|
|00000c10| 65 72 20 73 68 69 70 70 | 65 64 20 61 73 20 74 79 |er shipp|ed as ty|
|00000c20| 70 65 64 2c 0a 72 65 6d | 6f 74 65 20 65 6e 64 20 |ped,.rem|ote end |
|00000c30| 64 6f 69 6e 67 20 74 68 | 65 20 65 63 68 6f 69 6e |doing th|e echoin|
|00000c40| 67 29 20 62 79 20 73 65 | 6e 64 69 6e 67 20 61 20 |g) by se|nding a |
|00000c50| 51 55 49 54 20 73 69 67 | 6e 61 6c 2e 20 54 68 69 |QUIT sig|nal. Thi|
|00000c60| 73 20 61 6c 6c 6f 77 73 | 20 79 6f 75 20 74 6f 0a |s allows| you to.|
|00000c70| 75 73 65 20 73 63 72 65 | 65 6e 20 65 64 69 74 6f |use scre|en edito|
|00000c80| 72 73 20 6f 6e 20 74 68 | 65 20 72 65 6d 6f 74 65 |rs on th|e remote|
|00000c90| 20 6d 61 63 68 69 6e 65 | 2e 0a 41 20 66 75 72 74 | machine|..A furt|
|00000ca0| 68 65 72 20 51 55 49 54 | 20 73 69 67 6e 61 6c 20 |her QUIT| signal |
|00000cb0| 67 65 74 73 20 79 6f 75 | 20 62 61 63 6b 20 69 6e |gets you| back in|
|00000cc0| 74 6f 20 27 63 6f 6f 6b | 65 64 27 20 6d 6f 64 65 |to 'cook|ed' mode|
|00000cd0| 20 2d 20 74 68 69 73 20 | 69 73 20 69 6e 64 69 63 | - this |is indic|
|00000ce0| 61 74 65 64 20 62 79 0a | 27 5b 63 6f 6f 6b 65 64 |ated by.|'[cooked|
|00000cf0| 5d 27 20 61 70 70 65 61 | 72 69 6e 67 20 6f 6e 20 |]' appea|ring on |
|00000d00| 79 6f 75 72 20 74 65 72 | 6d 69 6e 61 6c 2e 20 55 |your ter|minal. U|
|00000d10| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 74 68 |nfortuna|tely, th|
|00000d20| 69 73 20 6d 65 61 6e 73 | 20 74 68 61 74 20 79 6f |is means| that yo|
|00000d30| 75 0a 63 61 6e 27 74 20 | 73 65 6e 64 20 51 55 49 |u.can't |send QUI|
|00000d40| 54 20 73 69 67 6e 61 6c | 73 20 74 6f 20 70 72 6f |T signal|s to pro|
|00000d50| 63 65 73 73 65 73 20 77 | 68 69 63 68 20 79 6f 75 |cesses w|hich you|
|00000d60| 20 73 74 61 72 74 20 6f | 6e 20 74 68 65 20 72 65 | start o|n the re|
|00000d70| 6d 6f 74 65 20 68 6f 73 | 74 2e 0a 53 6f 72 72 79 |mote hos|t..Sorry|
|00000d80| 20 61 62 6f 75 74 20 74 | 68 69 73 2e 20 49 6e 74 | about t|his. Int|
|00000d90| 65 72 72 75 70 74 73 20 | 67 65 74 20 70 72 6f 63 |errupts |get proc|
|00000da0| 65 73 73 65 64 20 4f 4b | 2c 20 74 68 6f 75 67 68 |essed OK|, though|
|00000db0| 2e 0a 0a 59 6f 75 20 63 | 6c 6f 73 65 20 74 68 65 |...You c|lose the|
|00000dc0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 62 79 20 74 | connect|ion by t|
|00000dd0| 79 70 69 6e 67 20 5e 44 | 20 61 74 20 79 6f 75 72 |yping ^D| at your|
|00000de0| 20 74 65 72 6d 69 6e 61 | 6c 20 28 69 6e 20 63 6f | termina|l (in co|
|00000df0| 6f 6b 65 64 20 6d 6f 64 | 65 29 20 2d 0a 69 66 20 |oked mod|e) -.if |
|00000e00| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 73 65 6e 64 |you want| to send|
|00000e10| 20 5e 44 20 74 6f 20 74 | 68 65 20 72 65 6d 6f 74 | ^D to t|he remot|
|00000e20| 65 20 65 6e 64 2c 20 79 | 6f 75 20 4d 55 53 54 20 |e end, y|ou MUST |
|00000e30| 62 65 20 69 6e 20 27 72 | 61 77 27 20 6d 6f 64 65 |be in 'r|aw' mode|
|00000e40| 2e 0a 0a 54 68 65 20 62 | 69 67 20 70 72 6f 62 6c |...The b|ig probl|
|00000e50| 65 6d 20 69 73 20 74 68 | 61 74 20 79 6f 75 72 20 |em is th|at your |
|00000e60| 72 65 6d 6f 74 65 20 73 | 68 65 6c 6c 20 68 61 73 |remote s|hell has|
|00000e70| 20 73 74 64 69 6e 2c 20 | 73 74 64 6f 75 74 2c 20 | stdin, |stdout, |
|00000e80| 61 6e 64 20 73 74 64 65 | 72 72 20 0a 63 6f 6e 6e |and stde|rr .conn|
|00000e90| 65 63 74 65 64 20 74 6f | 20 50 49 50 45 53 2c 20 |ected to| PIPES, |
|00000ea0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 61 20 72 65 |rather t|han a re|
|00000eb0| 61 6c 20 74 74 79 2c 20 | 77 68 69 63 68 20 63 61 |al tty, |which ca|
|00000ec0| 6e 20 63 61 75 73 65 20 | 63 65 72 74 61 69 6e 20 |n cause |certain |
|00000ed0| 63 6f 6d 6d 61 6e 64 73 | 0a 28 65 2e 67 2e 20 73 |commands|.(e.g. s|
|00000ee0| 74 74 79 29 20 74 6f 20 | 66 61 69 6c 2e 0a 0a 50 |tty) to |fail...P|
|00000ef0| 43 2d 49 4e 54 45 52 46 | 41 43 45 2e 0a 49 66 20 |C-INTERF|ACE..If |
|00000f00| 79 6f 75 20 68 61 76 65 | 20 50 43 2d 49 4e 54 45 |you have| PC-INTE|
|00000f10| 52 46 41 43 45 20 69 6e | 73 74 61 6c 6c 65 64 2c |RFACE in|stalled,|
|00000f20| 20 74 68 65 6e 20 79 6f | 75 20 63 61 6e 20 63 6f | then yo|u can co|
|00000f30| 6e 6e 65 63 74 20 74 6f | 20 6f 6e 65 20 6f 66 20 |nnect to| one of |
|00000f40| 74 68 65 20 0a 70 73 65 | 75 64 6f 2d 74 74 79 20 |the .pse|udo-tty |
|00000f50| 64 65 76 69 63 65 73 20 | 70 72 6f 76 69 64 65 64 |devices |provided|
|00000f60| 20 62 79 20 74 68 65 20 | 64 72 69 76 65 72 2c 20 | by the |driver, |
|00000f70| 62 79 20 75 73 69 6e 67 | 20 74 68 65 20 27 2d 6c |by using| the '-l|
|00000f80| 27 20 6f 70 74 69 6f 6e | 20 6f 66 20 27 63 6f 6e |' option| of 'con|
|00000f90| 6e 65 63 74 27 0a 54 68 | 69 73 20 67 65 74 73 20 |nect'.Th|is gets |
|00000fa0| 79 6f 75 20 61 20 72 65 | 6d 6f 74 65 20 73 68 65 |you a re|mote she|
|00000fb0| 6c 6c 20 63 6f 6e 6e 65 | 63 74 65 64 20 74 6f 20 |ll conne|cted to |
|00000fc0| 61 20 27 72 65 61 6c 27 | 20 74 74 79 20 64 65 76 |a 'real'| tty dev|
|00000fd0| 69 63 65 2c 20 61 6e 64 | 20 0a 61 75 74 6f 6d 61 |ice, and| .automa|
|00000fe0| 74 69 63 61 6c 6c 79 20 | 70 75 74 73 20 79 6f 75 |tically |puts you|
|00000ff0| 20 69 6e 20 27 72 61 77 | 27 20 6d 6f 64 65 2e 0a | in 'raw|' mode..|
|00001000| 0a 59 6f 75 20 63 6c 6f | 73 65 20 74 68 69 73 20 |.You clo|se this |
|00001010| 74 79 70 65 20 6f 66 20 | 63 6f 6e 6e 65 63 74 69 |type of |connecti|
|00001020| 6f 6e 20 62 79 20 73 65 | 6e 64 69 6e 67 20 61 20 |on by se|nding a |
|00001030| 51 55 49 54 20 73 69 67 | 6e 61 6c 2e 0a 0a 0a 52 |QUIT sig|nal....R|
|00001040| 43 50 0a 27 72 63 70 27 | 20 70 72 6f 76 69 64 65 |CP.'rcp'| provide|
|00001050| 73 20 61 20 73 69 6d 70 | 6c 65 2c 20 62 75 74 20 |s a simp|le, but |
|00001060| 65 66 66 65 63 74 69 76 | 65 2c 20 6d 65 74 68 6f |effectiv|e, metho|
|00001070| 64 20 6f 66 20 74 72 61 | 6e 73 66 65 72 72 69 6e |d of tra|nsferrin|
|00001080| 67 20 66 69 6c 65 73 20 | 61 63 72 6f 73 73 0a 74 |g files |across.t|
|00001090| 68 65 20 6e 65 74 77 6f | 72 6b 2e 20 54 68 65 20 |he netwo|rk. The |
|000010a0| 73 79 6e 74 61 78 20 72 | 65 73 65 6d 62 6c 65 73 |syntax r|esembles|
|000010b0| 20 27 75 75 63 70 27 2e | 0a 0a 0a 0a 57 48 41 54 | 'uucp'.|....WHAT|
|000010c0| 20 59 4f 55 20 4e 45 45 | 44 20 54 4f 20 44 4f 20 | YOU NEE|D TO DO |
|000010d0| 54 4f 20 49 4e 53 54 41 | 4c 4c 20 49 54 2e 0a 0a |TO INSTA|LL IT...|
|000010e0| 61 29 20 46 69 6e 64 20 | 6f 75 74 20 74 68 65 20 |a) Find |out the |
|000010f0| 65 74 68 65 72 6e 65 74 | 20 61 64 64 72 65 73 73 |ethernet| address|
|00001100| 65 73 20 6f 66 20 61 6c | 6c 20 6d 61 63 68 69 6e |es of al|l machin|
|00001110| 65 73 20 6f 6e 20 74 68 | 65 20 6e 65 74 77 6f 72 |es on th|e networ|
|00001120| 6b 2e 0a 09 55 73 65 20 | 27 6e 69 74 61 62 6c 65 |k...Use |'nitable|
|00001130| 27 2c 20 6f 72 20 74 68 | 65 20 70 72 6f 67 72 61 |', or th|e progra|
|00001140| 6d 20 27 6d 79 6e 6f 64 | 65 27 20 70 72 6f 76 69 |m 'mynod|e' provi|
|00001150| 64 65 64 2e 0a 09 0a 62 | 29 20 53 65 74 20 75 70 |ded....b|) Set up|
|00001160| 20 61 20 6d 61 70 20 66 | 69 6c 65 20 27 2f 75 73 | a map f|ile '/us|
|00001170| 72 2f 6c 69 62 2f 65 74 | 68 65 72 6e 65 74 2e 61 |r/lib/et|hernet.a|
|00001180| 64 64 72 27 20 77 68 69 | 63 68 20 6d 61 70 73 20 |ddr' whi|ch maps |
|00001190| 74 68 65 20 6e 61 6d 65 | 73 20 6f 66 0a 79 6f 75 |the name|s of.you|
|000011a0| 72 20 68 6f 73 74 73 20 | 74 6f 20 74 68 65 20 72 |r hosts |to the r|
|000011b0| 69 67 68 74 6d 6f 73 74 | 20 32 20 64 69 67 69 74 |ightmost| 2 digit|
|000011c0| 73 20 6f 66 20 74 68 65 | 69 72 20 65 74 68 65 72 |s of the|ir ether|
|000011d0| 6e 65 74 20 61 64 64 72 | 65 73 73 2e 20 0a 54 68 |net addr|ess. .Th|
|000011e0| 65 73 65 20 73 68 6f 75 | 6c 64 20 62 65 20 75 6e |ese shou|ld be un|
|000011f0| 69 71 75 65 20 2d 20 69 | 66 20 6e 6f 74 2c 20 63 |ique - i|f not, c|
|00001200| 68 61 6e 67 65 20 74 68 | 65 20 76 61 6c 75 65 20 |hange th|e value |
|00001210| 6f 66 20 4c 53 42 20 69 | 6e 20 27 6e 69 2e 68 27 |of LSB i|n 'ni.h'|
|00001220| 20 0a 74 6f 20 75 73 65 | 20 61 6e 79 20 70 61 69 | .to use| any pai|
|00001230| 72 20 6f 66 20 64 69 67 | 69 74 73 20 77 68 69 63 |r of dig|its whic|
|00001240| 68 20 61 72 65 20 75 6e | 69 71 75 65 20 66 6f 72 |h are un|ique for|
|00001250| 20 79 6f 75 72 20 6e 65 | 74 77 6f 72 6b 2e 0a 0a | your ne|twork...|
|00001260| 0a 45 2e 67 2e 20 0a 6f | 73 63 61 72 09 38 30 2e |.E.g. .o|scar.80.|
|00001270| 30 30 2e 31 30 2e 33 30 | 2e 31 38 2e 66 32 20 20 |00.10.30|.18.f2 |
|00001280| 20 20 20 20 20 20 0a 6f | 6c 69 76 65 20 20 20 38 | .o|live 8|
|00001290| 30 2e 30 30 2e 31 30 2e | 33 30 2e 30 62 2e 34 35 |0.00.10.|30.0b.45|
|000012a0| 0a 0a 2f 75 73 72 2f 6c | 69 62 2f 65 74 68 65 72 |../usr/l|ib/ether|
|000012b0| 6e 65 74 2e 61 64 64 72 | 3a 0a 0a 09 09 6f 73 63 |net.addr|:....osc|
|000012c0| 61 72 09 66 32 0a 09 09 | 6f 6c 69 76 65 09 34 35 |ar.f2...|olive.45|
|000012d0| 0a 0a 0a 63 29 20 53 65 | 74 20 75 70 20 61 6e 20 |...c) Se|t up an |
|000012e0| 69 6e 69 74 74 61 62 20 | 65 6e 74 72 79 20 74 6f |inittab |entry to|
|000012f0| 20 72 75 6e 20 74 68 65 | 20 73 65 72 76 65 72 2e | run the| server.|
|00001300| 0a 0a 65 2e 67 2e 20 28 | 61 73 73 75 6d 69 6e 67 |..e.g. (|assuming|
|00001310| 20 73 65 72 76 65 72 20 | 69 73 20 27 2f 75 73 72 | server |is '/usr|
|00001320| 2f 6c 69 62 2f 73 65 72 | 76 65 72 27 29 0a 0a 09 |/lib/ser|ver')...|
|00001330| 65 74 3a 32 3a 72 65 73 | 70 61 77 6e 3a 2f 75 73 |et:2:res|pawn:/us|
|00001340| 72 2f 6c 69 62 2f 73 65 | 72 76 65 72 0a 09 0a 49 |r/lib/se|rver...I|
|00001350| 74 27 73 20 69 6d 70 6f | 72 74 61 6e 74 20 74 68 |t's impo|rtant th|
|00001360| 61 74 20 74 68 69 73 20 | 6c 69 6e 65 20 69 73 20 |at this |line is |
|00001370| 70 72 6f 70 65 72 6c 79 | 20 64 65 66 69 6e 65 64 |properly| defined|
|00001380| 21 20 0a 44 4f 20 4e 4f | 54 20 44 45 46 49 4e 45 |! .DO NO|T DEFINE|
|00001390| 20 41 4e 59 20 49 4e 50 | 55 54 20 4f 52 20 4f 55 | ANY INP|UT OR OU|
|000013a0| 54 50 55 54 20 46 49 4c | 45 53 20 46 4f 52 20 54 |TPUT FIL|ES FOR T|
|000013b0| 48 49 53 20 50 52 4f 43 | 45 53 53 2e 0a 0a 0a 64 |HIS PROC|ESS....d|
|000013c0| 29 20 4d 61 6b 65 20 73 | 75 72 65 20 74 68 61 74 |) Make s|ure that|
|000013d0| 20 79 6f 75 20 68 61 76 | 65 20 65 6e 6f 75 67 68 | you hav|e enough|
|000013e0| 20 27 70 6f 72 74 27 20 | 73 74 72 75 63 74 75 72 | 'port' |structur|
|000013f0| 65 73 20 61 6c 6c 6f 63 | 61 74 65 64 20 69 6e 20 |es alloc|ated in |
|00001400| 74 68 65 20 4e 49 20 64 | 72 69 76 65 72 2e 0a 20 |the NI d|river.. |
|00001410| 20 20 59 6f 75 20 63 61 | 6e 20 64 6f 20 74 68 69 | You ca|n do thi|
|00001420| 73 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 27 70 |s throug|h the 'p|
|00001430| 61 63 6b 61 67 65 6d 67 | 6d 74 2f 33 62 6e 65 74 |ackagemg|mt/3bnet|
|00001440| 2f 6e 69 64 72 69 76 65 | 72 22 20 6f 70 74 69 6f |/nidrive|r" optio|
|00001450| 6e 20 69 6e 20 27 73 79 | 73 61 64 6d 27 0a 09 49 |n in 'sy|sadm'..I|
|00001460| 20 68 61 76 65 20 32 30 | 20 70 6f 72 74 73 2c 20 | have 20| ports, |
|00001470| 31 20 62 75 66 66 65 72 | 20 70 65 72 20 70 6f 72 |1 buffer| per por|
|00001480| 74 2c 20 31 35 31 34 20 | 62 75 66 66 65 72 20 73 |t, 1514 |buffer s|
|00001490| 69 7a 65 20 2d 20 74 68 | 69 73 20 61 6c 6c 6f 77 |ize - th|is allow|
|000014a0| 73 0a 09 6d 65 20 61 74 | 20 6c 65 61 73 74 20 35 |s..me at| least 5|
|000014b0| 20 63 6f 6e 63 75 72 72 | 65 6e 74 20 27 63 6f 6e | concurr|ent 'con|
|000014c0| 6e 65 63 74 73 27 20 28 | 49 27 76 65 20 6e 6f 74 |nects' (|I've not|
|000014d0| 20 74 72 69 65 64 20 6d | 6f 72 65 29 0a 20 20 20 | tried m|ore). |
|000014e0| 59 6f 75 20 68 61 76 65 | 20 74 6f 20 72 65 62 6f |You have| to rebo|
|000014f0| 6f 74 20 66 6f 72 20 74 | 68 65 20 72 65 63 6f 6e |ot for t|he recon|
|00001500| 66 69 67 20 74 6f 20 62 | 65 63 6f 6d 65 20 65 66 |fig to b|ecome ef|
|00001510| 66 65 63 74 69 76 65 2e | 0a 20 20 20 0a 65 29 20 |fective.|. .e) |
|00001520| 46 69 6e 64 20 6f 75 74 | 20 79 6f 75 72 20 76 61 |Find out| your va|
|00001530| 6c 75 65 20 6f 66 20 4e | 50 52 4f 43 2c 20 66 72 |lue of N|PROC, fr|
|00001540| 6f 6d 20 74 68 65 20 66 | 69 6c 65 20 2f 65 74 63 |om the f|ile /etc|
|00001550| 2f 6d 61 73 74 65 72 2e | 64 2f 4b 45 52 4e 45 4c |/master.|d/KERNEL|
|00001560| 0a 20 20 20 44 65 66 69 | 6e 65 20 74 68 69 73 20 |. Defi|ne this |
|00001570| 76 61 6c 75 65 20 69 6e | 20 27 6e 69 2e 68 27 0a |value in| 'ni.h'.|
|00001580| 09 0a 0a 66 29 20 54 6f | 20 63 6f 6e 6e 65 63 74 |...f) To| connect|
|00001590| 2c 20 73 61 79 20 27 63 | 6f 6e 6e 65 63 74 20 3c |, say 'c|onnect <|
|000015a0| 68 6f 73 74 3e 27 0a 0a | 65 2e 67 2e 0a 09 63 6f |host>'..|e.g...co|
|000015b0| 6e 6e 65 63 74 20 6f 6c | 69 76 65 0a 09 0a 0a 0a |nnect ol|ive.....|
|000015c0| 42 55 47 53 0a 0a 54 54 | 59 3a 0a 59 6f 75 27 72 |BUGS..TT|Y:.You'r|
|000015d0| 65 20 6e 6f 74 20 63 6f | 6e 6e 65 63 74 65 64 20 |e not co|nnected |
|000015e0| 74 6f 20 61 20 74 74 79 | 20 61 74 20 74 68 65 20 |to a tty| at the |
|000015f0| 72 65 6d 6f 74 65 20 65 | 6e 64 2c 20 73 6f 20 63 |remote e|nd, so c|
|00001600| 65 72 74 61 69 6e 20 63 | 6f 6d 6d 61 6e 64 73 20 |ertain c|ommands |
|00001610| 61 72 65 6e 27 74 0a 67 | 6f 69 6e 67 20 74 6f 20 |aren't.g|oing to |
|00001620| 77 6f 72 6b 2e 20 53 63 | 72 65 65 6e 20 65 64 69 |work. Sc|reen edi|
|00001630| 74 6f 72 73 20 77 69 6c | 6c 20 77 6f 72 6b 2c 20 |tors wil|l work, |
|00001640| 62 75 74 20 6f 6e 6c 79 | 20 69 66 20 79 6f 75 20 |but only| if you |
|00001650| 75 73 65 20 74 68 65 6d | 20 77 68 65 6e 20 79 6f |use them| when yo|
|00001660| 75 27 72 65 0a 69 6e 20 | 27 72 61 77 27 20 6d 6f |u're.in |'raw' mo|
|00001670| 64 65 2e 0a 0a 45 4f 54 | 3a 0a 54 68 65 72 65 27 |de...EOT|:.There'|
|00001680| 73 20 6e 6f 20 77 61 79 | 20 74 6f 20 73 65 6e 64 |s no way| to send|
|00001690| 20 45 4f 54 20 74 6f 20 | 61 20 72 65 6d 6f 74 65 | EOT to |a remote|
|000016a0| 20 70 72 6f 63 65 73 73 | 2e 20 54 79 70 69 6e 67 | process|. Typing|
|000016b0| 20 5e 44 20 6f 6e 20 79 | 6f 75 72 20 74 65 72 6d | ^D on y|our term|
|000016c0| 69 6e 61 6c 20 77 69 6c | 6c 0a 63 6c 6f 73 65 20 |inal wil|l.close |
|000016d0| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 2e 20 |the conn|ection. |
|000016e0| 48 6f 77 65 76 65 72 2c | 20 77 68 65 6e 20 79 6f |However,| when yo|
|000016f0| 75 20 64 6f 20 61 20 63 | 6c 6f 73 65 2c 20 61 6c |u do a c|lose, al|
|00001700| 6c 20 79 6f 75 72 20 72 | 65 6d 6f 74 65 20 70 72 |l your r|emote pr|
|00001710| 6f 63 65 73 73 65 73 0a | 67 65 74 20 73 65 6e 74 |ocesses.|get sent|
|00001720| 20 61 20 68 61 6e 67 75 | 70 20 73 69 67 6e 61 6c | a hangu|p signal|
|00001730| 2c 20 77 68 69 63 68 20 | 75 73 75 61 6c 6c 79 20 |, which |usually |
|00001740| 61 6d 6f 75 6e 74 73 20 | 74 6f 20 74 68 65 20 73 |amounts |to the s|
|00001750| 61 6d 65 20 74 68 69 6e | 67 2e 0a 0a 45 54 48 45 |ame thin|g...ETHE|
|00001760| 52 4e 45 54 20 41 44 44 | 52 45 53 53 3a 0a 54 68 |RNET ADD|RESS:.Th|
|00001770| 65 20 65 74 68 65 72 6e | 65 74 20 61 64 64 72 65 |e ethern|et addre|
|00001780| 73 73 65 73 20 77 68 69 | 63 68 20 61 72 65 20 75 |sses whi|ch are u|
|00001790| 73 65 64 20 62 79 20 74 | 68 69 73 20 70 61 63 6b |sed by t|his pack|
|000017a0| 61 67 65 20 61 72 65 20 | 4e 4f 54 20 67 75 61 72 |age are |NOT guar|
|000017b0| 61 6e 74 65 65 64 20 74 | 6f 0a 62 65 20 75 6e 69 |anteed t|o.be uni|
|000017c0| 71 75 65 2c 20 61 6e 64 | 20 6d 61 79 20 69 6e 74 |que, and| may int|
|000017d0| 65 72 66 65 72 65 20 77 | 69 74 68 20 6f 74 68 65 |erfere w|ith othe|
|000017e0| 72 20 65 74 68 65 72 6e | 65 74 20 61 70 70 6c 69 |r ethern|et appli|
|000017f0| 63 61 74 69 6f 6e 73 2e | 20 28 33 42 6e 65 74 20 |cations.| (3Bnet |
|00001800| 61 6e 64 0a 50 43 2d 49 | 6e 74 65 72 66 61 63 65 |and.PC-I|nterface|
|00001810| 20 73 65 65 6d 20 74 6f | 20 62 65 20 4f 4b 2c 20 | seem to| be OK, |
|00001820| 74 68 6f 75 67 68 29 2e | 0a 0a 49 66 20 79 6f 75 |though).|..If you|
|00001830| 20 67 65 74 20 63 6f 6e | 66 6c 69 63 74 73 20 77 | get con|flicts w|
|00001840| 69 74 68 20 6f 74 68 65 | 72 20 70 61 63 6b 61 67 |ith othe|r packag|
|00001850| 65 73 2c 20 79 6f 75 20 | 6d 69 67 68 74 20 68 61 |es, you |might ha|
|00001860| 76 65 20 74 6f 20 63 68 | 61 6e 67 65 20 74 68 65 |ve to ch|ange the|
|00001870| 20 76 61 6c 75 65 73 0a | 69 6e 20 73 65 72 76 65 | values.|in serve|
|00001880| 72 5b 5d 20 61 6e 64 20 | 63 6c 69 65 6e 74 5b 5d |r[] and |client[]|
|00001890| 20 69 6e 20 27 6e 69 2e | 68 27 20 28 5b 31 5d 20 | in 'ni.|h' ([1] |
|000018a0| 61 6e 64 20 5b 32 5d 29 | 0a 0a 54 68 65 79 20 61 |and [2])|..They a|
|000018b0| 72 65 20 63 75 72 72 65 | 6e 74 6c 79 20 73 65 74 |re curre|ntly set|
|000018c0| 20 74 6f 20 30 78 30 32 | 20 30 78 30 32 20 2d 20 | to 0x02| 0x02 - |
|000018d0| 74 68 69 73 20 69 73 20 | 74 6f 74 61 6c 6c 79 20 |this is |totally |
|000018e0| 61 72 62 69 74 72 61 72 | 79 2c 0a 73 6f 20 66 65 |arbitrar|y,.so fe|
|000018f0| 65 6c 20 66 72 65 65 20 | 74 6f 20 63 68 61 6e 67 |el free |to chang|
|00001900| 65 20 69 74 20 61 73 20 | 79 6f 75 20 77 69 73 68 |e it as |you wish|
|00001910| 2e 0a 54 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |..The re|st of th|
|00001920| 65 20 62 79 74 65 73 20 | 69 6e 20 73 65 72 76 65 |e bytes |in serve|
|00001930| 72 5b 5d 20 61 6e 64 20 | 63 6c 69 65 6e 74 5b 5d |r[] and |client[]|
|00001940| 20 77 69 6c 6c 20 62 65 | 20 4f 4b 2e 0a 0a 52 45 | will be| OK...RE|
|00001950| 4d 4f 54 45 20 53 48 45 | 4c 4c 20 54 45 52 4d 49 |MOTE SHE|LL TERMI|
|00001960| 4e 41 54 49 4f 4e 3a 0a | 49 66 20 74 68 65 20 72 |NATION:.|If the r|
|00001970| 65 6d 6f 74 65 20 73 68 | 65 6c 6c 20 64 69 65 73 |emote sh|ell dies|
|00001980| 2c 20 66 6f 72 20 61 6e | 79 20 72 65 61 73 6f 6e |, for an|y reason|
|00001990| 2c 20 79 6f 75 20 77 6f | 6e 27 74 20 62 65 20 69 |, you wo|n't be i|
|000019a0| 6e 66 6f 72 6d 65 64 20 | 75 6e 74 69 6c 20 79 6f |nformed |until yo|
|000019b0| 75 20 0a 61 74 74 65 6d | 70 74 20 74 6f 20 73 65 |u .attem|pt to se|
|000019c0| 6e 64 20 69 74 20 73 6f | 6d 65 20 69 6e 70 75 74 |nd it so|me input|
|000019d0| 2e 0a 0a 41 44 44 49 4e | 47 20 46 45 41 54 55 52 |...ADDIN|G FEATUR|
|000019e0| 45 53 2e 0a 49 66 20 79 | 6f 75 20 70 75 74 20 61 |ES..If y|ou put a|
|000019f0| 6e 79 20 66 61 6e 63 79 | 20 62 69 74 73 20 69 6e |ny fancy| bits in|
|00001a00| 2c 20 70 6c 65 61 73 65 | 20 6c 65 74 20 6d 65 20 |, please| let me |
|00001a10| 6b 6e 6f 77 21 0a 0a 47 | 6f 6f 64 20 6c 75 63 6b |know!..G|ood luck|
|00001a20| 21 0a 0a 44 61 76 65 20 | 53 65 74 74 6c 65 2c 20 |!..Dave |Settle, |
|00001a30| 64 61 76 65 40 73 6d 62 | 2e 63 6f 2e 75 6b 0a 00 |dave@smb|.co.uk..|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 33 62 63 6f 6e 6e 65 63 | 74 2f 4d 61 6b 65 66 69 |3bconnec|t/Makefi|
|00001c10| 6c 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |le......|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001c80| 20 20 20 32 30 32 32 20 | 20 34 34 30 34 30 33 31 | 2022 | 4404031|
|00001c90| 36 35 32 20 20 20 37 34 | 31 31 00 20 00 00 00 00 |652 74|11. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 23 43 46 4c 41 47 53 20 | 3d 20 2d 67 0a 23 4c 49 |#CFLAGS |= -g.#LI|
|00001e10| 42 53 20 3d 20 2d 6c 67 | 0a 23 0a 23 20 49 66 20 |BS = -lg|.#.# If |
|00001e20| 79 6f 75 20 77 69 73 68 | 20 61 20 53 45 43 55 52 |you wish| a SECUR|
|00001e30| 45 20 76 65 72 73 69 6f | 6e 20 28 6e 6f 20 73 75 |E versio|n (no su|
|00001e40| 70 65 72 2d 75 73 65 72 | 20 73 65 72 76 65 72 20 |per-user| server |
|00001e50| 70 72 6f 63 65 73 73 65 | 73 29 2c 0a 23 20 64 65 |processe|s),.# de|
|00001e60| 66 69 6e 65 20 53 45 43 | 55 52 45 2e 20 54 68 69 |fine SEC|URE. Thi|
|00001e70| 73 20 77 69 6c 6c 20 70 | 72 65 76 65 6e 74 20 72 |s will p|revent r|
|00001e80| 6f 6f 74 20 66 72 6f 6d | 20 75 73 69 6e 67 20 27 |oot from| using '|
|00001e90| 63 6f 6e 6e 65 63 74 27 | 20 6f 72 20 27 72 63 70 |connect'| or 'rcp|
|00001ea0| 27 2e 0a 23 0a 23 20 43 | 46 4c 41 47 53 20 3d 20 |'..#.# C|FLAGS = |
|00001eb0| 2d 4f 20 2d 44 53 45 43 | 55 52 45 0a 0a 53 45 52 |-O -DSEC|URE..SER|
|00001ec0| 56 45 52 20 3d 20 73 65 | 72 76 65 72 2e 6f 20 65 |VER = se|rver.o e|
|00001ed0| 74 68 2e 6f 20 69 70 61 | 64 64 72 2e 6f 20 74 61 |th.o ipa|ddr.o ta|
|00001ee0| 6c 6b 2e 6f 20 73 75 62 | 2e 6f 20 66 69 6c 65 2e |lk.o sub|.o file.|
|00001ef0| 6f 20 66 74 70 2e 6f 0a | 43 4f 4e 4e 45 43 54 20 |o ftp.o.|CONNECT |
|00001f00| 3d 20 63 6f 6e 6e 65 63 | 74 2e 6f 20 65 74 68 2e |= connec|t.o eth.|
|00001f10| 6f 20 74 65 72 6d 69 6e | 61 74 65 2e 6f 20 69 70 |o termin|ate.o ip|
|00001f20| 61 64 64 72 2e 6f 0a 4d | 59 4e 4f 44 45 20 3d 20 |addr.o.M|YNODE = |
|00001f30| 6d 79 6e 6f 64 65 2e 6f | 20 69 70 61 64 64 72 2e |mynode.o| ipaddr.|
|00001f40| 6f 0a 52 43 50 20 3d 20 | 72 63 70 2e 6f 20 73 75 |o.RCP = |rcp.o su|
|00001f50| 62 2e 6f 20 69 70 61 64 | 64 72 2e 6f 20 65 74 68 |b.o ipad|dr.o eth|
|00001f60| 2e 6f 20 66 74 70 2e 6f | 0a 0a 44 4f 43 53 20 3d |.o ftp.o|..DOCS =|
|00001f70| 20 52 45 41 44 4d 45 20 | 4d 61 6b 65 66 69 6c 65 | README |Makefile|
|00001f80| 20 63 6f 6e 6e 65 63 74 | 2e 31 20 72 63 70 2e 31 | connect|.1 rcp.1|
|00001f90| 0a 0a 53 4f 55 52 43 45 | 53 20 3d 20 73 65 72 76 |..SOURCE|S = serv|
|00001fa0| 65 72 2e 63 20 63 6f 6e | 6e 65 63 74 2e 63 20 72 |er.c con|nect.c r|
|00001fb0| 63 70 2e 63 20 65 74 68 | 2e 63 20 69 70 61 64 64 |cp.c eth|.c ipadd|
|00001fc0| 72 2e 63 20 74 61 6c 6b | 2e 63 20 5c 0a 09 73 75 |r.c talk|.c \..su|
|00001fd0| 62 2e 63 20 66 69 6c 65 | 2e 63 20 74 65 72 6d 69 |b.c file|.c termi|
|00001fe0| 6e 61 74 65 2e 63 20 6d | 79 6e 6f 64 65 2e 63 20 |nate.c m|ynode.c |
|00001ff0| 66 74 70 2e 63 20 6e 69 | 2e 68 20 66 74 70 2e 68 |ftp.c ni|.h ftp.h|
|00002000| 0a 0a 61 6c 6c 3a 20 73 | 65 72 76 65 72 20 63 6f |..all: s|erver co|
|00002010| 6e 6e 65 63 74 20 6d 79 | 6e 6f 64 65 20 72 63 70 |nnect my|node rcp|
|00002020| 0a 0a 6c 69 6e 74 3a 20 | 0a 09 6c 69 6e 74 20 24 |..lint: |..lint $|
|00002030| 7b 53 45 52 56 45 52 3a | 2e 6f 3d 2e 63 7d 0a 09 |{SERVER:|.o=.c}..|
|00002040| 6c 69 6e 74 20 24 7b 43 | 4f 4e 4e 45 43 54 3a 2e |lint ${C|ONNECT:.|
|00002050| 6f 3d 2e 63 7d 0a 09 6c | 69 6e 74 20 24 7b 52 43 |o=.c}..l|int ${RC|
|00002060| 50 3a 2e 6f 3d 2e 63 7d | 0a 0a 24 7b 53 45 52 56 |P:.o=.c}|..${SERV|
|00002070| 45 52 7d 20 24 7b 43 4f | 4e 4e 45 43 54 7d 20 24 |ER} ${CO|NNECT} $|
|00002080| 7b 52 43 50 7d 20 3a 20 | 6e 69 2e 68 0a 0a 72 63 |{RCP} : |ni.h..rc|
|00002090| 70 2e 6f 20 66 74 70 2e | 6f 20 66 69 6c 65 2e 6f |p.o ftp.|o file.o|
|000020a0| 20 3a 20 66 74 70 2e 68 | 0a 0a 73 65 72 76 65 72 | : ftp.h|..server|
|000020b0| 3a 20 24 7b 53 45 52 56 | 45 52 7d 0a 09 63 63 20 |: ${SERV|ER}..cc |
|000020c0| 2d 6f 20 73 65 72 76 65 | 72 20 24 7b 53 45 52 56 |-o serve|r ${SERV|
|000020d0| 45 52 7d 20 24 7b 4c 49 | 42 53 7d 0a 09 0a 63 6f |ER} ${LI|BS}...co|
|000020e0| 6e 6e 65 63 74 3a 20 24 | 7b 43 4f 4e 4e 45 43 54 |nnect: $|{CONNECT|
|000020f0| 7d 0a 09 63 63 20 2d 6f | 20 63 6f 6e 6e 65 63 74 |}..cc -o| connect|
|00002100| 20 24 7b 43 4f 4e 4e 45 | 43 54 7d 20 24 7b 4c 49 | ${CONNE|CT} ${LI|
|00002110| 42 53 7d 0a 09 0a 72 63 | 70 3a 20 24 7b 52 43 50 |BS}...rc|p: ${RCP|
|00002120| 7d 0a 09 63 63 20 2d 6f | 20 72 63 70 20 24 7b 52 |}..cc -o| rcp ${R|
|00002130| 43 50 7d 20 24 7b 4c 49 | 42 53 7d 0a 0a 6d 79 6e |CP} ${LI|BS}..myn|
|00002140| 6f 64 65 3a 20 24 7b 4d | 59 4e 4f 44 45 7d 0a 09 |ode: ${M|YNODE}..|
|00002150| 63 63 20 2d 6f 20 6d 79 | 6e 6f 64 65 20 24 7b 4d |cc -o my|node ${M|
|00002160| 59 4e 4f 44 45 7d 20 24 | 7b 4c 49 42 53 7d 0a 0a |YNODE} $|{LIBS}..|
|00002170| 73 68 61 72 3a 0a 09 73 | 68 61 72 20 2d 63 76 20 |shar:..s|har -cv |
|00002180| 24 7b 44 4f 43 53 7d 20 | 24 7b 53 4f 55 52 43 45 |${DOCS} |${SOURCE|
|00002190| 53 7d 20 3e 20 63 6f 6e | 6e 65 63 74 2e 73 68 61 |S} > con|nect.sha|
|000021a0| 72 0a 0a 69 6e 73 74 61 | 6c 6c 3a 0a 09 69 66 20 |r..insta|ll:..if |
|000021b0| 5b 20 2d 66 20 2f 75 73 | 72 2f 6c 69 62 2f 73 65 |[ -f /us|r/lib/se|
|000021c0| 72 76 65 72 20 5d 20 3b | 20 74 68 65 6e 20 5c 0a |rver ] ;| then \.|
|000021d0| 09 09 6d 76 20 2f 75 73 | 72 2f 6c 69 62 2f 73 65 |..mv /us|r/lib/se|
|000021e0| 72 76 65 72 20 2f 75 73 | 72 2f 6c 69 62 2f 73 65 |rver /us|r/lib/se|
|000021f0| 72 76 65 72 2e 6f 6c 64 | 20 3b 20 66 69 0a 09 63 |rver.old| ; fi..c|
|00002200| 70 20 73 65 72 76 65 72 | 20 2f 75 73 72 2f 6c 69 |p server| /usr/li|
|00002210| 62 0a 20 73 68 69 70 70 | 65 64 20 61 73 20 74 79 |b. shipp|ed as ty|
|00002220| 70 65 64 2c 0a 72 65 6d | 6f 74 65 20 65 6e 64 20 |ped,.rem|ote end |
|00002230| 64 6f 69 6e 67 20 74 68 | 65 20 65 63 68 6f 69 6e |doing th|e echoin|
|00002240| 67 29 20 62 79 20 73 65 | 6e 64 69 6e 67 20 61 20 |g) by se|nding a |
|00002250| 51 55 49 54 20 73 69 67 | 6e 61 6c 2e 20 54 68 69 |QUIT sig|nal. Thi|
|00002260| 73 20 61 6c 6c 6f 77 73 | 20 79 6f 75 20 74 6f 0a |s allows| you to.|
|00002270| 75 73 65 20 73 63 72 65 | 65 6e 20 65 64 69 74 6f |use scre|en edito|
|00002280| 72 73 20 6f 6e 20 74 68 | 65 20 72 65 6d 6f 74 65 |rs on th|e remote|
|00002290| 20 6d 61 63 68 69 6e 65 | 2e 0a 41 20 66 75 72 74 | machine|..A furt|
|000022a0| 68 65 72 20 51 55 49 54 | 20 73 69 67 6e 61 6c 20 |her QUIT| signal |
|000022b0| 67 65 74 73 20 79 6f 75 | 20 62 61 63 6b 20 69 6e |gets you| back in|
|000022c0| 74 6f 20 27 63 6f 6f 6b | 65 64 27 20 6d 6f 64 65 |to 'cook|ed' mode|
|000022d0| 20 2d 20 74 68 69 73 20 | 69 73 20 69 6e 64 69 63 | - this |is indic|
|000022e0| 61 74 65 64 20 62 79 0a | 27 5b 63 6f 6f 6b 65 64 |ated by.|'[cooked|
|000022f0| 5d 27 20 61 70 70 65 61 | 72 69 6e 67 20 6f 6e 20 |]' appea|ring on |
|00002300| 79 6f 75 72 20 74 65 72 | 6d 69 6e 61 6c 2e 20 55 |your ter|minal. U|
|00002310| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 74 68 |nfortuna|tely, th|
|00002320| 69 73 20 6d 65 61 6e 73 | 20 74 68 61 74 20 79 6f |is means| that yo|
|00002330| 75 0a 63 61 6e 27 74 20 | 73 65 6e 64 20 51 55 49 |u.can't |send QUI|
|00002340| 54 20 73 69 67 6e 61 6c | 73 20 74 6f 20 70 72 6f |T signal|s to pro|
|00002350| 63 65 73 73 65 73 20 77 | 68 69 63 68 20 79 6f 75 |cesses w|hich you|
|00002360| 20 73 74 61 72 74 20 6f | 6e 20 74 68 65 20 72 65 | start o|n the re|
|00002370| 6d 6f 74 65 20 68 6f 73 | 74 2e 0a 53 6f 72 72 79 |mote hos|t..Sorry|
|00002380| 20 61 62 6f 75 74 20 74 | 68 69 73 2e 20 49 6e 74 | about t|his. Int|
|00002390| 65 72 72 75 70 74 73 20 | 67 65 74 20 70 72 6f 63 |errupts |get proc|
|000023a0| 65 73 73 65 64 20 4f 4b | 2c 20 74 68 6f 75 67 68 |essed OK|, though|
|000023b0| 2e 0a 0a 59 6f 75 20 63 | 6c 6f 73 65 20 74 68 65 |...You c|lose the|
|000023c0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 62 79 20 74 | connect|ion by t|
|000023d0| 79 70 69 6e 67 20 5e 44 | 20 61 74 20 79 6f 75 72 |yping ^D| at your|
|000023e0| 20 74 65 72 6d 69 6e 61 | 6c 20 28 69 6e 20 63 6f | termina|l (in co|
|000023f0| 6f 6b 65 64 20 6d 6f 64 | 65 29 20 2d 0a 69 66 20 |oked mod|e) -.if |
|00002400| 33 62 63 6f 6e 6e 65 63 | 74 2f 63 6f 6e 6e 65 63 |3bconnec|t/connec|
|00002410| 74 2e 31 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |t.1.....|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002480| 20 20 20 36 37 33 33 20 | 20 34 34 30 34 30 33 31 | 6733 | 4404031|
|00002490| 36 35 34 20 20 20 37 35 | 30 33 00 20 00 00 00 00 |654 75|03. ....|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 2e 54 48 20 43 4f 4e 4e | 45 43 54 20 31 20 6c 6f |.TH CONN|ECT 1 lo|
|00002610| 63 61 6c 0a 2e 53 48 20 | 4e 41 4d 45 0a 63 6f 6e |cal..SH |NAME.con|
|00002620| 6e 65 63 74 0a 2e 53 48 | 20 53 59 4e 4f 50 53 49 |nect..SH| SYNOPSI|
|00002630| 53 0a 2e 42 20 22 63 6f | 6e 6e 65 63 74 20 5b 2d |S..B "co|nnect [-|
|00002640| 6c 5d 20 72 65 6d 6f 74 | 65 5f 68 6f 73 74 22 0a |l] remot|e_host".|
|00002650| 2e 50 50 0a 2e 53 48 20 | 44 45 53 43 52 49 50 54 |.PP..SH |DESCRIPT|
|00002660| 49 4f 4e 0a 2e 49 20 63 | 6f 6e 6e 65 63 74 0a 61 |ION..I c|onnect.a|
|00002670| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 63 6f 6e |llows yo|u to con|
|00002680| 6e 65 63 74 20 74 6f 20 | 61 20 72 65 6d 6f 74 65 |nect to |a remote|
|00002690| 20 68 6f 73 74 20 63 6f | 6e 6e 65 63 74 65 64 20 | host co|nnected |
|000026a0| 76 69 61 20 33 42 4e 45 | 54 2c 20 61 6e 64 20 74 |via 3BNE|T, and t|
|000026b0| 6f 20 73 74 61 72 74 20 | 61 0a 72 65 6d 6f 74 65 |o start |a.remote|
|000026c0| 20 73 68 65 6c 6c 20 6f | 6e 20 74 68 61 74 20 6d | shell o|n that m|
|000026d0| 61 63 68 69 6e 65 2e 20 | 54 68 65 20 73 68 65 6c |achine. |The shel|
|000026e0| 6c 20 73 74 61 72 74 65 | 64 20 69 73 20 74 68 65 |l starte|d is the|
|000026f0| 20 6f 6e 65 20 73 70 65 | 63 69 66 69 65 64 20 62 | one spe|cified b|
|00002700| 79 20 0a 79 6f 75 72 20 | 53 48 45 4c 4c 20 76 61 |y .your |SHELL va|
|00002710| 72 69 61 62 6c 65 2c 20 | 6f 72 20 22 2f 62 69 6e |riable, |or "/bin|
|00002720| 2f 73 68 22 20 69 66 20 | 74 68 69 73 20 69 73 20 |/sh" if |this is |
|00002730| 6e 6f 74 20 73 65 74 2e | 0a 2e 50 50 0a 49 6e 69 |not set.|..PP.Ini|
|00002740| 74 69 61 6c 6c 79 2c 20 | 61 6c 6c 20 74 68 65 20 |tially, |all the |
|00002750| 65 63 68 6f 69 6e 67 20 | 69 73 20 64 6f 6e 65 20 |echoing |is done |
|00002760| 62 79 20 74 68 65 20 6c | 6f 63 61 6c 20 6d 61 63 |by the l|ocal mac|
|00002770| 68 69 6e 65 2c 20 61 6e | 64 20 69 6e 70 75 74 20 |hine, an|d input |
|00002780| 69 73 20 0a 74 72 61 6e | 73 6d 69 74 74 65 64 20 |is .tran|smitted |
|00002790| 6c 69 6e 65 20 62 79 20 | 6c 69 6e 65 20 28 63 6f |line by |line (co|
|000027a0| 6f 6b 65 64 20 6d 6f 64 | 65 29 2e 20 49 66 20 79 |oked mod|e). If y|
|000027b0| 6f 75 20 77 69 73 68 20 | 74 68 65 20 72 65 6d 6f |ou wish |the remo|
|000027c0| 74 65 20 6d 61 63 68 69 | 6e 65 20 74 6f 0a 64 6f |te machi|ne to.do|
|000027d0| 20 74 68 65 20 65 63 68 | 6f 69 6e 67 20 28 65 2e | the ech|oing (e.|
|000027e0| 67 2e 20 79 6f 75 27 72 | 65 20 72 75 6e 6e 69 6e |g. you'r|e runnin|
|000027f0| 67 20 61 20 73 63 72 65 | 65 6e 20 65 64 69 74 6f |g a scre|en edito|
|00002800| 72 20 74 68 65 72 65 29 | 2c 20 79 6f 75 20 6d 75 |r there)|, you mu|
|00002810| 73 74 20 70 75 74 0a 79 | 6f 75 72 20 74 65 72 6d |st put.y|our term|
|00002820| 69 6e 61 6c 20 69 6e 20 | 72 61 77 20 6d 6f 64 65 |inal in |raw mode|
|00002830| 2c 20 62 79 20 73 65 6e | 64 69 6e 67 20 61 20 51 |, by sen|ding a Q|
|00002840| 55 49 54 20 73 69 67 6e | 61 6c 2e 0a 2e 50 50 0a |UIT sign|al...PP.|
|00002850| 49 6e 20 72 61 77 20 6d | 6f 64 65 2c 20 65 61 63 |In raw m|ode, eac|
|00002860| 68 20 63 68 61 72 61 63 | 74 65 72 20 69 73 20 73 |h charac|ter is s|
|00002870| 65 6e 64 20 61 73 20 73 | 6f 6f 6e 20 61 73 20 69 |end as s|oon as i|
|00002880| 74 20 69 73 20 74 79 70 | 65 64 2c 20 61 6e 64 20 |t is typ|ed, and |
|00002890| 6e 6f 20 65 63 68 6f 69 | 6e 67 0a 69 73 20 70 65 |no echoi|ng.is pe|
|000028a0| 72 66 6f 72 6d 65 64 20 | 62 79 20 74 68 65 20 6c |rformed |by the l|
|000028b0| 6f 63 61 6c 20 6d 61 63 | 68 69 6e 65 2e 20 41 20 |ocal mac|hine. A |
|000028c0| 66 75 72 74 68 65 72 20 | 51 55 49 54 20 73 69 67 |further |QUIT sig|
|000028d0| 6e 61 6c 20 77 69 6c 6c | 20 72 65 76 65 72 74 20 |nal will| revert |
|000028e0| 74 6f 0a 63 6f 6f 6b 65 | 64 20 6d 6f 64 65 20 61 |to.cooke|d mode a|
|000028f0| 67 61 69 6e 20 28 69 2e | 65 2e 20 51 55 49 54 20 |gain (i.|e. QUIT |
|00002900| 63 61 6e 20 62 65 20 75 | 73 65 64 20 74 6f 20 74 |can be u|sed to t|
|00002910| 6f 67 67 6c 65 20 62 65 | 74 77 65 65 6e 20 72 61 |oggle be|tween ra|
|00002920| 77 20 61 6e 64 20 63 6f | 6f 6b 65 64 20 6d 6f 64 |w and co|oked mod|
|00002930| 65 73 29 0a 2e 50 50 0a | 54 68 65 20 63 6f 6e 6e |es)..PP.|The conn|
|00002940| 65 63 74 69 6f 6e 20 63 | 61 6e 20 62 65 20 63 6c |ection c|an be cl|
|00002950| 6f 73 65 64 20 62 79 20 | 74 79 70 69 6e 67 20 45 |osed by |typing E|
|00002960| 4f 54 20 69 6e 20 63 6f | 6f 6b 65 64 20 6d 6f 64 |OT in co|oked mod|
|00002970| 65 2e 0a 2e 50 50 0a 2e | 53 48 20 22 4c 4f 47 49 |e...PP..|SH "LOGI|
|00002980| 4e 20 4f 50 54 49 4f 4e | 22 0a 2e 50 50 0a 49 66 |N OPTION|"..PP.If|
|00002990| 20 74 68 65 20 5c 66 42 | 2d 6c 5c 66 52 20 6f 70 | the \fB|-l\fR op|
|000029a0| 74 69 6f 6e 20 69 73 20 | 73 70 65 63 69 66 69 65 |tion is |specifie|
|000029b0| 64 2c 20 61 6e 64 20 69 | 66 20 50 43 2d 49 4e 54 |d, and i|f PC-INT|
|000029c0| 45 52 46 41 43 45 20 69 | 73 20 69 6e 73 74 61 6c |ERFACE i|s instal|
|000029d0| 6c 65 64 20 6f 6e 20 74 | 68 65 0a 72 65 6d 6f 74 |led on t|he.remot|
|000029e0| 65 20 68 6f 73 74 2c 20 | 74 68 65 6e 20 79 6f 75 |e host, |then you|
|000029f0| 20 77 69 6c 6c 20 62 65 | 20 63 6f 6e 6e 65 63 74 | will be| connect|
|00002a00| 65 64 20 74 6f 20 6f 6e | 65 20 6f 66 20 74 68 65 |ed to on|e of the|
|00002a10| 20 70 73 65 75 64 6f 2d | 74 74 79 73 20 73 75 70 | pseudo-|ttys sup|
|00002a20| 70 6f 72 74 65 64 0a 62 | 79 20 64 72 69 76 65 72 |ported.b|y driver|
|00002a30| 2e 0a 2e 50 50 0a 54 68 | 69 73 20 6f 70 74 69 6f |...PP.Th|is optio|
|00002a40| 6e 20 67 69 76 65 73 20 | 79 6f 75 20 61 20 72 65 |n gives |you a re|
|00002a50| 6d 6f 74 65 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |mote con|nection |
|00002a60| 77 68 69 63 68 20 6c 6f | 6f 6b 73 20 6d 6f 72 65 |which lo|oks more|
|00002a70| 20 6c 69 6b 65 20 61 20 | 64 69 72 65 63 74 0a 74 | like a |direct.t|
|00002a80| 74 79 20 6c 69 6e 6b 2c | 20 61 6e 64 20 61 75 74 |ty link,| and aut|
|00002a90| 6f 6d 61 74 69 63 61 6c | 6c 79 20 70 75 74 73 20 |omatical|ly puts |
|00002aa0| 79 6f 75 20 69 6e 20 27 | 72 61 77 27 20 6d 6f 64 |you in '|raw' mod|
|00002ab0| 65 2e 20 0a 2e 50 50 0a | 4f 6e 20 74 68 65 20 6f |e. ..PP.|On the o|
|00002ac0| 74 68 65 72 20 68 61 6e | 64 2c 20 79 6f 75 20 68 |ther han|d, you h|
|00002ad0| 61 76 65 20 74 6f 20 67 | 6f 20 74 68 72 6f 75 67 |ave to g|o throug|
|00002ae0| 68 20 61 6c 6c 20 74 68 | 65 20 62 6f 74 68 65 72 |h all th|e bother|
|00002af0| 20 6f 66 20 6c 6f 67 67 | 69 6e 67 20 6f 6e 2c 0a | of logg|ing on,.|
|00002b00| 77 68 69 63 68 20 74 61 | 6b 65 73 20 6d 6f 72 65 |which ta|kes more|
|00002b10| 20 74 69 6d 65 2e 0a 2e | 50 50 0a 55 73 69 6e 67 | time...|PP.Using|
|00002b20| 20 74 68 65 20 5c 66 42 | 2d 69 5c 66 52 20 6f 70 | the \fB|-i\fR op|
|00002b30| 74 69 6f 6e 20 5c 66 42 | 6f 6e 6c 79 5c 66 52 2c |tion \fB|only\fR,|
|00002b40| 20 74 68 65 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 | the con|nection |
|00002b50| 69 73 20 63 6c 6f 73 65 | 64 20 62 79 20 61 20 51 |is close|d by a Q|
|00002b60| 55 49 54 0a 73 69 67 6e | 61 6c 2e 0a 2e 53 48 20 |UIT.sign|al...SH |
|00002b70| 53 45 43 55 52 49 54 59 | 0a 54 68 65 20 72 65 6d |SECURITY|.The rem|
|00002b80| 6f 74 65 20 73 65 72 76 | 65 72 20 77 69 6c 6c 20 |ote serv|er will |
|00002b90| 6f 6e 6c 79 20 61 63 63 | 65 70 74 20 61 20 72 65 |only acc|ept a re|
|00002ba0| 71 75 65 73 74 20 74 6f | 20 73 74 61 72 74 20 61 |quest to| start a|
|00002bb0| 20 73 68 65 6c 6c 20 69 | 66 20 79 6f 75 72 20 6c | shell i|f your l|
|00002bc0| 6f 67 69 6e 0a 6e 61 6d | 65 20 69 73 20 6b 6e 6f |ogin.nam|e is kno|
|00002bd0| 77 6e 20 6f 6e 20 74 68 | 65 20 72 65 6d 6f 74 65 |wn on th|e remote|
|00002be0| 20 6d 61 63 68 69 6e 65 | 2c 20 61 6e 64 20 79 6f | machine|, and yo|
|00002bf0| 75 72 20 72 65 6d 6f 74 | 65 20 75 69 64 20 6d 61 |ur remot|e uid ma|
|00002c00| 74 63 68 65 73 20 79 6f | 75 72 20 6c 6f 63 61 6c |tches yo|ur local|
|00002c10| 20 75 69 64 2e 0a 2e 50 | 50 0a 54 68 65 20 75 69 | uid...P|P.The ui|
|00002c20| 64 20 75 73 65 64 20 74 | 6f 20 73 74 61 72 74 20 |d used t|o start |
|00002c30| 74 68 65 20 72 65 6d 6f | 74 65 20 70 72 6f 63 65 |the remo|te proce|
|00002c40| 73 73 20 69 73 20 79 6f | 75 72 20 5c 66 42 72 65 |ss is yo|ur \fBre|
|00002c50| 61 6c 5c 66 52 20 75 69 | 64 2c 20 6e 6f 74 20 79 |al\fR ui|d, not y|
|00002c60| 6f 75 72 0a 65 66 66 65 | 63 74 69 76 65 20 75 69 |our.effe|ctive ui|
|00002c70| 64 2c 20 73 6f 20 74 68 | 61 74 20 65 76 65 6e 20 |d, so th|at even |
|00002c80| 69 66 20 79 6f 75 27 72 | 65 20 72 75 6e 6e 69 6e |if you'r|e runnin|
|00002c90| 67 20 73 75 28 31 29 2c | 20 79 6f 75 72 20 72 65 |g su(1),| your re|
|00002ca0| 6d 6f 74 65 20 70 72 6f | 63 65 73 73 0a 77 69 6c |mote pro|cess.wil|
|00002cb0| 6c 20 6e 6f 74 20 62 65 | 20 72 6f 6f 74 2e 0a 2e |l not be| root...|
|00002cc0| 50 50 0a 54 68 65 20 6f | 6e 6c 79 20 77 61 79 20 |PP.The o|nly way |
|00002cd0| 79 6f 75 20 63 61 6e 20 | 6c 6f 67 69 6e 20 74 6f |you can |login to|
|00002ce0| 20 61 20 72 65 6d 6f 74 | 65 20 6d 61 63 68 69 6e | a remot|e machin|
|00002cf0| 65 20 61 73 20 72 6f 6f | 74 2c 20 69 73 20 74 6f |e as roo|t, is to|
|00002d00| 20 6c 6f 67 69 6e 20 74 | 6f 20 79 6f 75 72 0a 6c | login t|o your.l|
|00002d10| 6f 63 61 6c 20 6d 61 63 | 68 69 6e 65 20 61 73 20 |ocal mac|hine as |
|00002d20| 72 6f 6f 74 20 28 6f 6e | 20 74 68 65 20 63 6f 6e |root (on| the con|
|00002d30| 73 6f 6c 65 29 2c 20 61 | 6e 64 20 5c 66 49 63 6f |sole), a|nd \fIco|
|00002d40| 6e 6e 65 63 74 5c 66 52 | 20 66 72 6f 6d 20 74 68 |nnect\fR| from th|
|00002d50| 65 72 65 2e 0a 2e 50 50 | 0a 57 68 65 6e 20 74 68 |ere...PP|.When th|
|00002d60| 65 20 72 65 6d 6f 74 65 | 20 70 72 6f 63 65 73 73 |e remote| process|
|00002d70| 20 69 74 20 73 74 61 72 | 74 65 64 2c 20 69 74 20 | it star|ted, it |
|00002d80| 77 69 6c 6c 20 68 61 76 | 65 20 79 6f 75 72 20 75 |will hav|e your u|
|00002d90| 69 64 2c 20 74 68 65 20 | 67 69 64 20 61 73 73 6f |id, the |gid asso|
|00002da0| 73 63 69 61 74 65 64 0a | 77 69 74 68 20 74 68 65 |sciated.|with the|
|00002db0| 20 5c 66 42 72 65 6d 6f | 74 65 5c 66 52 20 75 69 | \fBremo|te\fR ui|
|00002dc0| 64 2c 20 61 6e 64 20 77 | 69 6c 6c 20 62 65 20 6c |d, and w|ill be l|
|00002dd0| 6f 63 61 74 65 64 20 69 | 6e 20 79 6f 75 72 20 72 |ocated i|n your r|
|00002de0| 65 6d 6f 74 65 20 68 6f | 6d 65 20 64 69 72 65 63 |emote ho|me direc|
|00002df0| 74 6f 72 79 2e 0a 2e 53 | 48 20 22 48 4f 53 54 20 |tory...S|H "HOST |
|00002e00| 4d 41 50 50 49 4e 47 22 | 0a 54 68 65 20 6d 61 70 |MAPPING"|.The map|
|00002e10| 70 69 6e 67 20 62 65 74 | 77 65 65 6e 20 68 6f 73 |ping bet|ween hos|
|00002e20| 74 20 6e 61 6d 65 73 20 | 61 6e 64 20 65 74 68 65 |t names |and ethe|
|00002e30| 72 6e 65 74 20 61 64 64 | 72 65 73 73 65 73 20 69 |rnet add|resses i|
|00002e40| 73 20 64 65 66 69 6e 65 | 64 20 69 6e 20 74 68 65 |s define|d in the|
|00002e50| 0a 66 69 6c 65 20 27 2f | 75 73 72 2f 6c 69 62 2f |.file '/|usr/lib/|
|00002e60| 65 74 68 65 72 6e 65 74 | 2e 61 64 64 72 27 2e 0a |ethernet|.addr'..|
|00002e70| 2e 50 50 0a 54 68 65 20 | 66 6f 72 6d 61 74 20 6f |.PP.The |format o|
|00002e80| 66 20 74 68 65 20 66 69 | 6c 65 20 69 73 3a 0a 2e |f the fi|le is:..|
|00002e90| 50 50 0a 09 09 3c 68 6f | 73 74 6e 61 6d 65 3e 20 |PP...<ho|stname> |
|00002ea0| 3c 49 44 3e 0a 2e 50 50 | 0a 65 2e 67 2e 0a 2e 50 |<ID>..PP|.e.g...P|
|00002eb0| 50 0a 09 09 6f 6c 69 76 | 65 09 34 35 0a 09 09 6f |P...oliv|e.45...o|
|00002ec0| 73 63 61 72 09 66 32 0a | 2e 50 50 0a 41 73 20 73 |scar.f2.|.PP.As s|
|00002ed0| 68 69 70 70 65 64 2c 20 | 74 68 65 20 70 61 63 6b |hipped, |the pack|
|00002ee0| 61 67 65 20 65 78 70 65 | 63 74 73 20 65 61 63 68 |age expe|cts each|
|00002ef0| 20 68 6f 73 74 20 74 6f | 20 68 61 76 65 20 61 20 | host to| have a |
|00002f00| 70 68 79 73 69 63 61 6c | 20 65 74 68 65 72 6e 65 |physical| etherne|
|00002f10| 74 0a 61 64 64 72 65 73 | 73 20 77 68 69 63 68 20 |t.addres|s which |
|00002f20| 69 73 20 75 6e 69 71 75 | 65 20 5c 66 42 69 6e 20 |is uniqu|e \fBin |
|00002f30| 74 68 65 20 6c 61 73 74 | 20 28 6c 73 62 29 20 62 |the last| (lsb) b|
|00002f40| 79 74 65 5c 66 52 2e 0a | 2e 50 50 0a 54 68 65 20 |yte\fR..|.PP.The |
|00002f50| 61 64 64 72 65 73 73 65 | 73 20 77 68 69 63 68 20 |addresse|s which |
|00002f60| 61 72 65 20 75 73 65 64 | 20 61 72 65 3a 0a 2e 50 |are used| are:..P|
|00002f70| 50 0a 09 09 58 58 2e 59 | 59 2e 59 59 2e 30 30 2e |P...XX.Y|Y.YY.00.|
|00002f80| 30 30 2e 48 48 09 53 65 | 72 76 65 72 0a 09 09 58 |00.HH.Se|rver...X|
|00002f90| 58 2e 59 59 2e 59 59 2e | 50 49 44 2e 50 49 44 2e |X.YY.YY.|PID.PID.|
|00002fa0| 48 48 09 43 6c 69 65 6e | 74 2f 52 65 6d 6f 74 65 |HH.Clien|t/Remote|
|00002fb0| 20 50 72 6f 63 65 73 73 | 2e 0a 2e 50 50 0a 54 68 | Process|...PP.Th|
|00002fc0| 65 20 76 61 6c 75 65 73 | 20 6f 66 20 58 58 20 61 |e values| of XX a|
|00002fd0| 6e 64 20 59 59 20 61 72 | 65 20 74 6f 74 61 6c 6c |nd YY ar|e totall|
|00002fe0| 79 20 61 72 62 69 74 72 | 61 72 79 2c 20 61 6e 64 |y arbitr|ary, and|
|00002ff0| 20 79 6f 75 20 63 61 6e | 20 63 68 61 6e 67 65 20 | you can| change |
|00003000| 74 68 65 6d 20 69 66 0a | 79 6f 75 20 77 69 73 68 |them if.|you wish|
|00003010| 2e 20 54 68 65 20 76 61 | 6c 75 65 20 6f 66 20 48 |. The va|lue of H|
|00003020| 48 20 6d 75 73 74 20 62 | 65 20 64 69 66 66 65 72 |H must b|e differ|
|00003030| 65 6e 74 20 66 6f 72 20 | 65 61 63 68 20 68 6f 73 |ent for |each hos|
|00003040| 74 2c 20 61 6e 64 20 69 | 73 20 74 61 6b 65 6e 20 |t, and i|s taken |
|00003050| 66 72 6f 6d 0a 74 68 65 | 20 4c 53 42 20 6f 66 20 |from.the| LSB of |
|00003060| 74 68 65 20 68 6f 73 74 | 20 70 68 79 73 69 63 61 |the host| physica|
|00003070| 6c 20 65 74 68 65 72 6e | 65 74 20 61 64 64 72 65 |l ethern|et addre|
|00003080| 73 73 2e 20 49 66 20 74 | 68 69 73 20 64 6f 65 73 |ss. If t|his does|
|00003090| 20 6e 6f 74 20 70 72 6f | 64 75 63 65 0a 61 20 75 | not pro|duce.a u|
|000030a0| 6e 69 71 75 65 20 76 61 | 6c 75 65 20 66 6f 72 20 |nique va|lue for |
|000030b0| 65 61 63 68 20 73 65 72 | 76 65 72 2c 20 74 68 65 |each ser|ver, the|
|000030c0| 6e 20 79 6f 75 20 63 61 | 6e 20 63 68 6f 6f 73 65 |n you ca|n choose|
|000030d0| 20 74 6f 20 74 61 6b 65 | 20 69 74 20 66 72 6f 6d | to take| it from|
|000030e0| 20 61 6e 79 20 6f 74 68 | 65 72 0a 62 79 74 65 20 | any oth|er.byte |
|000030f0| 6f 66 20 74 68 65 20 70 | 68 79 73 69 63 61 6c 20 |of the p|hysical |
|00003100| 61 64 64 72 65 73 73 2c | 20 62 79 20 72 65 64 65 |address,| by rede|
|00003110| 66 69 6e 69 6e 67 20 4c | 53 42 20 28 6e 69 2e 68 |fining L|SB (ni.h|
|00003120| 29 20 74 6f 20 70 69 63 | 6b 20 61 6e 79 20 6f 74 |) to pic|k any ot|
|00003130| 68 65 72 20 62 79 74 65 | 2e 0a 2e 53 48 20 45 58 |her byte|...SH EX|
|00003140| 41 4d 50 4c 45 53 0a 2e | 50 50 0a 63 6f 6e 6e 65 |AMPLES..|PP.conne|
|00003150| 63 74 20 2d 6c 20 6f 6c | 69 76 65 0a 2e 50 50 0a |ct -l ol|ive..PP.|
|00003160| 43 6f 6e 6e 65 63 74 20 | 74 6f 20 61 20 50 43 2d |Connect |to a PC-|
|00003170| 49 4e 54 45 52 46 41 43 | 45 20 70 73 65 75 64 6f |INTERFAC|E pseudo|
|00003180| 2d 74 74 79 20 6f 6e 20 | 68 6f 73 74 20 27 6f 6c |-tty on |host 'ol|
|00003190| 69 76 65 27 2e 0a 2e 50 | 50 0a 63 6f 6e 6e 65 63 |ive'...P|P.connec|
|000031a0| 74 20 6f 73 63 61 72 0a | 2e 50 50 0a 43 6f 6e 6e |t oscar.|.PP.Conn|
|000031b0| 65 63 74 20 74 6f 20 61 | 20 72 65 6d 6f 74 65 20 |ect to a| remote |
|000031c0| 73 68 65 6c 6c 20 6f 6e | 20 68 6f 73 74 20 27 6f |shell on| host 'o|
|000031d0| 73 63 61 72 27 0a 2e 50 | 50 0a 2e 53 48 20 46 49 |scar'..P|P..SH FI|
|000031e0| 4c 45 53 0a 2f 64 65 76 | 2f 6e 69 09 09 09 09 45 |LES./dev|/ni....E|
|000031f0| 74 68 65 72 6e 65 74 20 | 69 6e 74 65 72 66 61 63 |thernet |interfac|
|00003200| 65 2e 0a 2e 50 50 0a 2f | 64 65 76 2f 70 74 74 79 |e...PP./|dev/ptty|
|00003210| 3f 3f 09 09 09 50 43 2d | 49 4e 54 45 52 46 41 43 |??...PC-|INTERFAC|
|00003220| 45 20 70 73 65 75 64 6f | 2d 74 74 79 73 0a 2e 50 |E pseudo|-ttys..P|
|00003230| 50 0a 2f 75 73 72 2f 6c | 69 62 2f 65 74 68 65 72 |P./usr/l|ib/ether|
|00003240| 6e 65 74 2e 61 64 64 09 | 09 4c 69 73 74 20 6f 66 |net.add.|.List of|
|00003250| 20 68 6f 73 74 73 2e 0a | 2e 50 50 0a 2e 53 48 20 | hosts..|.PP..SH |
|00003260| 53 45 45 20 41 4c 53 4f | 0a 2e 53 48 20 42 55 47 |SEE ALSO|..SH BUG|
|00003270| 53 0a 59 6f 75 20 63 61 | 6e 27 74 20 73 65 6e 64 |S.You ca|n't send|
|00003280| 20 51 55 49 54 20 73 69 | 67 6e 61 6c 73 20 74 6f | QUIT si|gnals to|
|00003290| 20 72 65 6d 6f 74 65 20 | 70 72 6f 63 65 73 73 65 | remote |processe|
|000032a0| 73 2c 20 27 63 6f 73 20 | 51 55 49 54 20 64 6f 65 |s, 'cos |QUIT doe|
|000032b0| 73 20 76 61 72 69 6f 75 | 73 20 74 68 69 6e 67 73 |s variou|s things|
|000032c0| 0a 74 6f 20 74 68 65 20 | 63 6f 6e 6e 65 63 74 69 |.to the |connecti|
|000032d0| 6f 6e 2e 0a 2e 50 50 0a | 54 68 65 20 76 61 6c 75 |on...PP.|The valu|
|000032e0| 65 73 20 6f 66 20 58 58 | 20 61 6e 64 20 59 59 20 |es of XX| and YY |
|000032f0| 6d 61 79 20 63 6f 6e 66 | 6c 69 63 74 20 77 69 74 |may conf|lict wit|
|00003300| 68 20 6f 74 68 65 72 20 | 61 70 70 6c 69 63 61 74 |h other |applicat|
|00003310| 69 6f 6e 73 2e 0a 2e 50 | 50 0a 54 68 65 72 65 27 |ions...P|P.There'|
|00003320| 73 20 6e 6f 20 67 75 61 | 72 61 6e 74 65 65 20 74 |s no gua|rantee t|
|00003330| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 67 65 74 20 |hat you |can get |
|00003340| 61 20 75 6e 69 71 75 65 | 20 68 6f 73 74 20 49 44 |a unique| host ID|
|00003350| 20 75 73 69 6e 67 20 6f | 6e 6c 79 20 6f 6e 65 20 | using o|nly one |
|00003360| 62 79 74 65 0a 66 72 6f | 6d 20 74 68 65 20 70 68 |byte.fro|m the ph|
|00003370| 79 73 69 63 61 6c 20 6e | 6f 64 65 20 61 64 64 72 |ysical n|ode addr|
|00003380| 65 73 73 2e 0a 2e 50 50 | 0a 5c 66 49 63 6f 6e 6e |ess...PP|.\fIconn|
|00003390| 65 63 74 20 3c 68 6f 73 | 74 3e 5c 66 52 20 67 65 |ect <hos|t>\fR ge|
|000033a0| 74 73 20 79 6f 75 20 61 | 20 73 68 65 6c 6c 20 77 |ts you a| shell w|
|000033b0| 68 69 63 68 20 69 73 6e | 27 74 20 63 6f 6e 6e 65 |hich isn|'t conne|
|000033c0| 63 74 65 64 20 74 6f 20 | 61 20 72 65 61 6c 20 74 |cted to |a real t|
|000033d0| 74 79 0a 64 65 76 69 63 | 65 2e 0a 20 6f 74 68 65 |ty.devic|e.. othe|
|000033e0| 72 20 65 74 68 65 72 6e | 65 74 20 61 70 70 6c 69 |r ethern|et appli|
|000033f0| 63 61 74 69 6f 6e 73 2e | 20 28 33 42 6e 65 74 20 |cations.| (3Bnet |
|00003400| 33 62 63 6f 6e 6e 65 63 | 74 2f 72 63 70 2e 31 00 |3bconnec|t/rcp.1.|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003480| 20 20 20 34 32 30 30 20 | 20 34 34 30 34 30 33 31 | 4200 | 4404031|
|00003490| 36 35 36 20 20 20 36 36 | 32 33 00 20 00 00 00 00 |656 66|23. ....|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 2e 54 48 20 52 43 50 20 | 31 20 6c 6f 63 61 6c 0a |.TH RCP |1 local.|
|00003610| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 2e 42 20 |.SH SYNO|PSIS..B |
|00003620| 22 72 63 70 20 5b 2d 64 | 5d 20 73 6f 75 72 63 65 |"rcp [-d|] source|
|00003630| 20 5b 73 6f 75 72 63 65 | 20 2e 2e 2e 5d 20 64 65 | [source| ...] de|
|00003640| 73 74 22 0a 2e 53 48 20 | 44 45 53 43 52 49 50 54 |st"..SH |DESCRIPT|
|00003650| 49 4f 4e 0a 5c 66 49 72 | 63 70 5c 66 52 20 61 6c |ION.\fIr|cp\fR al|
|00003660| 6c 6f 77 73 20 66 69 6c | 65 73 20 74 6f 20 62 65 |lows fil|es to be|
|00003670| 20 74 72 61 6e 73 66 65 | 72 72 65 64 20 74 6f 20 | transfe|rred to |
|00003680| 6f 72 20 66 72 6f 6d 20 | 72 65 6d 6f 74 65 20 6d |or from |remote m|
|00003690| 61 63 68 69 6e 65 73 2c | 0a 75 73 69 6e 67 20 74 |achines,|.using t|
|000036a0| 68 65 20 65 74 68 65 72 | 6e 65 74 20 63 6f 6e 6e |he ether|net conn|
|000036b0| 65 63 74 69 6f 6e 20 62 | 65 74 77 65 65 6e 20 4f |ection b|etween O|
|000036c0| 6c 69 76 65 74 74 69 20 | 33 42 32 27 73 20 73 75 |livetti |3B2's su|
|000036d0| 70 70 6f 72 74 69 6e 67 | 20 33 42 4e 45 54 2e 0a |pporting| 3BNET..|
|000036e0| 49 74 20 64 6f 65 73 20 | 5c 66 42 4e 4f 54 5c 66 |It does |\fBNOT\f|
|000036f0| 52 20 75 73 65 20 74 68 | 65 20 5c 66 49 6e 69 73 |R use th|e \fInis|
|00003700| 65 6e 64 5c 66 42 20 6e | 65 74 77 6f 72 6b 20 69 |end\fB n|etwork i|
|00003710| 6e 74 65 72 66 61 63 65 | 2c 20 77 68 69 63 68 20 |nterface|, which |
|00003720| 68 61 73 20 0a 70 72 6f | 76 65 64 20 74 6f 20 62 |has .pro|ved to b|
|00003730| 65 20 76 65 72 79 20 75 | 6e 72 65 6c 69 61 62 6c |e very u|nreliabl|
|00003740| 65 2c 20 62 75 74 20 75 | 73 65 73 20 74 68 65 20 |e, but u|ses the |
|00003750| 70 61 63 6b 65 74 20 74 | 72 61 6e 73 70 6f 72 74 |packet t|ransport|
|00003760| 20 69 6e 74 65 72 66 61 | 63 65 0a 64 69 72 65 63 | interfa|ce.direc|
|00003770| 74 6c 79 2e 0a 2e 50 50 | 0a 41 6e 79 20 6f 66 20 |tly...PP|.Any of |
|00003780| 74 68 65 20 66 69 6c 65 | 20 6e 61 6d 65 73 20 73 |the file| names s|
|00003790| 70 65 63 69 66 69 65 64 | 20 6d 61 79 20 62 65 20 |pecified| may be |
|000037a0| 70 72 65 66 69 78 65 64 | 20 77 69 74 68 20 61 20 |prefixed| with a |
|000037b0| 5c 66 42 73 79 73 74 65 | 6d 20 6e 61 6d 65 5c 66 |\fBsyste|m name\f|
|000037c0| 52 2c 0a 6d 65 61 6e 69 | 6e 67 20 74 68 61 74 20 |R,.meani|ng that |
|000037d0| 74 68 65 20 66 69 6c 65 | 20 73 68 6f 75 6c 64 20 |the file| should |
|000037e0| 62 65 20 74 72 61 6e 73 | 66 65 72 72 65 64 20 74 |be trans|ferred t|
|000037f0| 6f 20 6f 72 20 66 72 6f | 6d 20 74 68 65 20 72 65 |o or fro|m the re|
|00003800| 6d 6f 74 65 20 6d 61 63 | 68 69 6e 65 0a 73 70 65 |mote mac|hine.spe|
|00003810| 63 69 66 69 65 64 2e 20 | 54 68 65 20 73 79 73 74 |cified. |The syst|
|00003820| 65 6d 20 6e 61 6d 65 20 | 69 73 20 73 65 70 61 72 |em name |is separ|
|00003830| 61 74 65 64 20 66 72 6f | 6d 20 74 68 65 20 66 69 |ated fro|m the fi|
|00003840| 6c 65 20 6e 61 6d 65 20 | 62 79 20 65 69 74 68 65 |le name |by eithe|
|00003850| 72 0a 61 20 27 21 27 20 | 6f 72 20 61 20 27 3a 27 |r.a '!' |or a ':'|
|00003860| 20 63 68 61 72 61 63 74 | 65 72 2e 0a 2e 50 50 0a | charact|er...PP.|
|00003870| 4f 6e 6c 79 20 6f 6e 65 | 20 72 65 6d 6f 74 65 20 |Only one| remote |
|00003880| 73 79 73 74 65 6d 20 6d | 61 79 20 62 65 20 73 70 |system m|ay be sp|
|00003890| 65 63 69 66 69 65 64 20 | 66 6f 72 20 65 61 63 68 |ecified |for each|
|000038a0| 20 5c 66 49 72 63 70 5c | 66 52 20 63 6f 6d 6d 61 | \fIrcp\|fR comma|
|000038b0| 6e 64 2c 20 0a 61 6e 64 | 20 61 6c 6c 20 74 68 65 |nd, .and| all the|
|000038c0| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 73 20 6d 75 | source |files mu|
|000038d0| 73 74 20 6c 69 76 65 20 | 6f 6e 20 74 68 65 20 73 |st live |on the s|
|000038e0| 61 6d 65 20 73 79 73 74 | 65 6d 2e 20 49 74 20 69 |ame syst|em. It i|
|000038f0| 73 20 6e 6f 74 20 70 6f | 73 73 69 62 6c 65 0a 74 |s not po|ssible.t|
|00003900| 6f 20 6d 6f 76 65 20 66 | 69 6c 65 73 20 66 72 6f |o move f|iles fro|
|00003910| 6d 20 6f 6e 65 20 70 6c | 61 63 65 20 74 6f 20 61 |m one pl|ace to a|
|00003920| 6e 6f 74 68 65 72 20 6f | 6e 20 61 20 72 65 6d 6f |nother o|n a remo|
|00003930| 74 65 20 6d 61 63 68 69 | 6e 65 20 2d 20 74 68 65 |te machi|ne - the|
|00003940| 79 0a 6d 75 73 74 20 74 | 72 61 6e 73 66 65 72 20 |y.must t|ransfer |
|00003950| 61 63 72 6f 73 73 20 74 | 68 65 20 65 74 68 65 72 |across t|he ether|
|00003960| 6e 65 74 20 63 6f 6e 6e | 65 63 74 69 6f 6e 2e 20 |net conn|ection. |
|00003970| 54 68 69 73 20 69 73 20 | 61 20 72 65 73 74 72 69 |This is |a restri|
|00003980| 63 74 69 6f 6e 20 0a 69 | 6d 70 6f 73 65 64 20 62 |ction .i|mposed b|
|00003990| 79 20 74 68 65 20 70 72 | 6f 74 6f 63 6f 6c 2e 0a |y the pr|otocol..|
|000039a0| 2e 53 48 20 46 4c 41 47 | 53 0a 2e 50 50 0a 2e 54 |.SH FLAG|S..PP..T|
|000039b0| 50 0a 2e 42 20 2d 64 0a | 54 75 72 6e 20 64 65 62 |P..B -d.|Turn deb|
|000039c0| 75 67 67 69 6e 67 20 6f | 75 74 70 75 74 20 6f 6e |ugging o|utput on|
|000039d0| 20 64 75 72 69 6e 67 20 | 74 68 65 20 66 69 6c 65 | during |the file|
|000039e0| 20 74 72 61 6e 73 66 65 | 72 20 70 72 6f 63 65 64 | transfe|r proced|
|000039f0| 75 72 65 2e 20 55 73 65 | 66 75 6c 20 6f 6e 6c 79 |ure. Use|ful only|
|00003a00| 0a 69 66 20 79 6f 75 20 | 6b 6e 6f 77 20 77 68 61 |.if you |know wha|
|00003a10| 74 20 74 68 65 20 66 74 | 70 20 70 72 6f 74 6f 63 |t the ft|p protoc|
|00003a20| 6f 6c 20 69 73 20 73 75 | 70 70 6f 73 65 64 20 74 |ol is su|pposed t|
|00003a30| 6f 20 62 65 20 64 6f 69 | 6e 67 2e 0a 2e 50 50 0a |o be doi|ng...PP.|
|00003a40| 2e 53 48 20 45 58 41 4d | 50 4c 45 53 0a 2e 50 50 |.SH EXAM|PLES..PP|
|00003a50| 0a 72 63 70 20 6f 73 63 | 61 72 21 2f 75 73 72 2f |.rcp osc|ar!/usr/|
|00003a60| 64 61 76 65 2f 66 69 6c | 65 2e 63 20 2f 75 73 72 |dave/fil|e.c /usr|
|00003a70| 2f 74 6d 70 0a 2e 50 50 | 0a 43 6f 70 69 65 73 20 |/tmp..PP|.Copies |
|00003a80| 74 68 65 20 66 69 6c 65 | 20 5c 66 42 2f 75 73 72 |the file| \fB/usr|
|00003a90| 2f 64 61 76 65 2f 66 69 | 6c 65 2e 63 5c 66 52 20 |/dave/fi|le.c\fR |
|00003aa0| 66 72 6f 6d 20 74 68 65 | 20 73 79 73 74 65 6d 20 |from the| system |
|00003ab0| 5c 66 42 6f 73 63 61 72 | 5c 66 52 20 74 6f 20 74 |\fBoscar|\fR to t|
|00003ac0| 68 65 0a 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 5c |he.desti|nation \|
|00003ad0| 66 42 2f 75 73 72 2f 74 | 6d 70 5c 66 52 20 6f 6e |fB/usr/t|mp\fR on|
|00003ae0| 20 74 68 65 20 6c 6f 63 | 61 6c 20 73 79 73 74 65 | the loc|al syste|
|00003af0| 6d 2e 0a 2e 50 50 0a 72 | 63 70 20 2f 75 73 72 2f |m...PP.r|cp /usr/|
|00003b00| 64 61 76 65 2f 73 72 63 | 2f 72 63 70 2e 63 20 6d |dave/src|/rcp.c m|
|00003b10| 79 70 72 6f 67 20 6f 6c | 69 76 65 3a 2f 75 73 72 |yprog ol|ive:/usr|
|00003b20| 2f 64 61 76 65 2f 70 75 | 62 6c 69 63 0a 2e 50 50 |/dave/pu|blic..PP|
|00003b30| 0a 43 6f 70 69 65 73 20 | 74 68 65 20 6c 6f 63 61 |.Copies |the loca|
|00003b40| 6c 20 66 69 6c 65 73 20 | 5c 66 42 2f 75 73 72 2f |l files |\fB/usr/|
|00003b50| 64 61 76 65 2f 73 72 63 | 2f 72 63 70 2e 63 5c 66 |dave/src|/rcp.c\f|
|00003b60| 52 20 61 6e 64 0a 5c 66 | 42 6d 79 70 72 6f 67 5c |R and.\f|Bmyprog\|
|00003b70| 66 52 2c 20 74 6f 20 74 | 68 65 20 64 65 73 74 69 |fR, to t|he desti|
|00003b80| 6e 61 74 69 6f 6e 20 5c | 66 42 2f 75 73 72 2f 64 |nation \|fB/usr/d|
|00003b90| 61 76 65 2f 70 75 62 6c | 69 63 5c 66 52 20 6f 6e |ave/publ|ic\fR on|
|00003ba0| 20 74 68 65 0a 73 79 73 | 74 65 6d 20 5c 66 42 6f | the.sys|tem \fBo|
|00003bb0| 6c 69 76 65 5c 66 52 2e | 0a 2e 53 48 20 22 53 45 |live\fR.|..SH "SE|
|00003bc0| 45 20 41 4c 53 4f 22 0a | 75 75 63 70 28 31 29 2c |E ALSO".|uucp(1),|
|00003bd0| 20 63 70 28 31 29 2c 20 | 6e 69 73 65 6e 64 28 31 | cp(1), |nisend(1|
|00003be0| 29 0a 2e 53 48 20 44 49 | 41 47 4e 4f 53 54 49 43 |)..SH DI|AGNOSTIC|
|00003bf0| 53 0a 4e 6f 72 6d 61 6c | 20 69 6e 66 6f 72 6d 61 |S.Normal| informa|
|00003c00| 74 69 6f 6e 20 61 62 6f | 75 74 20 66 69 6c 65 73 |tion abo|ut files|
|00003c10| 20 77 68 69 63 68 20 63 | 61 6e 27 74 20 62 65 20 | which c|an't be |
|00003c20| 72 65 61 64 20 6f 72 20 | 77 72 69 74 74 65 6e 3b |read or |written;|
|00003c30| 20 74 68 69 73 0a 69 6e | 66 6f 72 6d 61 74 69 6f | this.in|formatio|
|00003c40| 6e 20 6d 61 79 20 63 6f | 6d 65 20 66 72 6f 6d 20 |n may co|me from |
|00003c50| 65 69 74 68 65 72 20 68 | 6f 73 74 2e 0a 2e 50 50 |either h|ost...PP|
|00003c60| 0a 49 6e 20 74 68 65 20 | 65 76 65 6e 74 20 6f 66 |.In the |event of|
|00003c70| 20 61 20 70 72 6f 74 6f | 63 6f 6c 20 66 61 69 6c | a proto|col fail|
|00003c80| 75 72 65 2c 20 74 68 65 | 20 72 65 6d 6f 74 65 20 |ure, the| remote |
|00003c90| 73 65 72 76 65 72 20 6d | 61 79 20 74 65 72 6d 69 |server m|ay termi|
|00003ca0| 6e 61 74 65 0a 5c 66 49 | 72 63 70 5c 66 52 2e 20 |nate.\fI|rcp\fR. |
|00003cb0| 54 68 65 72 65 20 73 68 | 6f 75 6c 64 20 62 65 20 |There sh|ould be |
|00003cc0| 61 20 64 69 61 67 6e 6f | 73 74 69 63 20 6d 65 73 |a diagno|stic mes|
|00003cd0| 73 61 67 65 20 2d 20 63 | 6f 6e 73 75 6c 74 20 79 |sage - c|onsult y|
|00003ce0| 6f 75 72 20 67 75 72 75 | 2e 0a 2e 53 48 20 42 55 |our guru|...SH BU|
|00003cf0| 47 53 0a 59 6f 75 20 63 | 61 6e 27 74 20 74 61 6c |GS.You c|an't tal|
|00003d00| 6b 20 74 6f 20 6d 6f 72 | 65 20 74 68 61 6e 20 6f |k to mor|e than o|
|00003d10| 6e 65 20 72 65 6d 6f 74 | 65 20 68 6f 73 74 20 61 |ne remot|e host a|
|00003d20| 74 20 61 20 74 69 6d 65 | 3a 20 74 68 69 6e 67 73 |t a time|: things|
|00003d30| 20 6c 69 6b 65 0a 2e 50 | 50 0a 72 63 70 20 61 3a | like..P|P.rcp a:|
|00003d40| 66 69 6c 65 31 20 62 3a | 66 69 6c 65 32 20 63 3a |file1 b:|file2 c:|
|00003d50| 64 65 73 74 0a 2e 50 50 | 0a 61 72 65 20 5c 66 42 |dest..PP|.are \fB|
|00003d60| 4e 4f 54 5c 66 52 20 61 | 6c 6c 6f 77 65 64 2e 0a |NOT\fR a|llowed..|
|00003d70| 2e 50 50 0a 59 6f 75 20 | 63 61 6e 27 74 20 6d 6f |.PP.You |can't mo|
|00003d80| 76 65 20 74 68 69 6e 67 | 73 20 61 72 6f 75 6e 64 |ve thing|s around|
|00003d90| 20 6f 6e 20 74 68 65 20 | 72 65 6d 6f 74 65 20 68 | on the |remote h|
|00003da0| 6f 73 74 20 2d 20 79 6f | 75 20 63 61 6e 20 6f 6e |ost - yo|u can on|
|00003db0| 6c 79 20 63 6f 70 79 0a | 66 72 6f 6d 20 6f 6e 65 |ly copy.|from one|
|00003dc0| 20 68 6f 73 74 20 74 6f | 20 61 6e 6f 74 68 65 72 | host to| another|
|00003dd0| 2e 0a 2e 50 50 0a 54 68 | 65 20 66 69 6c 65 20 74 |...PP.Th|e file t|
|00003de0| 72 61 6e 73 66 65 72 20 | 70 72 6f 74 6f 63 6f 6c |ransfer |protocol|
|00003df0| 20 69 73 20 61 20 68 6f | 6d 65 2d 67 72 6f 77 6e | is a ho|me-grown|
|00003e00| 20 76 61 72 69 65 74 79 | 2c 20 61 6e 64 20 69 73 | variety|, and is|
|00003e10| 20 6e 6f 74 20 67 6f 69 | 6e 67 0a 74 6f 20 62 65 | not goi|ng.to be|
|00003e20| 20 61 6e 79 20 73 6f 72 | 74 20 6f 66 20 73 74 61 | any sor|t of sta|
|00003e30| 6e 64 61 72 64 2e 20 49 | 74 20 77 6f 75 6c 64 20 |ndard. I|t would |
|00003e40| 62 65 20 6e 69 63 65 20 | 69 66 20 69 74 20 75 73 |be nice |if it us|
|00003e50| 65 64 20 54 43 50 2f 49 | 50 2c 20 6f 72 0a 73 6f |ed TCP/I|P, or.so|
|00003e60| 6d 65 20 6f 74 68 65 72 | 20 77 65 6c 6c 2d 64 65 |me other| well-de|
|00003e70| 66 69 6e 65 64 20 70 72 | 6f 74 6f 63 6f 6c 2e 0a |fined pr|otocol..|
|00003e80| 66 20 74 68 65 20 66 69 | 6c 65 20 69 73 3a 0a 2e |f the fi|le is:..|
|00003e90| 50 50 0a 09 09 3c 68 6f | 73 74 6e 61 6d 65 3e 20 |PP...<ho|stname> |
|00003ea0| 3c 49 44 3e 0a 2e 50 50 | 0a 65 2e 67 2e 0a 2e 50 |<ID>..PP|.e.g...P|
|00003eb0| 50 0a 09 09 6f 6c 69 76 | 65 09 34 35 0a 09 09 6f |P...oliv|e.45...o|
|00003ec0| 73 63 61 72 09 66 32 0a | 2e 50 50 0a 41 73 20 73 |scar.f2.|.PP.As s|
|00003ed0| 68 69 70 70 65 64 2c 20 | 74 68 65 20 70 61 63 6b |hipped, |the pack|
|00003ee0| 61 67 65 20 65 78 70 65 | 63 74 73 20 65 61 63 68 |age expe|cts each|
|00003ef0| 20 68 6f 73 74 20 74 6f | 20 68 61 76 65 20 61 20 | host to| have a |
|00003f00| 70 68 79 73 69 63 61 6c | 20 65 74 68 65 72 6e 65 |physical| etherne|
|00003f10| 74 0a 61 64 64 72 65 73 | 73 20 77 68 69 63 68 20 |t.addres|s which |
|00003f20| 69 73 20 75 6e 69 71 75 | 65 20 5c 66 42 69 6e 20 |is uniqu|e \fBin |
|00003f30| 74 68 65 20 6c 61 73 74 | 20 28 6c 73 62 29 20 62 |the last| (lsb) b|
|00003f40| 79 74 65 5c 66 52 2e 0a | 2e 50 50 0a 54 68 65 20 |yte\fR..|.PP.The |
|00003f50| 61 64 64 72 65 73 73 65 | 73 20 77 68 69 63 68 20 |addresse|s which |
|00003f60| 61 72 65 20 75 73 65 64 | 20 61 72 65 3a 0a 2e 50 |are used| are:..P|
|00003f70| 50 0a 09 09 58 58 2e 59 | 59 2e 59 59 2e 30 30 2e |P...XX.Y|Y.YY.00.|
|00003f80| 30 30 2e 48 48 09 53 65 | 72 76 65 72 0a 09 09 58 |00.HH.Se|rver...X|
|00003f90| 58 2e 59 59 2e 59 59 2e | 50 49 44 2e 50 49 44 2e |X.YY.YY.|PID.PID.|
|00003fa0| 48 48 09 43 6c 69 65 6e | 74 2f 52 65 6d 6f 74 65 |HH.Clien|t/Remote|
|00003fb0| 20 50 72 6f 63 65 73 73 | 2e 0a 2e 50 50 0a 54 68 | Process|...PP.Th|
|00003fc0| 65 20 76 61 6c 75 65 73 | 20 6f 66 20 58 58 20 61 |e values| of XX a|
|00003fd0| 6e 64 20 59 59 20 61 72 | 65 20 74 6f 74 61 6c 6c |nd YY ar|e totall|
|00003fe0| 79 20 61 72 62 69 74 72 | 61 72 79 2c 20 61 6e 64 |y arbitr|ary, and|
|00003ff0| 20 79 6f 75 20 63 61 6e | 20 63 68 61 6e 67 65 20 | you can| change |
|00004000| 33 62 63 6f 6e 6e 65 63 | 74 2f 73 65 72 76 65 72 |3bconnec|t/server|
|00004010| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004080| 20 20 31 34 30 35 34 20 | 20 34 34 30 34 30 33 31 | 14054 | 4404031|
|00004090| 36 36 31 20 20 20 37 34 | 35 33 00 20 00 00 00 00 |661 74|53. ....|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 2f 2a 0a 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |/*. * Co|pyright |
|00004210| 28 43 29 20 31 39 38 38 | 20 44 61 76 65 20 53 65 |(C) 1988| Dave Se|
|00004220| 74 74 6c 65 2e 20 41 6c | 6c 20 72 69 67 68 74 73 |ttle. Al|l rights|
|00004230| 20 72 65 73 65 72 76 65 | 64 2e 0a 20 2a 20 50 65 | reserve|d.. * Pe|
|00004240| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|00004250| 74 65 64 20 74 6f 20 75 | 73 65 2c 20 63 6f 70 79 |ted to u|se, copy|
|00004260| 20 61 6e 64 20 6d 6f 64 | 69 66 79 20 74 68 69 73 | and mod|ify this|
|00004270| 20 73 6f 66 74 77 61 72 | 65 2c 20 70 72 6f 76 69 | softwar|e, provi|
|00004280| 64 69 6e 67 0a 20 2a 20 | 74 68 61 74 20 69 74 20 |ding. * |that it |
|00004290| 69 73 20 6e 6f 74 20 73 | 6f 6c 64 20 66 6f 72 20 |is not s|old for |
|000042a0| 70 72 6f 66 69 74 2c 20 | 61 6e 64 20 74 68 61 74 |profit, |and that|
|000042b0| 20 74 68 69 73 20 63 6f | 70 79 72 69 67 68 74 20 | this co|pyright |
|000042c0| 6e 6f 74 69 63 65 20 69 | 73 20 72 65 74 61 69 6e |notice i|s retain|
|000042d0| 65 64 0a 20 2a 20 69 6e | 20 61 6e 79 20 63 6f 70 |ed. * in| any cop|
|000042e0| 69 65 73 20 6f 66 20 74 | 68 65 20 73 6f 75 72 63 |ies of t|he sourc|
|000042f0| 65 2e 0a 20 2a 2f 0a 2f | 2a 0a 20 2a 20 73 65 72 |e.. */./|*. * ser|
|00004300| 76 65 72 3a 20 65 74 68 | 65 72 6e 65 74 20 73 65 |ver: eth|ernet se|
|00004310| 72 76 65 72 2e 20 41 63 | 63 65 70 74 73 20 72 65 |rver. Ac|cepts re|
|00004320| 71 75 65 73 74 73 2c 20 | 61 6e 64 20 73 70 61 77 |quests, |and spaw|
|00004330| 6e 73 20 70 72 6f 63 65 | 73 73 65 73 20 74 6f 0a |ns proce|sses to.|
|00004340| 20 2a 20 73 65 72 76 65 | 20 72 65 6d 6f 74 65 20 | * serve| remote |
|00004350| 63 6c 69 65 6e 74 73 2e | 0a 20 2a 2f 0a 20 0a 23 |clients.|. */. .#|
|00004360| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 6e 69 2e |include |<sys/ni.|
|00004370| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00004380| 69 6f 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |io.h>.#i|nclude <|
|00004390| 73 79 73 2f 73 69 67 6e | 61 6c 2e 68 3e 0a 23 69 |sys/sign|al.h>.#i|
|000043a0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 65 72 72 6e |nclude <|sys/errn|
|000043b0| 6f 2e 68 3e 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |o.h>.ext|ern int |
|000043c0| 65 72 72 6e 6f 3b 0a 23 | 69 6e 63 6c 75 64 65 20 |errno;.#|include |
|000043d0| 3c 70 77 64 2e 68 3e 0a | 0a 73 74 72 75 63 74 20 |<pwd.h>.|.struct |
|000043e0| 70 61 73 73 77 64 20 2a | 67 65 74 70 77 6e 61 6d |passwd *|getpwnam|
|000043f0| 28 29 3b 0a 63 68 61 72 | 20 2a 73 74 72 72 63 68 |();.char| *strrch|
|00004400| 72 28 29 3b 0a 0a 23 64 | 65 66 69 6e 65 20 4d 41 |r();..#d|efine MA|
|00004410| 49 4e 0a 23 69 6e 63 6c | 75 64 65 20 22 6e 69 2e |IN.#incl|ude "ni.|
|00004420| 68 22 0a 0a 69 6e 74 20 | 69 6e 70 75 74 5b 32 5d |h"..int |input[2]|
|00004430| 2c 20 6f 75 74 70 75 74 | 5b 32 5d 3b 09 09 2f 2a |, output|[2];../*|
|00004440| 20 70 69 70 65 73 20 66 | 6f 72 20 73 68 65 6c 6c | pipes f|or shell|
|00004450| 20 2a 2f 0a 63 68 61 72 | 20 63 6d 64 5b 31 32 38 | */.char| cmd[128|
|00004460| 5d 2c 20 70 72 6f 67 72 | 61 6d 5b 33 32 5d 3b 0a |], progr|am[32];.|
|00004470| 69 6e 74 20 72 65 61 64 | 65 72 2c 20 73 68 3b 09 |int read|er, sh;.|
|00004480| 09 09 09 2f 2a 20 70 69 | 64 20 6f 66 20 63 68 69 |.../* pi|d of chi|
|00004490| 6c 64 20 72 65 61 64 65 | 72 20 70 72 6f 63 65 73 |ld reade|r proces|
|000044a0| 73 20 2a 2f 0a 0a 23 64 | 65 66 69 6e 65 20 4c 4f |s */..#d|efine LO|
|000044b0| 47 20 20 22 2f 75 73 72 | 2f 6c 69 62 2f 73 65 72 |G "/usr|/lib/ser|
|000044c0| 76 65 72 2e 6c 6f 67 22 | 0a 0a 23 64 65 66 69 6e |ver.log"|..#defin|
|000044d0| 65 20 47 49 47 41 42 59 | 54 45 09 32 2a 31 30 32 |e GIGABY|TE.2*102|
|000044e0| 34 2a 31 30 32 34 09 2f | 2a 20 6e 75 6d 62 65 72 |4*1024./|* number|
|000044f0| 20 6f 66 20 62 6c 6f 63 | 6b 73 20 69 6e 20 31 20 | of bloc|ks in 1 |
|00004500| 47 42 79 74 65 20 2a 2f | 0a 0a 2f 2a 0a 20 2a 20 |GByte */|../*. * |
|00004510| 65 6e 64 70 72 6f 63 3a | 20 63 61 6c 6c 65 64 20 |endproc:| called |
|00004520| 77 68 65 6e 20 74 68 65 | 20 73 68 65 6c 6c 20 68 |when the| shell h|
|00004530| 61 73 20 64 69 65 64 20 | 28 76 69 61 20 53 49 47 |as died |(via SIG|
|00004540| 50 49 50 45 29 20 62 79 | 20 74 68 65 20 77 72 69 |PIPE) by| the wri|
|00004550| 74 65 72 20 70 72 6f 63 | 65 73 73 0a 20 2a 2f 0a |ter proc|ess. */.|
|00004560| 65 6e 64 70 72 6f 63 28 | 29 7b 0a 09 73 74 72 75 |endproc(|){..stru|
|00004570| 63 74 20 72 65 71 75 65 | 73 74 20 72 65 71 3b 0a |ct reque|st req;.|
|00004580| 09 73 6b 69 6c 6c 28 72 | 65 61 64 65 72 2c 20 53 |.skill(r|eader, S|
|00004590| 49 47 54 45 52 4d 29 3b | 0a 09 73 70 72 69 6e 74 |IGTERM);|..sprint|
|000045a0| 66 28 72 65 71 2e 72 5f | 64 61 74 61 2c 20 22 79 |f(req.r_|data, "y|
|000045b0| 6f 75 72 20 73 68 65 6c | 6c 20 64 69 65 64 22 29 |our shel|l died")|
|000045c0| 3b 0a 09 73 65 6e 64 28 | 26 72 65 71 2c 20 73 74 |;..send(|&req, st|
|000045d0| 72 6c 65 6e 28 72 65 71 | 2e 72 5f 64 61 74 61 29 |rlen(req|.r_data)|
|000045e0| 2c 20 54 45 52 4d 49 4e | 41 54 45 2c 20 63 6c 69 |, TERMIN|ATE, cli|
|000045f0| 65 6e 74 29 3b 0a 09 65 | 78 69 74 28 30 29 3b 0a |ent);..e|xit(0);.|
|00004600| 7d 0a 2f 2a 0a 20 2a 20 | 43 61 6c 6c 65 64 20 77 |}./*. * |Called w|
|00004610| 68 65 6e 20 77 65 20 67 | 65 74 20 61 20 54 45 52 |hen we g|et a TER|
|00004620| 4d 49 4e 41 54 45 20 70 | 61 63 6b 65 74 20 66 72 |MINATE p|acket fr|
|00004630| 6f 6d 20 74 68 65 20 63 | 6c 69 65 6e 74 2e 0a 20 |om the c|lient.. |
|00004640| 2a 2f 0a 73 69 67 74 65 | 72 6d 28 29 7b 09 0a 09 |*/.sigte|rm(){...|
|00004650| 73 6b 69 6c 6c 28 72 65 | 61 64 65 72 2c 20 53 49 |skill(re|ader, SI|
|00004660| 47 54 45 52 4d 29 3b 0a | 09 73 6b 69 6c 6c 28 73 |GTERM);.|.skill(s|
|00004670| 68 2c 20 53 49 47 48 55 | 50 29 3b 0a 09 73 6c 65 |h, SIGHU|P);..sle|
|00004680| 65 70 28 31 29 3b 0a 09 | 73 6b 69 6c 6c 28 73 68 |ep(1);..|skill(sh|
|00004690| 2c 20 53 49 47 4b 49 4c | 4c 29 3b 0a 09 65 78 69 |, SIGKIL|L);..exi|
|000046a0| 74 28 30 29 3b 0a 7d 0a | 0a 6d 61 69 6e 28 29 0a |t(0);.}.|.main().|
|000046b0| 7b 0a 09 69 6e 74 20 69 | 6e 3b 0a 09 73 69 67 6e |{..int i|n;..sign|
|000046c0| 61 6c 28 53 49 47 48 55 | 50 2c 20 53 49 47 5f 49 |al(SIGHU|P, SIG_I|
|000046d0| 47 4e 29 3b 0a 09 73 69 | 67 6e 61 6c 28 53 49 47 |GN);..si|gnal(SIG|
|000046e0| 49 4e 54 2c 20 53 49 47 | 5f 49 47 4e 29 3b 0a 09 |INT, SIG|_IGN);..|
|000046f0| 73 69 67 6e 61 6c 28 53 | 49 47 51 55 49 54 2c 20 |signal(S|IGQUIT, |
|00004700| 53 49 47 5f 49 47 4e 29 | 3b 0a 09 73 69 67 6e 61 |SIG_IGN)|;..signa|
|00004710| 6c 28 53 49 47 54 45 52 | 4d 2c 20 73 69 67 74 65 |l(SIGTER|M, sigte|
|00004720| 72 6d 29 3b 0a 09 75 6c | 69 6d 69 74 28 32 2c 20 |rm);..ul|imit(2, |
|00004730| 28 6c 6f 6e 67 29 20 47 | 49 47 41 42 59 54 45 29 |(long) G|IGABYTE)|
|00004740| 3b 0a 2f 2a 0a 20 2a 20 | 54 68 69 73 20 70 72 6f |;./*. * |This pro|
|00004750| 63 65 73 73 20 72 75 6e | 73 20 66 72 6f 6d 20 22 |cess run|s from "|
|00004760| 69 6e 69 74 22 20 2d 20 | 69 74 20 64 6f 65 73 6e |init" - |it doesn|
|00004770| 27 74 20 68 61 76 65 20 | 41 4e 59 20 66 69 6c 65 |'t have |ANY file|
|00004780| 20 64 65 73 63 72 69 70 | 74 6f 72 73 20 6f 70 65 | descrip|tors ope|
|00004790| 6e 0a 20 2a 20 43 68 65 | 63 6b 20 74 68 69 73 2c |n. * Che|ck this,|
|000047a0| 20 61 6e 64 20 69 66 20 | 6e 65 63 65 73 73 61 72 | and if |necessar|
|000047b0| 79 2c 20 63 72 65 61 74 | 65 20 73 6f 6d 65 20 64 |y, creat|e some d|
|000047c0| 75 6d 6d 79 20 66 64 27 | 73 2e 0a 20 2a 2f 0a 20 |ummy fd'|s.. */. |
|000047d0| 09 69 66 28 69 6e 20 3d | 20 6f 70 65 6e 28 22 2f |.if(in =| open("/|
|000047e0| 64 65 76 2f 6e 75 6c 6c | 22 2c 20 30 29 20 3d 3d |dev/null|", 0) ==|
|000047f0| 20 30 29 20 7b 0a 20 09 | 09 6f 70 65 6e 28 22 2f | 0) {. .|.open("/|
|00004800| 64 65 76 2f 6e 75 6c 6c | 22 2c 20 31 29 3b 0a 20 |dev/null|", 1);. |
|00004810| 09 09 6f 70 65 6e 28 22 | 2f 64 65 76 2f 6e 75 6c |..open("|/dev/nul|
|00004820| 6c 22 2c 20 31 29 3b 0a | 20 09 7d 0a 20 09 65 6c |l", 1);.| .}. .el|
|00004830| 73 65 20 63 6c 6f 73 65 | 28 69 6e 29 3b 0a 09 66 |se close|(in);..f|
|00004840| 72 65 6f 70 65 6e 28 4c | 4f 47 2c 20 22 61 2b 22 |reopen(L|OG, "a+"|
|00004850| 2c 20 73 74 64 65 72 72 | 29 3b 0a 09 69 66 28 63 |, stderr|);..if(c|
|00004860| 6f 6e 66 69 67 75 72 65 | 28 73 65 72 76 65 72 2c |onfigure|(server,|
|00004870| 20 32 2c 20 30 29 20 3d | 3d 20 2d 31 29 20 65 78 | 2, 0) =|= -1) ex|
|00004880| 69 74 28 31 29 3b 0a 20 | 09 61 63 63 65 70 74 28 |it(1);. |.accept(|
|00004890| 29 3b 0a 20 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |);. .ret|urn(0);.|
|000048a0| 7d 0a 61 63 63 65 70 74 | 28 29 7b 0a 09 73 74 72 |}.accept|(){..str|
|000048b0| 75 63 74 20 72 65 71 75 | 65 73 74 20 72 65 71 75 |uct requ|est requ|
|000048c0| 65 73 74 3b 0a 20 09 72 | 65 63 76 28 26 72 65 71 |est;. .r|ecv(&req|
|000048d0| 75 65 73 74 29 3b 0a 2f | 2a 0a 20 2a 20 46 6f 72 |uest);./|*. * For|
|000048e0| 6b 20 6f 66 66 20 63 68 | 69 6c 64 20 74 6f 20 64 |k off ch|ild to d|
|000048f0| 65 61 6c 20 77 69 74 68 | 20 74 68 65 20 72 65 71 |eal with| the req|
|00004900| 75 65 73 74 2e 20 57 65 | 20 64 69 65 2c 20 61 6e |uest. We| die, an|
|00004910| 64 20 61 72 65 20 72 65 | 73 70 61 77 6e 65 64 20 |d are re|spawned |
|00004920| 62 79 0a 20 2a 20 69 6e | 69 74 2e 0a 20 2a 2f 0a |by. * in|it.. */.|
|00004930| 20 09 69 66 28 66 6f 72 | 6b 28 29 20 3d 3d 20 30 | .if(for|k() == 0|
|00004940| 29 20 65 78 69 74 28 73 | 65 72 76 65 28 26 72 65 |) exit(s|erve(&re|
|00004950| 71 75 65 73 74 29 29 3b | 0a 2f 2a 0a 20 2a 20 70 |quest));|./*. * p|
|00004960| 61 72 65 6e 74 20 2d 20 | 65 78 69 74 2e 0a 20 2a |arent - |exit.. *|
|00004970| 2f 0a 20 09 72 65 74 75 | 72 6e 28 30 29 3b 0a 7d |/. .retu|rn(0);.}|
|00004980| 0a 2f 2a 0a 20 2a 20 73 | 65 72 76 65 3a 20 73 65 |./*. * s|erve: se|
|00004990| 74 20 75 70 20 61 20 73 | 68 65 6c 6c 20 66 6f 72 |t up a s|hell for|
|000049a0| 20 74 68 65 20 72 65 6d | 6f 74 65 20 70 72 6f 63 | the rem|ote proc|
|000049b0| 65 73 73 2c 20 61 6e 64 | 20 70 61 73 73 20 64 61 |ess, and| pass da|
|000049c0| 74 61 2e 0a 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |ta.. */.|#define |
|000049d0| 52 44 20 30 0a 23 64 65 | 66 69 6e 65 20 57 54 20 |RD 0.#de|fine WT |
|000049e0| 31 0a 73 65 72 76 65 28 | 72 29 0a 72 65 67 69 73 |1.serve(|r).regis|
|000049f0| 74 65 72 20 73 74 72 75 | 63 74 20 72 65 71 75 65 |ter stru|ct reque|
|00004a00| 73 74 20 2a 72 3b 0a 7b | 0a 09 69 6e 74 20 70 69 |st *r;.{|..int pi|
|00004a10| 64 20 3d 20 67 65 74 70 | 69 64 28 29 2c 20 77 72 |d = getp|id(), wr|
|00004a20| 69 74 65 72 2c 20 6e 2c | 20 75 69 64 2c 20 6f 6b |iter, n,| uid, ok|
|00004a30| 3b 0a 09 69 6e 74 20 6f | 6c 64 6e 65 74 3b 0a 09 |;..int o|ldnet;..|
|00004a40| 63 68 61 72 20 75 73 65 | 72 5b 33 32 5d 3b 0a 09 |char use|r[32];..|
|00004a50| 73 74 72 75 63 74 20 70 | 61 73 73 77 64 20 2a 70 |struct p|asswd *p|
|00004a60| 77 3b 0a 09 63 68 61 72 | 20 68 6f 6d 65 5b 33 32 |w;..char| home[32|
|00004a70| 5d 2c 20 70 61 74 68 5b | 31 32 38 5d 2c 20 73 68 |], path[|128], sh|
|00004a80| 65 6c 6c 5b 31 36 5d 2c | 20 6d 61 69 6c 5b 36 34 |ell[16],| mail[64|
|00004a90| 5d 2c 20 74 65 72 6d 5b | 33 32 5d 2c 20 6c 6f 67 |], term[|32], log|
|00004aa0| 6e 61 6d 65 5b 36 34 5d | 3b 0a 2f 2a 0a 20 2a 20 |name[64]|;./*. * |
|00004ab0| 47 65 74 20 74 68 65 20 | 75 73 65 72 20 69 6e 66 |Get the |user inf|
|00004ac0| 6f 20 66 72 6f 6d 20 74 | 68 65 20 72 65 71 75 65 |o from t|he reque|
|00004ad0| 73 74 20 68 65 61 64 65 | 72 2c 20 61 6e 64 20 73 |st heade|r, and s|
|00004ae0| 65 74 20 6f 75 72 20 70 | 61 72 61 6d 65 74 65 72 |et our p|arameter|
|00004af0| 73 0a 20 2a 2f 09 0a 09 | 6e 20 3d 20 73 73 63 61 |s. */...|n = ssca|
|00004b00| 6e 66 28 72 2d 3e 72 5f | 64 61 74 61 2c 20 22 25 |nf(r->r_|data, "%|
|00004b10| 64 20 25 73 20 25 73 22 | 2c 20 26 75 69 64 2c 20 |d %s %s"|, &uid, |
|00004b20| 75 73 65 72 2c 20 74 65 | 72 6d 29 3b 0a 09 6d 65 |user, te|rm);..me|
|00004b30| 6d 63 70 79 28 63 6c 69 | 65 6e 74 2c 20 72 2d 3e |mcpy(cli|ent, r->|
|00004b40| 72 5f 70 6f 72 74 2e 73 | 72 63 61 64 64 72 2c 20 |r_port.s|rcaddr, |
|00004b50| 45 54 48 45 52 53 49 5a | 45 29 3b 0a 09 70 77 20 |ETHERSIZ|E);..pw |
|00004b60| 3d 20 67 65 74 70 77 6e | 61 6d 28 75 73 65 72 29 |= getpwn|am(user)|
|00004b70| 3b 0a 09 69 66 28 70 77 | 20 3d 3d 20 4e 55 4c 4c |;..if(pw| == NULL|
|00004b80| 29 20 7b 0a 09 09 6e 20 | 3d 20 73 70 72 69 6e 74 |) {...n |= sprint|
|00004b90| 66 28 72 2d 3e 72 5f 64 | 61 74 61 2c 20 22 55 73 |f(r->r_d|ata, "Us|
|00004ba0| 65 72 20 27 25 73 27 20 | 6e 6f 74 20 6b 6e 6f 77 |er '%s' |not know|
|00004bb0| 6e 20 68 65 72 65 22 2c | 20 75 73 65 72 29 3b 0a |n here",| user);.|
|00004bc0| 09 09 73 65 6e 64 28 72 | 2c 20 6e 2c 20 54 45 52 |..send(r|, n, TER|
|00004bd0| 4d 49 4e 41 54 45 2c 20 | 63 6c 69 65 6e 74 29 3b |MINATE, |client);|
|00004be0| 0a 09 09 65 78 69 74 28 | 30 29 3b 0a 09 7d 0a 09 |...exit(|0);..}..|
|00004bf0| 69 66 28 70 77 2d 3e 70 | 77 5f 75 69 64 20 21 3d |if(pw->p|w_uid !=|
|00004c00| 20 75 69 64 29 20 7b 0a | 09 09 6e 20 3d 20 73 70 | uid) {.|..n = sp|
|00004c10| 72 69 6e 74 66 28 72 2d | 3e 72 5f 64 61 74 61 2c |rintf(r-|>r_data,|
|00004c20| 20 22 55 73 65 72 20 27 | 25 73 27 20 61 6e 64 20 | "User '|%s' and |
|00004c30| 75 69 64 20 27 25 64 27 | 20 64 6f 6e 27 74 20 6d |uid '%d'| don't m|
|00004c40| 61 74 63 68 22 2c 0a 09 | 09 09 75 73 65 72 2c 20 |atch",..|..user, |
|00004c50| 75 69 64 29 3b 0a 09 09 | 73 65 6e 64 28 72 2c 20 |uid);...|send(r, |
|00004c60| 6e 2c 20 54 45 52 4d 49 | 4e 41 54 45 2c 20 63 6c |n, TERMI|NATE, cl|
|00004c70| 69 65 6e 74 29 3b 0a 09 | 09 65 78 69 74 28 30 29 |ient);..|.exit(0)|
|00004c80| 3b 0a 09 7d 0a 23 69 66 | 64 65 66 20 53 45 43 55 |;..}.#if|def SECU|
|00004c90| 52 45 0a 09 69 66 28 75 | 69 64 20 3d 3d 20 30 29 |RE..if(u|id == 0)|
|00004ca0| 20 7b 0a 09 09 6e 20 3d | 20 73 70 72 69 6e 74 66 | {...n =| sprintf|
|00004cb0| 28 72 2d 3e 72 5f 64 61 | 74 61 2c 20 22 53 65 63 |(r->r_da|ta, "Sec|
|00004cc0| 75 72 65 20 73 65 72 76 | 65 72 3a 20 72 6f 6f 74 |ure serv|er: root|
|00004cd0| 20 61 63 63 65 73 73 20 | 6e 6f 74 20 61 6c 6c 6f | access |not allo|
|00004ce0| 77 65 64 22 29 3b 0a 09 | 09 73 65 6e 64 28 72 2c |wed");..|.send(r,|
|00004cf0| 20 6e 2c 20 54 45 52 4d | 49 4e 41 54 45 2c 20 63 | n, TERM|INATE, c|
|00004d00| 6c 69 65 6e 74 29 3b 0a | 09 09 65 78 69 74 28 30 |lient);.|..exit(0|
|00004d10| 29 3b 0a 09 7d 0a 23 65 | 6e 64 69 66 0a 09 73 65 |);..}.#e|ndif..se|
|00004d20| 74 70 67 72 70 28 29 3b | 09 09 09 2f 2a 20 53 65 |tpgrp();|.../* Se|
|00004d30| 74 20 75 70 20 61 20 70 | 72 6f 63 65 73 73 20 67 |t up a p|rocess g|
|00004d40| 72 6f 75 70 20 2a 2f 0a | 09 73 65 74 67 69 64 28 |roup */.|.setgid(|
|00004d50| 70 77 2d 3e 70 77 5f 67 | 69 64 29 3b 0a 09 73 65 |pw->pw_g|id);..se|
|00004d60| 74 75 69 64 28 70 77 2d | 3e 70 77 5f 75 69 64 29 |tuid(pw-|>pw_uid)|
|00004d70| 3b 0a 09 73 70 72 69 6e | 74 66 28 6d 61 69 6c 2c |;..sprin|tf(mail,|
|00004d80| 20 22 4d 41 49 4c 3d 2f | 75 73 72 2f 6d 61 69 6c | "MAIL=/|usr/mail|
|00004d90| 2f 25 73 22 2c 20 75 73 | 65 72 29 3b 0a 09 73 70 |/%s", us|er);..sp|
|00004da0| 72 69 6e 74 66 28 70 61 | 74 68 2c 20 22 50 41 54 |rintf(pa|th, "PAT|
|00004db0| 48 3d 3a 2f 75 73 72 2f | 75 63 62 3a 2f 62 69 6e |H=:/usr/|ucb:/bin|
|00004dc0| 3a 2f 75 73 72 2f 62 69 | 6e 22 29 3b 0a 09 73 70 |:/usr/bi|n");..sp|
|00004dd0| 72 69 6e 74 66 28 6c 6f | 67 6e 61 6d 65 2c 20 22 |rintf(lo|gname, "|
|00004de0| 4c 4f 47 4e 41 4d 45 3d | 25 73 22 2c 20 75 73 65 |LOGNAME=|%s", use|
|00004df0| 72 29 3b 0a 09 73 70 72 | 69 6e 74 66 28 73 68 65 |r);..spr|intf(she|
|00004e00| 6c 6c 2c 20 22 53 48 45 | 4c 4c 3d 25 73 22 2c 20 |ll, "SHE|LL=%s", |
|00004e10| 70 77 2d 3e 70 77 5f 73 | 68 65 6c 6c 29 3b 0a 09 |pw->pw_s|hell);..|
|00004e20| 73 70 72 69 6e 74 66 28 | 68 6f 6d 65 2c 20 22 48 |sprintf(|home, "H|
|00004e30| 4f 4d 45 3d 25 73 22 2c | 20 70 77 2d 3e 70 77 5f |OME=%s",| pw->pw_|
|00004e40| 64 69 72 29 3b 0a 09 70 | 75 74 65 6e 76 28 68 6f |dir);..p|utenv(ho|
|00004e50| 6d 65 29 3b 20 70 75 74 | 65 6e 76 28 70 61 74 68 |me); put|env(path|
|00004e60| 29 3b 20 70 75 74 65 6e | 76 28 73 68 65 6c 6c 29 |); puten|v(shell)|
|00004e70| 3b 20 0a 09 70 75 74 65 | 6e 76 28 6d 61 69 6c 29 |; ..pute|nv(mail)|
|00004e80| 3b 20 70 75 74 65 6e 76 | 28 6c 6f 67 6e 61 6d 65 |; putenv|(logname|
|00004e90| 29 3b 0a 09 70 75 74 65 | 6e 76 28 74 65 72 6d 29 |);..pute|nv(term)|
|00004ea0| 3b 0a 09 63 68 64 69 72 | 28 70 77 2d 3e 70 77 5f |;..chdir|(pw->pw_|
|00004eb0| 64 69 72 29 3b 0a 69 66 | 28 64 65 62 75 67 29 20 |dir);.if|(debug) |
|00004ec0| 7b 0a 09 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |{..fprin|tf(stder|
|00004ed0| 72 2c 20 22 53 65 72 76 | 65 72 20 72 65 71 75 65 |r, "Serv|er reque|
|00004ee0| 73 74 20 66 72 6f 6d 20 | 25 73 5c 6e 22 2c 20 67 |st from |%s\n", g|
|00004ef0| 65 74 65 6e 76 28 22 4c | 4f 47 4e 41 4d 45 22 29 |etenv("L|OGNAME")|
|00004f00| 29 3b 0a 7d 0a 09 73 65 | 72 76 65 72 5b 50 49 44 |);.}..se|rver[PID|
|00004f10| 4d 53 42 5d 20 3d 20 28 | 70 69 64 20 3e 3e 20 38 |MSB] = (|pid >> 8|
|00004f20| 29 20 26 20 30 78 66 66 | 3b 0a 09 73 65 72 76 65 |) & 0xff|;..serve|
|00004f30| 72 5b 50 49 44 4c 53 42 | 5d 20 3d 20 70 69 64 20 |r[PIDLSB|] = pid |
|00004f40| 26 20 30 78 66 66 3b 0a | 09 6f 6c 64 6e 65 74 20 |& 0xff;.|.oldnet |
|00004f50| 3d 20 65 74 68 65 72 6e | 65 74 3b 09 09 09 2f 2a |= ethern|et;.../*|
|00004f60| 20 73 61 76 65 20 6f 6c | 64 20 70 6f 72 74 20 66 | save ol|d port f|
|00004f70| 6f 72 20 61 20 62 69 74 | 20 2a 2f 0a 09 69 66 28 |or a bit| */..if(|
|00004f80| 63 6f 6e 66 69 67 75 72 | 65 28 73 65 72 76 65 72 |configur|e(server|
|00004f90| 2c 20 33 2c 20 67 65 74 | 70 69 64 28 29 29 20 3d |, 3, get|pid()) =|
|00004fa0| 3d 20 2d 31 29 20 7b 09 | 2f 2a 20 57 65 20 61 72 |= -1) {.|/* We ar|
|00004fb0| 65 20 74 68 69 73 20 61 | 64 64 72 65 73 73 20 2a |e this a|ddress *|
|00004fc0| 2f 0a 09 09 65 74 68 65 | 72 6e 65 74 20 3d 20 6f |/...ethe|rnet = o|
|00004fd0| 6c 64 6e 65 74 3b 09 09 | 2f 2a 20 55 73 65 20 6f |ldnet;..|/* Use o|
|00004fe0| 6c 64 20 70 6f 72 74 20 | 2a 2f 0a 09 09 73 70 72 |ld port |*/...spr|
|00004ff0| 69 6e 74 66 28 72 2d 3e | 72 5f 64 61 74 61 2c 20 |intf(r->|r_data, |
|00005000| 22 43 61 6e 27 74 20 61 | 6c 6c 6f 63 61 74 65 20 |"Can't a|llocate |
|00005010| 70 6f 72 74 22 29 3b 0a | 09 09 73 65 6e 64 28 72 |port");.|..send(r|
|00005020| 2c 20 73 74 72 6c 65 6e | 28 72 2d 3e 72 5f 64 61 |, strlen|(r->r_da|
|00005030| 74 61 29 2c 20 54 45 52 | 4d 49 4e 41 54 45 2c 20 |ta), TER|MINATE, |
|00005040| 63 6c 69 65 6e 74 29 3b | 0a 09 09 65 78 69 74 28 |client);|...exit(|
|00005050| 31 29 3b 0a 09 7d 0a 09 | 63 6c 6f 73 65 28 6f 6c |1);..}..|close(ol|
|00005060| 64 6e 65 74 29 3b 09 09 | 09 09 2f 2a 20 4f 4b 20 |dnet);..|../* OK |
|00005070| 2d 20 75 73 65 20 74 68 | 65 20 6e 65 77 20 70 6f |- use th|e new po|
|00005080| 72 74 20 2a 2f 0a 2f 2a | 0a 20 2a 20 49 6e 66 6f |rt */./*|. * Info|
|00005090| 72 6d 20 74 68 65 20 63 | 6c 69 65 6e 74 20 6f 66 |rm the c|lient of|
|000050a0| 20 6f 75 72 20 6e 65 77 | 20 61 64 64 72 65 73 73 | our new| address|
|000050b0| 0a 20 2a 2f 0a 09 6d 65 | 6d 63 70 79 28 72 2d 3e |. */..me|mcpy(r->|
|000050c0| 72 5f 64 61 74 61 2c 20 | 6d 79 6e 6f 64 65 2c 20 |r_data, |mynode, |
|000050d0| 45 54 48 45 52 53 49 5a | 45 29 3b 0a 09 73 65 6e |ETHERSIZ|E);..sen|
|000050e0| 64 28 72 2c 20 45 54 48 | 45 52 53 49 5a 45 2c 20 |d(r, ETH|ERSIZE, |
|000050f0| 41 43 43 45 50 54 2c 20 | 63 6c 69 65 6e 74 29 3b |ACCEPT, |client);|
|00005100| 0a 2f 2a 0a 20 2a 20 47 | 65 74 20 74 68 65 20 63 |./*. * G|et the c|
|00005110| 6f 6d 6d 61 6e 64 20 77 | 68 69 63 68 20 74 68 65 |ommand w|hich the|
|00005120| 20 63 6c 69 65 6e 74 20 | 77 69 73 68 65 73 20 75 | client |wishes u|
|00005130| 73 20 74 6f 20 65 78 65 | 63 75 74 65 0a 20 2a 2f |s to exe|cute. */|
|00005140| 0a 20 09 72 65 63 76 28 | 72 29 3b 0a 20 09 6d 65 |. .recv(|r);. .me|
|00005150| 6d 63 70 79 28 63 6d 64 | 2c 20 72 2d 3e 72 5f 64 |mcpy(cmd|, r->r_d|
|00005160| 61 74 61 2c 20 72 2d 3e | 72 5f 73 69 7a 65 29 3b |ata, r->|r_size);|
|00005170| 0a 2f 2a 0a 20 2a 20 53 | 70 65 63 69 61 6c 20 63 |./*. * S|pecial c|
|00005180| 61 73 65 73 3a 20 0a 20 | 2a 09 22 6c 6f 67 69 6e |ases: . |*."login|
|00005190| 22 20 2d 20 75 73 65 72 | 20 77 61 6e 74 73 20 61 |" - user| wants a|
|000051a0| 20 72 65 61 6c 20 6c 6f | 67 69 6e 20 2d 20 75 73 | real lo|gin - us|
|000051b0| 65 20 74 68 65 20 50 43 | 2d 49 6e 74 65 72 66 61 |e the PC|-Interfa|
|000051c0| 63 65 20 70 74 74 79 73 | 0a 20 2a 09 22 66 69 6c |ce pttys|. *."fil|
|000051d0| 65 73 65 72 76 65 72 22 | 20 2d 20 75 73 65 72 20 |eserver"| - user |
|000051e0| 77 61 6e 74 73 20 74 6f | 20 74 72 61 6e 73 66 65 |wants to| transfe|
|000051f0| 72 20 66 69 6c 65 73 2e | 0a 20 2a 2f 0a 20 09 69 |r files.|. */. .i|
|00005200| 66 28 21 73 74 72 63 6d | 70 28 63 6d 64 2c 20 22 |f(!strcm|p(cmd, "|
|00005210| 6c 6f 67 69 6e 22 29 29 | 20 72 65 74 75 72 6e 28 |login"))| return(|
|00005220| 64 6f 6c 6f 67 69 6e 28 | 72 29 29 3b 0a 20 09 69 |dologin(|r));. .i|
|00005230| 66 28 21 73 74 72 63 6d | 70 28 63 6d 64 2c 20 22 |f(!strcm|p(cmd, "|
|00005240| 66 69 6c 65 73 65 72 76 | 65 72 22 29 29 20 72 65 |fileserv|er")) re|
|00005250| 74 75 72 6e 28 66 69 6c | 65 73 65 72 76 65 72 28 |turn(fil|eserver(|
|00005260| 72 29 29 3b 0a 2f 2a 0a | 20 2a 20 4e 6f 77 20 73 |r));./*.| * Now s|
|00005270| 74 61 72 74 20 6f 66 66 | 20 74 68 65 20 63 68 69 |tart off| the chi|
|00005280| 6c 64 20 70 72 6f 63 65 | 73 73 2c 20 61 6e 64 20 |ld proce|ss, and |
|00005290| 63 6f 6c 6c 65 63 74 20 | 69 74 27 73 20 6f 75 74 |collect |it's out|
|000052a0| 70 75 74 0a 20 2a 2f 0a | 20 09 70 69 70 65 28 69 |put. */.| .pipe(i|
|000052b0| 6e 70 75 74 29 3b 0a 20 | 09 70 69 70 65 28 6f 75 |nput);. |.pipe(ou|
|000052c0| 74 70 75 74 29 3b 0a 20 | 09 69 66 28 73 68 20 3d |tput);. |.if(sh =|
|000052d0| 20 66 6f 72 6b 28 29 29 | 20 7b 0a 20 09 09 63 6c | fork())| {. ..cl|
|000052e0| 6f 73 65 28 69 6e 70 75 | 74 5b 57 54 5d 29 3b 0a |ose(inpu|t[WT]);.|
|000052f0| 20 09 09 63 6c 6f 73 65 | 28 6f 75 74 70 75 74 5b | ..close|(output[|
|00005300| 52 44 5d 29 3b 0a 20 09 | 09 77 72 69 74 65 72 20 |RD]);. .|.writer |
|00005310| 3d 20 67 65 74 70 69 64 | 28 29 3b 0a 20 09 09 69 |= getpid|();. ..i|
|00005320| 66 28 72 65 61 64 65 72 | 20 3d 20 66 6f 72 6b 28 |f(reader| = fork(|
|00005330| 29 29 20 7b 0a 09 20 09 | 09 6f 6b 20 3d 20 31 3b |)) {.. .|.ok = 1;|
|00005340| 0a 09 20 09 09 73 69 67 | 6e 61 6c 28 53 49 47 50 |.. ..sig|nal(SIGP|
|00005350| 49 50 45 2c 20 65 6e 64 | 70 72 6f 63 29 3b 0a 09 |IPE, end|proc);..|
|00005360| 20 09 09 77 68 69 6c 65 | 28 6f 6b 29 20 7b 0a 09 | ..while|(ok) {..|
|00005370| 20 09 09 09 72 65 63 76 | 28 72 29 3b 0a 69 66 28 | ...recv|(r);.if(|
|00005380| 64 65 62 75 67 29 20 7b | 0a 09 20 09 09 09 66 70 |debug) {|.. ...fp|
|00005390| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 73 |rintf(st|derr, "s|
|000053a0| 65 72 76 65 72 3a 20 67 | 6f 74 20 5b 25 73 5d 20 |erver: g|ot [%s] |
|000053b0| 66 72 6f 6d 20 25 73 5c | 6e 22 2c 0a 09 20 09 09 |from %s\|n",.. ..|
|000053c0| 09 09 72 2d 3e 72 5f 64 | 61 74 61 2c 20 69 70 61 |..r->r_d|ata, ipa|
|000053d0| 64 64 72 28 72 2d 3e 72 | 5f 70 6f 72 74 2e 73 72 |ddr(r->r|_port.sr|
|000053e0| 63 61 64 64 72 29 29 3b | 0a 7d 0a 09 09 09 09 6f |caddr));|.}.....o|
|000053f0| 6b 20 3d 20 70 61 73 73 | 6f 6e 28 72 2c 20 6f 75 |k = pass|on(r, ou|
|00005400| 74 70 75 74 5b 57 54 5d | 29 3b 0a 09 20 09 09 7d |tput[WT]|);.. ..}|
|00005410| 0a 09 09 09 73 69 67 74 | 65 72 6d 28 29 3b 0a 09 |....sigt|erm();..|
|00005420| 20 09 7d 0a 09 20 09 65 | 6c 73 65 20 7b 0a 09 20 | .}.. .e|lse {.. |
|00005430| 09 09 73 69 67 6e 61 6c | 28 53 49 47 54 45 52 4d |..signal|(SIGTERM|
|00005440| 2c 20 53 49 47 5f 44 46 | 4c 29 3b 0a 20 09 09 09 |, SIG_DF|L);. ...|
|00005450| 77 68 69 6c 65 28 28 6e | 20 3d 20 72 65 61 64 28 |while((n| = read(|
|00005460| 69 6e 70 75 74 5b 52 44 | 5d 2c 20 72 2d 3e 72 5f |input[RD|], r->r_|
|00005470| 64 61 74 61 2c 20 73 69 | 7a 65 6f 66 20 72 2d 3e |data, si|zeof r->|
|00005480| 72 5f 64 61 74 61 29 29 | 20 21 3d 20 2d 31 29 20 |r_data))| != -1) |
|00005490| 7b 0a 20 09 09 09 09 73 | 65 6e 64 28 72 2c 20 6e |{. ....s|end(r, n|
|000054a0| 2c 20 44 41 54 41 2c 20 | 63 6c 69 65 6e 74 29 3b |, DATA, |client);|
|000054b0| 0a 69 66 28 64 65 62 75 | 67 29 20 7b 0a 20 09 09 |.if(debu|g) {. ..|
|000054c0| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|000054d0| 2c 20 22 73 65 72 76 65 | 72 3a 20 25 73 20 73 65 |, "serve|r: %s se|
|000054e0| 6e 74 20 74 6f 20 25 73 | 5c 6e 22 2c 0a 20 09 09 |nt to %s|\n",. ..|
|000054f0| 09 09 09 72 2d 3e 72 5f | 64 61 74 61 2c 20 69 70 |...r->r_|data, ip|
|00005500| 61 64 64 72 28 63 6c 69 | 65 6e 74 29 29 3b 0a 7d |addr(cli|ent));.}|
|00005510| 0a 20 09 09 09 7d 0a 20 | 09 09 09 73 70 72 69 6e |. ...}. |...sprin|
|00005520| 74 66 28 72 2d 3e 72 5f | 64 61 74 61 2c 20 22 68 |tf(r->r_|data, "h|
|00005530| 61 6e 67 75 70 5c 6e 22 | 29 3b 0a 20 09 09 09 73 |angup\n"|);. ...s|
|00005540| 65 6e 64 28 72 2c 20 73 | 74 72 6c 65 6e 28 72 2d |end(r, s|trlen(r-|
|00005550| 3e 72 5f 64 61 74 61 29 | 2c 20 54 45 52 4d 49 4e |>r_data)|, TERMIN|
|00005560| 41 54 45 2c 20 63 6c 69 | 65 6e 74 29 3b 0a 20 09 |ATE, cli|ent);. .|
|00005570| 09 09 73 6b 69 6c 6c 28 | 77 72 69 74 65 72 2c 20 |..skill(|writer, |
|00005580| 53 49 47 4b 49 4c 4c 29 | 3b 0a 09 20 09 09 65 78 |SIGKILL)|;.. ..ex|
|00005590| 69 74 28 30 29 3b 0a 09 | 20 09 7d 0a 20 09 7d 0a |it(0);..| .}. .}.|
|000055a0| 20 09 65 6c 73 65 20 64 | 6f 65 78 65 63 28 72 29 | .else d|oexec(r)|
|000055b0| 3b 09 09 2f 2a 20 65 78 | 65 63 20 74 68 65 20 63 |;../* ex|ec the c|
|000055c0| 68 69 6c 64 20 73 68 65 | 6c 6c 20 2a 2f 0a 7d 09 |hild she|ll */.}.|
|000055d0| 0a 2f 2a 0a 20 2a 20 64 | 6f 65 78 65 63 3a 20 70 |./*. * d|oexec: p|
|000055e0| 65 72 66 6f 72 6d 20 65 | 78 65 63 20 6f 66 20 72 |erform e|xec of r|
|000055f0| 65 71 75 65 73 74 65 64 | 20 70 72 6f 63 65 64 75 |equested| procedu|
|00005600| 72 65 0a 20 2a 2f 0a 64 | 6f 65 78 65 63 28 72 29 |re. */.d|oexec(r)|
|00005610| 0a 73 74 72 75 63 74 20 | 72 65 71 75 65 73 74 20 |.struct |request |
|00005620| 2a 72 3b 0a 7b 0a 09 63 | 68 61 72 20 2a 61 72 67 |*r;.{..c|har *arg|
|00005630| 76 5b 36 5d 3b 0a 09 73 | 70 6c 69 74 28 63 6d 64 |v[6];..s|plit(cmd|
|00005640| 2c 20 61 72 67 76 29 3b | 0a 20 09 63 6c 6f 73 65 |, argv);|. .close|
|00005650| 28 30 29 3b 20 63 6c 6f | 73 65 28 31 29 3b 20 63 |(0); clo|se(1); c|
|00005660| 6c 6f 73 65 28 32 29 3b | 0a 2f 2a 0a 20 2a 20 44 |lose(2);|./*. * D|
|00005670| 75 70 6c 69 63 61 74 65 | 20 52 45 41 44 20 73 69 |uplicate| READ si|
|00005680| 64 65 20 6f 66 20 6f 75 | 74 70 75 74 20 61 73 20 |de of ou|tput as |
|00005690| 73 74 64 69 6e 0a 20 2a | 2f 0a 20 09 69 66 28 64 |stdin. *|/. .if(d|
|000056a0| 75 70 28 6f 75 74 70 75 | 74 5b 52 44 5d 29 20 21 |up(outpu|t[RD]) !|
|000056b0| 3d 20 30 29 20 70 65 72 | 72 6f 72 28 22 64 75 70 |= 0) per|ror("dup|
|000056c0| 28 69 6e 70 75 74 29 20 | 21 3d 20 30 22 29 3b 0a |(input) |!= 0");.|
|000056d0| 2f 2a 0a 20 2a 20 44 75 | 70 6c 69 63 61 74 65 20 |/*. * Du|plicate |
|000056e0| 57 52 49 54 45 20 73 69 | 64 65 20 6f 66 20 69 6e |WRITE si|de of in|
|000056f0| 70 75 74 20 61 73 20 20 | 73 74 64 6f 75 74 20 26 |put as |stdout &|
|00005700| 20 73 74 64 65 72 72 0a | 20 2a 2f 0a 20 09 69 66 | stderr.| */. .if|
|00005710| 28 64 75 70 28 69 6e 70 | 75 74 5b 57 54 5d 29 20 |(dup(inp|ut[WT]) |
|00005720| 21 3d 20 31 29 20 70 65 | 72 72 6f 72 28 22 64 75 |!= 1) pe|rror("du|
|00005730| 70 28 6f 75 74 70 75 74 | 29 20 21 3d 20 31 22 29 |p(output|) != 1")|
|00005740| 3b 0a 20 09 69 66 28 64 | 75 70 28 69 6e 70 75 74 |;. .if(d|up(input|
|00005750| 5b 57 54 5d 29 20 21 3d | 20 32 29 20 70 65 72 72 |[WT]) !=| 2) perr|
|00005760| 6f 72 28 22 64 75 70 28 | 6f 75 74 70 75 74 29 20 |or("dup(|output) |
|00005770| 21 3d 20 32 22 29 3b 0a | 2f 2a 0a 20 2a 20 63 6c |!= 2");.|/*. * cl|
|00005780| 6f 73 65 20 61 6c 6c 20 | 74 68 65 20 70 61 72 65 |ose all |the pare|
|00005790| 6e 74 27 73 20 70 69 70 | 65 73 20 2d 20 74 68 65 |nt's pip|es - the|
|000057a0| 79 27 72 65 20 64 75 70 | 6c 69 63 61 74 65 64 0a |y're dup|licated.|
|000057b0| 20 2a 2f 0a 09 63 6c 6f | 73 65 28 69 6e 70 75 74 | */..clo|se(input|
|000057c0| 5b 30 5d 29 3b 20 63 6c | 6f 73 65 28 69 6e 70 75 |[0]); cl|ose(inpu|
|000057d0| 74 5b 31 5d 29 3b 0a 09 | 63 6c 6f 73 65 28 6f 75 |t[1]);..|close(ou|
|000057e0| 74 70 75 74 5b 30 5d 29 | 3b 20 63 6c 6f 73 65 28 |tput[0])|; close(|
|000057f0| 6f 75 74 70 75 74 5b 31 | 5d 29 3b 0a 09 63 6c 6f |output[1|]);..clo|
|00005800| 73 65 28 65 74 68 65 72 | 6e 65 74 29 3b 0a 09 73 |se(ether|net);..s|
|00005810| 69 67 6e 61 6c 28 53 49 | 47 49 4e 54 2c 20 53 49 |ignal(SI|GINT, SI|
|00005820| 47 5f 44 46 4c 29 3b 0a | 09 73 69 67 6e 61 6c 28 |G_DFL);.|.signal(|
|00005830| 53 49 47 51 55 49 54 2c | 20 53 49 47 5f 44 46 4c |SIGQUIT,| SIG_DFL|
|00005840| 29 3b 0a 09 65 78 65 63 | 76 70 28 70 72 6f 67 72 |);..exec|vp(progr|
|00005850| 61 6d 2c 20 61 72 67 76 | 29 3b 0a 09 73 70 72 69 |am, argv|);..spri|
|00005860| 6e 74 66 28 72 2d 3e 72 | 5f 64 61 74 61 2c 20 22 |ntf(r->r|_data, "|
|00005870| 43 61 6e 6e 6f 74 20 65 | 78 65 63 20 25 73 5c 6e |Cannot e|xec %s\n|
|00005880| 22 2c 20 63 6d 64 29 3b | 0a 09 73 65 6e 64 28 72 |", cmd);|..send(r|
|00005890| 2c 20 73 74 72 6c 65 6e | 28 72 2d 3e 72 5f 64 61 |, strlen|(r->r_da|
|000058a0| 74 61 29 2c 20 44 41 54 | 41 2c 20 63 6c 69 65 6e |ta), DAT|A, clien|
|000058b0| 74 29 3b 0a 09 65 78 69 | 74 28 31 29 3b 0a 7d 0a |t);..exi|t(1);.}.|
|000058c0| 73 70 6c 69 74 28 70 2c | 20 61 72 67 76 29 0a 72 |split(p,| argv).r|
|000058d0| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 70 3b |egister |char *p;|
|000058e0| 0a 63 68 61 72 20 2a 2a | 61 72 67 76 3b 0a 7b 09 |.char **|argv;.{.|
|000058f0| 0a 09 69 6e 74 20 6e 20 | 3d 20 31 3b 0a 09 63 68 |..int n |= 1;..ch|
|00005900| 61 72 20 2a 66 3b 0a 09 | 73 74 61 74 69 63 20 63 |ar *f;..|static c|
|00005910| 68 61 72 20 6e 61 6d 65 | 5b 31 36 5d 3b 0a 09 61 |har name|[16];..a|
|00005920| 72 67 76 5b 30 5d 20 3d | 20 70 3b 0a 09 77 68 69 |rgv[0] =| p;..whi|
|00005930| 6c 65 28 2a 70 29 20 7b | 0a 09 09 69 66 28 2a 70 |le(*p) {|...if(*p|
|00005940| 20 3d 3d 20 27 20 27 29 | 20 7b 0a 09 09 09 2a 70 | == ' ')| {....*p|
|00005950| 2b 2b 20 3d 20 27 5c 30 | 27 3b 0a 09 09 09 77 68 |++ = '\0|';....wh|
|00005960| 69 6c 65 28 2a 70 20 3d | 3d 20 27 20 27 29 20 70 |ile(*p =|= ' ') p|
|00005970| 2b 2b 3b 0a 09 09 09 61 | 72 67 76 5b 6e 2b 2b 5d |++;....a|rgv[n++]|
|00005980| 20 3d 20 70 3b 0a 09 09 | 7d 0a 09 09 65 6c 73 65 | = p;...|}...else|
|00005990| 20 70 2b 2b 3b 0a 09 7d | 0a 09 73 74 72 63 70 79 | p++;..}|..strcpy|
|000059a0| 28 70 72 6f 67 72 61 6d | 2c 20 61 72 67 76 5b 30 |(program|, argv[0|
|000059b0| 5d 29 3b 0a 09 69 66 28 | 66 20 3d 20 73 74 72 72 |]);..if(|f = strr|
|000059c0| 63 68 72 28 61 72 67 76 | 5b 30 5d 2c 20 27 2f 27 |chr(argv|[0], '/'|
|000059d0| 29 29 20 66 2b 2b 3b 0a | 09 65 6c 73 65 20 66 20 |)) f++;.|.else f |
|000059e0| 3d 20 61 72 67 76 5b 30 | 5d 3b 0a 09 73 70 72 69 |= argv[0|];..spri|
|000059f0| 6e 74 66 28 6e 61 6d 65 | 2c 20 22 2d 25 73 22 2c |ntf(name|, "-%s",|
|00005a00| 20 66 29 3b 0a 09 61 72 | 67 76 5b 30 5d 20 3d 20 | f);..ar|gv[0] = |
|00005a10| 6e 61 6d 65 3b 0a 09 61 | 72 67 76 5b 6e 2b 2b 5d |name;..a|rgv[n++]|
|00005a20| 20 3d 20 4e 55 4c 4c 3b | 0a 7d 0a 0a 00 00 00 00 | = NULL;|.}......|
|00005a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 33 62 63 6f 6e 6e 65 63 | 74 2f 63 6f 6e 6e 65 63 |3bconnec|t/connec|
|00005c10| 74 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |t.c.....|........|
|00005c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005c80| 20 20 31 34 30 37 34 20 | 20 34 34 30 34 30 33 31 | 14074 | 4404031|
|00005c90| 36 36 34 20 20 20 37 36 | 30 33 00 20 00 00 00 00 |664 76|03. ....|
|00005ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e00| 2f 2a 0a 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |/*. * Co|pyright |
|00005e10| 28 43 29 20 31 39 38 38 | 20 44 61 76 65 20 53 65 |(C) 1988| Dave Se|
|00005e20| 74 74 6c 65 2e 20 41 6c | 6c 20 72 69 67 68 74 73 |ttle. Al|l rights|
|00005e30| 20 72 65 73 65 72 76 65 | 64 2e 0a 20 2a 20 50 65 | reserve|d.. * Pe|
|00005e40| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|00005e50| 74 65 64 20 74 6f 20 75 | 73 65 2c 20 63 6f 70 79 |ted to u|se, copy|
|00005e60| 20 61 6e 64 20 6d 6f 64 | 69 66 79 20 74 68 69 73 | and mod|ify this|
|00005e70| 20 73 6f 66 74 77 61 72 | 65 2c 20 70 72 6f 76 69 | softwar|e, provi|
|00005e80| 64 69 6e 67 0a 20 2a 20 | 74 68 61 74 20 69 74 20 |ding. * |that it |
|00005e90| 69 73 20 6e 6f 74 20 73 | 6f 6c 64 20 66 6f 72 20 |is not s|old for |
|00005ea0| 70 72 6f 66 69 74 2c 20 | 61 6e 64 20 74 68 61 74 |profit, |and that|
|00005eb0| 20 74 68 69 73 20 63 6f | 70 79 72 69 67 68 74 20 | this co|pyright |
|00005ec0| 6e 6f 74 69 63 65 20 69 | 73 20 72 65 74 61 69 6e |notice i|s retain|
|00005ed0| 65 64 0a 20 2a 20 69 6e | 20 61 6e 79 20 63 6f 70 |ed. * in| any cop|
|00005ee0| 69 65 73 20 6f 66 20 74 | 68 65 20 73 6f 75 72 63 |ies of t|he sourc|
|00005ef0| 65 2e 0a 20 2a 2f 0a 2f | 2a 0a 20 2a 20 63 6f 6e |e.. */./|*. * con|
|00005f00| 6e 65 63 74 2e 63 3a 20 | 63 6f 6e 6e 65 63 74 20 |nect.c: |connect |
|00005f10| 74 74 79 20 74 6f 20 72 | 65 6d 6f 74 65 20 68 6f |tty to r|emote ho|
|00005f20| 73 74 2e 0a 20 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 |st.. */.|.#includ|
|00005f30| 65 20 3c 73 79 73 2f 74 | 79 70 65 73 2e 68 3e 20 |e <sys/t|ypes.h> |
|00005f40| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 73 |.#includ|e <sys/s|
|00005f50| 69 67 6e 61 6c 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |ignal.h>|.#includ|
|00005f60| 65 20 3c 73 79 73 2f 65 | 72 72 6e 6f 2e 68 3e 0a |e <sys/e|rrno.h>.|
|00005f70| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 75 74 |#include| <sys/ut|
|00005f80| 73 6e 61 6d 65 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |sname.h>|.#includ|
|00005f90| 65 20 3c 74 65 72 6d 69 | 6f 2e 68 3e 0a 23 69 6e |e <termi|o.h>.#in|
|00005fa0| 63 6c 75 64 65 20 3c 70 | 77 64 2e 68 3e 0a 0a 73 |clude <p|wd.h>..s|
|00005fb0| 74 72 75 63 74 20 70 61 | 73 73 77 64 20 2a 67 65 |truct pa|sswd *ge|
|00005fc0| 74 70 77 75 69 64 28 29 | 2c 20 2a 67 65 74 70 77 |tpwuid()|, *getpw|
|00005fd0| 6e 61 6d 28 29 3b 0a 63 | 68 61 72 20 2a 67 65 74 |nam();.c|har *get|
|00005fe0| 6c 6f 67 69 6e 28 29 3b | 0a 69 6e 74 20 28 2a 73 |login();|.int (*s|
|00005ff0| 69 67 6e 61 6c 28 29 29 | 28 29 3b 0a 0a 65 78 74 |ignal())|();..ext|
|00006000| 65 72 6e 20 69 6e 74 20 | 65 72 72 6e 6f 3b 0a 23 |ern int |errno;.#|
|00006010| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00006020| 3e 0a 0a 23 64 65 66 69 | 6e 65 20 4d 41 49 4e 0a |>..#defi|ne MAIN.|
|00006030| 23 69 6e 63 6c 75 64 65 | 20 22 6e 69 2e 68 22 0a |#include| "ni.h".|
|00006040| 0a 63 68 61 72 20 72 65 | 6d 6f 74 65 73 68 65 6c |.char re|moteshel|
|00006050| 6c 5b 5d 20 3d 20 7b 30 | 2c 30 2c 30 2c 30 2c 30 |l[] = {0|,0,0,0,0|
|00006060| 2c 30 7d 3b 0a 0a 73 74 | 72 75 63 74 20 72 65 71 |,0};..st|ruct req|
|00006070| 75 65 73 74 20 72 65 71 | 75 65 73 74 3b 0a 0a 69 |uest req|uest;..i|
|00006080| 6e 74 20 72 65 61 64 65 | 72 2c 20 77 72 69 74 65 |nt reade|r, write|
|00006090| 72 3b 09 09 09 2f 2a 20 | 50 72 6f 63 65 73 73 65 |r;.../* |Processe|
|000060a0| 73 20 2a 2f 0a 0a 69 6e | 74 20 6c 6f 67 69 6e 20 |s */..in|t login |
|000060b0| 3d 20 30 3b 09 09 09 09 | 2f 2a 20 41 72 65 20 77 |= 0;....|/* Are w|
|000060c0| 65 20 64 6f 69 6e 67 20 | 61 20 6c 6f 67 69 6e 3f |e doing |a login?|
|000060d0| 20 2a 2f 0a 0a 23 64 65 | 66 69 6e 65 20 43 4f 4f | */..#de|fine COO|
|000060e0| 4b 45 44 20 30 0a 23 64 | 65 66 69 6e 65 20 52 41 |KED 0.#d|efine RA|
|000060f0| 57 20 31 0a 73 74 72 75 | 63 74 20 74 65 72 6d 69 |W 1.stru|ct termi|
|00006100| 6f 20 72 61 77 2c 20 63 | 6f 6f 6b 65 64 3b 09 09 |o raw, c|ooked;..|
|00006110| 2f 2a 20 54 6f 20 61 6c | 6c 6f 77 20 73 63 72 65 |/* To al|low scre|
|00006120| 65 6e 20 6d 6f 64 65 20 | 63 68 61 6e 67 65 73 20 |en mode |changes |
|00006130| 2a 2f 0a 69 6e 74 20 73 | 63 72 65 65 6e 6d 6f 64 |*/.int s|creenmod|
|00006140| 65 20 3d 20 43 4f 4f 4b | 45 44 2c 20 74 6f 67 67 |e = COOK|ED, togg|
|00006150| 6c 65 28 29 2c 20 74 72 | 61 70 28 29 3b 0a 0a 77 |le(), tr|ap();..w|
|00006160| 61 6b 65 75 70 28 29 7b | 0a 09 73 69 67 6e 61 6c |akeup(){|..signal|
|00006170| 28 53 49 47 41 4c 52 4d | 2c 20 77 61 6b 65 75 70 |(SIGALRM|, wakeup|
|00006180| 29 3b 0a 7d 0a 2f 2a 0a | 20 2a 20 47 6f 74 20 61 |);.}./*.| * Got a|
|00006190| 20 73 69 67 6e 61 6c 20 | 2d 20 64 69 65 2e 20 57 | signal |- die. W|
|000061a0| 72 69 74 65 72 20 69 73 | 20 63 68 69 6c 64 20 70 |riter is| child p|
|000061b0| 72 6f 63 65 73 73 20 68 | 65 72 65 2e 0a 20 2a 2f |rocess h|ere.. */|
|000061c0| 0a 64 69 65 28 73 69 67 | 29 7b 0a 09 69 66 28 73 |.die(sig|){..if(s|
|000061d0| 69 67 29 20 70 72 69 6e | 74 66 28 22 43 6f 6e 6e |ig) prin|tf("Conn|
|000061e0| 65 63 74 69 6f 6e 20 63 | 6c 6f 73 65 64 2e 5c 72 |ection c|losed.\r|
|000061f0| 5c 6e 22 29 3b 0a 09 69 | 66 28 28 67 65 74 70 69 |\n");..i|f((getpi|
|00006200| 64 28 29 20 3d 3d 20 77 | 72 69 74 65 72 29 20 26 |d() == w|riter) &|
|00006210| 26 20 72 65 61 64 65 72 | 29 20 6b 69 6c 6c 28 72 |& reader|) kill(r|
|00006220| 65 61 64 65 72 2c 20 53 | 49 47 54 45 52 4d 29 3b |eader, S|IGTERM);|
|00006230| 0a 09 65 6c 73 65 20 69 | 66 28 77 72 69 74 65 72 |..else i|f(writer|
|00006240| 29 20 74 65 72 6d 69 6e | 61 74 65 28 77 72 69 74 |) termin|ate(writ|
|00006250| 65 72 29 3b 0a 09 73 65 | 6e 64 28 26 72 65 71 75 |er);..se|nd(&requ|
|00006260| 65 73 74 2c 20 30 2c 20 | 54 45 52 4d 49 4e 41 54 |est, 0, |TERMINAT|
|00006270| 45 2c 20 73 65 72 76 65 | 72 29 3b 0a 09 69 66 28 |E, serve|r);..if(|
|00006280| 63 6f 6f 6b 65 64 2e 63 | 5f 6f 66 6c 61 67 29 20 |cooked.c|_oflag) |
|00006290| 69 6f 63 74 6c 28 66 69 | 6c 65 6e 6f 28 73 74 64 |ioctl(fi|leno(std|
|000062a0| 6f 75 74 29 2c 20 54 43 | 53 45 54 41 2c 20 26 63 |out), TC|SETA, &c|
|000062b0| 6f 6f 6b 65 64 29 3b 0a | 09 65 78 69 74 28 30 29 |ooked);.|.exit(0)|
|000062c0| 3b 0a 7d 0a 0a 73 65 6e | 64 73 69 67 28 73 69 67 |;.}..sen|dsig(sig|
|000062d0| 29 0a 7b 0a 09 73 74 72 | 75 63 74 20 72 65 71 75 |).{..str|uct requ|
|000062e0| 65 73 74 20 72 65 71 75 | 65 73 74 3b 0a 09 73 69 |est requ|est;..si|
|000062f0| 67 6e 61 6c 28 73 69 67 | 2c 20 73 65 6e 64 73 69 |gnal(sig|, sendsi|
|00006300| 67 29 3b 0a 09 69 66 28 | 73 69 67 20 3d 3d 20 53 |g);..if(|sig == S|
|00006310| 49 47 49 4e 54 29 20 73 | 65 6e 64 28 26 72 65 71 |IGINT) s|end(&req|
|00006320| 75 65 73 74 2c 20 30 2c | 20 52 4d 54 53 49 47 49 |uest, 0,| RMTSIGI|
|00006330| 4e 54 2c 20 73 65 72 76 | 65 72 29 3b 0a 09 69 66 |NT, serv|er);..if|
|00006340| 28 73 69 67 20 3d 3d 20 | 53 49 47 51 55 49 54 29 |(sig == |SIGQUIT)|
|00006350| 20 73 65 6e 64 28 26 72 | 65 71 75 65 73 74 2c 20 | send(&r|equest, |
|00006360| 30 2c 20 52 4d 54 53 49 | 47 51 55 49 54 2c 20 73 |0, RMTSI|GQUIT, s|
|00006370| 65 72 76 65 72 29 3b 0a | 7d 0a 09 0a 0a 6d 61 69 |erver);.|}....mai|
|00006380| 6e 28 61 72 67 63 2c 20 | 61 72 67 76 29 0a 63 68 |n(argc, |argv).ch|
|00006390| 61 72 20 2a 2a 61 72 67 | 76 3b 0a 0a 7b 0a 09 73 |ar **arg|v;..{..s|
|000063a0| 74 72 75 63 74 20 75 74 | 73 6e 61 6d 65 20 75 74 |truct ut|sname ut|
|000063b0| 73 3b 0a 09 72 65 67 69 | 73 74 65 72 20 63 68 61 |s;..regi|ster cha|
|000063c0| 72 20 2a 73 79 73 20 3d | 20 61 72 67 76 5b 61 72 |r *sys =| argv[ar|
|000063d0| 67 63 20 2d 20 31 5d 3b | 0a 09 69 6e 74 20 69 3b |gc - 1];|..int i;|
|000063e0| 0a 09 69 66 28 61 72 67 | 63 20 3c 20 32 29 20 7b |..if(arg|c < 2) {|
|000063f0| 0a 09 09 70 72 69 6e 74 | 66 28 22 75 73 61 67 65 |...print|f("usage|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.