|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: r
Length: 6862 (0x1ace)
Names: »rshd.8c«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat8/rshd.8c«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 4d 61 6e 61 67 65 72 20 43 ┆ u_ a_ l System Manager C┆ 0x0040…0060 6f 6d 6d 61 6e 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 72 73 68 64 28 38 63 29 0a 0a 0a 0a ┆ommands rshd(8c) ┆ 0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x0080…00a0 20 20 72 73 68 64 20 2d 20 72 65 6d 6f 74 65 20 73 68 65 6c 6c 20 73 65 72 76 65 72 0a 0a 53 08 ┆ rshd - remote shell server S ┆ 0x00a0…00c0 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 ┆S S SY Y Y YN N N NT T T TA A A ┆ 0x00c0…00e0 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 2f 08 2f 08 2f 08 2f 65 08 65 08 65 08 65 74 08 74 08 ┆AX X X X / / / /e e e et t ┆ 0x00e0…0100 74 08 74 63 08 63 08 63 08 63 2f 08 2f 08 2f 08 2f 72 08 72 08 72 08 72 73 08 73 08 73 08 73 68 ┆t tc c c c/ / / /r r r rs s s sh┆ 0x0100…0120 08 68 08 68 08 68 64 08 64 08 64 08 64 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 ┆ h h hd d d d D D D DE E E ES S┆ 0x0120…0140 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 ┆ S SC C C CR R R RI I I IP P P P┆ 0x0140…0160 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 ┆T T T TI I I IO O O ON N N N ┆ 0x0160…0180 20 20 5f 08 52 5f 08 73 5f 08 68 5f 08 64 20 69 73 20 74 68 65 20 73 65 72 76 65 72 20 66 6f 72 ┆ _ R_ s_ h_ d is the server for┆ 0x0180…01a0 20 74 68 65 20 5f 08 72 5f 08 63 5f 08 6d 5f 08 64 28 33 78 29 20 72 6f 75 74 69 6e 65 20 61 6e ┆ the _ r_ c_ m_ d(3x) routine an┆ 0x01a0…01c0 64 2c 20 63 6f 6e 73 65 2d 0a 20 20 20 20 20 71 75 65 6e 74 6c 79 2c 20 66 6f 72 20 74 68 65 20 ┆d, conse- quently, for the ┆ 0x01c0…01e0 5f 08 72 5f 08 73 5f 08 68 28 31 63 29 20 70 72 6f 67 72 61 6d 2e 20 20 54 68 65 20 73 65 72 76 ┆_ r_ s_ h(1c) program. The serv┆ 0x01e0…0200 65 72 20 70 72 6f 76 69 64 65 73 0a 20 20 20 20 20 72 65 6d 6f 74 65 20 65 78 65 63 75 74 69 6f ┆er provides remote executio┆ 0x0200…0220 6e 20 66 61 63 69 6c 69 74 69 65 73 20 77 69 74 68 20 61 75 74 68 65 6e 74 69 63 61 74 69 6f 6e ┆n facilities with authentication┆ 0x0220…0240 20 62 61 73 65 64 20 6f 6e 0a 20 20 20 20 20 70 72 69 76 69 6c 65 67 65 64 20 70 6f 72 74 20 6e ┆ based on privileged port n┆ 0x0240…0260 75 6d 62 65 72 73 20 66 72 6f 6d 20 74 72 75 73 74 65 64 20 68 6f 73 74 73 2e 0a 0a 20 20 20 20 ┆umbers from trusted hosts. ┆ 0x0260…0280 20 5f 08 52 5f 08 73 5f 08 68 5f 08 64 20 6c 69 73 74 65 6e 73 20 66 6f 72 20 73 65 72 76 69 63 ┆ _ R_ s_ h_ d listens for servic┆ 0x0280…02a0 65 20 72 65 71 75 65 73 74 73 20 61 74 20 74 68 65 20 70 6f 72 74 20 69 6e 64 69 63 61 74 65 64 ┆e requests at the port indicated┆ 0x02a0…02c0 20 69 6e 0a 20 20 20 20 20 74 68 65 20 60 60 63 6d 64 27 27 20 73 65 72 76 69 63 65 20 73 70 65 ┆ in the ``cmd'' service spe┆ 0x02c0…02e0 63 69 66 69 63 61 74 69 6f 6e 3b 20 73 65 65 20 5f 08 73 5f 08 65 5f 08 72 5f 08 76 5f 08 69 5f ┆cification; see _ s_ e_ r_ v_ i_┆ 0x02e0…0300 08 63 5f 08 65 5f 08 73 28 35 29 2e 20 20 57 68 65 6e 20 61 0a 20 20 20 20 20 73 65 72 76 69 63 ┆ c_ e_ s(5). When a servic┆ 0x0300…0320 65 20 72 65 71 75 65 73 74 20 69 73 20 72 65 63 65 69 76 65 64 20 74 68 65 20 66 6f 6c 6c 6f 77 ┆e request is received the follow┆ 0x0320…0340 69 6e 67 20 70 72 6f 74 6f 63 6f 6c 20 69 73 20 69 6e 69 2d 0a 20 20 20 20 20 74 69 61 74 65 64 ┆ing protocol is ini- tiated┆ 0x0340…0360 3a 0a 0a 20 20 20 20 20 31 29 20 20 20 54 68 65 20 73 65 72 76 65 72 20 63 68 65 63 6b 73 20 74 ┆: 1) The server checks t┆ 0x0360…0380 68 65 20 63 6c 69 65 6e 74 27 73 20 73 6f 75 72 63 65 20 70 6f 72 74 2e 20 20 49 66 20 74 68 65 ┆he client's source port. If the┆ 0x0380…03a0 0a 20 20 20 20 20 20 20 20 20 20 70 6f 72 74 20 69 73 20 6e 6f 74 20 69 6e 20 74 68 65 20 72 61 ┆ port is not in the ra┆ 0x03a0…03c0 6e 67 65 20 30 2d 31 30 32 33 2c 20 74 68 65 20 73 65 72 76 65 72 20 61 62 6f 72 74 73 20 74 68 ┆nge 0-1023, the server aborts th┆ 0x03c0…03e0 65 0a 20 20 20 20 20 20 20 20 20 20 63 6f 6e 6e 65 63 74 69 6f 6e 2e 0a 0a 20 20 20 20 20 32 29 ┆e connection. 2)┆ 0x03e0…0400 20 20 20 54 68 65 20 73 65 72 76 65 72 20 72 65 61 64 73 20 63 68 61 72 61 63 74 65 72 73 20 66 ┆ The server reads characters f┆ 0x0400…0420 72 6f 6d 20 74 68 65 20 73 6f 63 6b 65 74 20 75 70 20 74 6f 20 61 0a 20 20 20 20 20 20 20 20 20 ┆rom the socket up to a ┆ 0x0420…0440 20 6e 75 6c 6c 20 28 60 5c 30 27 29 20 62 79 74 65 2e 20 20 54 68 65 20 72 65 73 75 6c 74 61 6e ┆ null (`\0') byte. The resultan┆ 0x0440…0460 74 20 73 74 72 69 6e 67 20 69 73 20 69 6e 74 65 72 70 72 65 74 65 64 0a 20 20 20 20 20 20 20 20 ┆t string is interpreted ┆ 0x0460…0480 20 20 61 73 20 61 6e 20 41 53 43 49 49 20 6e 75 6d 62 65 72 2c 20 62 61 73 65 20 31 30 2e 0a 0a ┆ as an ASCII number, base 10. ┆ 0x0480…04a0 20 20 20 20 20 33 29 20 20 20 49 66 20 74 68 65 20 6e 75 6d 62 65 72 20 72 65 63 65 69 76 65 64 ┆ 3) If the number received┆ 0x04a0…04c0 20 69 6e 20 73 74 65 70 20 31 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 69 74 20 69 73 0a 20 20 ┆ in step 1 is non-zero, it is ┆ 0x04c0…04e0 20 20 20 20 20 20 20 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 74 68 65 20 70 6f 72 74 20 ┆ interpreted as the port ┆ 0x04e0…0500 6e 75 6d 62 65 72 20 6f 66 20 61 20 73 65 63 6f 6e 64 61 72 79 20 73 74 72 65 61 6d 20 74 6f 0a ┆number of a secondary stream to ┆ 0x0500…0520 20 20 20 20 20 20 20 20 20 20 62 65 20 75 73 65 64 20 66 6f 72 20 74 68 65 20 73 08 73 08 73 08 ┆ be used for the s s s ┆ 0x0520…0540 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 65 08 65 08 65 08 65 72 08 72 08 72 08 72 72 08 72 ┆st t t td d d de e e er r r rr r┆ 0x0540…0560 08 72 08 72 2e 20 20 41 20 73 65 63 6f 6e 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 69 73 20 74 68 ┆ r r. A second connection is th┆ 0x0560…0580 65 6e 0a 20 20 20 20 20 20 20 20 20 20 63 72 65 61 74 65 64 20 74 6f 20 74 68 65 20 73 70 65 63 ┆en created to the spec┆ 0x0580…05a0 69 66 69 65 64 20 70 6f 72 74 20 6f 6e 20 74 68 65 20 63 6c 69 65 6e 74 27 73 20 6d 61 63 68 69 ┆ified port on the client's machi┆ 0x05a0…05c0 6e 65 2e 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 73 6f 75 72 63 65 20 70 6f 72 74 20 6f 66 ┆ne. The source port of┆ 0x05c0…05e0 20 74 68 69 73 20 73 65 63 6f 6e 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 69 73 20 61 6c 73 6f 20 ┆ this second connection is also ┆ 0x05e0…0600 69 6e 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 72 61 6e 67 65 20 30 2d 31 30 32 33 2e 0a 0a ┆in the range 0-1023. ┆ 0x0600…0620 20 20 20 20 20 34 29 20 20 20 54 68 65 20 73 65 72 76 65 72 20 63 68 65 63 6b 73 20 74 68 65 20 ┆ 4) The server checks the ┆ 0x0620…0640 63 6c 69 65 6e 74 27 73 20 73 6f 75 72 63 65 20 61 64 64 72 65 73 73 20 61 6e 64 0a 20 20 20 20 ┆client's source address and ┆ 0x0640…0660 20 20 20 20 20 20 72 65 71 75 65 73 74 73 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 ┆ requests the corresponding┆ 0x0660…0680 20 68 6f 73 74 20 6e 61 6d 65 20 28 73 65 65 0a 20 20 20 20 20 20 20 20 20 20 5f 08 67 5f 08 65 ┆ host name (see _ g_ e┆ 0x0680…06a0 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 5f 08 61 5f 08 64 5f 08 64 5f 08 ┆_ t_ h_ o_ s_ t_ b_ y_ a_ d_ d_ ┆ 0x06a0…06c0 72 28 33 6e 29 2c 20 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 73 28 35 29 20 61 6e 64 20 5f 08 ┆r(3n), _ h_ o_ s_ t_ s(5) and _ ┆ 0x06c0…06e0 6e 5f 08 61 5f 08 6d 5f 08 65 5f 08 64 28 38 29 29 2e 20 20 49 66 20 74 68 65 0a 20 20 20 20 20 ┆n_ a_ m_ e_ d(8)). If the ┆ 0x06e0…0700 20 20 20 20 20 68 6f 73 74 6e 61 6d 65 20 63 61 6e 6e 6f 74 20 62 65 20 64 65 74 65 72 6d 69 6e ┆ hostname cannot be determin┆ 0x0700…0720 65 64 2c 20 74 68 65 20 64 6f 74 2d 6e 6f 74 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 72 ┆ed, the dot-notation r┆ 0x0720…0740 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 68 6f 73 74 20 61 64 64 72 65 73 ┆epresentation of the host addres┆ 0x0740…0760 73 20 69 73 20 75 73 65 64 2e 0a 0a 20 20 20 20 20 35 29 20 20 20 41 20 6e 75 6c 6c 20 74 65 72 ┆s is used. 5) A null ter┆ 0x0760…0780 6d 69 6e 61 74 65 64 20 75 73 65 72 20 6e 61 6d 65 20 6f 66 20 61 74 20 6d 6f 73 74 20 31 36 20 ┆minated user name of at most 16 ┆ 0x0780…07a0 63 68 61 72 61 63 74 65 72 73 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 72 65 74 72 69 65 76 65 ┆characters is retrieve┆ 0x07a0…07c0 64 20 6f 6e 20 74 68 65 20 69 6e 69 74 69 61 6c 20 73 6f 63 6b 65 74 2e 20 20 54 68 69 73 20 75 ┆d on the initial socket. This u┆ 0x07c0…07e0 73 65 72 20 6e 61 6d 65 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 70 72 65 74 65 ┆ser name is interprete┆ 0x07e0…0800 64 20 61 73 20 74 68 65 20 75 73 65 72 20 69 64 65 6e 74 69 74 79 20 6f 6e 20 74 68 65 20 63 08 ┆d as the user identity on the c ┆ 0x0800…0820 63 08 63 08 63 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 ┆c c cl l l li i i ie e e en n n ┆ 0x0820…0840 6e 74 08 74 08 74 08 74 27 73 0a 20 20 20 20 20 20 20 20 20 20 6d 61 63 68 69 6e 65 2e 0a 0a 20 ┆nt t t t's machine. ┆ 0x0840…0860 20 20 20 20 36 29 20 20 20 41 20 6e 75 6c 6c 20 74 65 72 6d 69 6e 61 74 65 64 20 75 73 65 72 20 ┆ 6) A null terminated user ┆ 0x0860…0880 6e 61 6d 65 20 6f 66 20 61 74 20 6d 6f 73 74 20 31 36 20 63 68 61 72 61 63 74 65 72 73 20 69 73 ┆name of at most 16 characters is┆ 0x0880…08a0 0a 20 20 20 20 20 20 20 20 20 20 72 65 74 72 69 65 76 65 64 20 6f 6e 20 74 68 65 20 69 6e 69 74 ┆ retrieved on the init┆ 0x08a0…08c0 69 61 6c 20 73 6f 63 6b 65 74 2e 20 20 54 68 69 73 20 75 73 65 72 20 6e 61 6d 65 20 69 73 0a 20 ┆ial socket. This user name is ┆ 0x08c0…08e0 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 61 20 75 73 65 72 20 69 ┆ interpreted as a user i┆ 0x08e0…0900 64 65 6e 74 69 74 79 20 74 6f 20 75 73 65 20 6f 6e 20 74 68 65 20 73 08 73 08 73 08 73 65 08 65 ┆dentity to use on the s s s se e┆ 0x0900…0920 08 65 08 65 72 08 72 08 72 08 72 76 08 76 08 76 08 76 65 08 65 08 65 08 65 72 08 72 08 72 08 72 ┆ e er r r rv v v ve e e er r r r┆ 0x0920…0940 27 73 0a 20 20 20 20 20 20 20 20 20 20 6d 61 63 68 69 6e 65 2e 0a 0a 20 20 20 20 20 37 29 20 20 ┆'s machine. 7) ┆ 0x0940…0960 20 41 20 6e 75 6c 6c 20 74 65 72 6d 69 6e 61 74 65 64 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 62 65 ┆ A null terminated command to be┆ 0x0960…0980 20 70 61 73 73 65 64 20 74 6f 20 61 20 73 68 65 6c 6c 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 ┆ passed to a shell is ┆ 0x0980…09a0 72 65 74 72 69 65 76 65 64 20 6f 6e 20 74 68 65 20 69 6e 69 74 69 61 6c 20 73 6f 63 6b 65 74 2e ┆retrieved on the initial socket.┆ 0x09a0…09c0 20 20 54 68 65 20 6c 65 6e 67 74 68 20 6f 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 63 6f ┆ The length of the co┆ 0x09c0…09e0 6d 6d 61 6e 64 20 69 73 20 6c 69 6d 69 74 65 64 20 62 79 20 74 68 65 20 75 70 70 65 72 20 62 6f ┆mmand is limited by the upper bo┆ 0x09e0…0a00 75 6e 64 20 6f 6e 20 74 68 65 20 73 69 7a 65 20 6f 66 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 ┆und on the size of the┆ 0x0a00…0a20 20 73 79 73 74 65 6d 27 73 20 61 72 67 75 6d 65 6e 74 20 6c 69 73 74 2e 0a 0a 20 20 20 20 20 38 ┆ system's argument list. 8┆ 0x0a20…0a40 29 20 20 20 5f 08 52 5f 08 73 5f 08 68 5f 08 64 20 74 68 65 6e 20 76 61 6c 69 64 61 74 65 73 20 ┆) _ R_ s_ h_ d then validates ┆ 0x0a40…0a60 74 68 65 20 75 73 65 72 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 66 6f 6c 6c 6f 77 ┆the user according to the follow┆ 0x0a60…0a80 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 73 74 65 70 73 2e 20 20 54 68 65 20 6c 6f 63 61 6c 20 ┆ing steps. The local ┆ 0x0a80…0aa0 28 73 65 72 76 65 72 2d 65 6e 64 29 20 75 73 65 72 20 6e 61 6d 65 20 69 73 20 6c 6f 6f 6b 65 64 ┆(server-end) user name is looked┆ 0x0aa0…0ac0 20 75 70 0a 20 20 20 20 20 20 20 20 20 20 69 6e 20 74 68 65 20 70 61 73 73 77 6f 72 64 20 66 69 ┆ up in the password fi┆ 0x0ac0…0ae0 6c 65 20 61 6e 64 20 61 20 5f 08 63 5f 08 68 5f 08 64 5f 08 69 5f 08 72 20 69 73 20 70 65 72 66 ┆le and a _ c_ h_ d_ i_ r is perf┆ 0x0ae0…0b00 6f 72 6d 65 64 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 75 73 65 72 27 73 20 68 6f ┆ormed to the user's ho┆ 0x0b00…0b20 6d 65 20 64 69 72 65 63 74 6f 72 79 2e 20 20 49 66 20 65 69 74 68 65 72 20 74 68 65 20 6c 6f 6f ┆me directory. If either the loo┆ 0x0b20…0b40 6b 75 70 20 6f 72 20 5f 08 63 5f 08 68 5f 08 64 5f 08 69 5f 08 72 0a 20 20 20 20 20 20 20 20 20 ┆kup or _ c_ h_ d_ i_ r ┆ 0x0b40…0b60 20 66 61 69 6c 2c 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 69 73 20 74 65 72 6d 69 6e 61 ┆ fail, the connection is termina┆ 0x0b60…0b80 74 65 64 2e 20 20 49 66 20 74 68 65 20 75 73 65 72 20 69 73 20 6e 6f 74 0a 20 20 20 20 20 20 20 ┆ted. If the user is not ┆ 0x0b80…0ba0 20 20 20 74 68 65 20 73 75 70 65 72 2d 75 73 65 72 2c 20 28 75 73 65 72 20 69 64 20 30 29 2c 20 ┆ the super-user, (user id 0), ┆ 0x0ba0…0bc0 74 68 65 20 66 69 6c 65 20 2f 5f 08 65 5f 08 74 5f 08 63 2f 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 ┆the file /_ e_ t_ c/_ h_ o_ s_ t┆ 0x0bc0…0be0 5f 08 73 2e 5f 08 65 5f 08 71 5f 08 75 5f 08 69 5f 08 76 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 ┆_ s._ e_ q_ u_ i_ v ┆ 0x0be0…0c00 20 20 20 20 69 73 20 63 6f 6e 73 75 6c 74 65 64 20 66 6f 72 20 61 20 6c 69 73 74 20 6f 66 20 68 ┆ is consulted for a list of h┆ 0x0c00…0c20 6f 73 74 73 20 63 6f 6e 73 69 64 65 72 65 64 0a 20 20 20 20 20 20 20 20 20 20 60 60 65 71 75 69 ┆osts considered ``equi┆ 0x0c20…0c40 76 61 6c 65 6e 74 27 27 2e 20 20 49 66 20 74 68 65 20 63 6c 69 65 6e 74 27 73 20 68 6f 73 74 20 ┆valent''. If the client's host ┆ 0x0c40…0c60 6e 61 6d 65 20 69 73 20 70 72 65 73 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 69 6e 20 74 68 69 ┆name is present in thi┆ 0x0c60…0c80 73 20 66 69 6c 65 2c 20 74 68 65 20 61 75 74 68 65 6e 74 69 63 61 74 69 6f 6e 20 69 73 20 63 6f ┆s file, the authentication is co┆ 0x0c80…0ca0 6e 73 69 64 65 72 65 64 20 73 75 63 63 65 73 73 2d 0a 20 20 20 20 20 20 20 20 20 20 66 75 6c 2e ┆nsidered success- ful.┆ 0x0ca0…0cc0 20 20 49 66 20 74 68 65 20 6c 6f 6f 6b 75 70 20 66 61 69 6c 73 2c 20 6f 72 20 74 68 65 20 75 73 ┆ If the lookup fails, or the us┆ 0x0cc0…0ce0 65 72 20 69 73 20 74 68 65 20 73 75 70 65 72 2d 0a 20 20 20 20 20 20 20 20 20 20 75 73 65 72 2c ┆er is the super- user,┆ 0x0ce0…0d00 20 74 68 65 6e 20 74 68 65 20 66 69 6c 65 20 2e 5f 08 72 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f ┆ then the file ._ r_ h_ o_ s_ t_┆ 0x0d00…0d20 08 73 20 69 6e 20 74 68 65 20 68 6f 6d 65 20 64 69 72 65 63 74 6f 72 79 20 6f 66 0a 20 20 20 20 ┆ s in the home directory of ┆ 0x0d20…0d40 20 20 20 20 20 20 74 68 65 20 72 65 6d 6f 74 65 20 75 73 65 72 20 69 73 20 63 68 65 63 6b 65 64 ┆ the remote user is checked┆ 0x0d40…0d60 20 66 6f 72 20 74 68 65 20 6d 61 63 68 69 6e 65 20 6e 61 6d 65 20 61 6e 64 0a 20 20 20 20 20 20 ┆ for the machine name and ┆ 0x0d60…0d80 20 20 20 20 69 64 65 6e 74 69 74 79 20 6f 66 20 74 68 65 20 75 73 65 72 20 6f 6e 20 74 68 65 20 ┆ identity of the user on the ┆ 0x0d80…0da0 63 6c 69 65 6e 74 27 73 20 6d 61 63 68 69 6e 65 2e 20 20 49 66 20 74 68 69 73 0a 20 20 20 20 20 ┆client's machine. If this ┆ 0x0da0…0dc0 20 20 20 20 20 6c 6f 6f 6b 75 70 20 66 61 69 6c 73 2c 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f ┆ lookup fails, the connectio┆ 0x0dc0…0de0 6e 20 69 73 20 74 65 72 6d 69 6e 61 74 65 64 2e 0a 0a 20 20 20 20 20 39 29 20 20 20 41 20 6e 75 ┆n is terminated. 9) A nu┆ 0x0de0…0e00 6c 6c 20 62 79 74 65 20 69 73 20 72 65 74 75 72 6e 65 64 20 6f 6e 20 74 68 65 20 69 6e 69 74 69 ┆ll byte is returned on the initi┆ 0x0e00…0e20 61 6c 20 73 6f 63 6b 65 74 20 61 6e 64 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 63 6f 6d 6d ┆al socket and the comm┆ 0x0e20…0e40 61 6e 64 20 6c 69 6e 65 20 69 73 20 70 61 73 73 65 64 20 74 6f 20 74 68 65 20 6e 6f 72 6d 61 6c ┆and line is passed to the normal┆ 0x0e40…0e60 20 6c 6f 67 69 6e 20 73 68 65 6c 6c 20 6f 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 75 73 ┆ login shell of the us┆ 0x0e60…0e80 65 72 2e 20 20 54 68 65 20 73 68 65 6c 6c 20 69 6e 68 65 72 69 74 73 20 74 68 65 20 6e 65 74 77 ┆er. The shell inherits the netw┆ 0x0e80…0ea0 6f 72 6b 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 20 65 73 74 61 2d 0a 20 20 20 20 20 20 20 20 20 20 ┆ork connections esta- ┆ 0x0ea0…0ec0 62 6c 69 73 68 65 64 20 62 79 20 5f 08 72 5f 08 73 5f 08 68 5f 08 64 2e 0a 0a 44 08 44 08 44 08 ┆blished by _ r_ s_ h_ d. D D D ┆ 0x0ec0…0ee0 44 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f ┆DI I I IA A A AG G G GN N N NO O┆ 0x0ee0…0f00 08 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 ┆ O OS S S ST T T TI I I IC C C C┆ 0x0f00…0f20 53 08 53 08 53 08 53 0a 20 20 20 20 20 45 78 63 65 70 74 20 66 6f 72 20 74 68 65 20 6c 61 73 74 ┆S S S S Except for the last┆ 0x0f20…0f40 20 6f 6e 65 20 6c 69 73 74 65 64 20 62 65 6c 6f 77 2c 20 61 6c 6c 20 64 69 61 67 6e 6f 73 74 69 ┆ one listed below, all diagnosti┆ 0x0f40…0f60 63 20 6d 65 73 2d 0a 20 20 20 20 20 73 61 67 65 73 20 61 72 65 20 72 65 74 75 72 6e 65 64 20 6f ┆c mes- sages are returned o┆ 0x0f60…0f80 6e 20 74 68 65 20 69 6e 69 74 69 61 6c 20 73 6f 63 6b 65 74 2c 20 61 66 74 65 72 20 77 68 69 63 ┆n the initial socket, after whic┆ 0x0f80…0fa0 68 20 61 6e 79 0a 20 20 20 20 20 6e 65 74 77 6f 72 6b 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 20 61 ┆h any network connections a┆ 0x0fa0…0fc0 72 65 20 63 6c 6f 73 65 64 2e 20 20 41 6e 20 65 72 72 6f 72 20 69 73 20 69 6e 64 69 63 61 74 65 ┆re closed. An error is indicate┆ 0x0fc0…0fe0 64 20 62 79 20 61 0a 20 20 20 20 20 6c 65 61 64 69 6e 67 20 62 79 74 65 20 77 69 74 68 20 61 20 ┆d by a leading byte with a ┆ 0x0fe0…1000 76 61 6c 75 65 20 6f 66 20 31 20 28 30 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 6e 20 73 74 65 ┆value of 1 (0 is returned in ste┆ 0x1000…1020 70 20 39 0a 20 20 20 20 20 61 62 6f 76 65 20 75 70 6f 6e 20 73 75 63 63 65 73 73 66 75 6c 20 63 ┆p 9 above upon successful c┆ 0x1020…1040 6f 6d 70 6c 65 74 69 6f 6e 20 6f 66 20 61 6c 6c 20 74 68 65 20 73 74 65 70 73 20 70 72 69 6f 72 ┆ompletion of all the steps prior┆ 0x1040…1060 20 74 6f 0a 20 20 20 20 20 74 68 65 20 65 78 65 63 75 74 69 6f 6e 20 6f 66 20 74 68 65 20 6c 6f ┆ to the execution of the lo┆ 0x1060…1080 67 69 6e 20 73 68 65 6c 6c 29 2e 0a 0a 20 20 20 20 20 60 08 60 08 60 08 60 60 08 60 08 60 08 60 ┆gin shell). ` ` ` `` ` ` `┆ 0x1080…10a0 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 75 08 75 08 75 08 75 73 08 73 08 ┆l l l lo o o oc c c cu u u us s ┆ 0x10a0…10c0 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 20 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f ┆s se e e er r r r t t t to o o o┆ 0x10c0…10e0 6f 08 6f 08 6f 08 6f 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 ┆o o o o l l l lo o o on n n ng g┆ 0x10e0…1100 08 67 08 67 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 68 65 20 6e 61 6d 65 ┆ g g' ' ' '' ' ' ' The name┆ 0x1100…1120 20 6f 66 20 74 68 65 20 75 73 65 72 20 6f 6e 20 74 68 65 20 63 6c 69 65 6e 74 27 73 20 6d 61 63 ┆ of the user on the client's mac┆ 0x1120…1140 68 69 6e 65 20 69 73 20 6c 6f 6e 67 65 72 20 74 68 61 6e 0a 20 20 20 20 20 31 36 20 63 68 61 72 ┆hine is longer than 16 char┆ 0x1140…1160 61 63 74 65 72 73 2e 0a 0a 20 20 20 20 20 60 08 60 08 60 08 60 60 08 60 08 60 08 60 72 08 72 08 ┆acters. ` ` ` `` ` ` `r r ┆ 0x1160…1180 72 08 72 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 ┆r re e e em m m mu u u us s s se┆ 0x1180…11a0 08 65 08 65 08 65 72 08 72 08 72 08 72 20 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 6f 08 6f 08 ┆ e e er r r r t t t to o o oo o ┆ 0x11a0…11c0 6f 08 6f 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 ┆o o l l l lo o o on n n ng g g g┆ 0x11c0…11e0 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 68 65 20 6e 61 6d 65 20 6f 66 20 ┆' ' ' '' ' ' ' The name of ┆ 0x11e0…1200 74 68 65 20 75 73 65 72 20 6f 6e 20 74 68 65 20 72 65 6d 6f 74 65 20 6d 61 63 68 69 6e 65 20 69 ┆the user on the remote machine i┆ 0x1200…1220 73 20 6c 6f 6e 67 65 72 20 74 68 61 6e 20 31 36 0a 20 20 20 20 20 63 68 61 72 61 63 74 65 72 73 ┆s longer than 16 characters┆ 0x1220…1240 2e 0a 0a 20 20 20 20 20 60 08 60 08 60 08 60 60 08 60 08 60 08 60 63 08 63 08 63 08 63 6f 08 6f ┆. ` ` ` `` ` ` `c c c co o┆ 0x1240…1260 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e ┆ o om m m mm m m ma a a an n n n┆ 0x1260…1280 64 08 64 08 64 08 64 20 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 6f 08 6f 08 6f 08 6f 20 6c 08 ┆d d d d t t t to o o oo o o o l ┆ 0x1280…12a0 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 27 08 27 08 27 ┆l l lo o o on n n ng g g g ' ' '┆ 0x12a0…12c0 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 68 65 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 20 ┆ '' ' ' ' The command line ┆ 0x12c0…12e0 70 61 73 73 65 64 20 65 78 63 65 65 64 73 20 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 65 20 61 ┆passed exceeds the size of the a┆ 0x12e0…1300 72 67 75 6d 65 6e 74 0a 20 20 20 20 20 6c 69 73 74 20 28 61 73 20 63 6f 6e 66 69 67 75 72 65 64 ┆rgument list (as configured┆ 0x1300…1320 20 69 6e 74 6f 20 74 68 65 20 73 79 73 74 65 6d 29 2e 0a 0a 20 20 20 20 20 60 08 60 08 60 08 60 ┆ into the system). ` ` ` `┆ 0x1320…1340 60 08 60 08 60 08 60 4c 08 4c 08 4c 08 4c 6f 08 6f 08 6f 08 6f 67 08 67 08 67 08 67 69 08 69 08 ┆` ` ` `L L L Lo o o og g g gi i ┆ 0x1340…1360 69 08 69 6e 08 6e 08 6e 08 6e 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 ┆i in n n n i i i in n n nc c c c┆ 0x1360…1380 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 72 08 72 08 72 08 72 65 08 65 08 65 08 65 63 08 63 08 ┆o o o or r r rr r r re e e ec c ┆ 0x1380…13a0 63 08 63 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a ┆c ct t t t. . . .' ' ' '' ' ' ' ┆ 0x13a0…13c0 20 20 20 20 20 4e 6f 20 70 61 73 73 77 6f 72 64 20 66 69 6c 65 20 65 6e 74 72 79 20 66 6f 72 20 ┆ No password file entry for ┆ 0x13c0…13e0 74 68 65 20 75 73 65 72 20 6e 61 6d 65 20 65 78 69 73 74 65 64 2e 0a 0a 20 20 20 20 20 60 08 60 ┆the user name existed. ` `┆ 0x13e0…1400 08 60 08 60 60 08 60 08 60 08 60 4e 08 4e 08 4e 08 4e 6f 08 6f 08 6f 08 6f 20 72 08 72 08 72 08 ┆ ` `` ` ` `N N N No o o o r r r ┆ 0x1400…1420 72 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 74 08 74 08 74 08 74 65 08 65 ┆re e e em m m mo o o ot t t te e┆ 0x1420…1440 08 65 08 65 20 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 65 08 65 08 65 08 ┆ e e d d d di i i ir r r re e e ┆ 0x1440…1460 65 63 08 63 08 63 08 63 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 79 08 79 ┆ec c c ct t t to o o or r r ry y┆ 0x1460…1480 08 79 08 79 2e 08 2e 08 2e 08 2e 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 ┆ y y. . . .' ' ' '' ' ' ' T┆ 0x1480…14a0 68 65 20 5f 08 63 5f 08 68 5f 08 64 5f 08 69 5f 08 72 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 74 68 ┆he _ c_ h_ d_ i_ r command to th┆ 0x14a0…14c0 65 20 68 6f 6d 65 20 64 69 72 65 63 74 6f 72 79 20 66 61 69 6c 65 64 2e 0a 0a 20 20 20 20 20 60 ┆e home directory failed. `┆ 0x14c0…14e0 08 60 08 60 08 60 60 08 60 08 60 08 60 50 08 50 08 50 08 50 65 08 65 08 65 08 65 72 08 72 08 72 ┆ ` ` `` ` ` `P P P Pe e e er r r┆ 0x14e0…1500 08 72 6d 08 6d 08 6d 08 6d 69 08 69 08 69 08 69 73 08 73 08 73 08 73 73 08 73 08 73 08 73 69 08 ┆ rm m m mi i i is s s ss s s si ┆ 0x1500…1520 69 08 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 20 64 08 64 08 64 08 64 65 08 65 08 65 ┆i i io o o on n n n d d d de e e┆ 0x1520…1540 08 65 6e 08 6e 08 6e 08 6e 69 08 69 08 69 08 69 65 08 65 08 65 08 65 64 08 64 08 64 08 64 2e 08 ┆ en n n ni i i ie e e ed d d d. ┆ 0x1540…1560 2e 08 2e 08 2e 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 68 65 20 61 75 74 ┆. . .' ' ' '' ' ' ' The aut┆ 0x1560…1580 68 65 6e 74 69 63 61 74 69 6f 6e 20 70 72 6f 63 65 64 75 72 65 20 64 65 73 63 72 69 62 65 64 20 ┆hentication procedure described ┆ 0x1580…15a0 61 62 6f 76 65 20 66 61 69 6c 65 64 2e 0a 0a 20 20 20 20 20 60 08 60 08 60 08 60 60 08 60 08 60 ┆above failed. ` ` ` `` ` `┆ 0x15a0…15c0 08 60 43 08 43 08 43 08 43 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 27 08 27 08 27 08 27 74 08 ┆ `C C C Ca a a an n n n' ' ' 't ┆ 0x15c0…15e0 74 08 74 08 74 20 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 6b 08 6b 08 6b 08 6b 65 08 65 08 65 ┆t t t m m m ma a a ak k k ke e e┆ 0x15e0…1600 08 65 20 70 08 70 08 70 08 70 69 08 69 08 69 08 69 70 08 70 08 70 08 70 65 08 65 08 65 08 65 2e ┆ e p p p pi i i ip p p pe e e e.┆ 0x1600…1620 08 2e 08 2e 08 2e 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 68 65 20 70 69 ┆ . . .' ' ' '' ' ' ' The pi┆ 0x1620…1640 70 65 20 6e 65 65 64 65 64 20 66 6f 72 20 74 68 65 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 ┆pe needed for the s s s st t t t┆ 0x1640…1660 64 08 64 08 64 08 64 65 08 65 08 65 08 65 72 08 72 08 72 08 72 72 08 72 08 72 08 72 2c 20 77 61 ┆d d d de e e er r r rr r r r, wa┆ 0x1660…1680 73 6e 27 74 20 63 72 65 61 74 65 64 2e 0a 0a 20 20 20 20 20 60 08 60 08 60 08 60 60 08 60 08 60 ┆sn't created. ` ` ` `` ` `┆ 0x1680…16a0 08 60 54 08 54 08 54 08 54 72 08 72 08 72 08 72 79 08 79 08 79 08 79 20 61 08 61 08 61 08 61 67 ┆ `T T T Tr r r ry y y y a a a ag┆ 0x16a0…16c0 08 67 08 67 08 67 61 08 61 08 61 08 61 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 2e 08 2e 08 2e ┆ g g ga a a ai i i in n n n. . .┆ 0x16c0…16e0 08 2e 27 08 27 08 27 08 27 27 08 27 08 27 08 27 0a 20 20 20 20 20 41 20 5f 08 66 5f 08 6f 5f 08 ┆ .' ' ' '' ' ' ' A _ f_ o_ ┆ 0x16e0…1700 72 5f 08 6b 20 62 79 20 74 68 65 20 73 65 72 76 65 72 20 66 61 69 6c 65 64 2e 0a 0a 20 20 20 20 ┆r_ k by the server failed. ┆ 0x1700…1720 20 60 08 60 08 60 08 60 60 08 60 08 60 08 60 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 68 08 68 ┆ ` ` ` `` ` ` `< < < <s s s sh h┆ 0x1720…1740 08 68 08 68 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 6c 08 6c 08 6c 08 6c 6e 08 6e 08 6e 08 6e ┆ h he e e el l l ll l l ln n n n┆ 0x1740…1760 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 3e 08 3e 08 3e 08 3e 3a 08 3a 08 ┆a a a am m m me e e e> > > >: : ┆ 0x1760…1780 3a 08 3a 20 2e 08 2e 08 2e 08 2e 2e 08 2e 08 2e 08 2e 2e 08 2e 08 2e 08 2e 27 08 27 08 27 08 27 ┆: : . . . .. . . .. . . .' ' ' '┆ 0x1780…17a0 27 08 27 08 27 08 27 0a 20 20 20 20 20 54 68 65 20 75 73 65 72 27 73 20 6c 6f 67 69 6e 20 73 68 ┆' ' ' ' The user's login sh┆ 0x17a0…17c0 65 6c 6c 20 63 6f 75 6c 64 20 6e 6f 74 20 62 65 20 73 74 61 72 74 65 64 2e 20 20 54 68 69 73 20 ┆ell could not be started. This ┆ 0x17c0…17e0 6d 65 73 73 61 67 65 0a 20 20 20 20 20 69 73 20 72 65 74 75 72 6e 65 64 20 6f 6e 20 74 68 65 20 ┆message is returned on the ┆ 0x17e0…1800 63 6f 6e 6e 65 63 74 69 6f 6e 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 73 ┆connection associated with the s┆ 0x1800…1820 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 65 08 65 08 65 08 65 72 08 72 08 72 ┆ s s st t t td d d de e e er r r┆ 0x1820…1840 08 72 72 08 72 08 72 08 72 2c 0a 20 20 20 20 20 61 6e 64 20 69 73 20 6e 6f 74 20 70 72 65 63 65 ┆ rr r r r, and is not prece┆ 0x1840…1860 64 65 64 20 62 79 20 61 20 66 6c 61 67 20 62 79 74 65 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 ┆ded by a flag byte. S S S SE E ┆ 0x1860…1880 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 ┆E EE E E E A A A AL L L LS S S S┆ 0x1880…18a0 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 28 31 29 3a 20 72 ┆O O O O User Commands(1): r┆ 0x18a0…18c0 73 68 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 28 33 29 3a 20 72 63 ┆sh Library Functions(3): rc┆ 0x18c0…18e0 6d 64 0a 0a 4c 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 ┆md L L L LI I I IM M M MI I I I┆ 0x18e0…1900 54 08 54 08 54 08 54 41 08 41 08 41 08 41 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 ┆T T T TA A A AT T T TI I I IO O ┆ 0x1900…1920 4f 08 4f 4e 08 4e 08 4e 08 4e 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 61 75 74 68 65 ┆O ON N N NS S S S The authe┆ […truncated at 200 lines…]