home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / unix_c / sysadmin / autoadd.tar < prev    next >
Tape Archive  |  1989-03-04  |  40.0 KB

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: autoadd.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file autoadd/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404054052 default
98% file data default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 61 75 74 6f 61 64 64 2f | 00 00 00 00 00 00 00 00 |autoadd/|........|
|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 35 34 | 0 | 4404054|
|00000090| 30 35 32 20 20 20 35 34 | 33 32 00 20 00 00 00 00 |052 54|32. ....|
|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| 61 75 74 6f 61 64 64 2f | 53 68 61 72 46 69 6c 65 |autoadd/|SharFile|
|00000210| 2e 48 65 61 64 65 72 73 | 00 00 00 00 00 00 00 00 |.Headers|........|
|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 20 37 34 36 20 | 20 34 34 30 34 30 35 34 | 746 | 4404054|
|00000290| 30 35 33 20 20 31 30 35 | 30 31 00 20 00 00 00 00 |053 105|01. ....|
|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 61 75 74 6f | 61 64 64 2e 73 68 61 72 |=== auto|add.shar|
|00000410| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 46 72 6f 6d 20 |========|==.From |
|00000430| 70 75 72 2d 65 65 21 6a | 2e 63 63 2e 70 75 72 64 |pur-ee!j|.cc.purd|
|00000440| 75 65 2e 65 64 75 21 69 | 2e 63 63 2e 70 75 72 64 |ue.edu!i|.cc.purd|
|00000450| 75 65 2e 65 64 75 21 70 | 75 72 64 75 65 21 67 61 |ue.edu!p|urdue!ga|
|00000460| 74 65 63 68 21 62 62 6e | 21 62 62 6e 2e 63 6f 6d |tech!bbn|!bbn.com|
|00000470| 21 72 73 61 6c 7a 20 57 | 65 64 20 46 65 62 20 31 |!rsalz W|ed Feb 1|
|00000480| 37 20 30 38 3a 32 31 3a | 31 38 20 45 53 54 20 31 |7 08:21:|18 EST 1|
|00000490| 39 38 38 0a 0a 53 75 62 | 6d 69 74 74 65 64 2d 62 |988..Sub|mitted-b|
|000004a0| 79 3a 20 6a 69 6d 20 6e | 65 6c 73 6f 6e 20 3c 65 |y: jim n|elson <e|
|000004b0| 63 73 67 61 74 65 21 65 | 63 73 76 61 78 21 6e 65 |csgate!e|csvax!ne|
|000004c0| 6c 73 6f 6e 3e 0a 50 6f | 73 74 69 6e 67 2d 6e 75 |lson>.Po|sting-nu|
|000004d0| 6d 62 65 72 3a 20 56 6f | 6c 75 6d 65 20 31 33 2c |mber: Vo|lume 13,|
|000004e0| 20 49 73 73 75 65 20 34 | 33 0a 41 72 63 68 69 76 | Issue 4|3.Archiv|
|000004f0| 65 2d 6e 61 6d 65 3a 20 | 61 75 74 6f 61 64 64 0a |e-name: |autoadd.|
|00000500| 0a 41 75 74 6f 61 64 64 | 20 72 65 61 64 73 20 6c |.Autoadd| reads l|
|00000510| 69 6e 65 73 20 66 72 6f | 6d 20 61 6e 20 69 6e 70 |ines fro|m an inp|
|00000520| 75 74 20 66 69 6c 65 2c | 20 63 72 65 61 74 65 73 |ut file,| creates|
|00000530| 20 72 65 71 75 69 72 65 | 64 20 6c 69 6e 65 73 20 | require|d lines |
|00000540| 69 6e 0a 2f 65 74 63 2f | 70 61 73 73 77 64 2c 20 |in./etc/|passwd, |
|00000550| 63 61 6c 6c 73 20 6d 6b | 64 69 72 28 31 29 20 74 |calls mk|dir(1) t|
|00000560| 6f 20 63 72 65 61 74 65 | 20 72 65 71 75 69 72 65 |o create| require|
|00000570| 64 20 64 69 72 65 63 74 | 6f 72 69 65 73 2c 20 63 |d direct|ories, c|
|00000580| 72 65 61 74 65 73 0a 2e | 70 72 6f 66 69 6c 65 20 |reates..|profile |
|00000590| 66 69 6c 65 73 2c 20 65 | 74 63 2e 20 20 49 74 27 |files, e|tc. It'|
|000005a0| 73 20 64 65 73 69 67 6e | 65 64 20 66 6f 72 20 65 |s design|ed for e|
|000005b0| 64 75 63 61 74 69 6f 6e | 61 6c 20 65 6e 76 69 72 |ducation|al envir|
|000005c0| 6f 6e 6d 65 6e 74 73 2e | 0a 0a 23 20 54 6f 20 75 |onments.|..# To u|
|000005d0| 6e 62 75 6e 64 6c 65 2c | 20 73 68 20 74 68 69 73 |nbundle,| sh this|
|000005e0| 20 66 69 6c 65 0a 00 00 | 00 00 00 00 00 00 00 00 | file...|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 61 75 74 6f 61 64 64 2f | 4d 41 4e 49 46 45 53 54 |autoadd/|MANIFEST|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000670| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000680| 20 20 20 20 32 32 34 20 | 20 34 34 30 34 30 35 34 | 224 | 4404054|
|00000690| 30 32 33 20 20 20 36 36 | 32 34 00 20 00 00 00 00 |023 66|24. ....|
|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| 4d 41 4e 49 46 45 53 54 | 0a 52 45 41 44 4d 45 20 |MANIFEST|.README |
|00000810| 0a 61 75 74 6f 61 64 64 | 2e 38 20 0a 4d 61 6b 65 |.autoadd|.8 .Make|
|00000820| 66 69 6c 65 20 0a 61 75 | 74 6f 61 64 64 2e 68 20 |file .au|toadd.h |
|00000830| 0a 65 78 61 6d 70 6c 65 | 20 0a 61 75 73 72 0a 6b |.example| .ausr.k|
|00000840| 75 73 72 0a 61 6c 72 65 | 61 64 79 2e 63 0a 65 63 |usr.alre|ady.c.ec|
|00000850| 70 77 2e 63 0a 65 78 69 | 73 74 73 2e 63 0a 69 6e |pw.c.exi|sts.c.in|
|00000860| 69 74 66 69 6c 65 73 2e | 63 0a 6b 69 6e 64 65 78 |itfiles.|c.kindex|
|00000870| 2e 63 0a 6d 61 69 6e 2e | 63 0a 70 61 72 73 65 2e |.c.main.|c.parse.|
|00000880| 63 0a 71 75 69 74 2e 63 | 0a 74 72 79 61 67 61 69 |c.quit.c|.tryagai|
|00000890| 6e 2e 63 0a 20 90 01 00 | 10 00 07 00 65 78 61 6d |n.c. ...|....exam|
|000008a0| 70 6c 65 00 21 90 01 00 | 10 00 04 00 61 75 73 72 |ple.!...|....ausr|
|000008b0| 00 00 00 00 22 90 01 00 | 10 00 04 00 6b 75 73 72 |...."...|....kusr|
|000008c0| 00 00 00 00 23 90 01 00 | 14 00 09 00 61 6c 72 65 |....#...|....alre|
|000008d0| 61 64 79 2e 63 00 00 00 | 24 90 01 00 10 00 06 00 |ady.c...|$.......|
|000008e0| 65 63 70 77 2e 63 00 00 | 25 90 01 00 14 00 08 00 |ecpw.c..|%.......|
|000008f0| 65 78 69 73 74 73 2e 63 | 00 00 00 00 26 90 01 00 |exists.c|....&...|
|00000900| 14 00 0b 00 69 6e 69 74 | 66 69 6c 65 73 2e 63 00 |....init|files.c.|
|00000910| 27 90 01 00 14 00 08 00 | 6b 69 6e 64 65 78 2e 63 |'.......|kindex.c|
|00000920| 00 00 00 00 28 90 01 00 | 10 00 06 00 6d 61 69 6e |....(...|....main|
|00000930| 2e 63 00 00 29 90 01 00 | 10 00 07 00 70 61 72 73 |.c..)...|....pars|
|00000940| 65 2e 63 00 2a 90 01 00 | 10 00 06 00 71 75 69 74 |e.c.*...|....quit|
|00000950| 2e 63 00 00 2b 90 01 00 | ac 00 0a 00 74 72 79 61 |.c..+...|....trya|
|00000960| 67 61 69 6e 2e 63 00 00 | 00 00 00 00 00 00 00 00 |gain.c..|........|
|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| 61 75 74 6f 61 64 64 2f | 52 45 41 44 4d 45 00 00 |autoadd/|README..|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000a80| 20 20 20 32 36 35 37 20 | 20 34 34 30 34 30 35 34 | 2657 | 4404054|
|00000a90| 30 32 34 20 20 20 36 34 | 31 30 00 20 00 00 00 00 |024 64|10. ....|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 41 75 74 6f 61 64 64 20 | 69 73 20 79 6f 75 72 73 |Autoadd |is yours|
|00000c10| 20 66 6f 72 20 74 68 65 | 20 74 61 6b 69 6e 67 2e | for the| taking.|
|00000c20| 20 20 49 66 20 79 6f 75 | 20 6c 69 6b 65 20 69 74 | If you| like it|
|00000c30| 2c 20 75 73 65 20 69 74 | 2e 0a 49 66 20 6e 6f 74 |, use it|..If not|
|00000c40| 2c 20 74 72 61 73 68 20 | 69 74 2e 20 20 49 20 77 |, trash |it. I w|
|00000c50| 72 6f 74 65 20 69 74 20 | 6a 75 73 74 20 66 6f 72 |rote it |just for|
|00000c60| 20 66 75 6e 2c 20 61 6e | 64 20 62 65 63 61 75 73 | fun, an|d becaus|
|00000c70| 65 20 49 0a 6e 65 65 64 | 65 64 20 69 74 2e 20 20 |e I.need|ed it. |
|00000c80| 49 74 27 73 20 68 65 72 | 65 62 79 20 70 75 74 20 |It's her|eby put |
|00000c90| 69 6e 20 74 68 65 20 70 | 75 62 6c 69 63 20 64 6f |in the p|ublic do|
|00000ca0| 6d 61 69 6e 3b 20 6e 6f | 0a 63 6f 70 79 72 69 67 |main; no|.copyrig|
|00000cb0| 68 74 2c 20 6e 6f 20 73 | 65 6e 64 2d 6d 65 2d 6d |ht, no s|end-me-m|
|00000cc0| 6f 6e 65 79 2c 20 6e 6f | 20 6e 6f 74 68 69 6e 67 |oney, no| nothing|
|00000cd0| 2e 0a 0a 41 75 74 6f 61 | 64 64 20 69 73 20 61 20 |...Autoa|dd is a |
|00000ce0| 62 61 74 63 68 20 61 64 | 64 75 73 65 72 20 70 72 |batch ad|duser pr|
|00000cf0| 6f 67 72 61 6d 2e 20 20 | 49 74 27 73 20 69 6e 20 |ogram. |It's in |
|00000d00| 43 2c 20 77 69 74 68 20 | 6f 6e 65 0a 63 61 6c 6c |C, with |one.call|
|00000d10| 20 74 6f 20 74 68 65 20 | 22 73 79 73 74 65 6d 28 | to the |"system(|
|00000d20| 29 22 20 28 74 6f 20 6d | 6b 64 69 72 29 20 28 77 |)" (to m|kdir) (w|
|00000d30| 68 79 20 72 65 69 6e 76 | 65 6e 74 20 54 57 4f 20 |hy reinv|ent TWO |
|00000d40| 77 68 65 65 6c 73 3f 29 | 0a 28 4f 68 20 79 65 61 |wheels?)|.(Oh yea|
|00000d50| 68 2c 20 49 20 74 68 69 | 6e 6b 20 49 20 61 6c 73 |h, I thi|nk I als|
|00000d60| 6f 20 73 79 74 65 6d 28 | 22 63 70 20 2e 2e 2e 2e |o sytem(|"cp ....|
|00000d70| 22 29 20 6a 75 73 74 20 | 66 72 6f 6d 20 73 68 65 |") just |from she|
|00000d80| 65 72 0a 6c 61 7a 69 6e | 65 73 73 29 2e 0a 0a 49 |er.lazin|ess)...I|
|00000d90| 27 64 20 68 61 76 65 20 | 74 6f 20 61 64 6d 69 74 |'d have |to admit|
|00000da0| 20 74 6f 20 61 20 6c 69 | 74 74 6c 65 20 68 75 62 | to a li|ttle hub|
|00000db0| 72 69 73 2c 20 74 68 6f | 75 67 68 2c 20 69 6e 20 |ris, tho|ugh, in |
|00000dc0| 74 69 74 6c 69 6e 67 20 | 74 68 65 0a 6d 61 6e 20 |titling |the.man |
|00000dd0| 70 61 67 65 20 77 69 74 | 68 20 61 20 22 2e 38 22 |page wit|h a ".8"|
|00000de0| 20 73 75 66 66 69 78 20 | 69 6e 73 74 65 61 64 20 | suffix |instead |
|00000df0| 6f 66 20 22 2e 31 22 2e | 20 20 46 65 65 6c 20 66 |of ".1".| Feel f|
|00000e00| 72 65 65 20 74 6f 0a 6d | 6f 76 65 20 69 74 20 74 |ree to.m|ove it t|
|00000e10| 6f 20 22 2e 31 22 20 69 | 66 20 79 6f 75 20 73 65 |o ".1" i|f you se|
|00000e20| 65 20 66 69 74 2e 0a 0a | 49 20 68 61 76 65 20 69 |e fit...|I have i|
|00000e30| 6e 63 6c 75 64 65 64 20 | 6d 79 20 6f 77 6e 20 2f |ncluded |my own /|
|00000e40| 65 74 63 2f 61 75 73 72 | 20 61 6e 64 20 2f 65 74 |etc/ausr| and /et|
|00000e50| 63 2f 6b 75 73 72 20 28 | 42 6f 75 72 6e 65 29 20 |c/kusr (|Bourne) |
|00000e60| 73 68 65 6c 6c 0a 73 63 | 72 69 70 74 73 20 6a 75 |shell.sc|ripts ju|
|00000e70| 73 74 20 66 6f 72 20 63 | 6f 6d 70 61 72 69 73 6f |st for c|ompariso|
|00000e80| 6e 20 77 69 74 68 20 74 | 68 65 20 61 75 74 6f 61 |n with t|he autoa|
|00000e90| 64 64 2e 63 20 70 72 6f | 67 72 61 6d 2e 20 20 54 |dd.c pro|gram. T|
|00000ea0| 68 72 6f 77 0a 74 68 65 | 6d 20 61 77 61 79 20 71 |hrow.the|m away q|
|00000eb0| 75 69 63 6b 6c 79 20 69 | 66 20 79 6f 75 20 68 61 |uickly i|f you ha|
|00000ec0| 76 65 20 79 6f 75 72 20 | 6f 77 6e 20 66 61 76 6f |ve your |own favo|
|00000ed0| 72 69 74 65 20 28 77 68 | 69 63 68 20 6d 6f 73 74 |rite (wh|ich most|
|00000ee0| 0a 65 76 65 72 79 62 6f | 64 79 20 73 68 6f 75 6c |.everybo|dy shoul|
|00000ef0| 64 2c 20 49 20 67 75 65 | 73 73 2e 29 2e 0a 0a 4e |d, I gue|ss.)...N|
|00000f00| 42 3a 20 74 68 69 73 20 | 69 73 20 6f 6e 65 20 6f |B: this |is one o|
|00000f10| 66 20 74 68 6f 73 65 20 | 22 4f 68 2c 20 68 65 20 |f those |"Oh, he |
|00000f20| 77 61 6e 74 73 20 6d 65 | 20 74 6f 20 72 75 6e 20 |wants me| to run |
|00000f30| 74 68 69 73 20 61 73 20 | 72 6f 6f 74 3f 22 0a 70 |this as |root?".p|
|00000f40| 72 6f 67 72 61 6d 73 2e | 20 20 57 65 6c 6c 2c 20 |rograms.| Well, |
|00000f50| 74 68 65 20 73 6f 75 72 | 63 65 20 69 73 20 6e 6f |the sour|ce is no|
|00000f60| 74 20 76 65 72 79 20 6c | 6f 6e 67 3b 20 61 6e 64 |t very l|ong; and|
|00000f70| 20 69 74 27 73 20 69 6e | 74 65 6e 64 65 64 0a 74 | it's in|tended.t|
|00000f80| 6f 20 62 65 20 74 6f 74 | 61 6c 6c 79 20 72 65 61 |o be tot|ally rea|
|00000f90| 64 61 62 6c 65 20 74 6f | 20 74 68 65 20 6d 6f 73 |dable to| the mos|
|00000fa0| 74 20 63 61 73 75 61 6c | 20 6f 66 20 6f 62 73 65 |t casual| of obse|
|00000fb0| 72 76 65 72 73 2c 20 73 | 6f 0a 75 73 65 20 69 66 |rvers, s|o.use if|
|00000fc0| 20 79 6f 75 20 6c 69 6b | 65 2c 20 62 75 74 20 0a | you lik|e, but .|
|00000fd0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 61 6e 64 |.#includ|e <stand|
|00000fe0| 61 72 64 2e 64 69 73 63 | 6c 61 69 6d 65 72 3e 0a |ard.disc|laimer>.|
|00000ff0| 0a 53 65 65 20 6d 6f 73 | 74 6c 79 20 74 68 65 20 |.See mos|tly the |
|00001000| 61 75 74 6f 61 64 64 2e | 68 20 63 6f 6d 6d 65 6e |autoadd.|h commen|
|00001010| 74 73 20 61 6e 64 20 23 | 64 65 66 69 6e 65 73 2c |ts and #|defines,|
|00001020| 20 62 75 74 20 61 6c 73 | 6f 20 74 61 6b 65 0a 61 | but als|o take.a|
|00001030| 20 6c 6f 6f 6b 20 61 74 | 20 69 6e 69 74 66 69 6c | look at| initfil|
|00001040| 65 73 2e 63 20 2e 0a 2d | 2d 2d 20 6a 68 6e 0a 0a |es.c ..-|-- jhn..|
|00001050| 4f 68 20 79 65 61 68 2c | 20 61 6c 6c 20 74 68 65 |Oh yeah,| all the|
|00001060| 73 65 20 73 6f 75 72 63 | 65 73 20 73 68 6f 75 6c |se sourc|es shoul|
|00001070| 64 20 62 65 20 6c 6f 6f | 6b 65 64 20 61 74 20 77 |d be loo|ked at w|
|00001080| 69 74 68 20 74 61 62 20 | 73 74 6f 70 73 0a 73 65 |ith tab |stops.se|
|00001090| 74 20 61 74 20 66 6f 75 | 72 2e 20 20 54 68 65 79 |t at fou|r. They|
|000010a0| 20 77 65 72 65 20 63 72 | 65 61 74 65 64 20 75 73 | were cr|eated us|
|000010b0| 69 6e 67 20 76 69 20 77 | 69 74 68 20 61 75 74 6f |ing vi w|ith auto|
|000010c0| 69 6e 64 65 6e 74 20 61 | 6e 64 0a 74 61 62 73 74 |indent a|nd.tabst|
|000010d0| 6f 70 73 20 61 74 20 66 | 6f 75 72 2e 20 20 53 74 |ops at f|our. St|
|000010e0| 6f 70 73 20 6f 66 20 65 | 69 67 68 74 20 77 69 6c |ops of e|ight wil|
|000010f0| 6c 20 6d 61 6b 65 20 73 | 6f 6d 65 20 6f 66 20 74 |l make s|ome of t|
|00001100| 68 65 20 6c 69 6e 65 73 | 20 72 75 6e 0a 6f 66 66 |he lines| run.off|
|00001110| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 20 20 41 6c | the scr|een. Al|
|00001120| 74 65 72 6e 61 74 69 76 | 65 6c 79 2c 20 72 75 6e |ternativ|ely, run|
|00001130| 20 74 68 65 6d 20 74 68 | 72 75 20 73 65 64 20 61 | them th|ru sed a|
|00001140| 6e 64 20 63 68 61 6e 67 | 65 20 0a 61 6c 6c 20 5c |nd chang|e .all \|
|00001150| 74 20 74 6f 20 66 6f 75 | 72 20 62 6c 61 6e 6b 73 |t to fou|r blanks|
|00001160| 20 28 77 68 69 63 68 20 | 49 20 64 69 64 20 6e 6f | (which |I did no|
|00001170| 74 20 64 6f 2c 20 69 6e | 20 74 68 65 20 69 6e 74 |t do, in| the int|
|00001180| 65 72 65 73 74 20 6f 66 | 0a 6b 65 65 70 69 6e 67 |erest of|.keeping|
|00001190| 20 74 68 65 20 62 79 74 | 65 20 63 6f 75 6e 74 20 | the byt|e count |
|000011a0| 64 6f 77 6e 29 2e 0a 2d | 2d 2d 20 6a 68 6e 0a 00 |down)..-|-- jhn..|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 61 75 74 6f 61 64 64 2f | 61 75 74 6f 61 64 64 2e |autoadd/|autoadd.|
|00001210| 38 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |8.......|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001280| 20 20 20 32 34 33 31 20 | 20 34 34 30 34 30 35 34 | 2431 | 4404054|
|00001290| 30 32 36 20 20 20 37 32 | 33 32 00 20 00 00 00 00 |026 72|32. ....|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 2e 69 67 0a 09 40 28 23 | 29 61 75 74 6f 61 64 64 |.ig..@(#|)autoadd|
|00001410| 2e 38 09 0a 2e 2e 0a 2e | 54 48 20 41 55 54 4f 41 |.8......|TH AUTOA|
|00001420| 44 44 20 38 0a 2e 55 43 | 20 34 0a 2e 53 48 20 4e |DD 8..UC| 4..SH N|
|00001430| 41 4d 45 0a 61 75 74 6f | 61 64 64 20 5c 2d 20 61 |AME.auto|add \- a|
|00001440| 64 64 20 63 6c 61 73 73 | 20 72 6f 73 74 65 72 73 |dd class| rosters|
|00001450| 20 74 6f 20 73 79 73 74 | 65 6d 0a 2e 53 48 20 53 | to syst|em..SH S|
|00001460| 59 4e 4f 50 53 49 53 0a | 2e 42 20 61 75 74 6f 61 |YNOPSIS.|.B autoa|
|00001470| 64 64 0a 5b 0a 66 69 6c | 65 6e 61 6d 65 0a 5d 20 |dd.[.fil|ename.] |
|00001480| 0a 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |..SH DES|CRIPTION|
|00001490| 0a 2e 49 20 41 75 74 6f | 61 64 64 0a 72 65 61 64 |..I Auto|add.read|
|000014a0| 73 20 6c 69 6e 65 73 20 | 66 72 6f 6d 20 61 6e 20 |s lines |from an |
|000014b0| 69 6e 70 75 74 20 66 69 | 6c 65 2c 20 63 72 65 61 |input fi|le, crea|
|000014c0| 74 65 73 20 72 65 71 75 | 69 72 65 64 20 6c 69 6e |tes requ|ired lin|
|000014d0| 65 73 20 69 6e 0a 2f 65 | 74 63 2f 70 61 73 73 77 |es in./e|tc/passw|
|000014e0| 64 2c 20 63 61 6c 6c 73 | 20 6d 6b 64 69 72 28 31 |d, calls| mkdir(1|
|000014f0| 29 20 74 6f 20 63 72 65 | 61 74 65 20 72 65 71 75 |) to cre|ate requ|
|00001500| 69 72 65 64 20 64 69 72 | 65 63 74 6f 72 69 65 73 |ired dir|ectories|
|00001510| 2c 0a 63 72 65 61 74 65 | 73 20 2e 70 72 6f 66 69 |,.create|s .profi|
|00001520| 6c 65 20 66 69 6c 65 73 | 2c 20 65 74 63 2e 2c 0a |le files|, etc.,.|
|00001530| 74 6f 20 61 64 64 20 61 | 20 62 61 74 63 68 20 6f |to add a| batch o|
|00001540| 66 20 75 73 65 72 73 20 | 74 6f 20 74 68 65 20 73 |f users |to the s|
|00001550| 79 73 74 65 6d 2e 20 20 | 4f 70 74 69 6f 6e 61 6c |ystem. |Optional|
|00001560| 6c 79 2c 20 69 74 20 77 | 69 6c 6c 0a 61 70 70 65 |ly, it w|ill.appe|
|00001570| 6e 64 20 74 6f 20 74 68 | 65 20 2f 65 74 63 2f 61 |nd to th|e /etc/a|
|00001580| 63 63 65 73 73 74 61 62 | 20 66 69 6c 65 20 66 6f |ccesstab| file fo|
|00001590| 72 20 75 73 65 20 77 69 | 74 68 20 22 61 63 63 65 |r use wi|th "acce|
|000015a0| 73 73 22 2e 0a 53 75 70 | 70 6c 69 65 64 20 69 6e |ss"..Sup|plied in|
|000015b0| 20 73 6f 75 72 63 65 20 | 66 6f 72 6d 2e 20 20 53 | source |form. S|
|000015c0| 65 65 20 63 6f 6d 6d 65 | 6e 74 73 20 61 6e 64 20 |ee comme|nts and |
|000015d0| 74 75 6e 61 62 6c 65 20 | 70 61 72 61 6d 65 74 65 |tunable |paramete|
|000015e0| 72 73 0a 69 6e 20 61 75 | 74 6f 61 64 64 2e 68 20 |rs.in au|toadd.h |
|000015f0| 66 6f 72 20 6d 6f 72 65 | 20 69 6e 66 6f 2e 0a 2e |for more| info...|
|00001600| 50 50 0a 4e 6f 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |PP.No co|mmand li|
|00001610| 6e 65 20 70 61 72 61 6d | 65 74 65 72 73 20 61 72 |ne param|eters ar|
|00001620| 65 20 70 72 6f 76 69 64 | 65 64 3b 20 74 68 69 73 |e provid|ed; this|
|00001630| 20 70 72 6f 67 72 61 6d | 20 77 69 6c 6c 0a 62 65 | program| will.be|
|00001640| 20 75 73 65 64 20 72 61 | 72 65 6c 79 20 28 74 77 | used ra|rely (tw|
|00001650| 69 63 65 20 6f 72 20 74 | 68 72 69 63 65 20 70 65 |ice or t|hrice pe|
|00001660| 72 20 73 65 6d 65 73 74 | 65 72 2c 20 74 79 70 69 |r semest|er, typi|
|00001670| 63 61 6c 6c 79 29 20 61 | 6e 64 0a 63 61 6e 20 62 |cally) a|nd.can b|
|00001680| 65 20 63 6f 6e 66 69 67 | 75 72 65 64 20 62 79 20 |e config|ured by |
|00001690| 23 64 65 66 69 6e 65 73 | 20 69 6e 20 74 68 65 20 |#defines| in the |
|000016a0| 73 6f 75 72 63 65 2e 0a | 2e 50 50 0a 4b 65 79 77 |source..|.PP.Keyw|
|000016b0| 6f 72 64 73 20 61 72 65 | 3a 0a 2e 54 50 0a 2e 42 |ords are|:..TP..B|
|000016c0| 09 70 72 6f 66 3a 09 70 | 72 6f 66 65 73 73 6f 72 |.prof:.p|rofessor|
|000016d0| 20 0a 2e 54 50 0a 2e 42 | 09 67 72 6f 75 70 3a 09 | ..TP..B|.group:.|
|000016e0| 67 72 6f 75 70 0a 2e 54 | 50 0a 2e 42 09 61 6c 69 |group..T|P..B.ali|
|000016f0| 61 73 3a 09 66 6f 72 20 | 61 20 6d 61 69 6c 72 63 |as:.for |a mailrc|
|00001700| 0a 2e 54 50 0a 2e 42 09 | 64 69 73 6b 3a 09 70 61 |..TP..B.|disk:.pa|
|00001710| 72 74 69 74 69 6f 6e 20 | 0a 2e 54 50 0a 2e 42 09 |rtition |..TP..B.|
|00001720| 70 61 73 73 77 64 3a 09 | 70 61 73 73 77 6f 72 64 |passwd:.|password|
|00001730| 0a 2e 54 50 0a 2e 42 09 | 66 69 72 73 74 70 72 6f |..TP..B.|firstpro|
|00001740| 67 3a 09 6c 61 73 74 20 | 6c 69 6e 65 20 6f 66 20 |g:.last |line of |
|00001750| 70 72 6f 66 69 6c 65 0a | 2e 50 50 0a 4f 74 68 65 |profile.|.PP.Othe|
|00001760| 72 20 69 6e 70 75 74 20 | 6c 69 6e 65 73 20 61 72 |r input |lines ar|
|00001770| 65 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 3a 0a 2e |e of the| form:..|
|00001780| 54 50 0a 2e 42 09 6c 61 | 73 74 6e 61 6d 65 20 69 |TP..B.la|stname i|
|00001790| 20 69 0a 2e 50 50 0a 54 | 68 65 20 2f 65 74 63 2f | i..PP.T|he /etc/|
|000017a0| 70 61 73 73 77 64 20 66 | 69 6c 65 20 69 73 20 72 |passwd f|ile is r|
|000017b0| 65 61 64 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |ead to d|etermine|
|000017c0| 20 74 68 65 20 6c 61 72 | 67 65 73 74 20 75 73 65 | the lar|gest use|
|000017d0| 72 20 6e 75 6d 62 65 72 | 0a 74 68 65 72 65 2c 20 |r number|.there, |
|000017e0| 61 6e 64 20 74 68 65 20 | 6e 65 77 20 70 65 6f 70 |and the |new peop|
|000017f0| 6c 65 20 61 72 65 20 61 | 73 73 69 67 6e 65 64 20 |le are a|ssigned |
|00001800| 75 73 65 72 20 6e 75 6d | 62 65 72 73 20 66 72 6f |user num|bers fro|
|00001810| 6d 20 74 68 65 72 65 20 | 75 70 2e 0a 2e 53 48 20 |m there |up...SH |
|00001820| 46 49 4c 45 53 0a 2e 74 | 61 20 32 69 0a 2f 65 74 |FILES..t|a 2i./et|
|00001830| 63 2f 70 61 73 73 77 64 | 09 70 61 73 73 77 6f 72 |c/passwd|.passwor|
|00001840| 64 20 66 69 6c 65 0a 2e | 62 72 0a 2f 65 74 63 2f |d file..|br./etc/|
|00001850| 61 63 63 65 73 73 74 61 | 62 09 28 6f 70 74 69 6f |accessta|b.(optio|
|00001860| 6e 61 6c 29 20 66 6f 72 | 20 70 72 6f 66 65 73 73 |nal) for| profess|
|00001870| 6f 72 3a 73 74 75 64 65 | 6e 74 20 6c 69 6e 65 73 |or:stude|nt lines|
|00001880| 0a 2e 62 72 0a 2e 2f 6d | 61 69 6c 72 63 09 61 6c |..br../m|ailrc.al|
|00001890| 69 61 73 20 6c 69 73 74 | 20 66 6f 72 20 73 65 6e |ias list| for sen|
|000018a0| 64 69 6e 67 20 74 6f 20 | 70 72 6f 66 65 73 73 6f |ding to |professo|
|000018b0| 72 0a 2e 53 48 20 41 55 | 54 48 4f 52 0a 4a 69 6d |r..SH AU|THOR.Jim|
|000018c0| 20 4e 65 6c 73 6f 6e 2c | 20 55 4e 43 2d 57 69 6c | Nelson,| UNC-Wil|
|000018d0| 6d 69 6e 67 74 6f 6e 20 | 28 6e 65 6c 73 6f 6e 40 |mington |(nelson@|
|000018e0| 65 63 73 76 61 78 2e 75 | 75 63 70 29 20 39 31 39 |ecsvax.u|ucp) 919|
|000018f0| 2d 33 39 35 2d 33 33 30 | 30 0a 2e 53 48 20 42 55 |-395-330|0..SH BU|
|00001900| 47 53 0a 20 4d 75 73 74 | 20 62 65 20 72 75 6e 20 |GS. Must| be run |
|00001910| 61 73 20 72 6f 6f 74 2e | 0a 65 6e 2e 20 20 41 6c |as root.|.en. Al|
|00001920| 74 65 72 6e 61 74 69 76 | 65 6c 79 2c 20 72 75 6e |ternativ|ely, run|
|00001930| 20 74 68 65 6d 20 74 68 | 72 75 20 73 65 64 20 61 | them th|ru sed a|
|00001940| 6e 64 20 63 68 61 6e 67 | 65 20 0a 61 6c 6c 20 5c |nd chang|e .all \|
|00001950| 74 20 74 6f 20 66 6f 75 | 72 20 62 6c 61 6e 6b 73 |t to fou|r blanks|
|00001960| 20 28 77 68 69 63 68 20 | 49 20 64 69 64 20 6e 6f | (which |I did no|
|00001970| 74 20 64 6f 2c 20 69 6e | 20 74 68 65 20 69 6e 74 |t do, in| the int|
|00001980| 65 72 65 73 74 20 6f 66 | 0a 6b 65 65 70 69 6e 67 |erest of|.keeping|
|00001990| 20 74 68 65 20 62 79 74 | 65 20 63 6f 75 6e 74 20 | the byt|e count |
|000019a0| 64 6f 77 6e 29 2e 0a 2d | 2d 2d 20 6a 68 6e 0a 00 |down)..-|-- jhn..|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 61 75 74 6f 61 64 64 2f | 4d 61 6b 65 66 69 6c 65 |autoadd/|Makefile|
|00001a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001a80| 20 20 20 31 31 31 35 20 | 20 34 34 30 34 30 35 34 | 1115 | 4404054|
|00001a90| 30 32 37 20 20 20 37 31 | 35 37 00 20 00 00 00 00 |027 71|57. ....|
|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| 43 46 4c 41 47 53 3d 0a | 4c 44 46 4c 41 47 53 3d |CFLAGS=.|LDFLAGS=|
|00001c10| 2d 73 0a 4c 49 4e 54 46 | 4c 41 47 53 3d 2d 68 62 |-s.LINTF|LAGS=-hb|
|00001c20| 78 0a 0a 53 4f 55 52 43 | 45 53 3d 20 6d 61 69 6e |x..SOURC|ES= main|
|00001c30| 2e 63 20 70 61 72 73 65 | 2e 63 20 6b 69 6e 64 65 |.c parse|.c kinde|
|00001c40| 78 2e 63 20 65 78 69 73 | 74 73 2e 63 20 5c 0a 09 |x.c exis|ts.c \..|
|00001c50| 65 63 70 77 2e 63 20 71 | 75 69 74 2e 63 20 69 6e |ecpw.c q|uit.c in|
|00001c60| 69 74 66 69 6c 65 73 2e | 63 20 61 6c 72 65 61 64 |itfiles.|c alread|
|00001c70| 79 2e 63 20 74 72 79 61 | 67 61 69 6e 2e 63 0a 0a |y.c trya|gain.c..|
|00001c80| 4f 42 4a 53 3d 20 6d 61 | 69 6e 2e 6f 20 70 61 72 |OBJS= ma|in.o par|
|00001c90| 73 65 2e 6f 20 6b 69 6e | 64 65 78 2e 6f 20 65 78 |se.o kin|dex.o ex|
|00001ca0| 69 73 74 73 2e 6f 20 5c | 0a 09 65 63 70 77 2e 6f |ists.o \|..ecpw.o|
|00001cb0| 20 71 75 69 74 2e 6f 20 | 69 6e 69 74 66 69 6c 65 | quit.o |initfile|
|00001cc0| 73 2e 6f 20 61 6c 72 65 | 61 64 79 2e 6f 20 74 72 |s.o alre|ady.o tr|
|00001cd0| 79 61 67 61 69 6e 2e 6f | 0a 0a 61 75 74 6f 61 64 |yagain.o|..autoad|
|00001ce0| 64 3a 20 24 28 4f 42 4a | 53 29 20 61 75 74 6f 61 |d: $(OBJ|S) autoa|
|00001cf0| 64 64 2e 68 0a 09 63 63 | 20 24 28 4c 44 46 4c 41 |dd.h..cc| $(LDFLA|
|00001d00| 47 53 29 20 2d 6f 20 61 | 75 74 6f 61 64 64 20 24 |GS) -o a|utoadd $|
|00001d10| 28 4f 42 4a 53 29 0a 0a | 6d 61 69 6e 2e 6f 20 69 |(OBJS)..|main.o i|
|00001d20| 6e 69 74 66 69 6c 65 73 | 2e 6f 20 74 72 79 61 67 |nitfiles|.o tryag|
|00001d30| 61 69 6e 2e 6f 20 70 61 | 72 73 65 2e 6f 3a 20 61 |ain.o pa|rse.o: a|
|00001d40| 75 74 6f 61 64 64 2e 68 | 0a 0a 61 75 74 6f 61 64 |utoadd.h|..autoad|
|00001d50| 64 2e 73 68 61 72 3a 20 | 4d 41 4e 49 46 45 53 54 |d.shar: |MANIFEST|
|00001d60| 20 52 45 41 44 4d 45 20 | 61 75 74 6f 61 64 64 2e | README |autoadd.|
|00001d70| 38 20 4d 61 6b 65 66 69 | 6c 65 20 61 75 74 6f 61 |8 Makefi|le autoa|
|00001d80| 64 64 2e 68 20 65 78 61 | 6d 70 6c 65 20 5c 0a 09 |dd.h exa|mple \..|
|00001d90| 09 61 75 73 72 20 6b 75 | 73 72 20 24 28 53 4f 55 |.ausr ku|sr $(SOU|
|00001da0| 52 43 45 53 29 0a 09 73 | 68 61 72 20 4d 41 4e 49 |RCES)..s|har MANI|
|00001db0| 46 45 53 54 20 52 45 41 | 44 4d 45 20 61 75 74 6f |FEST REA|DME auto|
|00001dc0| 61 64 64 2e 38 20 4d 61 | 6b 65 66 69 6c 65 20 61 |add.8 Ma|kefile a|
|00001dd0| 75 74 6f 61 64 64 2e 68 | 20 65 78 61 6d 70 6c 65 |utoadd.h| example|
|00001de0| 20 5c 0a 09 09 61 75 73 | 72 20 6b 75 73 72 20 24 | \...aus|r kusr $|
|00001df0| 28 53 4f 55 52 43 45 53 | 29 20 3e 61 75 74 6f 61 |(SOURCES|) >autoa|
|00001e00| 64 64 2e 73 68 61 72 0a | 0a 6c 69 6e 74 3a 20 24 |dd.shar.|.lint: $|
|00001e10| 28 53 4f 55 52 43 45 53 | 29 20 61 75 74 6f 61 64 |(SOURCES|) autoad|
|00001e20| 64 2e 68 20 0a 09 6c 69 | 6e 74 20 24 28 4c 49 4e |d.h ..li|nt $(LIN|
|00001e30| 54 46 4c 41 47 53 29 20 | 61 75 74 6f 61 64 64 2e |TFLAGS) |autoadd.|
|00001e40| 68 20 24 28 53 4f 55 52 | 43 45 53 29 0a 28 74 77 |h $(SOUR|CES).(tw|
|00001e50| 69 63 65 20 6f 72 20 74 | 68 72 69 63 65 20 70 65 |ice or t|hrice pe|
|00001e60| 72 20 73 65 6d 65 73 74 | 65 72 2c 20 74 79 70 69 |r semest|er, typi|
|00001e70| 63 61 6c 6c 79 29 20 61 | 6e 64 0a 63 61 6e 20 62 |cally) a|nd.can b|
|00001e80| 65 20 63 6f 6e 66 69 67 | 75 72 65 64 20 62 79 20 |e config|ured by |
|00001e90| 23 64 65 66 69 6e 65 73 | 20 69 6e 20 74 68 65 20 |#defines| in the |
|00001ea0| 73 6f 75 72 63 65 2e 0a | 2e 50 50 0a 4b 65 79 77 |source..|.PP.Keyw|
|00001eb0| 6f 72 64 73 20 61 72 65 | 3a 0a 2e 54 50 0a 2e 42 |ords are|:..TP..B|
|00001ec0| 09 70 72 6f 66 3a 09 70 | 72 6f 66 65 73 73 6f 72 |.prof:.p|rofessor|
|00001ed0| 20 0a 2e 54 50 0a 2e 42 | 09 67 72 6f 75 70 3a 09 | ..TP..B|.group:.|
|00001ee0| 67 72 6f 75 70 0a 2e 54 | 50 0a 2e 42 09 61 6c 69 |group..T|P..B.ali|
|00001ef0| 61 73 3a 09 66 6f 72 20 | 61 20 6d 61 69 6c 72 63 |as:.for |a mailrc|
|00001f00| 0a 2e 54 50 0a 2e 42 09 | 64 69 73 6b 3a 09 70 61 |..TP..B.|disk:.pa|
|00001f10| 72 74 69 74 69 6f 6e 20 | 0a 2e 54 50 0a 2e 42 09 |rtition |..TP..B.|
|00001f20| 70 61 73 73 77 64 3a 09 | 70 61 73 73 77 6f 72 64 |passwd:.|password|
|00001f30| 0a 2e 54 50 0a 2e 42 09 | 66 69 72 73 74 70 72 6f |..TP..B.|firstpro|
|00001f40| 67 3a 09 6c 61 73 74 20 | 6c 69 6e 65 20 6f 66 20 |g:.last |line of |
|00001f50| 70 72 6f 66 69 6c 65 0a | 2e 50 50 0a 4f 74 68 65 |profile.|.PP.Othe|
|00001f60| 72 20 69 6e 70 75 74 20 | 6c 69 6e 65 73 20 61 72 |r input |lines ar|
|00001f70| 65 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 3a 0a 2e |e of the| form:..|
|00001f80| 54 50 0a 2e 42 09 6c 61 | 73 74 6e 61 6d 65 20 69 |TP..B.la|stname i|
|00001f90| 20 69 0a 2e 50 50 0a 54 | 68 65 20 2f 65 74 63 2f | i..PP.T|he /etc/|
|00001fa0| 70 61 73 73 77 64 20 66 | 69 6c 65 20 69 73 20 72 |passwd f|ile is r|
|00001fb0| 65 61 64 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |ead to d|etermine|
|00001fc0| 20 74 68 65 20 6c 61 72 | 67 65 73 74 20 75 73 65 | the lar|gest use|
|00001fd0| 72 20 6e 75 6d 62 65 72 | 0a 74 68 65 72 65 2c 20 |r number|.there, |
|00001fe0| 61 6e 64 20 74 68 65 20 | 6e 65 77 20 70 65 6f 70 |and the |new peop|
|00001ff0| 6c 65 20 61 72 65 20 61 | 73 73 69 67 6e 65 64 20 |le are a|ssigned |
|00002000| 61 75 74 6f 61 64 64 2f | 61 75 74 6f 61 64 64 2e |autoadd/|autoadd.|
|00002010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002080| 20 20 31 33 30 37 33 20 | 20 34 34 30 34 30 35 34 | 13073 | 4404054|
|00002090| 30 33 31 20 20 20 37 33 | 33 32 00 20 00 00 00 00 |031 73|32. ....|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 2f 2a 0a 22 61 75 74 6f | 61 64 64 22 20 2d 2d 20 |/*."auto|add" -- |
|00002210| 61 20 62 61 74 63 68 20 | 61 63 63 6f 75 6e 74 2d |a batch |account-|
|00002220| 73 65 74 74 65 72 2d 75 | 70 70 65 72 2e 20 20 66 |setter-u|pper. f|
|00002230| 6f 72 20 61 64 64 69 6e | 67 20 77 68 6f 6c 65 20 |or addin|g whole |
|00002240| 63 6c 61 73 73 0a 72 6f | 73 74 65 72 73 20 74 6f |class.ro|sters to|
|00002250| 20 75 6e 69 78 20 6d 61 | 63 68 69 6e 65 73 2e 20 | unix ma|chines. |
|00002260| 20 0a 62 79 3a 20 6a 2e | 20 6e 65 6c 73 6f 6e 2c | .by: j.| nelson,|
|00002270| 20 75 6e 69 76 2e 20 6e | 63 2d 77 69 6c 6d 69 6e | univ. n|c-wilmin|
|00002280| 67 74 6f 6e 2c 20 64 65 | 70 74 2e 20 6d 61 74 68 |gton, de|pt. math|
|00002290| 2e 20 73 63 69 65 6e 63 | 65 73 2c 20 0a 77 69 6c |. scienc|es, .wil|
|000022a0| 6d 69 6e 67 74 6f 6e 20 | 6e 63 20 32 38 34 30 33 |mington |nc 28403|
|000022b0| 2c 20 20 39 31 39 2d 33 | 39 35 2d 33 33 30 30 2e |, 919-3|95-3300.|
|000022c0| 0a 0a 54 68 65 20 69 64 | 65 61 20 68 65 72 65 20 |..The id|ea here |
|000022d0| 69 73 20 74 6f 20 61 6c | 6c 6f 77 20 61 20 73 74 |is to al|low a st|
|000022e0| 75 64 65 6e 74 20 61 73 | 73 69 73 74 61 6e 74 20 |udent as|sistant |
|000022f0| 6f 72 20 6f 74 68 65 72 | 20 70 61 72 74 69 61 6c |or other| partial|
|00002300| 6c 79 0a 74 72 75 73 74 | 65 64 20 61 73 73 69 73 |ly.trust|ed assis|
|00002310| 74 61 6e 74 20 74 6f 20 | 65 6e 74 65 72 20 74 68 |tant to |enter th|
|00002320| 65 20 63 6c 61 73 73 20 | 72 6f 73 74 65 72 2c 20 |e class |roster, |
|00002330| 61 6e 64 20 74 68 65 6e | 20 69 6e 20 6f 6e 65 20 |and then| in one |
|00002340| 0a 73 77 65 6c 6c 2d 66 | 6f 6f 70 2c 20 61 64 64 |.swell-f|oop, add|
|00002350| 20 61 6c 6c 20 74 68 6f | 73 65 20 66 6f 6c 6b 73 | all tho|se folks|
|00002360| 20 74 6f 20 74 68 65 20 | 73 79 73 74 65 6d 2e 20 | to the |system. |
|00002370| 20 54 68 69 73 20 63 61 | 6e 20 62 65 20 65 69 74 | This ca|n be eit|
|00002380| 68 65 72 0a 70 65 72 6d | 69 74 74 65 64 20 74 6f |her.perm|itted to|
|00002390| 20 74 68 65 20 61 73 73 | 69 73 74 61 6e 74 20 6f | the ass|istant o|
|000023a0| 72 20 72 65 73 65 72 76 | 65 64 20 74 6f 20 74 68 |r reserv|ed to th|
|000023b0| 65 20 73 79 73 6f 70 2c | 20 62 75 74 20 72 65 71 |e sysop,| but req|
|000023c0| 75 69 72 65 73 0a 74 68 | 61 74 20 74 68 65 20 70 |uires.th|at the p|
|000023d0| 72 6f 67 72 61 6d 20 62 | 65 20 72 75 6e 20 61 73 |rogram b|e run as|
|000023e0| 20 72 6f 6f 74 20 28 61 | 74 20 6c 65 61 73 74 20 | root (a|t least |
|000023f0| 69 74 20 64 6f 65 73 20 | 6f 6e 20 6d 79 20 6d 61 |it does |on my ma|
|00002400| 63 68 69 6e 65 73 29 2e | 0a 0a 41 6e 20 69 6e 70 |chines).|..An inp|
|00002410| 75 74 20 66 69 6c 65 20 | 63 6f 6e 73 69 73 74 73 |ut file |consists|
|00002420| 20 6f 66 20 61 20 66 65 | 77 20 22 6b 65 79 77 6f | of a fe|w "keywo|
|00002430| 72 64 22 20 6c 69 6e 65 | 73 2c 20 66 6f 6c 6c 6f |rd" line|s, follo|
|00002440| 77 65 64 20 62 79 20 74 | 68 65 0a 63 6c 61 73 73 |wed by t|he.class|
|00002450| 20 72 6f 73 74 65 72 20 | 69 6e 20 22 6c 61 73 74 | roster |in "last|
|00002460| 6e 61 6d 65 20 66 69 20 | 6d 69 22 20 66 6f 72 6d |name fi |mi" form|
|00002470| 2e 0a 0a 4b 65 79 77 6f | 72 64 73 20 3a 0a 22 70 |...Keywo|rds :."p|
|00002480| 72 6f 66 3a 73 73 73 73 | 22 09 09 70 72 6f 66 65 |rof:ssss|"..profe|
|00002490| 73 73 6f 72 20 66 6f 72 | 20 22 61 63 63 65 73 73 |ssor for| "access|
|000024a0| 74 61 62 22 20 66 69 6c | 65 0a 09 09 09 09 74 68 |tab" fil|e.....th|
|000024b0| 69 73 20 69 73 20 66 6f | 72 20 74 68 61 74 20 6e |is is fo|r that n|
|000024c0| 65 61 74 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |eat prog|ram that|
|000024d0| 20 63 61 6d 65 20 64 6f | 77 6e 20 74 68 65 0a 09 | came do|wn the..|
|000024e0| 09 09 09 77 69 72 65 20 | 61 20 77 68 69 6c 65 20 |...wire |a while |
|000024f0| 62 61 63 6b 20 74 68 61 | 74 20 61 6c 6c 6f 77 73 |back tha|t allows|
|00002500| 20 73 6f 6d 65 6f 6e 65 | 20 74 6f 20 61 63 63 65 | someone| to acce|
|00002510| 73 73 0a 09 09 09 09 61 | 6e 6f 74 68 65 72 20 64 |ss.....a|nother d|
|00002520| 69 72 65 63 74 6f 72 79 | 20 62 79 20 65 66 66 65 |irectory| by effe|
|00002530| 63 74 69 76 65 6c 79 20 | 22 62 65 63 6f 6d 69 6e |ctively |"becomin|
|00002540| 67 22 20 74 68 65 6d 2e | 0a 09 09 09 09 49 66 20 |g" them.|.....If |
|00002550| 6e 6f 74 20 75 73 69 6e | 67 2c 20 63 6f 6d 6d 65 |not usin|g, comme|
|00002560| 6e 74 20 6f 75 74 20 74 | 68 65 20 66 6f 6c 6c 6f |nt out t|he follo|
|00002570| 77 69 6e 67 20 6c 69 6e | 65 3a 20 2a 2f 0a 23 64 |wing lin|e: */.#d|
|00002580| 65 66 69 6e 65 20 41 43 | 43 45 53 53 0a 2f 2a 0a |efine AC|CESS./*.|
|00002590| 22 64 69 73 6b 3a 2f 73 | 73 73 73 73 22 09 70 61 |"disk:/s|ssss".pa|
|000025a0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |rent dir|ectory, |
|000025b0| 65 2e 67 2e 20 2f 75 73 | 72 33 2c 20 2f 73 74 6f |e.g. /us|r3, /sto|
|000025c0| 6f 6e 74 73 2c 20 65 74 | 63 2e 0a 22 66 69 72 73 |onts, et|c.."firs|
|000025d0| 74 70 72 6f 67 3a 73 73 | 73 73 22 20 74 68 69 73 |tprog:ss|ss" this|
|000025e0| 20 77 69 6c 6c 20 62 65 | 20 74 68 65 20 6c 61 73 | will be| the las|
|000025f0| 74 20 6c 69 6e 65 20 6f | 66 20 2e 70 72 6f 66 69 |t line o|f .profi|
|00002600| 6c 65 0a 22 73 68 65 6c | 6c 3a 78 78 78 78 78 22 |le."shel|l:xxxxx"|
|00002610| 09 73 68 65 6c 6c 3b 20 | 30 20 6d 65 61 6e 73 20 |.shell; |0 means |
|00002620| 6e 6f 20 65 6e 74 72 79 | 20 2a 2f 0a 23 64 65 66 |no entry| */.#def|
|00002630| 69 6e 65 20 50 52 4f 46 | 49 4c 45 20 22 2f 2e 70 |ine PROF|ILE "/.p|
|00002640| 72 6f 66 69 6c 65 22 20 | 2f 2a 77 69 6c 6c 20 68 |rofile" |/*will h|
|00002650| 61 76 65 20 70 61 72 65 | 6e 74 64 69 72 20 70 72 |ave pare|ntdir pr|
|00002660| 65 70 65 6e 64 65 64 2a | 2f 0a 23 64 65 66 69 6e |epended*|/.#defin|
|00002670| 65 20 4c 4f 47 49 4e 20 | 22 2f 2e 6c 6f 67 69 6e |e LOGIN |"/.login|
|00002680| 22 0a 23 64 65 66 69 6e | 65 20 53 54 44 50 52 4f |".#defin|e STDPRO|
|00002690| 46 49 4c 45 20 22 2f 65 | 74 63 2f 73 74 64 70 72 |FILE "/e|tc/stdpr|
|000026a0| 6f 66 69 6c 65 22 0a 2f | 2a 0a 22 61 6c 69 61 73 |ofile"./|*."alias|
|000026b0| 3a 73 73 73 73 73 22 09 | 66 6f 72 20 6d 61 6e 75 |:sssss".|for manu|
|000026c0| 61 6c 6c 79 20 6d 6f 76 | 69 6e 67 20 69 6e 74 6f |ally mov|ing into|
|000026d0| 20 74 68 65 20 70 72 6f | 66 27 73 20 2e 6d 61 69 | the pro|f's .mai|
|000026e0| 6c 72 63 20 66 69 6c 65 | 0a 22 67 72 6f 75 70 3a |lrc file|."group:|
|000026f0| 6e 6e 6e 22 09 09 67 72 | 6f 75 70 0a 22 70 61 73 |nnn"..gr|oup."pas|
|00002700| 73 77 64 3a 78 78 78 78 | 78 78 22 20 70 61 73 73 |swd:xxxx|xx" pass|
|00002710| 77 6f 72 64 20 28 77 69 | 6c 6c 20 62 65 20 73 61 |word (wi|ll be sa|
|00002720| 6d 65 20 66 6f 72 20 61 | 6c 6c 20 74 68 65 73 65 |me for a|ll these|
|00002730| 20 75 73 65 72 73 2c 20 | 62 75 74 20 73 61 6c 74 | users, |but salt|
|00002740| 0a 09 09 09 09 69 73 20 | 72 61 6e 64 6f 6d 6c 79 |.....is |randomly|
|00002750| 20 73 65 6c 65 63 74 65 | 64 29 0a 22 70 61 73 73 | selecte|d)."pass|
|00002760| 77 6f 72 64 3a 78 78 78 | 78 22 20 28 73 61 6d 65 |word:xxx|x" (same|
|00002770| 20 61 73 20 70 61 73 73 | 77 64 29 0a 09 09 73 70 | as pass|wd)...sp|
|00002780| 65 63 69 61 6c 20 63 61 | 73 65 3a 20 31 20 6d 65 |ecial ca|se: 1 me|
|00002790| 61 6e 73 20 75 73 65 20 | 75 73 65 72 6e 61 6d 65 |ans use |username|
|000027a0| 20 61 73 20 70 61 73 73 | 77 6f 72 64 2e 0a 0a 41 | as pass|word...A|
|000027b0| 6e 79 20 6c 69 6e 65 20 | 63 6f 6e 74 61 69 6e 69 |ny line |containi|
|000027c0| 6e 67 20 6f 6e 65 20 6f | 66 20 74 68 65 20 6b 65 |ng one o|f the ke|
|000027d0| 79 77 6f 72 64 73 20 69 | 73 20 70 72 6f 63 65 73 |ywords i|s proces|
|000027e0| 73 65 64 20 66 6f 72 20 | 74 68 65 20 6b 65 79 77 |sed for |the keyw|
|000027f0| 6f 72 64 0a 76 61 6c 75 | 65 2e 20 20 4e 75 6c 6c |ord.valu|e. Null|
|00002800| 20 6c 69 6e 65 73 2c 20 | 62 6c 61 6e 6b 20 6c 69 | lines, |blank li|
|00002810| 6e 65 73 2c 20 61 6e 64 | 20 6c 69 6e 65 73 20 62 |nes, and| lines b|
|00002820| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 23 20 |eginning| with # |
|00002830| 61 72 65 20 69 67 6e 6f | 72 65 64 2e 0a 4f 74 68 |are igno|red..Oth|
|00002840| 65 72 20 6c 69 6e 65 73 | 20 61 72 65 20 70 72 65 |er lines| are pre|
|00002850| 73 75 6d 65 64 20 74 6f | 20 62 65 20 6e 61 6d 65 |sumed to| be name|
|00002860| 2d 6c 69 6e 65 73 20 6f | 66 20 74 68 65 20 66 6f |-lines o|f the fo|
|00002870| 72 6d 0a 6c 61 73 74 6e | 61 6d 65 20 66 20 6d 0a |rm.lastn|ame f m.|
|00002880| 74 68 61 74 20 69 73 2c | 20 6c 61 73 74 6e 61 6d |that is,| lastnam|
|00002890| 65 20 66 69 72 73 74 69 | 6e 69 74 69 61 6c 20 6d |e firsti|nitial m|
|000028a0| 69 64 64 6c 65 69 6e 69 | 74 69 61 6c 0a 73 65 70 |iddleini|tial.sep|
|000028b0| 61 72 61 74 65 64 20 62 | 79 20 62 6c 61 6e 6b 73 |arated b|y blanks|
|000028c0| 2e 0a 54 68 65 20 6c 61 | 73 74 6e 61 6d 65 20 6d |..The la|stname m|
|000028d0| 61 79 20 62 65 20 6f 66 | 20 61 6e 79 20 6c 65 6e |ay be of| any len|
|000028e0| 67 74 68 2c 20 62 75 74 | 20 77 69 6c 6c 20 62 65 |gth, but| will be|
|000028f0| 20 74 72 75 6e 63 61 74 | 65 64 20 74 6f 20 4d 4c | truncat|ed to ML|
|00002900| 20 28 64 65 66 61 75 6c | 74 0a 69 73 20 37 29 20 | (defaul|t.is 7) |
|00002910| 63 68 61 72 73 20 62 65 | 66 6f 72 65 20 61 70 70 |chars be|fore app|
|00002920| 6c 79 69 6e 67 20 61 6e | 79 20 6f 66 20 74 68 65 |lying an|y of the|
|00002930| 20 61 6c 67 6f 72 69 74 | 68 6d 73 2e 20 20 66 69 | algorit|hms. fi|
|00002940| 20 61 6e 64 20 6d 69 20 | 73 68 6f 75 6c 64 20 0a | and mi |should .|
|00002950| 62 65 20 6f 6e 6c 79 20 | 73 69 6e 67 6c 65 20 63 |be only |single c|
|00002960| 68 61 72 61 63 74 65 72 | 73 2c 20 62 75 74 20 74 |haracter|s, but t|
|00002970| 68 65 20 70 61 72 73 65 | 72 20 77 69 6c 6c 20 61 |he parse|r will a|
|00002980| 63 63 65 70 74 20 61 6e | 79 20 6e 75 6d 62 65 72 |ccept an|y number|
|00002990| 2c 20 0a 61 6e 64 20 77 | 69 6c 6c 20 74 72 75 6e |, .and w|ill trun|
|000029a0| 63 61 74 65 20 74 68 65 | 6d 20 74 6f 20 73 69 6e |cate the|m to sin|
|000029b0| 67 6c 65 20 63 68 61 72 | 73 2e 0a 41 6c 73 6f 20 |gle char|s..Also |
|000029c0| 61 63 63 65 70 74 73 20 | 75 73 65 72 6e 61 6d 65 |accepts |username|
|000029d0| 73 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 20 61 62 |s of the| form ab|
|000029e0| 63 2c 20 77 68 65 72 65 | 20 61 62 63 20 69 73 20 |c, where| abc is |
|000029f0| 74 68 65 20 70 65 72 73 | 6f 6e 27 73 0a 66 69 20 |the pers|on's.fi |
|00002a00| 6d 69 20 6c 69 2c 20 61 | 73 20 73 6f 6d 65 20 73 |mi li, a|s some s|
|00002a10| 79 73 74 65 6d 20 61 64 | 6d 69 6e 73 20 6c 69 6b |ystem ad|mins lik|
|00002a20| 65 20 74 6f 20 75 73 65 | 2c 20 65 2e 67 2e 20 49 |e to use|, e.g. I|
|00002a30| 20 77 6f 75 6c 64 20 62 | 65 0a 22 6a 68 6e 22 20 | would b|e."jhn" |
|00002a40| 28 4a 61 6d 65 73 20 48 | 20 4e 65 6c 73 6f 6e 29 |(James H| Nelson)|
|00002a50| 2c 20 61 6e 64 20 22 4a | 6f 65 20 42 6f 62 20 43 |, and "J|oe Bob C|
|00002a60| 6f 6c 6c 65 67 65 22 20 | 77 6f 75 6c 64 20 62 65 |ollege" |would be|
|00002a70| 20 22 6a 62 63 22 2e 20 | 20 0a 54 68 65 20 70 72 | "jbc". | .The pr|
|00002a80| 6f 67 72 61 6d 20 61 73 | 73 75 6d 65 73 20 74 68 |ogram as|sumes th|
|00002a90| 61 74 20 22 6a 68 6e 22 | 20 69 73 20 74 68 65 20 |at "jhn"| is the |
|00002aa0| 6c 61 73 74 6e 61 6d 65 | 2c 20 61 6e 64 20 66 6f |lastname|, and fo|
|00002ab0| 72 63 65 73 20 66 69 20 | 0a 61 6e 64 20 6d 69 20 |rces fi |.and mi |
|00002ac0| 74 6f 20 62 65 20 27 31 | 27 20 66 6f 72 20 70 75 |to be '1|' for pu|
|00002ad0| 72 70 6f 73 65 73 20 6f | 66 20 74 68 65 20 61 6c |rposes o|f the al|
|00002ae0| 67 6f 72 69 74 68 6d 2e | 0a 54 68 65 20 61 6c 67 |gorithm.|.The alg|
|00002af0| 6f 72 69 74 68 6d 20 66 | 69 72 73 74 20 74 72 69 |orithm f|irst tri|
|00002b00| 65 73 20 6c 61 73 74 6e | 61 6d 65 2c 20 74 68 65 |es lastn|ame, the|
|00002b10| 6e 20 66 69 6c 61 73 74 | 6e 61 6d 65 2c 20 74 68 |n filast|name, th|
|00002b20| 65 6e 0a 6c 61 73 74 6e | 61 6d 65 66 69 2c 20 74 |en.lastn|amefi, t|
|00002b30| 68 65 6e 20 66 69 6c 61 | 73 74 6e 61 6d 65 6d 69 |hen fila|stnamemi|
|00002b40| 2c 20 65 74 63 2e 2c 20 | 65 74 63 2e 2c 20 66 69 |, etc., |etc., fi|
|00002b50| 6e 61 6c 6c 79 20 72 65 | 73 6f 72 74 69 6e 67 20 |nally re|sorting |
|00002b60| 74 6f 0a 70 72 65 70 65 | 6e 64 69 6e 67 20 64 69 |to.prepe|nding di|
|00002b70| 67 69 74 73 20 74 6f 20 | 75 73 65 72 6e 61 6d 65 |gits to |username|
|00002b80| 73 20 69 66 20 61 6c 6c | 20 65 6c 73 65 20 66 61 |s if all| else fa|
|00002b90| 69 6c 73 20 28 74 68 69 | 73 20 69 73 20 67 75 61 |ils (thi|s is gua|
|00002ba0| 72 61 6e 74 65 65 64 0a | 74 6f 20 77 6f 72 6b 20 |ranteed.|to work |
|00002bb0| 75 6e 6c 65 73 73 20 79 | 6f 75 20 68 61 76 65 20 |unless y|ou have |
|00002bc0| 61 20 68 75 67 65 20 6e | 75 6d 62 65 72 20 6f 66 |a huge n|umber of|
|00002bd0| 20 75 73 65 72 73 20 28 | 21 29 29 2e 20 20 54 68 | users (|!)). Th|
|00002be0| 65 20 65 78 61 63 74 0a | 61 6c 67 6f 72 69 74 68 |e exact.|algorith|
|00002bf0| 6d 20 69 73 20 63 6c 65 | 61 72 20 66 72 6f 6d 20 |m is cle|ar from |
|00002c00| 72 65 61 64 69 6e 67 20 | 74 68 65 20 63 6f 64 65 |reading |the code|
|00002c10| 20 69 6e 20 74 72 79 61 | 67 61 69 6e 28 29 2e 0a | in trya|gain()..|
|00002c20| 53 65 65 20 61 6c 73 65 | 20 74 68 65 20 65 78 61 |See alse| the exa|
|00002c30| 6d 70 6c 65 20 66 69 6c | 65 2e 0a 2a 2f 0a 0a 23 |mple fil|e..*/..#|
|00002c40| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00002c50| 3e 0a 0a 0a 2f 2a 20 74 | 68 65 73 65 20 6e 65 78 |>.../* t|hese nex|
|00002c60| 74 20 69 6e 63 6c 75 64 | 65 73 20 70 72 6f 62 61 |t includ|es proba|
|00002c70| 62 6c 79 20 77 69 6c 6c | 20 6e 6f 74 20 77 6f 72 |bly will| not wor|
|00002c80| 6b 20 65 76 65 72 79 77 | 68 65 72 65 20 2a 2f 0a |k everyw|here */.|
|00002c90| 2f 2a 20 74 68 65 79 20 | 44 4f 20 77 6f 72 6b 20 |/* they |DO work |
|00002ca0| 6f 6e 20 53 79 73 56 72 | 32 20 28 33 62 32 2f 33 |on SysVr|2 (3b2/3|
|00002cb0| 30 30 29 20 61 6e 64 20 | 61 20 42 53 44 34 2e 31 |00) and |a BSD4.1|
|00002cc0| 2d 64 65 72 69 76 65 64 | 0a 6b 6e 6f 63 6b 6f 66 |-derived|.knockof|
|00002cd0| 66 20 28 6c 6d 63 20 2d | 2d 20 47 45 4e 49 58 20 |f (lmc -|- GENIX |
|00002ce0| 6f 6e 20 61 20 6e 73 63 | 31 36 30 33 32 29 20 2a |on a nsc|16032) *|
|00002cf0| 2f 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |/.#inclu|de <stri|
|00002d00| 6e 67 2e 68 3e 20 2f 2a | 6d 61 79 62 65 20 73 74 |ng.h> /*|maybe st|
|00002d10| 72 69 6e 67 73 2e 68 20 | 20 20 3f 3f 3f 2a 2f 0a |rings.h | ???*/.|
|00002d20| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 79 |#include| <sys/ty|
|00002d30| 70 65 73 2e 68 3e 20 2f | 2a 6d 61 79 62 65 20 64 |pes.h> /|*maybe d|
|00002d40| 6f 6e 27 74 20 6e 65 65 | 64 20 73 79 73 20 20 3f |on't nee|d sys ?|
|00002d50| 3f 3f 20 2a 2f 0a 23 69 | 6e 63 6c 75 64 65 20 3c |?? */.#i|nclude <|
|00002d60| 73 79 73 2f 73 74 61 74 | 2e 68 3e 20 20 2f 2a 20 |sys/stat|.h> /* |
|00002d70| 64 69 74 74 6f 20 2a 2f | 0a 23 69 6e 63 6c 75 64 |ditto */|.#includ|
|00002d80| 65 20 3c 65 72 72 6e 6f | 2e 68 3e 20 2f 2a 6f 6e |e <errno|.h> /*on|
|00002d90| 6c 79 20 66 6f 72 20 45 | 4e 4f 45 4e 54 2a 2f 20 |ly for E|NOENT*/ |
|00002da0| 2f 2a 69 66 20 66 61 69 | 6c 73 2c 20 66 6f 72 67 |/*if fai|ls, forg|
|00002db0| 65 74 20 69 74 21 20 2a | 2f 0a 0a 2f 2a 20 6e 65 |et it! *|/../* ne|
|00002dc0| 78 74 20 74 68 72 65 65 | 20 61 72 65 20 69 6e 64 |xt three| are ind|
|00002dd0| 69 76 69 64 75 61 6c 6c | 79 20 74 75 6e 61 62 6c |ividuall|y tunabl|
|00002de0| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 2a 2f 0a |e parame|ters */.|
|00002df0| 23 64 65 66 69 6e 65 20 | 4d 41 58 4e 55 20 31 33 |#define |MAXNU 13|
|00002e00| 30 30 20 2f 2a 6d 61 78 | 20 6e 75 6d 62 65 72 20 |00 /*max| number |
|00002e10| 6f 66 20 65 6e 74 72 69 | 65 73 20 69 6e 20 2f 65 |of entri|es in /e|
|00002e20| 74 63 2f 70 61 73 73 77 | 64 20 2a 2f 0a 23 64 65 |tc/passw|d */.#de|
|00002e30| 66 69 6e 65 20 52 4f 4f | 54 20 30 20 2f 2a 20 6a |fine ROO|T 0 /* j|
|00002e40| 75 73 74 20 69 6e 20 63 | 61 73 65 20 79 6f 75 72 |ust in c|ase your|
|00002e50| 20 72 6f 6f 74 20 69 73 | 20 6e 6f 74 20 75 69 64 | root is| not uid|
|00002e60| 3d 3d 30 20 28 3f 77 65 | 69 72 64 3f 29 20 2a 2f |==0 (?we|ird?) */|
|00002e70| 0a 23 64 65 66 69 6e 65 | 20 4d 4c 20 37 20 20 2f |.#define| ML 7 /|
|00002e80| 2a 6d 61 78 69 6d 75 6d | 20 6c 65 6e 67 74 68 20 |*maximum| length |
|00002e90| 6f 66 20 61 20 6c 6f 67 | 69 6e 2d 6e 61 6d 65 2e |of a log|in-name.|
|00002ea0| 2a 2f 0a 2f 2a 20 37 20 | 69 73 20 61 20 6e 69 63 |*/./* 7 |is a nic|
|00002eb0| 65 20 6c 65 6e 67 74 68 | 2c 20 27 63 61 75 73 65 |e length|, 'cause|
|00002ec0| 20 74 61 62 73 20 77 6f | 72 6b 20 62 65 74 74 65 | tabs wo|rk bette|
|00002ed0| 72 2c 20 62 75 74 20 74 | 68 69 73 20 63 61 6e 20 |r, but t|his can |
|00002ee0| 62 65 0a 20 61 6e 79 74 | 68 69 6e 67 20 77 69 74 |be. anyt|hing wit|
|00002ef0| 68 69 6e 20 72 65 61 73 | 6f 6e 20 2a 2f 0a 0a 23 |hin reas|on */..#|
|00002f00| 64 65 66 69 6e 65 20 6e | 75 6c 6c 20 27 5c 30 27 |define n|ull '\0'|
|00002f10| 20 2f 2a 6a 75 73 74 20 | 66 6f 72 20 65 61 73 65 | /*just |for ease|
|00002f20| 20 6f 66 20 74 79 70 69 | 6e 67 2a 2f 20 2f 2a 20 | of typi|ng*/ /* |
|00002f30| 6e 6f 74 20 73 61 6d 65 | 20 61 73 20 4e 55 4c 4c |not same| as NULL|
|00002f40| 20 2a 2f 0a 0a 65 78 74 | 65 72 6e 20 76 6f 69 64 | */..ext|ern void|
|00002f50| 20 65 78 69 74 28 29 3b | 20 2f 2a 20 66 6f 72 20 | exit();| /* for |
|00002f60| 6c 69 6e 74 20 2a 2f 0a | 0a 23 69 66 64 65 66 20 |lint */.|.#ifdef |
|00002f70| 4d 41 49 4e 20 2f 2a 73 | 6f 20 6f 6e 6c 79 20 73 |MAIN /*s|o only s|
|00002f80| 65 65 20 6f 6e 63 65 3b | 20 6d 61 69 6e 2e 63 20 |ee once;| main.c |
|00002f90| 77 69 6c 6c 20 64 65 66 | 69 6e 65 20 4d 41 49 4e |will def|ine MAIN|
|00002fa0| 2c 0a 62 75 74 20 6e 6f | 62 6f 64 79 20 65 6c 73 |,.but no|body els|
|00002fb0| 65 20 77 69 6c 6c 2a 2f | 0a 0a 2f 2a 20 73 6f 6d |e will*/|../* som|
|00002fc0| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|00002fd0| 6e 67 20 6d 69 67 68 74 | 20 6e 65 65 64 20 74 6f |ng might| need to|
|00002fe0| 20 62 65 20 6c 65 6e 67 | 74 68 65 6e 65 64 20 69 | be leng|thened i|
|00002ff0| 66 20 73 79 73 6f 70 0a | 61 6c 6c 6f 77 73 20 72 |f sysop.|allows r|
|00003000| 69 64 69 63 75 6c 6f 75 | 73 6c 79 20 6c 6f 6e 67 |idiculou|sly long|
|00003010| 20 6c 6f 67 69 6e 20 6e | 61 6d 65 73 20 2a 2f 0a | login n|ames */.|
|00003020| 0a 69 6e 74 20 65 75 69 | 64 3b 20 0a 2f 2a 20 65 |.int eui|d; ./* e|
|00003030| 75 69 64 20 3d 20 67 65 | 74 65 75 69 64 28 29 3b |uid = ge|teuid();|
|00003040| 20 2a 2f 20 2f 2a 74 6f | 20 73 65 65 20 69 66 20 | */ /*to| see if |
|00003050| 77 65 27 72 65 20 64 61 | 6e 67 65 72 6f 75 73 20 |we're da|ngerous |
|00003060| 2a 2f 0a 2f 2a 74 68 69 | 73 20 77 69 6c 6c 20 62 |*/./*thi|s will b|
|00003070| 65 20 64 6f 6e 65 20 76 | 65 72 79 20 65 61 72 6c |e done v|ery earl|
|00003080| 79 20 69 6e 20 6d 61 69 | 6e 28 29 20 2a 2f 0a 2f |y in mai|n() */./|
|00003090| 2a 20 41 75 74 6f 61 64 | 64 20 64 6f 65 73 20 73 |* Autoad|d does s|
|000030a0| 6c 69 67 68 74 6c 79 20 | 64 69 66 66 65 72 65 6e |lightly |differen|
|000030b0| 74 20 74 68 69 6e 67 73 | 20 64 65 70 65 6e 64 69 |t things| dependi|
|000030c0| 6e 67 20 6f 6e 20 77 68 | 65 74 68 65 72 0a 20 75 |ng on wh|ether. u|
|000030d0| 73 65 72 20 69 73 20 72 | 6f 6f 74 20 6f 72 20 6e |ser is r|oot or n|
|000030e0| 6f 74 2c 20 65 2e 67 2e | 20 2f 65 74 63 2f 70 61 |ot, e.g.| /etc/pa|
|000030f0| 73 73 77 64 20 76 73 2e | 20 2e 2f 70 61 73 73 77 |sswd vs.| ./passw|
|00003100| 64 20 2c 20 65 74 63 2e | 0a 20 45 78 61 6d 69 6e |d , etc.|. Examin|
|00003110| 65 20 74 68 65 20 63 6f | 64 65 20 63 61 72 65 66 |e the co|de caref|
|00003120| 75 6c 6c 79 20 62 65 66 | 6f 72 65 20 72 75 6e 6e |ully bef|ore runn|
|00003130| 69 6e 67 20 61 74 20 61 | 6c 6c 2c 20 61 6e 64 20 |ing at a|ll, and |
|00003140| 74 68 65 6e 20 72 65 2d | 0a 20 65 78 61 6d 69 6e |then re-|. examin|
|00003150| 65 20 69 74 20 62 65 66 | 6f 72 65 20 72 75 6e 6e |e it bef|ore runn|
|00003160| 69 6e 67 20 61 73 20 72 | 6f 6f 74 2e 20 54 68 69 |ing as r|oot. Thi|
|00003170| 73 20 69 73 20 6e 6f 74 | 20 61 20 64 69 73 6b 2d |s is not| a disk-|
|00003180| 70 6f 6c 69 73 68 65 72 | 20 6f 72 0a 20 6f 6e 65 |polisher| or. one|
|00003190| 20 6f 66 20 74 68 6f 73 | 65 20 6f 74 68 65 72 20 | of thos|e other |
|000031a0| 6e 61 73 74 69 65 73 2c | 20 28 44 4f 20 4e 4f 54 |nasties,| (DO NOT|
|000031b0| 20 74 61 6b 65 20 6d 79 | 20 77 6f 72 64 20 66 6f | take my| word fo|
|000031c0| 72 20 69 74 2c 20 6c 6f | 6f 6b 20 61 74 0a 20 74 |r it, lo|ok at. t|
|000031d0| 68 65 20 63 6f 64 65 21 | 29 20 62 75 74 20 69 74 |he code!|) but it|
|000031e0| 20 64 6f 65 73 20 68 61 | 76 65 20 74 6f 20 72 75 | does ha|ve to ru|
|000031f0| 6e 20 61 73 20 72 6f 6f | 74 20 74 6f 20 62 65 0a |n as roo|t to be.|
|00003200| 20 65 66 66 65 63 74 69 | 76 65 20 28 6e 6f 74 20 | effecti|ve (not |
|00003210| 6e 65 63 65 73 73 61 72 | 69 6c 79 20 73 65 74 75 |necessar|ily setu|
|00003220| 69 64 20 72 6f 6f 74 2c | 20 6a 75 73 74 20 22 65 |id root,| just "e|
|00003230| 66 66 65 63 74 69 76 65 | 20 75 69 64 22 0a 20 6f |ffective| uid". o|
|00003240| 66 20 72 6f 6f 74 29 2c | 20 27 63 61 75 73 65 20 |f root),| 'cause |
|00003250| 69 74 20 6d 75 73 74 20 | 61 70 70 65 6e 64 20 74 |it must |append t|
|00003260| 6f 20 2f 65 74 63 2f 70 | 61 73 73 77 64 20 61 6e |o /etc/p|asswd an|
|00003270| 64 20 63 72 65 61 74 65 | 0a 20 64 69 72 65 63 74 |d create|. direct|
|00003280| 6f 72 69 65 73 20 69 6e | 20 2f 22 64 69 73 6b 22 |ories in| /"disk"|
|00003290| 2e 20 28 75 6e 6c 65 73 | 73 20 79 6f 75 20 6c 65 |. (unles|s you le|
|000032a0| 74 20 6a 75 73 74 20 61 | 6e 79 62 6f 64 79 20 64 |t just a|nybody d|
|000032b0| 6f 20 74 68 6f 73 65 0a | 20 74 68 69 6e 67 73 21 |o those.| things!|
|000032c0| 29 0a 2a 2f 0a 2f 2a 20 | 73 6f 6d 65 20 64 65 66 |).*/./* |some def|
|000032d0| 61 75 6c 74 73 3a 2a 2f | 0a 23 64 65 66 69 6e 65 |aults:*/|.#define|
|000032e0| 20 47 52 4f 55 50 20 22 | 31 30 30 22 20 2f 2a 77 | GROUP "|100" /*w|
|000032f0| 68 79 20 6e 6f 74 3f 2a | 2f 0a 23 64 65 66 69 6e |hy not?*|/.#defin|
|00003300| 65 20 44 49 53 4b 20 22 | 2f 75 73 72 34 22 20 2f |e DISK "|/usr4" /|
|00003310| 2a 6f 75 72 20 63 75 72 | 72 65 6e 74 20 70 6c 61 |*our cur|rent pla|
|00003320| 63 65 20 74 6f 20 73 74 | 61 73 68 20 73 74 6f 6f |ce to st|ash stoo|
|00003330| 6e 74 73 2a 2f 0a 23 64 | 65 66 69 6e 65 20 53 48 |nts*/.#d|efine SH|
|00003340| 45 4c 4c 20 22 30 22 20 | 2f 2a 20 30 20 6d 65 61 |ELL "0" |/* 0 mea|
|00003350| 6e 73 20 42 6f 75 72 6e | 65 20 73 68 65 6c 6c 20 |ns Bourn|e shell |
|00003360| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 41 4c 49 41 53 |*/.#defi|ne ALIAS|
|00003370| 20 22 63 73 63 31 30 31 | 22 20 2f 2a 77 65 20 64 | "csc101|" /*we d|
|00003380| 6f 6e 27 74 20 68 61 76 | 65 20 61 20 63 73 63 31 |on't hav|e a csc1|
|00003390| 30 31 2c 20 73 6f 20 77 | 68 79 20 6e 6f 74 3f 2a |01, so w|hy not?*|
|000033a0| 2f 0a 23 64 65 66 69 6e | 65 20 46 49 52 53 54 50 |/.#defin|e FIRSTP|
|000033b0| 52 4f 47 20 22 30 22 20 | 2f 2a 20 64 65 66 61 75 |ROG "0" |/* defau|
|000033c0| 6c 74 20 6e 6f 20 73 74 | 61 72 74 75 70 20 70 72 |lt no st|artup pr|
|000033d0| 6f 67 72 61 6d 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ogram */|.#define|
|000033e0| 20 50 52 4f 46 45 53 53 | 4f 52 20 22 6e 65 6c 73 | PROFESS|OR "nels|
|000033f0| 6f 6e 22 09 2f 2a 20 6d | 61 6b 65 20 22 30 22 20 |on"./* m|ake "0" |
|00003400| 28 77 69 74 68 20 71 75 | 6f 74 65 73 29 20 66 6f |(with qu|otes) fo|
|00003410| 72 20 6e 6f 6e 65 2a 2f | 0a 23 64 65 66 69 6e 65 |r none*/|.#define|
|00003420| 20 50 41 53 53 57 44 20 | 22 30 22 20 2f 2a 6e 6f | PASSWD |"0" /*no|
|00003430| 20 64 65 66 61 75 6c 74 | 20 70 61 73 73 77 6f 72 | default| passwor|
|00003440| 64 2a 2f 0a 23 64 65 66 | 69 6e 65 20 44 49 53 4c |d*/.#def|ine DISL|
|00003450| 49 53 54 20 22 2e 2f 6d | 61 69 6c 72 63 22 20 2f |IST "./m|ailrc" /|
|00003460| 2a 66 69 6c 65 6e 61 6d | 65 20 6f 66 20 77 68 65 |*filenam|e of whe|
|00003470| 72 65 20 74 6f 20 70 75 | 74 20 61 6c 69 61 73 20 |re to pu|t alias |
|00003480| 6c 69 73 74 2a 2f 0a 2f | 2a 6e 6f 74 69 63 65 20 |list*/./|*notice |
|00003490| 74 68 61 74 20 73 65 76 | 65 72 61 6c 20 6f 66 20 |that sev|eral of |
|000034a0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 73 20 64 65 |the vari|ables de|
|000034b0| 66 61 75 6c 74 20 69 66 | 20 74 68 65 20 66 69 72 |fault if| the fir|
|000034c0| 73 74 0a 28 69 2e 65 2e | 20 7a 65 72 6f 74 68 29 |st.(i.e.| zeroth)|
|000034d0| 20 63 68 61 72 61 63 74 | 65 72 20 6f 66 20 61 20 | charact|er of a |
|000034e0| 73 74 72 69 6e 67 20 69 | 73 20 74 68 65 20 63 68 |string i|s the ch|
|000034f0| 61 72 61 63 74 65 72 20 | 27 30 27 20 2c 20 62 75 |aracter |'0' , bu|
|00003500| 74 20 74 68 65 0a 61 62 | 6f 76 65 20 64 65 66 69 |t the.ab|ove defi|
|00003510| 6e 65 73 20 6d 75 73 74 | 20 62 65 20 69 6e 20 64 |nes must| be in d|
|00003520| 6f 75 62 6c 65 2d 71 6f | 75 74 65 73 2c 20 6e 6f |ouble-qo|utes, no|
|00003530| 74 20 73 69 6e 67 6c 65 | 2d 71 75 6f 74 65 73 2c |t single|-quotes,|
|00003540| 20 62 65 63 75 7a 0a 74 | 68 65 79 27 72 65 20 75 | becuz.t|hey're u|
|00003550| 73 65 64 20 69 6e 20 73 | 74 72 63 70 79 28 29 20 |sed in s|trcpy() |
|00003560| 73 74 61 74 65 6d 65 6e | 74 73 2e 0a 41 20 63 6f |statemen|ts..A co|
|00003570| 75 70 6c 65 20 6f 66 20 | 6f 74 68 65 72 20 74 68 |uple of |other th|
|00003580| 69 6e 67 73 3a 20 47 52 | 4f 55 50 20 6d 75 73 74 |ings: GR|OUP must|
|00003590| 20 62 65 20 61 20 73 74 | 72 69 6e 67 2c 20 6e 6f | be a st|ring, no|
|000035a0| 74 20 61 6e 20 69 6e 74 | 65 67 65 72 3b 0a 74 68 |t an int|eger;.th|
|000035b0| 65 20 6c 65 61 64 69 6e | 67 20 2f 20 69 73 20 6f |e leadin|g / is o|
|000035c0| 70 74 69 6f 6e 61 6c 20 | 6f 6e 20 44 49 53 4b 20 |ptional |on DISK |
|000035d0| 28 69 74 27 6c 6c 20 62 | 65 20 66 6f 72 63 65 64 |(it'll b|e forced|
|000035e0| 20 69 66 20 6f 6d 69 74 | 74 65 64 29 3b 0a 49 20 | if omit|ted);.I |
|000035f0| 64 6f 6e 27 74 20 68 61 | 76 65 20 6b 73 68 2c 20 |don't ha|ve ksh, |
|00003600| 73 6f 20 74 68 65 20 6f | 6e 6c 79 20 77 61 79 20 |so the o|nly way |
|00003610| 74 6f 20 6d 61 6b 65 20 | 69 74 20 74 68 65 20 64 |to make |it the d|
|00003620| 65 66 61 75 6c 74 20 69 | 73 20 74 6f 0a 68 61 63 |efault i|s to.hac|
|00003630| 6b 20 6f 6e 20 74 68 65 | 20 73 6f 75 72 63 65 3b |k on the| source;|
|00003640| 20 62 65 20 73 75 72 65 | 20 74 68 65 20 6c 6f 6f | be sure| the loo|
|00003650| 6b 20 61 74 20 65 63 70 | 77 2e 63 20 63 6c 6f 73 |k at ecp|w.c clos|
|00003660| 65 6c 79 20 69 66 20 77 | 6f 72 72 69 65 64 0a 61 |ely if w|orried.a|
|00003670| 62 6f 75 74 20 70 61 73 | 73 77 6f 72 64 73 2e 0a |bout pas|swords..|
|00003680| 2a 2f 0a 0a 2f 2a 20 47 | 6c 6f 62 61 6c 20 76 61 |*/../* G|lobal va|
|00003690| 72 69 61 62 6c 65 73 3a | 20 2a 2f 0a 63 68 61 72 |riables:| */.char|
|000036a0| 20 2a 75 73 65 72 5b 4d | 41 58 4e 55 5d 2c 2a 6d | *user[M|AXNU],*m|
|000036b0| 61 6c 6c 6f 63 28 29 3b | 20 2f 2a 20 77 65 20 68 |alloc();| /* we h|
|000036c0| 61 76 65 20 6f 6e 6c 79 | 20 61 62 6f 75 74 20 31 |ave only| about 1|
|000036d0| 32 30 2c 20 62 75 74 20 | 2e 2e 2e 2a 2f 0a 63 68 |20, but |...*/.ch|
|000036e0| 61 72 20 65 63 70 74 65 | 78 5b 32 30 5d 3b 20 2f |ar ecpte|x[20]; /|
|000036f0| 2a 20 6c 61 72 67 65 20 | 65 6e 75 66 66 20 74 6f |* large |enuff to|
|00003700| 20 68 6f 6c 64 20 61 6e | 20 65 6e 63 72 79 70 74 | hold an| encrypt|
|00003710| 65 64 20 70 61 73 73 77 | 6f 72 64 2a 2f 0a 63 68 |ed passw|ord*/.ch|
|00003720| 61 72 20 69 6e 66 69 6c | 65 5b 31 30 30 5d 3b 20 |ar infil|e[100]; |
|00003730| 2f 2a 74 68 65 20 69 6e | 70 75 74 20 66 69 6c 65 |/*the in|put file|
|00003740| 6e 61 6d 65 20 2e 2e 2e | 20 33 30 20 73 68 6f 75 |name ...| 30 shou|
|00003750| 6c 64 20 62 65 20 70 6c | 65 6e 74 79 2a 2f 0a 63 |ld be pl|enty*/.c|
|00003760| 68 61 72 20 6c 69 6e 65 | 5b 31 34 32 5d 2c 6c 61 |har line|[142],la|
|00003770| 73 74 6e 61 6d 65 5b 35 | 30 5d 2c 66 69 5b 32 5d |stname[5|0],fi[2]|
|00003780| 2c 6d 69 5b 32 5d 3b 0a | 63 68 61 72 20 70 72 6f |,mi[2];.|char pro|
|00003790| 66 6e 61 6d 65 5b 33 30 | 5d 2c 64 69 73 6b 6e 61 |fname[30|],diskna|
|000037a0| 6d 65 5b 32 30 5d 2c 67 | 72 6f 75 70 6e 61 6d 65 |me[20],g|roupname|
|000037b0| 5b 32 30 5d 2c 70 61 73 | 73 77 6f 72 64 6e 61 6d |[20],pas|swordnam|
|000037c0| 65 5b 32 30 5d 2c 0a 09 | 75 73 65 72 6e 61 6d 65 |e[20],..|username|
|000037d0| 5b 34 30 5d 2c 61 6c 69 | 61 73 6e 61 6d 65 5b 34 |[40],ali|asname[4|
|000037e0| 30 5d 2c 66 69 72 73 74 | 70 72 6f 67 5b 34 30 5d |0],first|prog[40]|
|000037f0| 2c 70 61 72 65 6e 74 64 | 69 72 5b 34 30 5d 3b 0a |,parentd|ir[40];.|
|00003800| 63 68 61 72 20 64 69 73 | 6c 69 73 74 5b 36 30 5d |char dis|list[60]|
|00003810| 2c 70 61 73 73 77 64 5b | 36 30 5d 2c 70 72 6f 66 |,passwd[|60],prof|
|00003820| 66 69 6c 65 5b 36 30 5d | 20 3b 0a 23 65 6e 64 69 |file[60]| ;.#endi|
|00003830| 66 20 2f 2a 4d 41 49 4e | 2a 2f 0a 00 00 00 00 00 |f /*MAIN|*/......|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 61 75 74 6f 61 64 64 2f | 65 78 61 6d 70 6c 65 00 |autoadd/|example.|
|00003a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003a80| 20 20 20 32 30 36 33 20 | 20 34 34 30 34 30 35 34 | 2063 | 4404054|
|00003a90| 30 33 33 20 20 20 37 30 | 37 35 00 20 00 00 00 00 |033 70|75. ....|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 23 20 66 6f 72 74 72 61 | 6e 37 37 0a 67 72 6f 75 |# fortra|n77.grou|
|00003c10| 70 3a 31 39 35 0a 61 6c | 69 61 73 3a 63 73 63 31 |p:195.al|ias:csc1|
|00003c20| 31 31 0a 70 72 6f 66 3a | 68 65 72 62 73 74 0a 64 |11.prof:|herbst.d|
|00003c30| 69 73 6b 3a 75 73 72 0a | 70 61 73 73 77 6f 72 64 |isk:usr.|password|
|00003c40| 3a 62 65 67 69 6e 6e 65 | 72 0a 23 20 66 6f 72 63 |:beginne|r.# forc|
|00003c50| 65 20 74 68 65 6d 20 69 | 6e 74 6f 20 74 68 65 20 |e them i|nto the |
|00003c60| 6d 65 6e 75 2d 73 68 65 | 6c 6c 20 61 73 20 74 68 |menu-she|ll as th|
|00003c70| 65 20 6c 61 73 74 20 6c | 69 6e 65 0a 23 20 6f 66 |e last l|ine.# of|
|00003c80| 20 74 68 65 69 72 20 2e | 70 72 6f 66 69 6c 65 0a | their .|profile.|
|00003c90| 66 69 72 73 74 70 72 6f | 67 3a 2f 75 73 72 2f 75 |firstpro|g:/usr/u|
|00003ca0| 6e 63 77 2f 6d 73 68 0a | 0a 6e 65 6c 73 6f 6e 20 |ncw/msh.|.nelson |
|00003cb0| 62 72 61 69 6e 20 64 65 | 61 64 0a 6d 72 0a 6d 6d |brain de|ad.mr.mm|
|00003cc0| 72 0a 61 6c 2d 61 6e 6f | 6e 20 6d 75 68 61 6d 6d |r.al-ano|n muhamm|
|00003cd0| 61 64 20 6d 75 73 74 61 | 66 61 0a 73 68 65 6c 6c |ad musta|fa.shell|
|00003ce0| 3a 2f 62 69 6e 2f 63 73 | 68 0a 70 6f 64 67 6f 72 |:/bin/cs|h.podgor|
|00003cf0| 6e 6f 77 69 74 7a 20 61 | 20 61 0a 70 6f 64 67 6f |nowitz a| a.podgo|
|00003d00| 72 6e 6f 77 69 74 7a 20 | 61 20 62 0a 23 6e 65 78 |rnowitz |a b.#nex|
|00003d10| 74 20 70 65 72 73 6f 6e | 20 73 68 6f 75 6c 64 20 |t person| should |
|00003d20| 62 65 20 6f 6e 6c 79 20 | 6f 6e 65 20 77 68 6f 20 |be only |one who |
|00003d30| 68 61 73 20 70 61 73 73 | 77 6f 72 64 20 73 61 6d |has pass|word sam|
|00003d40| 65 20 61 73 20 6c 6f 67 | 69 6e 0a 70 61 73 73 77 |e as log|in.passw|
|00003d50| 64 3a 31 0a 70 6f 64 67 | 6f 72 6e 6f 77 69 74 7a |d:1.podg|ornowitz|
|00003d60| 20 62 20 61 0a 70 61 73 | 73 77 64 3a 30 0a 0a 23 | b a.pas|swd:0..#|
|00003d70| 20 69 6e 74 72 6f 20 63 | 6f 6d 70 20 73 63 69 20 | intro c|omp sci |
|00003d80| 49 49 20 73 65 63 74 69 | 6f 6e 20 31 0a 70 72 6f |II secti|on 1.pro|
|00003d90| 66 3a 6b 6e 75 74 68 0a | 64 69 73 6b 3a 2f 75 73 |f:knuth.|disk:/us|
|00003da0| 72 31 0a 23 69 20 74 68 | 69 6e 6b 20 74 68 69 73 |r1.#i th|ink this|
|00003db0| 20 69 73 20 74 68 65 20 | 75 6e 69 74 20 6f 66 20 | is the |unit of |
|00003dc0| 61 6c 62 61 6e 69 61 6e | 20 63 75 72 72 65 6e 63 |albanian| currenc|
|00003dd0| 79 20 3f 0a 70 61 73 73 | 77 64 3a 7a 6c 6f 74 6e |y ?.pass|wd:zlotn|
|00003de0| 79 0a 67 72 6f 75 70 3a | 31 37 37 0a 66 69 72 73 |y.group:|177.firs|
|00003df0| 74 70 72 6f 67 3a 30 0a | 61 6c 69 61 73 3a 63 73 |tprog:0.|alias:cs|
|00003e00| 63 31 32 32 30 31 0a 73 | 68 65 6c 6c 3a 30 0a 63 |c12201.s|hell:0.c|
|00003e10| 61 6d 70 75 73 20 62 69 | 67 20 6d 61 6e 20 6f 6e |ampus bi|g man on|
|00003e20| 0a 63 72 65 74 69 6e 20 | 61 20 61 0a 63 72 65 74 |.cretin |a a.cret|
|00003e30| 69 6e 20 61 20 62 0a 23 | 20 6a 75 73 74 20 74 6f |in a b.#| just to|
|00003e40| 20 73 65 65 20 69 66 20 | 74 68 69 73 20 77 6f 72 | see if |this wor|
|00003e50| 6b 73 0a 73 68 65 6c 6c | 3a 2f 62 69 6e 2f 6b 73 |ks.shell|:/bin/ks|
|00003e60| 68 0a 63 72 65 74 69 6e | 20 62 20 61 0a 73 68 65 |h.cretin| b a.she|
|00003e70| 6c 6c 3a 2f 62 69 6e 2f | 63 73 68 0a 63 72 65 74 |ll:/bin/|csh.cret|
|00003e80| 69 6e 20 62 20 62 0a 23 | 20 67 6f 20 62 61 63 6b |in b b.#| go back|
|00003e90| 20 74 6f 20 42 6f 75 72 | 6e 65 20 73 68 65 6c 6c | to Bour|ne shell|
|00003ea0| 0a 73 68 65 6c 6c 3a 30 | 0a 63 72 65 74 69 6e 20 |.shell:0|.cretin |
|00003eb0| 62 20 62 0a 6a 68 6e 0a | 63 6f 6c 6c 65 67 65 20 |b b.jhn.|college |
|00003ec0| 73 75 7a 79 20 63 6f 65 | 64 0a 62 63 68 0a 23 0a |suzy coe|d.bch.#.|
|00003ed0| 23 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |# operat|ing syst|
|00003ee0| 65 6d 73 0a 70 72 6f 66 | 3a 61 73 74 0a 61 6c 69 |ems.prof|:ast.ali|
|00003ef0| 61 73 3a 63 73 63 33 34 | 32 0a 70 61 73 73 77 64 |as:csc34|2.passwd|
|00003f00| 3a 57 61 63 68 74 77 6f | 6f 72 64 0a 67 72 6f 75 |:Wachtwo|ord.grou|
|00003f10| 70 3a 31 37 38 0a 64 69 | 73 6b 3a 75 73 72 33 0a |p:178.di|sk:usr3.|
|00003f20| 66 69 72 73 74 70 72 6f | 67 3a 30 0a 0a 63 72 65 |firstpro|g:0..cre|
|00003f30| 74 69 6e 20 61 20 61 0a | 63 72 65 74 69 6e 20 61 |tin a a.|cretin a|
|00003f40| 20 62 0a 63 72 65 74 69 | 6e 20 62 20 61 0a 63 6f | b.creti|n b a.co|
|00003f50| 6c 6c 65 67 65 20 6a 69 | 6d 20 62 6f 62 0a 63 72 |llege ji|m bob.cr|
|00003f60| 65 74 69 6e 20 62 20 62 | 0a 62 63 68 0a 0a 23 20 |etin b b|.bch..# |
|00003f70| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 6c 61 6e 67 |programm|ing lang|
|00003f80| 75 61 67 65 73 0a 70 72 | 6f 66 3a 64 6d 72 0a 70 |uages.pr|of:dmr.p|
|00003f90| 61 73 73 77 64 3a 30 0a | 61 6c 69 61 73 3a 63 73 |asswd:0.|alias:cs|
|00003fa0| 63 33 33 34 0a 64 69 73 | 6b 3a 2f 75 73 72 32 0a |c334.dis|k:/usr2.|
|00003fb0| 67 72 6f 75 70 3a 31 37 | 39 0a 66 69 72 73 74 70 |group:17|9.firstp|
|00003fc0| 72 6f 67 3a 30 0a 0a 63 | 72 65 74 69 6e 20 61 20 |rog:0..c|retin a |
|00003fd0| 61 0a 66 72 6e 0a 63 72 | 65 74 69 6e 20 61 20 62 |a.frn.cr|etin a b|
|00003fe0| 0a 63 6f 6c 6c 65 67 65 | 20 6a 6f 65 20 62 6f 62 |.college| joe bob|
|00003ff0| 0a 63 72 65 74 69 6e 61 | 20 62 20 61 0a 63 72 65 |.cretina| b a.cre|
|00004000| 74 69 6e 61 6c 20 62 20 | 61 0a 63 72 65 74 69 6e |tinal b |a.cretin|
|00004010| 61 6c 6c 79 20 74 65 72 | 6d 69 6e 61 6c 20 68 61 |ally ter|minal ha|
|00004020| 7a 65 6c 74 69 6e 65 0a | 63 72 65 74 69 6e 20 62 |zeltine.|cretin b|
|00004030| 20 62 0a 3a 75 73 72 0a | 70 61 73 73 77 6f 72 64 | b.:usr.|password|
|00004040| 3a 62 65 67 69 6e 6e 65 | 72 0a 23 20 66 6f 72 63 |:beginne|r.# forc|
|00004050| 65 20 74 68 65 6d 20 69 | 6e 74 6f 20 74 68 65 20 |e them i|nto the |
|00004060| 6d 65 6e 75 2d 73 68 65 | 6c 6c 20 61 73 20 74 68 |menu-she|ll as th|
|00004070| 65 20 6c 61 73 74 20 6c | 69 6e 65 0a 23 20 6f 66 |e last l|ine.# of|
|00004080| 20 74 68 65 69 72 20 2e | 70 72 6f 66 69 6c 65 0a | their .|profile.|
|00004090| 66 69 72 73 74 70 72 6f | 67 3a 2f 75 73 72 2f 75 |firstpro|g:/usr/u|
|000040a0| 6e 63 77 2f 6d 73 68 0a | 0a 6e 65 6c 73 6f 6e 20 |ncw/msh.|.nelson |
|000040b0| 62 72 61 69 6e 20 64 65 | 61 64 0a 6d 72 0a 6d 6d |brain de|ad.mr.mm|
|000040c0| 72 0a 61 6c 2d 61 6e 6f | 6e 20 6d 75 68 61 6d 6d |r.al-ano|n muhamm|
|000040d0| 61 64 20 6d 75 73 74 61 | 66 61 0a 73 68 65 6c 6c |ad musta|fa.shell|
|000040e0| 3a 2f 62 69 6e 2f 63 73 | 68 0a 70 6f 64 67 6f 72 |:/bin/cs|h.podgor|
|000040f0| 6e 6f 77 69 74 7a 20 61 | 20 61 0a 70 6f 64 67 6f |nowitz a| a.podgo|
|00004100| 72 6e 6f 77 69 74 7a 20 | 61 20 62 0a 23 6e 65 78 |rnowitz |a b.#nex|
|00004110| 74 20 70 65 72 73 6f 6e | 20 73 68 6f 75 6c 64 20 |t person| should |
|00004120| 62 65 20 6f 6e 6c 79 20 | 6f 6e 65 20 77 68 6f 20 |be only |one who |
|00004130| 68 61 73 20 70 61 73 73 | 77 6f 72 64 20 73 61 6d |has pass|word sam|
|00004140| 65 20 61 73 20 6c 6f 67 | 69 6e 0a 70 61 73 73 77 |e as log|in.passw|
|00004150| 64 3a 31 0a 70 6f 64 67 | 6f 72 6e 6f 77 69 74 7a |d:1.podg|ornowitz|
|00004160| 20 62 20 61 0a 70 61 73 | 73 77 64 3a 30 0a 0a 23 | b a.pas|swd:0..#|
|00004170| 20 69 6e 74 72 6f 20 63 | 6f 6d 70 20 73 63 69 20 | intro c|omp sci |
|00004180| 49 49 20 73 65 63 74 69 | 6f 6e 20 31 0a 70 72 6f |II secti|on 1.pro|
|00004190| 66 3a 6b 6e 75 74 68 0a | 64 69 73 6b 3a 2f 75 73 |f:knuth.|disk:/us|
|000041a0| 72 31 0a 23 69 20 74 68 | 69 6e 6b 20 74 68 69 73 |r1.#i th|ink this|
|000041b0| 20 69 73 20 74 68 65 20 | 75 6e 69 74 20 6f 66 20 | is the |unit of |
|000041c0| 61 6c 62 61 6e 69 61 6e | 20 63 75 72 72 65 6e 63 |albanian| currenc|
|000041d0| 79 20 3f 0a 70 61 73 73 | 77 64 3a 7a 6c 6f 74 6e |y ?.pass|wd:zlotn|
|000041e0| 79 0a 67 72 6f 75 70 3a | 31 37 37 0a 66 69 72 73 |y.group:|177.firs|
|000041f0| 74 70 72 6f 67 3a 30 0a | 61 6c 69 61 73 3a 63 73 |tprog:0.|alias:cs|
|00004200| 61 75 74 6f 61 64 64 2f | 61 75 73 72 00 00 00 00 |autoadd/|ausr....|
|00004210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004280| 20 20 20 36 36 32 34 20 | 20 34 34 30 34 30 35 34 | 6624 | 4404054|
|00004290| 30 33 35 20 20 20 36 34 | 32 35 00 20 00 00 00 00 |035 64|25. ....|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 50 23 49 27 6d 20 6e 6f | 74 20 73 75 72 65 20 68 |P#I'm no|t sure h|
|00004410| 6f 77 20 74 6f 20 73 68 | 61 72 20 73 68 65 6c 6c |ow to sh|ar shell|
|00004420| 20 73 63 72 69 70 74 73 | 2c 20 73 6f 20 49 20 6a | scripts|, so I j|
|00004430| 75 73 74 20 61 72 62 69 | 74 72 61 72 69 6c 79 0a |ust arbi|trarily.|
|00004440| 50 23 70 75 74 20 61 20 | 63 61 70 69 74 61 6c 20 |P#put a |capital |
|00004450| 6c 65 74 74 65 72 20 69 | 6e 20 63 6f 6c 75 6d 6e |letter i|n column|
|00004460| 20 31 2e 20 20 73 65 64 | 20 73 68 6f 75 6c 64 20 | 1. sed| should |
|00004470| 73 6e 61 72 66 20 69 74 | 20 66 69 6e 65 2e 0a 50 |snarf it| fine..P|
|00004480| 23 21 2f 62 69 6e 2f 73 | 68 0a 50 23 61 64 64 75 |#!/bin/s|h.P#addu|
|00004490| 73 65 72 20 73 68 65 6c | 6c 20 73 63 72 69 70 74 |ser shel|l script|
|000044a0| 20 2e 2e 2e 20 62 79 70 | 61 73 73 65 73 20 6d 6f | ... byp|asses mo|
|000044b0| 73 74 20 6f 66 20 74 68 | 65 0a 50 23 20 61 67 6f |st of th|e.P# ago|
|000044c0| 6e 79 20 74 68 65 20 73 | 79 73 61 64 6d 20 28 53 |ny the s|ysadm (S|
|000044d0| 79 73 56 72 32 29 20 72 | 6f 75 74 65 20 6d 61 6b |ysVr2) r|oute mak|
|000044e0| 65 73 20 79 6f 75 20 67 | 6f 20 74 68 72 6f 75 67 |es you g|o throug|
|000044f0| 68 0a 50 23 6a 68 6e 20 | 30 36 6a 61 6e 38 37 0a |h.P#jhn |06jan87.|
|00004500| 50 63 61 73 65 20 60 75 | 6e 61 6d 65 60 20 69 6e |Pcase `u|name` in|
|00004510| 0a 50 09 33 62 32 62 29 | 0a 50 09 09 65 63 68 6f |.P.3b2b)|.P..echo|
|00004520| 20 22 70 75 74 74 65 6d | 20 77 68 65 72 65 3f 20 | "puttem| where? |
|00004530| 32 2c 33 2c 6f 72 20 34 | 20 5b 64 65 66 61 75 6c |2,3,or 4| [defaul|
|00004540| 74 20 69 73 20 2f 75 73 | 72 5d 20 5c 63 22 0a 50 |t is /us|r] \c".P|
|00004550| 09 09 72 65 61 64 20 62 | 6c 6f 6e 6b 0a 50 09 09 |..read b|lonk.P..|
|00004560| 63 61 73 65 20 24 62 6c | 6f 6e 6b 20 69 6e 0a 50 |case $bl|onk in.P|
|00004570| 09 09 09 32 29 20 73 63 | 72 6f 64 3d 32 3b 3b 0a |...2) sc|rod=2;;.|
|00004580| 50 09 09 09 33 29 20 73 | 63 72 6f 64 3d 33 3b 3b |P...3) s|crod=3;;|
|00004590| 0a 50 09 09 09 34 29 20 | 73 63 72 6f 64 3d 34 3b |.P...4) |scrod=4;|
|000045a0| 3b 0a 50 09 09 09 22 22 | 29 20 73 63 72 6f 64 3d |;.P...""|) scrod=|
|000045b0| 22 22 3b 3b 0a 50 09 09 | 09 2a 29 20 65 63 68 6f |"";;.P..|.*) echo|
|000045c0| 20 22 76 61 6c 69 64 20 | 72 65 73 70 6f 6e 73 65 | "valid |response|
|000045d0| 73 20 61 72 65 20 3c 63 | 72 3e 2c 20 32 2c 20 33 |s are <c|r>, 2, 3|
|000045e0| 2c 20 6f 72 20 34 2e 20 | 20 42 79 65 2e 2e 2e 22 |, or 4. | Bye..."|
|000045f0| 3b 0a 50 09 09 09 20 20 | 20 65 78 69 74 3b 3b 0a |;.P... | exit;;.|
|00004600| 50 09 09 65 73 61 63 20 | 3b 3b 0a 50 09 33 62 32 |P..esac |;;.P.3b2|
|00004610| 61 29 20 73 63 72 6f 64 | 3d 22 22 3b 3b 0a 50 65 |a) scrod|="";;.Pe|
|00004620| 73 61 63 20 23 65 6e 64 | 20 63 61 73 65 20 75 6e |sac #end| case un|
|00004630| 61 6d 65 0a 50 73 63 72 | 6f 64 3d 75 73 72 24 7b |ame.Pscr|od=usr${|
|00004640| 73 63 72 6f 64 7d 0a 50 | 65 63 68 6f 20 22 70 75 |scrod}.P|echo "pu|
|00004650| 74 74 69 6e 67 20 74 68 | 65 6d 20 69 6e 20 2f 24 |tting th|em in /$|
|00004660| 73 63 72 6f 64 0a 50 09 | 70 6c 65 61 73 65 20 77 |scrod.P.|please w|
|00004670| 61 69 74 20 2e 2e 2e 20 | 6c 6f 6f 6b 69 6e 67 20 |ait ... |looking |
|00004680| 66 6f 72 20 6e 65 78 74 | 20 61 76 61 69 6c 20 75 |for next| avail u|
|00004690| 73 65 72 6e 6f 22 20 0a | 50 0a 50 67 72 6f 75 70 |serno" .|P.Pgroup|
|000046a0| 3d 31 30 30 0a 50 6e 65 | 78 74 75 73 65 72 3d 60 |=100.Pne|xtuser=`|
|000046b0| 2f 75 73 72 2f 62 69 6e | 2f 61 77 6b 20 2d 46 3a |/usr/bin|/awk -F:|
|000046c0| 20 27 24 33 2b 30 3e 6e | 75 6d 2b 30 20 7b 6e 75 | '$3+0>n|um+0 {nu|
|000046d0| 6d 3d 24 33 2b 30 7d 0a | 50 45 4e 44 20 7b 70 72 |m=$3+0}.|PEND {pr|
|000046e0| 69 6e 74 20 31 2b 6e 75 | 6d 7d 27 20 2f 65 74 63 |int 1+nu|m}' /etc|
|000046f0| 2f 70 61 73 73 77 64 20 | 60 0a 50 23 6e 65 78 74 |/passwd |`.P#next|
|00004700| 75 73 65 72 3d 60 65 78 | 70 72 20 24 6e 65 78 74 |user=`ex|pr $next|
|00004710| 75 73 65 72 20 2b 20 31 | 60 0a 50 65 63 68 6f 20 |user + 1|`.Pecho |
|00004720| 6e 65 78 74 20 61 76 61 | 69 6c 61 62 6c 65 20 75 |next ava|ilable u|
|00004730| 73 65 72 6e 6f 20 69 73 | 20 24 6e 65 78 74 75 73 |serno is| $nextus|
|00004740| 65 72 0a 50 0a 50 77 68 | 69 6c 65 20 3a 20 3b 20 |er.P.Pwh|ile : ; |
|00004750| 64 6f 0a 50 65 63 68 6f | 20 22 65 6e 74 65 72 20 |do.Pecho| "enter |
|00004760| 66 75 6c 6c 6e 61 6d 65 | 20 5c 63 22 0a 50 72 65 |fullname| \c".Pre|
|00004770| 61 64 20 66 75 6c 6c 6e | 61 6d 65 0a 50 63 61 73 |ad fulln|ame.Pcas|
|00004780| 65 20 24 66 75 6c 6c 6e | 61 6d 65 20 69 6e 0a 50 |e $fulln|ame in.P|
|00004790| 09 22 22 29 20 65 63 68 | 6f 20 22 6e 75 6c 6c 20 |."") ech|o "null |
|000047a0| 75 73 65 72 20 66 75 6c | 6c 6e 61 6d 65 20 6e 6f |user ful|lname no|
|000047b0| 74 20 61 6c 6c 6f 77 65 | 64 22 3b 20 65 78 69 74 |t allowe|d"; exit|
|000047c0| 20 31 3b 3b 0a 50 65 73 | 61 63 0a 50 0a 50 65 63 | 1;;.Pes|ac.P.Pec|
|000047d0| 68 6f 20 22 65 6e 74 65 | 72 20 6c 6f 67 69 6e 6e |ho "ente|r loginn|
|000047e0| 61 6d 65 20 5c 63 22 0a | 50 72 65 61 64 20 6c 6f |ame \c".|Pread lo|
|000047f0| 67 69 6e 0a 50 63 61 73 | 65 20 24 6c 6f 67 69 6e |gin.Pcas|e $login|
|00004800| 20 69 6e 0a 50 09 22 22 | 29 20 65 63 68 6f 20 22 | in.P.""|) echo "|
|00004810| 6e 75 6c 6c 20 75 73 65 | 72 20 6e 61 6d 65 20 6e |null use|r name n|
|00004820| 6f 74 20 61 6c 6c 6f 77 | 65 64 22 3b 20 65 78 69 |ot allow|ed"; exi|
|00004830| 74 20 31 3b 3b 0a 50 65 | 73 61 63 0a 50 65 63 68 |t 1;;.Pe|sac.Pech|
|00004840| 6f 20 22 65 6e 74 65 72 | 20 75 73 65 72 6e 75 6d |o "enter| usernum|
|00004850| 62 65 72 20 5b 24 6e 65 | 78 74 75 73 65 72 5d 20 |ber [$ne|xtuser] |
|00004860| 5c 63 22 0a 50 72 65 61 | 64 20 75 73 65 72 0a 50 |\c".Prea|d user.P|
|00004870| 63 61 73 65 20 24 75 73 | 65 72 20 69 6e 0a 50 09 |case $us|er in.P.|
|00004880| 22 22 29 20 75 73 65 72 | 3d 24 6e 65 78 74 75 73 |"") user|=$nextus|
|00004890| 65 72 3b 65 63 68 6f 20 | 22 75 73 69 6e 67 20 24 |er;echo |"using $|
|000048a0| 75 73 65 72 22 3b 3b 0a | 50 65 73 61 63 0a 50 6e |user";;.|Pesac.Pn|
|000048b0| 65 78 74 75 73 65 72 3d | 60 65 78 70 72 20 24 75 |extuser=|`expr $u|
|000048c0| 73 65 72 20 2b 20 31 60 | 0a 50 6c 6f 6f 70 3d 74 |ser + 1`|.Ploop=t|
|000048d0| 72 75 65 0a 50 77 68 69 | 6c 65 20 3a 0a 50 64 6f |rue.Pwhi|le :.Pdo|
|000048e0| 0a 50 09 65 63 68 6f 20 | 22 65 6e 74 65 72 20 67 |.P.echo |"enter g|
|000048f0| 72 6f 75 70 20 28 3f 20 | 66 6f 72 20 63 61 74 20 |roup (? |for cat |
|00004900| 2f 65 74 63 2f 67 72 6f | 75 70 29 20 5b 24 67 72 |/etc/gro|up) [$gr|
|00004910| 6f 75 70 5d 20 5c 63 22 | 0a 50 09 72 65 61 64 20 |oup] \c"|.P.read |
|00004920| 78 72 6f 75 70 0a 50 09 | 63 61 73 65 20 24 78 72 |xroup.P.|case $xr|
|00004930| 6f 75 70 20 69 6e 0a 50 | 09 09 5c 3f 29 20 63 61 |oup in.P|..\?) ca|
|00004940| 74 20 2f 65 74 63 2f 67 | 72 6f 75 70 3b 3b 0a 50 |t /etc/g|roup;;.P|
|00004950| 09 09 22 22 29 20 62 72 | 65 61 6b 3b 3b 0a 50 09 |.."") br|eak;;.P.|
|00004960| 09 2a 29 20 67 72 6f 75 | 70 3d 24 78 72 6f 75 70 |.*) grou|p=$xroup|
|00004970| 3b 62 72 65 61 6b 3b 3b | 0a 50 09 65 73 61 63 0a |;break;;|.P.esac.|
|00004980| 50 64 6f 6e 65 0a 50 63 | 61 73 65 20 24 67 72 6f |Pdone.Pc|ase $gro|
|00004990| 75 70 20 69 6e 0a 50 09 | 22 22 29 20 65 63 68 6f |up in.P.|"") echo|
|000049a0| 20 6e 75 6c 6c 20 67 72 | 6f 75 70 20 6e 6f 74 20 | null gr|oup not |
|000049b0| 61 6c 6c 6f 77 65 64 20 | 2e 2e 2e 20 62 79 65 3b |allowed |... bye;|
|000049c0| 20 65 78 69 74 20 31 3b | 3b 0a 50 65 73 61 63 0a | exit 1;|;.Pesac.|
|000049d0| 50 0a 50 2f 75 73 72 2f | 62 69 6e 2f 61 77 6b 20 |P.P/usr/|bin/awk |
|000049e0| 2d 46 3a 20 27 24 31 3d | 3d 27 5c 22 24 6c 6f 67 |-F: '$1=|='\"$log|
|000049f0| 69 6e 5c 22 27 20 7c 7c | 20 24 33 3d 3d 27 5c 22 |in\"' ||| $3=='\"|
|00004a00| 24 75 73 65 72 5c 22 27 | 20 7b 70 72 69 6e 74 7d |$user\"'| {print}|
|00004a10| 27 20 2f 65 74 63 2f 70 | 61 73 73 77 64 5c 0a 50 |' /etc/p|asswd\.P|
|00004a20| 09 3e 2f 74 6d 70 2f 61 | 75 24 24 0a 50 61 6c 72 |.>/tmp/a|u$$.Palr|
|00004a30| 65 61 64 79 3d 22 22 0a | 50 69 66 20 74 65 73 74 |eady="".|Pif test|
|00004a40| 20 2d 73 20 2f 74 6d 70 | 2f 61 75 24 24 0a 50 74 | -s /tmp|/au$$.Pt|
|00004a50| 68 65 6e 0a 50 09 2f 62 | 69 6e 2f 63 61 74 20 2f |hen.P./b|in/cat /|
|00004a60| 74 6d 70 2f 61 75 24 24 | 0a 50 09 65 63 68 6f 20 |tmp/au$$|.P.echo |
|00004a70| 22 6c 6f 67 69 6e 3d 24 | 6c 6f 67 69 6e 20 6f 72 |"login=$|login or|
|00004a80| 20 75 73 65 72 3d 24 75 | 73 65 72 20 69 6e 20 75 | user=$u|ser in u|
|00004a90| 73 65 20 2e 2e 2e 22 0a | 50 09 72 6d 20 2d 66 20 |se ...".|P.rm -f |
|00004aa0| 2f 74 6d 70 2f 61 75 24 | 24 0a 50 09 61 6c 72 65 |/tmp/au$|$.P.alre|
|00004ab0| 61 64 79 3d 31 0a 50 66 | 69 0a 50 69 66 20 74 65 |ady=1.Pf|i.Pif te|
|00004ac0| 73 74 20 2d 64 20 2f 24 | 7b 73 63 72 6f 64 7d 2f |st -d /$|{scrod}/|
|00004ad0| 24 6c 6f 67 69 6e 0a 50 | 74 68 65 6e 0a 50 09 65 |$login.P|then.P.e|
|00004ae0| 63 68 6f 20 22 2f 24 7b | 73 63 72 6f 64 7d 2f 24 |cho "/${|scrod}/$|
|00004af0| 6c 6f 67 69 6e 20 61 6c | 72 65 61 64 79 20 65 78 |login al|ready ex|
|00004b00| 69 73 74 73 20 2e 2e 2e | 20 21 22 0a 50 09 72 6d |ists ...| !".P.rm|
|00004b10| 20 2d 66 20 2f 74 6d 70 | 2f 61 75 24 24 0a 50 09 | -f /tmp|/au$$.P.|
|00004b20| 61 6c 72 65 61 64 79 3d | 31 0a 50 66 69 0a 50 0a |already=|1.Pfi.P.|
|00004b30| 50 0a 50 63 61 73 65 20 | 24 61 6c 72 65 61 64 79 |P.Pcase |$already|
|00004b40| 20 69 6e 0a 50 09 22 22 | 29 0a 50 09 2f 62 69 6e | in.P.""|).P./bin|
|00004b50| 2f 6d 6b 64 69 72 20 2f | 24 7b 73 63 72 6f 64 7d |/mkdir /|${scrod}|
|00004b60| 2f 24 6c 6f 67 69 6e 0a | 50 09 65 63 68 6f 20 22 |/$login.|P.echo "|
|00004b70| 24 6c 6f 67 69 6e 3a 3a | 24 75 73 65 72 3a 24 67 |$login::|$user:$g|
|00004b80| 72 6f 75 70 3a 24 66 75 | 6c 6c 6e 61 6d 65 3a 2f |roup:$fu|llname:/|
|00004b90| 24 7b 73 63 72 6f 64 7d | 2f 24 6c 6f 67 69 6e 3a |${scrod}|/$login:|
|00004ba0| 22 0a 50 09 65 63 68 6f | 20 22 6f 6b 3f 20 5b 79 |".P.echo| "ok? [y|
|00004bb0| 5d 20 5c 63 22 0a 50 09 | 72 65 61 64 20 64 6f 69 |] \c".P.|read doi|
|00004bc0| 74 0a 50 09 63 61 73 65 | 20 24 64 6f 69 74 20 69 |t.P.case| $doit i|
|00004bd0| 6e 0a 50 09 09 6e 29 20 | 2f 62 69 6e 2f 72 6d 64 |n.P..n) |/bin/rmd|
|00004be0| 69 72 20 2f 24 7b 73 63 | 72 6f 64 7d 2f 24 6c 6f |ir /${sc|rod}/$lo|
|00004bf0| 67 69 6e 3b 20 65 78 69 | 74 20 31 3b 3b 0a 50 09 |gin; exi|t 1;;.P.|
|00004c00| 65 73 61 63 0a 50 09 2f | 62 69 6e 2f 63 68 6d 6f |esac.P./|bin/chmo|
|00004c10| 64 20 75 2b 77 20 2f 65 | 74 63 2f 70 61 73 73 77 |d u+w /e|tc/passw|
|00004c20| 64 0a 50 09 65 63 68 6f | 20 22 24 6c 6f 67 69 6e |d.P.echo| "$login|
|00004c30| 3a 3a 24 75 73 65 72 3a | 24 67 72 6f 75 70 3a 24 |::$user:|$group:$|
|00004c40| 66 75 6c 6c 6e 61 6d 65 | 3a 2f 24 7b 73 63 72 6f |fullname|:/${scro|
|00004c50| 64 7d 2f 24 6c 6f 67 69 | 6e 3a 22 3e 3e 2f 65 74 |d}/$logi|n:">>/et|
|00004c60| 63 2f 70 61 73 73 77 64 | 0a 50 09 73 79 6e 63 0a |c/passwd|.P.sync.|
|00004c70| 50 09 2f 62 69 6e 2f 63 | 68 6d 6f 64 20 75 2b 77 |P./bin/c|hmod u+w|
|00004c80| 20 2f 65 74 63 2f 70 61 | 73 73 77 64 0a 50 09 74 | /etc/pa|sswd.P.t|
|00004c90| 61 69 6c 20 2d 32 20 2f | 65 74 63 2f 70 61 73 73 |ail -2 /|etc/pass|
|00004ca0| 77 64 0a 50 09 2f 62 69 | 6e 2f 63 68 6f 77 6e 20 |wd.P./bi|n/chown |
|00004cb0| 24 75 73 65 72 20 2f 24 | 7b 73 63 72 6f 64 7d 2f |$user /$|{scrod}/|
|00004cc0| 24 6c 6f 67 69 6e 0a 50 | 09 2f 62 69 6e 2f 63 68 |$login.P|./bin/ch|
|00004cd0| 67 72 70 20 24 67 72 6f | 75 70 20 2f 24 7b 73 63 |grp $gro|up /${sc|
|00004ce0| 72 6f 64 7d 2f 24 6c 6f | 67 69 6e 0a 50 09 2f 62 |rod}/$lo|gin.P./b|
|00004cf0| 69 6e 2f 63 68 6d 6f 64 | 20 37 35 35 20 2f 24 7b |in/chmod| 755 /${|
|00004d00| 73 63 72 6f 64 7d 2f 24 | 6c 6f 67 69 6e 0a 50 09 |scrod}/$|login.P.|
|00004d10| 2f 62 69 6e 2f 63 70 20 | 2f 65 74 63 2f 73 74 64 |/bin/cp |/etc/std|
|00004d20| 70 72 6f 66 69 6c 65 20 | 2f 24 7b 73 63 72 6f 64 |profile |/${scrod|
|00004d30| 7d 2f 24 6c 6f 67 69 6e | 2f 2e 70 72 6f 66 69 6c |}/$login|/.profil|
|00004d40| 65 0a 50 09 2f 62 69 6e | 2f 63 68 6f 77 6e 20 24 |e.P./bin|/chown $|
|00004d50| 75 73 65 72 20 2f 24 7b | 73 63 72 6f 64 7d 2f 24 |user /${|scrod}/$|
|00004d60| 6c 6f 67 69 6e 2f 2e 70 | 72 6f 66 69 6c 65 0a 50 |login/.p|rofile.P|
|00004d70| 09 2f 62 69 6e 2f 63 68 | 67 72 70 20 73 79 73 20 |./bin/ch|grp sys |
|00004d80| 2f 24 7b 73 63 72 6f 64 | 7d 2f 24 6c 6f 67 69 6e |/${scrod|}/$login|
|00004d90| 2f 2e 70 72 6f 66 69 6c | 65 0a 50 09 2f 62 69 6e |/.profil|e.P./bin|
|00004da0| 2f 63 68 6d 6f 64 20 67 | 75 2b 77 20 2f 24 7b 73 |/chmod g|u+w /${s|
|00004db0| 63 72 6f 64 7d 2f 24 6c | 6f 67 69 6e 2f 2e 70 72 |crod}/$l|ogin/.pr|
|00004dc0| 6f 66 69 6c 65 0a 50 09 | 63 61 73 65 20 24 75 6d |ofile.P.|case $um|
|00004dd0| 73 6b 20 69 6e 0a 50 09 | 09 22 22 29 20 65 63 68 |sk in.P.|."") ech|
|00004de0| 6f 20 22 65 6e 74 65 72 | 20 75 6d 61 73 6b 20 5b |o "enter| umask [|
|00004df0| 32 32 5d 3a 20 5c 63 22 | 0a 50 09 09 72 65 61 64 |22]: \c"|.P..read|
|00004e00| 20 75 6d 73 6b 0a 50 09 | 09 09 09 63 61 73 65 20 | umsk.P.|...case |
|00004e10| 24 75 6d 73 6b 20 69 6e | 0a 50 09 09 09 09 22 22 |$umsk in|.P....""|
|00004e20| 29 20 75 6d 73 6b 3d 32 | 32 3b 3b 0a 50 09 09 09 |) umsk=2|2;;.P...|
|00004e30| 09 65 73 61 63 0a 50 09 | 09 3b 3b 0a 50 09 65 73 |.esac.P.|.;;.P.es|
|00004e40| 61 63 0a 50 09 65 63 68 | 6f 20 22 75 6d 61 73 6b |ac.P.ech|o "umask|
|00004e50| 20 24 75 6d 73 6b 22 3e | 3e 2f 24 7b 73 63 72 6f | $umsk">|>/${scro|
|00004e60| 64 7d 2f 24 6c 6f 67 69 | 6e 2f 2e 70 72 6f 66 69 |d}/$logi|n/.profi|
|00004e70| 6c 65 0a 50 09 65 63 68 | 6f 20 22 6d 65 6e 75 2d |le.P.ech|o "menu-|
|00004e80| 73 68 65 6c 6c 20 69 6e | 69 74 69 61 6c 6c 79 3f |shell in|itially?|
|00004e90| 20 5b 6e 5d 3a 20 5c 63 | 22 0a 50 09 72 65 61 64 | [n]: \c|".P.read|
|00004ea0| 20 79 65 73 6e 6f 0a 50 | 09 63 61 73 65 20 24 79 | yesno.P|.case $y|
|00004eb0| 65 73 6e 6f 20 69 6e 0a | 50 09 09 79 29 20 65 63 |esno in.|P..y) ec|
|00004ec0| 68 6f 20 22 2f 75 73 72 | 2f 75 6e 63 77 2f 6d 73 |ho "/usr|/uncw/ms|
|00004ed0| 68 22 20 3e 3e 20 2f 24 | 7b 73 63 72 6f 64 7d 2f |h" >> /$|{scrod}/|
|00004ee0| 24 6c 6f 67 69 6e 2f 2e | 70 72 6f 66 69 6c 65 3b |$login/.|profile;|
|00004ef0| 3b 0a 50 09 09 2a 29 20 | 65 63 68 6f 20 22 6d 65 |;.P..*) |echo "me|
|00004f00| 6e 75 2d 73 68 65 6c 6c | 20 6e 6f 74 20 73 65 6c |nu-shell| not sel|
|00004f10| 65 63 74 65 64 22 3b 3b | 0a 50 09 65 73 61 63 0a |ected";;|.P.esac.|
|00004f20| 50 09 65 63 68 6f 20 22 | 67 69 76 65 20 68 69 6d |P.echo "|give him|
|00004f30| 20 61 20 70 61 73 73 77 | 6f 72 64 3f 20 5b 79 5d | a passw|ord? [y]|
|00004f40| 3a 20 5c 63 22 0a 50 09 | 72 65 61 64 20 79 65 73 |: \c".P.|read yes|
|00004f50| 6e 6f 0a 50 09 63 61 73 | 65 20 24 79 65 73 6e 6f |no.P.cas|e $yesno|
|00004f60| 20 69 6e 0a 50 09 09 79 | 7c 22 22 29 20 2f 62 69 | in.P..y||"") /bi|
|00004f70| 6e 2f 70 61 73 73 77 64 | 20 24 6c 6f 67 69 6e 3b |n/passwd| $login;|
|00004f80| 3b 0a 50 09 09 2a 29 20 | 65 63 68 6f 20 22 6e 6f |;.P..*) |echo "no|
|00004f90| 20 70 61 73 73 77 6f 72 | 64 20 73 65 74 20 66 6f | passwor|d set fo|
|00004fa0| 72 20 24 6c 6f 67 69 6e | 22 3b 3b 0a 50 09 65 73 |r $login|";;.P.es|
|00004fb0| 61 63 0a 50 09 72 6d 20 | 2d 66 20 2f 74 6d 70 2f |ac.P.rm |-f /tmp/|
|00004fc0| 61 75 24 24 0a 50 09 65 | 63 68 6f 20 22 70 75 74 |au$$.P.e|cho "put|
|00004fd0| 20 70 61 73 73 77 6f 72 | 64 20 61 67 69 6e 67 20 | passwor|d aging |
|00004fe0| 69 6e 20 65 66 66 65 63 | 74 3f 20 5b 79 5d 3a 20 |in effec|t? [y]: |
|00004ff0| 5c 63 22 0a 50 09 72 65 | 61 64 20 79 65 73 6e 6f |\c".P.re|ad yesno|
|00005000| 0a 50 09 63 61 73 65 20 | 24 79 65 73 6e 6f 20 69 |.P.case |$yesno i|
|00005010| 6e 0a 50 09 09 79 7c 22 | 22 29 20 2f 65 74 63 2f |n.P..y|"|") /etc/|
|00005020| 61 67 65 70 77 20 24 6c | 6f 67 69 6e 3b 3b 0a 50 |agepw $l|ogin;;.P|
|00005030| 09 09 6e 29 20 65 63 68 | 6f 20 70 61 73 73 77 6f |..n) ech|o passwo|
|00005040| 72 64 20 61 67 69 6e 67 | 20 6e 6f 74 20 73 65 74 |rd aging| not set|
|00005050| 20 66 6f 72 20 24 6c 6f | 67 69 6e 3b 3b 0a 50 09 | for $lo|gin;;.P.|
|00005060| 65 73 61 63 0a 50 3b 3b | 0a 50 65 73 61 63 09 23 |esac.P;;|.Pesac.#|
|00005070| 65 6e 64 20 6f 66 20 63 | 61 73 65 20 24 61 6c 72 |end of c|ase $alr|
|00005080| 65 61 64 79 3d 3d 22 22 | 0a 50 63 61 73 65 20 24 |eady==""|.Pcase $|
|00005090| 67 6f 64 20 69 6e 0a 50 | 09 22 22 29 20 65 63 68 |god in.P|."") ech|
|000050a0| 6f 20 22 65 6e 74 65 72 | 20 67 6f 64 6e 61 6d 65 |o "enter| godname|
|000050b0| 20 5b 5d 3a 20 5c 63 22 | 0a 50 09 72 65 61 64 20 | []: \c"|.P.read |
|000050c0| 67 6f 64 3b 3b 0a 50 09 | 2a 29 20 3b 3b 0a 50 65 |god;;.P.|*) ;;.Pe|
|000050d0| 73 61 63 0a 50 63 61 73 | 65 20 24 67 6f 64 20 69 |sac.Pcas|e $god i|
|000050e0| 6e 0a 50 09 22 22 29 20 | 3b 3b 0a 50 09 2a 29 20 |n.P."") |;;.P.*) |
|000050f0| 65 63 68 6f 20 22 24 67 | 6f 64 3a 24 6c 6f 67 69 |echo "$g|od:$logi|
|00005100| 6e 22 3e 3e 2f 65 74 63 | 2f 61 63 63 65 73 73 74 |n">>/etc|/accesst|
|00005110| 61 62 0a 50 09 3b 3b 0a | 50 65 73 61 63 0a 50 65 |ab.P.;;.|Pesac.Pe|
|00005120| 63 68 6f 20 27 2a 2a 2a | 2a 2a 20 64 6f 6e 65 20 |cho '***|** done |
|00005130| 2a 2a 2a 2a 2a 0a 50 0a | 50 09 77 61 6e 74 20 74 |*****.P.|P.want t|
|00005140| 6f 20 61 64 64 20 61 6e | 6f 74 68 65 72 20 75 73 |o add an|other us|
|00005150| 65 72 3f 20 5b 79 5d 20 | 5c 63 27 0a 50 72 65 61 |er? [y] |\c'.Prea|
|00005160| 64 20 64 6f 6d 6f 72 65 | 0a 50 63 61 73 65 20 24 |d domore|.Pcase $|
|00005170| 64 6f 6d 6f 72 65 20 69 | 6e 0a 50 09 6e 29 20 65 |domore i|n.P.n) e|
|00005180| 78 69 74 3b 3b 0a 50 65 | 73 61 63 0a 50 64 6f 6e |xit;;.Pe|sac.Pdon|
|00005190| 65 0a 50 0a 20 64 65 66 | 69 6e 65 20 4d 41 49 4e |e.P. def|ine MAIN|
|000051a0| 2c 0a 62 75 74 20 6e 6f | 62 6f 64 79 20 65 6c 73 |,.but no|body els|
|000051b0| 65 20 77 69 6c 6c 2a 2f | 0a 0a 2f 2a 20 73 6f 6d |e will*/|../* som|
|000051c0| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|000051d0| 6e 67 20 6d 69 67 68 74 | 20 6e 65 65 64 20 74 6f |ng might| need to|
|000051e0| 20 62 65 20 6c 65 6e 67 | 74 68 65 6e 65 64 20 69 | be leng|thened i|
|000051f0| 66 20 73 79 73 6f 70 0a | 61 6c 6c 6f 77 73 20 72 |f sysop.|allows r|
|00005200| 61 75 74 6f 61 64 64 2f | 6b 75 73 72 00 00 00 00 |autoadd/|kusr....|
|00005210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005280| 20 20 20 31 36 30 31 20 | 20 34 34 30 34 30 35 34 | 1601 | 4404054|
|00005290| 30 33 36 20 20 20 36 34 | 32 36 00 20 00 00 00 00 |036 64|26. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 50 63 61 73 65 20 24 31 | 20 69 6e 0a 50 09 22 22 |Pcase $1| in.P.""|
|00005410| 29 20 65 63 68 6f 20 22 | 75 73 61 67 65 3a 20 2f |) echo "|usage: /|
|00005420| 65 74 63 2f 6b 75 73 72 | 20 75 73 65 72 6e 61 6d |etc/kusr| usernam|
|00005430| 65 22 3b 20 65 78 69 74 | 20 31 3b 3b 0a 50 65 73 |e"; exit| 1;;.Pes|
|00005440| 61 63 0a 50 78 3d 60 2f | 75 73 72 2f 62 69 6e 2f |ac.Px=`/|usr/bin/|
|00005450| 61 77 6b 20 2d 46 3a 20 | 27 24 31 3d 3d 27 5c 22 |awk -F: |'$1=='\"|
|00005460| 24 31 5c 22 27 20 7b 70 | 72 69 6e 74 20 24 36 7d |$1\"' {p|rint $6}|
|00005470| 27 20 2f 65 74 63 2f 70 | 61 73 73 77 64 20 60 0a |' /etc/p|asswd `.|
|00005480| 50 63 61 73 65 20 24 78 | 20 69 6e 0a 50 2f 7c 2f |Pcase $x| in.P/|/|
|00005490| 65 74 63 7c 2f 62 69 6e | 7c 2f 75 73 72 2f 62 69 |etc|/bin||/usr/bi|
|000054a0| 6e 7c 2f 75 73 72 2f 75 | 6e 63 77 7c 2f 6c 69 62 |n|/usr/u|ncw|/lib|
|000054b0| 7c 2f 75 73 72 2f 6c 69 | 62 7c 2f 75 73 72 2f 73 ||/usr/li|b|/usr/s|
|000054c0| 70 6f 6f 6c 20 29 20 5c | 0a 50 09 65 63 68 6f 20 |pool ) \|.P.echo |
|000054d0| 22 72 6d 20 2d 72 20 24 | 78 20 77 6f 75 6c 64 20 |"rm -r $|x would |
|000054e0| 62 65 20 63 6f 6e 73 69 | 64 65 72 65 64 20 61 6e |be consi|dered an|
|000054f0| 74 69 73 6f 63 69 61 6c | 20 62 65 68 61 76 69 6f |tisocial| behavio|
|00005500| 72 22 3b 65 78 69 74 20 | 31 3b 3b 0a 50 09 22 22 |r";exit |1;;.P.""|
|00005510| 29 20 65 63 68 6f 20 6e | 6f 20 73 75 63 68 20 75 |) echo n|o such u|
|00005520| 73 65 72 2e 2e 2e 62 79 | 65 3b 20 65 78 69 74 20 |ser...by|e; exit |
|00005530| 31 3b 3b 0a 50 09 2f 75 | 73 72 2a 20 29 20 3b 3b |1;;.P./u|sr* ) ;;|
|00005540| 0a 50 09 2a 29 20 65 63 | 68 6f 20 22 77 74 66 3f |.P.*) ec|ho "wtf?|
|00005550| 3f 20 78 3d 24 78 22 3b | 20 65 78 69 74 20 31 3b |? x=$x";| exit 1;|
|00005560| 3b 0a 50 65 73 61 63 0a | 50 0a 50 23 65 63 68 6f |;.Pesac.|P.P#echo|
|00005570| 20 22 61 62 6f 75 74 20 | 74 6f 20 72 6d 20 2d 72 | "about |to rm -r|
|00005580| 20 24 78 20 6f 6b 20 5b | 79 5d 20 5c 63 22 0a 50 | $x ok [|y] \c".P|
|00005590| 23 72 65 61 64 20 61 6e | 73 0a 50 61 6e 73 3d 79 |#read an|s.Pans=y|
|000055a0| 0a 50 63 61 73 65 20 24 | 61 6e 73 20 69 6e 0a 50 |.Pcase $|ans in.P|
|000055b0| 09 22 22 29 20 72 6d 20 | 2d 72 20 24 78 3b 3b 0a |."") rm |-r $x;;.|
|000055c0| 50 09 6e 29 20 65 78 69 | 74 3b 3b 0a 50 09 79 29 |P.n) exi|t;;.P.y)|
|000055d0| 20 72 6d 20 2d 72 20 24 | 78 3b 3b 0a 50 09 2a 29 | rm -r $|x;;.P.*)|
|000055e0| 20 65 63 68 6f 20 22 69 | 6e 76 61 6c 69 64 20 72 | echo "i|nvalid r|
|000055f0| 65 73 70 6f 6e 73 65 20 | 2e 2e 2e 20 24 78 20 6e |esponse |... $x n|
|00005600| 6f 74 20 72 65 6d 6f 76 | 65 64 22 3b 65 78 69 74 |ot remov|ed";exit|
|00005610| 3b 3b 0a 50 65 73 61 63 | 0a 50 23 67 72 65 70 20 |;;.Pesac|.P#grep |
|00005620| 2d 76 20 24 31 20 2f 65 | 74 63 2f 70 61 73 73 77 |-v $1 /e|tc/passw|
|00005630| 64 20 3e 20 2f 74 6d 70 | 2f 6b 75 73 72 24 24 0a |d > /tmp|/kusr$$.|
|00005640| 50 2f 75 73 72 2f 62 69 | 6e 2f 61 77 6b 20 2d 46 |P/usr/bi|n/awk -F|
|00005650| 3a 20 27 24 31 21 3d 27 | 5c 22 24 31 5c 22 27 20 |: '$1!='|\"$1\"' |
|00005660| 7b 70 72 69 6e 74 20 7d | 27 20 2f 65 74 63 2f 70 |{print }|' /etc/p|
|00005670| 61 73 73 77 64 20 3e 2f | 74 6d 70 2f 6b 75 73 72 |asswd >/|tmp/kusr|
|00005680| 24 24 0a 50 23 64 69 66 | 66 20 2f 65 74 63 2f 70 |$$.P#dif|f /etc/p|
|00005690| 61 73 73 77 64 20 2f 74 | 6d 70 2f 6b 75 73 72 24 |asswd /t|mp/kusr$|
|000056a0| 24 0a 50 23 65 63 68 6f | 20 22 6f 6b 3f 20 5b 79 |$.P#echo| "ok? [y|
|000056b0| 5d 20 5c 63 22 0a 50 23 | 72 65 61 64 20 61 6e 73 |] \c".P#|read ans|
|000056c0| 0a 50 61 6e 73 3d 79 0a | 50 63 61 73 65 20 24 61 |.Pans=y.|Pcase $a|
|000056d0| 6e 73 20 69 6e 0a 50 09 | 6e 29 20 65 78 69 74 3b |ns in.P.|n) exit;|
|000056e0| 3b 0a 50 09 22 22 7c 79 | 29 20 0a 50 09 09 2f 62 |;.P.""|y|) .P../b|
|000056f0| 69 6e 2f 72 6d 20 2d 66 | 20 2f 75 73 72 2f 6d 61 |in/rm -f| /usr/ma|
|00005700| 69 6c 2f 24 31 3b 0a 50 | 09 09 63 70 20 2f 74 6d |il/$1;.P|..cp /tm|
|00005710| 70 2f 6b 75 73 72 24 24 | 20 2f 65 74 63 2f 70 61 |p/kusr$$| /etc/pa|
|00005720| 73 73 77 64 20 3b 0a 50 | 09 09 2f 62 69 6e 2f 72 |sswd ;.P|../bin/r|
|00005730| 6d 20 2f 74 6d 70 2f 6b | 75 73 72 24 24 3b 3b 0a |m /tmp/k|usr$$;;.|
|00005740| 50 09 2a 29 20 65 63 68 | 6f 20 22 69 6e 76 61 6c |P.*) ech|o "inval|
|00005750| 69 64 20 72 65 73 70 6f | 6e 73 65 20 69 6e 74 65 |id respo|nse inte|
|00005760| 72 70 72 65 74 65 64 20 | 61 73 20 5c 22 6e 6f 5c |rpreted |as \"no\|
|00005770| 22 20 22 3b 65 78 69 74 | 3b 3b 0a 50 65 73 61 63 |" ";exit|;;.Pesac|
|00005780| 0a 20 24 66 75 6c 6c 6e | 61 6d 65 20 69 6e 0a 50 |. $fulln|ame in.P|
|00005790| 09 22 22 29 20 65 63 68 | 6f 20 22 6e 75 6c 6c 20 |."") ech|o "null |
|000057a0| 75 73 65 72 20 66 75 6c | 6c 6e 61 6d 65 20 6e 6f |user ful|lname no|
|000057b0| 74 20 61 6c 6c 6f 77 65 | 64 22 3b 20 65 78 69 74 |t allowe|d"; exit|
|000057c0| 20 31 3b 3b 0a 50 65 73 | 61 63 0a 50 0a 50 65 63 | 1;;.Pes|ac.P.Pec|
|000057d0| 68 6f 20 22 65 6e 74 65 | 72 20 6c 6f 67 69 6e 6e |ho "ente|r loginn|
|000057e0| 61 6d 65 20 5c 63 22 0a | 50 72 65 61 64 20 6c 6f |ame \c".|Pread lo|
|000057f0| 67 69 6e 0a 50 63 61 73 | 65 20 24 6c 6f 67 69 6e |gin.Pcas|e $login|
|00005800| 61 75 74 6f 61 64 64 2f | 61 6c 72 65 61 64 79 2e |autoadd/|already.|
|00005810| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005880| 20 20 20 20 34 36 30 20 | 20 34 34 30 34 30 35 34 | 460 | 4404054|
|00005890| 30 34 30 20 20 20 37 32 | 36 31 00 20 00 00 00 00 |040 72|61. ....|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 0a 23 69 66 6e 64 65 66 | 20 4e 55 4c 4c 0a 23 69 |.#ifndef| NULL.#i|
|00005a10| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00005a20| 0a 23 65 6e 64 69 66 0a | 61 6c 72 65 61 64 79 28 |.#endif.|already(|
|00005a30| 70 29 0a 63 68 61 72 20 | 2a 70 3b 0a 7b 0a 09 69 |p).char |*p;.{..i|
|00005a40| 6e 74 20 69 3b 0a 09 65 | 78 74 65 72 6e 20 63 68 |nt i;..e|xtern ch|
|00005a50| 61 72 20 2a 75 73 65 72 | 5b 5d 3b 0a 09 69 3d 30 |ar *user|[];..i=0|
|00005a60| 3b 0a 09 2f 2a 70 72 69 | 6e 74 66 28 22 69 6e 20 |;../*pri|ntf("in |
|00005a70| 61 6c 72 65 61 64 79 2c | 20 6c 6f 6f 6b 69 6e 67 |already,| looking|
|00005a80| 20 66 6f 72 20 2e 2e 2e | 25 73 2e 2e 2e 22 2c 70 | for ...|%s...",p|
|00005a90| 29 3b 2a 2f 0a 09 77 68 | 69 6c 65 28 75 73 65 72 |);*/..wh|ile(user|
|00005aa0| 5b 69 5d 21 3d 4e 55 4c | 4c 29 7b 0a 09 09 69 66 |[i]!=NUL|L){...if|
|00005ab0| 28 73 74 72 63 6d 70 28 | 70 2c 75 73 65 72 5b 69 |(strcmp(|p,user[i|
|00005ac0| 5d 29 3d 3d 30 29 7b 2f | 2a 70 72 69 6e 74 66 28 |])==0){/|*printf(|
|00005ad0| 22 66 6f 75 6e 64 20 61 | 74 20 25 64 2e 2e 2e 22 |"found a|t %d..."|
|00005ae0| 2c 69 29 3b 2a 2f 0a 09 | 09 72 65 74 75 72 6e 20 |,i);*/..|.return |
|00005af0| 31 3b 7d 0a 09 09 69 2b | 2b 3b 0a 09 7d 0a 09 2f |1;}...i+|+;..}../|
|00005b00| 2a 70 72 69 6e 74 66 28 | 22 6e 6f 74 20 66 6f 75 |*printf(|"not fou|
|00005b10| 6e 64 2c 20 69 3d 25 64 | 2e 2e 2e 22 2c 69 29 3b |nd, i=%d|...",i);|
|00005b20| 2a 2f 0a 09 72 65 74 75 | 72 6e 20 30 3b 0a 7d 0a |*/..retu|rn 0;.}.|
|00005b30| 2e 63 00 00 29 90 01 00 | 10 00 07 00 70 61 72 73 |.c..)...|....pars|
|00005b40| 65 2e 63 00 2a 90 01 00 | 10 00 06 00 71 75 69 74 |e.c.*...|....quit|
|00005b50| 2e 63 00 00 2b 90 01 00 | ac 00 0a 00 74 72 79 61 |.c..+...|....trya|
|00005b60| 67 61 69 6e 2e 63 00 00 | 00 00 00 00 00 00 00 00 |gain.c..|........|
|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| 61 75 74 6f 61 64 64 2f | 65 63 70 77 2e 63 00 00 |autoadd/|ecpw.c..|
|00005c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 20 31 32 33 34 20 | 20 34 34 30 34 30 35 34 | 1234 | 4404054|
|00005c90| 30 34 31 20 20 20 36 36 | 31 37 00 20 00 00 00 00 |041 66|17. ....|
|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| 0a 63 68 61 72 20 73 61 | 6c 74 73 5b 36 33 5d 3d |.char sa|lts[63]=|
|00005e10| 20 2f 2a 6d 75 73 74 20 | 62 65 20 36 33 20 74 6f | /*must |be 63 to|
|00005e20| 20 6c 65 61 76 65 20 72 | 6f 6f 6d 20 66 6f 72 20 | leave r|oom for |
|00005e30| 74 68 65 20 6e 75 6c 6c | 2a 2f 0a 22 41 42 43 44 |the null|*/."ABCD|
|00005e40| 45 46 47 48 49 4a 4b 4c | 4d 4e 4f 50 51 52 53 54 |EFGHIJKL|MNOPQRST|
|00005e50| 55 56 57 58 59 5a 61 62 | 63 64 65 66 67 68 69 6a |UVWXYZab|cdefghij|
|00005e60| 6b 6c 6d 6e 6f 70 71 72 | 73 74 75 76 77 78 79 7a |klmnopqr|stuvwxyz|
|00005e70| 30 31 32 33 34 35 36 37 | 38 39 22 3b 0a 2f 2a 31 |01234567|89";./*1|
|00005e80| 32 33 34 35 36 37 38 39 | 30 31 32 33 34 35 36 37 |23456789|01234567|
|00005e90| 38 39 30 31 32 33 34 35 | 36 37 38 39 30 31 32 33 |89012345|67890123|
|00005ea0| 34 35 36 37 38 39 30 31 | 32 33 34 35 36 37 38 39 |45678901|23456789|
|00005eb0| 30 31 32 33 34 35 36 37 | 38 39 30 31 2a 2f 0a 2f |01234567|8901*/./|
|00005ec0| 2a 30 30 30 30 30 30 30 | 30 30 31 31 31 31 31 31 |*0000000|00111111|
|00005ed0| 31 31 31 31 32 32 32 32 | 32 32 32 32 32 32 33 33 |11112222|22222233|
|00005ee0| 33 33 33 33 33 33 33 33 | 34 34 34 34 34 34 34 34 |33333333|44444444|
|00005ef0| 34 34 35 35 35 35 35 35 | 35 35 35 35 36 36 2a 2f |44555555|555566*/|
|00005f00| 0a 2f 2a 20 64 6f 6e 27 | 74 20 75 73 65 20 2f 20 |./* don'|t use / |
|00005f10| 6f 72 20 2e 20 62 65 63 | 61 75 73 65 20 6f 6e 65 |or . bec|ause one|
|00005f20| 20 6d 61 6e 75 61 6c 20 | 73 61 79 73 20 6f 6e 65 | manual |says one|
|00005f30| 20 74 68 69 6e 67 2c 20 | 61 6e 64 20 74 68 65 20 | thing, |and the |
|00005f40| 6f 74 68 65 72 0a 20 20 | 6d 61 6e 75 61 6c 20 73 |other. |manual s|
|00005f50| 61 79 73 20 61 6e 6f 74 | 68 65 72 20 74 68 69 6e |ays anot|her thin|
|00005f60| 67 2e 20 20 73 74 69 63 | 6b 20 77 69 74 68 20 6c |g. stic|k with l|
|00005f70| 65 74 74 65 72 73 20 61 | 6e 64 20 64 69 67 69 74 |etters a|nd digit|
|00005f80| 73 20 66 6f 72 20 73 61 | 6c 74 2e 0a 2a 2f 0a 0a |s for sa|lt..*/..|
|00005f90| 65 63 70 77 28 70 77 64 | 29 0a 63 68 61 72 20 2a |ecpw(pwd|).char *|
|00005fa0| 70 77 64 3b 0a 7b 0a 09 | 2f 2a 73 69 64 65 20 65 |pwd;.{..|/*side e|
|00005fb0| 66 66 65 63 74 3a 20 6d | 6f 64 69 66 69 65 73 20 |ffect: m|odifies |
|00005fc0| 65 63 70 74 65 78 2a 2f | 0a 09 65 78 74 65 72 6e |ecptex*/|..extern|
|00005fd0| 20 63 68 61 72 20 65 63 | 70 74 65 78 5b 5d 3b 0a | char ec|ptex[];.|
|00005fe0| 09 76 6f 69 64 20 65 78 | 74 65 72 6e 20 65 78 69 |.void ex|tern exi|
|00005ff0| 74 28 29 3b 0a 09 63 68 | 61 72 20 2a 72 65 73 75 |t();..ch|ar *resu|
|00006000| 6c 74 2c 2a 63 72 79 70 | 74 28 29 3b 0a 09 63 68 |lt,*cryp|t();..ch|
|00006010| 61 72 20 73 61 6c 74 5b | 33 5d 3b 0a 09 73 61 6c |ar salt[|3];..sal|
|00006020| 74 5b 30 5d 3d 73 61 6c | 74 73 5b 72 61 6e 64 28 |t[0]=sal|ts[rand(|
|00006030| 29 25 36 32 5d 3b 0a 09 | 73 61 6c 74 5b 31 5d 3d |)%62];..|salt[1]=|
|00006040| 73 61 6c 74 73 5b 72 61 | 6e 64 28 29 25 36 32 5d |salts[ra|nd()%62]|
|00006050| 3b 0a 09 73 61 6c 74 5b | 32 5d 3d 27 5c 30 27 3b |;..salt[|2]='\0';|
|00006060| 0a 0a 09 72 65 73 75 6c | 74 3d 63 72 79 70 74 28 |...resul|t=crypt(|
|00006070| 70 77 64 2c 73 61 6c 74 | 29 3b 0a 09 28 76 6f 69 |pwd,salt|);..(voi|
|00006080| 64 29 20 73 74 72 63 70 | 79 28 65 63 70 74 65 78 |d) strcp|y(ecptex|
|00006090| 2c 72 65 73 75 6c 74 29 | 3b 0a 7d 0a 30 31 32 33 |,result)|;.}.0123|
|000060a0| 34 35 36 37 38 39 30 31 | 32 33 34 35 36 37 38 39 |45678901|23456789|
|000060b0| 30 31 32 33 34 35 36 37 | 38 39 30 31 2a 2f 0a 2f |01234567|8901*/./|
|000060c0| 2a 30 30 30 30 30 30 30 | 30 30 31 31 31 31 31 31 |*0000000|00111111|
|000060d0| 31 31 31 31 32 32 32 32 | 32 32 32 32 32 32 33 33 |11112222|22222233|
|000060e0| 33 33 33 33 33 33 33 33 | 34 34 34 34 34 34 34 34 |33333333|44444444|
|000060f0| 34 34 35 35 35 35 35 35 | 35 35 35 35 36 36 2a 2f |44555555|555566*/|
|00006100| 0a 2f 2a 20 64 6f 6e 27 | 74 20 75 73 65 20 2f 20 |./* don'|t use / |
|00006110| 6f 72 20 2e 20 62 65 63 | 61 75 73 65 20 6f 6e 65 |or . bec|ause one|
|00006120| 20 6d 61 6e 75 61 6c 20 | 73 61 79 73 20 6f 6e 65 | manual |says one|
|00006130| 20 74 68 69 6e 67 2c 20 | 61 6e 64 20 74 68 65 20 | thing, |and the |
|00006140| 6f 74 68 65 72 0a 20 20 | 6d 61 6e 75 61 6c 20 73 |other. |manual s|
|00006150| 61 79 73 20 61 6e 6f 74 | 68 65 72 20 74 68 69 6e |ays anot|her thin|
|00006160| 67 2e 20 20 73 74 69 63 | 6b 20 77 69 74 68 20 6c |g. stic|k with l|
|00006170| 65 74 74 65 72 73 20 61 | 6e 64 20 64 69 67 69 74 |etters a|nd digit|
|00006180| 73 20 66 6f 72 20 73 61 | 6c 74 2e 0a 2a 2f 0a 0a |s for sa|lt..*/..|
|00006190| 65 63 70 77 28 70 77 64 | 29 0a 63 68 61 72 20 2a |ecpw(pwd|).char *|
|000061a0| 70 77 64 3b 0a 7b 0a 09 | 2f 2a 73 69 64 65 20 65 |pwd;.{..|/*side e|
|000061b0| 66 66 65 63 74 3a 20 6d | 6f 64 69 66 69 65 73 20 |ffect: m|odifies |
|000061c0| 65 63 70 74 65 78 2a 2f | 0a 09 65 78 74 65 72 6e |ecptex*/|..extern|
|000061d0| 20 63 68 61 72 20 65 63 | 70 74 65 78 5b 5d 3b 0a | char ec|ptex[];.|
|000061e0| 09 76 6f 69 64 20 65 78 | 74 65 72 6e 20 65 78 69 |.void ex|tern exi|
|000061f0| 74 28 29 3b 0a 09 63 68 | 61 72 20 2a 72 65 73 75 |t();..ch|ar *resu|
|00006200| 61 75 74 6f 61 64 64 2f | 65 78 69 73 74 73 2e 63 |autoadd/|exists.c|
|00006210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00006270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00006280| 20 20 20 20 33 34 34 20 | 20 34 34 30 34 30 35 34 | 344 | 4404054|
|00006290| 30 34 32 20 20 20 37 31 | 36 32 00 20 00 00 00 00 |042 71|62. ....|
|000062a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.