home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: pwdiff.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file pwdiff/, mode 755 , uid 243 , gid 13 , size 0 , seconds 4423461366
| default
| |
98%
| file
| data
| default
| |
100%
| TrID
| Sybase iAnywhere database files
| default (weak)
| |
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| 70 77 64 69 66 66 2f 00 | 00 00 00 00 00 00 00 00 |pwdiff/.|........|
|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 33 20 00 20 20 20 20 |43 . |13 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 32 33 34 36 31 | 0 | 4423461|
|00000090| 33 36 36 20 20 20 35 33 | 30 34 00 20 00 00 00 00 |366 53|04. ....|
|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| 70 77 64 69 66 66 2f 53 | 68 61 72 46 69 6c 65 2e |pwdiff/S|harFile.|
|00000210| 48 65 61 64 65 72 73 00 | 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 33 20 00 20 20 20 20 |43 . |13 . |
|00000280| 20 20 20 32 30 35 37 20 | 20 34 34 32 33 34 36 31 | 2057 | 4423461|
|00000290| 33 37 32 20 20 31 30 33 | 36 34 00 20 00 00 00 00 |372 103|64. ....|
|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 70 77 64 69 | 66 66 2e 73 68 61 72 20 |=== pwdi|ff.shar |
|00000410| 3d 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 0a 46 72 6f 6d 20 72 |========|=.From r|
|00000430| 69 61 63 73 21 65 6f 73 | 21 61 6d 65 73 21 6c 6c |iacs!eos|!ames!ll|
|00000440| 6c 2d 6c 63 63 21 6c 6c | 6c 2d 77 69 6e 6b 65 6e |l-lcc!ll|l-winken|
|00000450| 21 75 75 6e 65 74 21 62 | 62 6e 2e 63 6f 6d 21 72 |!uunet!b|bn.com!r|
|00000460| 73 61 6c 7a 20 57 65 64 | 20 4d 61 72 20 32 39 20 |salz Wed| Mar 29 |
|00000470| 31 35 3a 34 34 3a 35 35 | 20 50 53 54 20 31 39 38 |15:44:55| PST 198|
|00000480| 39 0a 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a |9..Submi|tted-by:|
|00000490| 20 44 6f 6e 20 4c 69 62 | 65 73 20 3c 6c 69 62 65 | Don Lib|es <libe|
|000004a0| 73 40 63 6d 65 2d 64 75 | 72 65 72 2e 61 72 70 61 |s@cme-du|rer.arpa|
|000004b0| 3e 0a 50 6f 73 74 69 6e | 67 2d 6e 75 6d 62 65 72 |>.Postin|g-number|
|000004c0| 3a 20 56 6f 6c 75 6d 65 | 20 31 38 2c 20 49 73 73 |: Volume| 18, Iss|
|000004d0| 75 65 20 36 38 0a 41 72 | 63 68 69 76 65 2d 6e 61 |ue 68.Ar|chive-na|
|000004e0| 6d 65 3a 20 70 77 64 69 | 66 66 0a 0a 70 77 64 69 |me: pwdi|ff..pwdi|
|000004f0| 66 66 20 74 61 6b 65 73 | 20 6d 75 6c 74 69 70 6c |ff takes| multipl|
|00000500| 65 20 70 61 73 73 77 6f | 72 64 20 66 69 6c 65 73 |e passwo|rd files|
|00000510| 20 61 6e 64 20 63 6f 6d | 70 61 72 65 73 20 74 68 | and com|pares th|
|00000520| 65 6d 20 69 6e 20 61 6e | 0a 69 6e 74 65 6c 6c 69 |em in an|.intelli|
|00000530| 67 65 6e 74 20 77 61 79 | 2e 20 20 46 6f 72 20 69 |gent way|. For i|
|00000540| 6e 73 74 61 6e 63 65 2c | 20 69 74 20 77 69 6c 6c |nstance,| it will|
|00000550| 20 72 65 70 6f 72 74 20 | 6f 6e 20 64 69 66 66 65 | report |on diffe|
|00000560| 72 65 6e 74 20 6e 61 6d | 65 73 0a 77 69 74 68 20 |rent nam|es.with |
|00000570| 74 68 65 20 73 61 6d 65 | 20 75 69 64 2c 20 62 75 |the same| uid, bu|
|00000580| 74 20 6c 65 74 20 70 61 | 73 73 20 74 68 65 20 73 |t let pa|ss the s|
|00000590| 61 6d 65 20 6e 61 6d 65 | 20 77 69 74 68 20 74 68 |ame name| with th|
|000005a0| 65 20 73 61 6d 65 20 75 | 69 64 2e 0a 0a 57 68 61 |e same u|id...Wha|
|000005b0| 74 20 68 61 70 70 65 6e | 65 64 20 77 61 73 20 74 |t happen|ed was t|
|000005c0| 68 61 74 20 77 65 20 73 | 74 61 72 74 65 64 20 6f |hat we s|tarted o|
|000005d0| 75 74 20 77 69 74 68 20 | 6f 6e 65 20 73 68 61 72 |ut with |one shar|
|000005e0| 65 64 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |ed passw|ord file|
|000005f0| 20 69 6e 0a 61 20 73 6d | 61 6c 6c 20 4c 41 4e 20 | in.a sm|all LAN |
|00000600| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 20 20 4f 76 |environm|ent. Ov|
|00000610| 65 72 20 74 69 6d 65 2c | 20 6d 6f 72 65 20 6d 61 |er time,| more ma|
|00000620| 63 68 69 6e 65 73 20 63 | 61 6d 65 20 6f 6e 2d 6c |chines c|ame on-l|
|00000630| 69 6e 65 2e 0a 4e 65 77 | 20 61 64 6d 69 6e 69 73 |ine..New| adminis|
|00000640| 74 72 61 74 6f 72 73 20 | 73 6f 6d 65 74 69 6d 65 |trators |sometime|
|00000650| 73 20 73 68 61 72 65 64 | 20 74 68 65 20 6f 6c 64 |s shared| the old|
|00000660| 20 70 61 73 73 77 6f 72 | 64 20 66 69 6c 65 2c 20 | passwor|d file, |
|00000670| 61 6e 64 0a 73 6f 6d 65 | 74 69 6d 65 73 20 6a 75 |and.some|times ju|
|00000680| 73 74 20 63 6f 70 69 65 | 64 20 69 74 2e 20 20 47 |st copie|d it. G|
|00000690| 72 61 64 75 61 6c 6c 79 | 20 69 74 20 64 69 76 65 |radually| it dive|
|000006a0| 72 67 65 64 2c 20 73 6f | 20 74 68 61 74 20 73 6f |rged, so| that so|
|000006b0| 6d 65 20 6f 66 20 74 68 | 65 0a 75 69 64 73 20 6d |me of th|e.uids m|
|000006c0| 61 70 70 65 64 20 74 6f | 20 6d 75 6c 74 69 70 6c |apped to| multipl|
|000006d0| 65 20 75 73 65 72 73 20 | 61 63 72 6f 73 73 20 74 |e users |across t|
|000006e0| 68 65 20 4c 41 4e 2e 0a | 0a 45 76 65 6e 74 75 61 |he LAN..|.Eventua|
|000006f0| 6c 6c 79 20 6f 75 72 20 | 4c 41 4e 20 67 6f 74 20 |lly our |LAN got |
|00000700| 62 69 67 20 65 6e 6f 75 | 67 68 2c 20 73 6f 20 74 |big enou|gh, so t|
|00000710| 68 61 74 20 77 65 20 68 | 69 72 65 64 20 61 20 73 |hat we h|ired a s|
|00000720| 69 74 65 77 69 64 65 20 | 61 64 6d 69 6e 2c 0a 61 |itewide |admin,.a|
|00000730| 6e 64 20 68 65 20 77 61 | 6e 74 65 64 20 74 6f 20 |nd he wa|nted to |
|00000740| 75 73 65 20 6f 6e 65 20 | 63 6f 6d 6d 6f 6e 20 70 |use one |common p|
|00000750| 61 73 73 77 6f 72 64 20 | 66 69 6c 65 2e 20 20 54 |assword |file. T|
|00000760| 68 69 73 20 6d 61 6b 65 | 73 20 4e 46 53 20 61 63 |his make|s NFS ac|
|00000770| 63 65 73 73 0a 6d 75 63 | 68 20 65 61 73 69 65 72 |cess.muc|h easier|
|00000780| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2e 20 20 |, for ex|ample. |
|00000790| 53 6f 20 49 20 77 72 6f | 74 65 20 74 68 69 73 20 |So I wro|te this |
|000007a0| 70 72 6f 67 72 61 6d 20 | 74 6f 20 73 6f 6c 76 65 |program |to solve|
|000007b0| 20 68 69 73 0a 70 72 6f | 62 6c 65 6d 2e 20 20 49 | his.pro|blem. I|
|000007c0| 20 66 69 67 75 72 65 20 | 74 68 69 73 20 76 65 72 | figure |this ver|
|000007d0| 79 20 73 61 6d 65 20 74 | 68 69 6e 67 20 6d 75 73 |y same t|hing mus|
|000007e0| 74 20 68 61 70 70 65 6e | 20 74 6f 20 6c 6f 74 73 |t happen| to lots|
|000007f0| 20 6f 66 20 73 69 74 65 | 73 2c 0a 73 6f 20 74 6f | of site|s,.so to|
|00000800| 20 73 61 76 65 20 79 6f | 75 20 73 6f 6d 65 20 67 | save yo|u some g|
|00000810| 72 69 65 66 2c 20 68 65 | 72 65 20 69 74 20 69 73 |rief, he|re it is|
|00000820| 2e 0a 09 09 44 6f 6e 20 | 4c 69 62 65 73 0a 0a 00 |....Don |Libes...|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 70 77 64 69 66 66 2f 4d | 61 6b 65 66 69 6c 65 00 |pwdiff/M|akefile.|
|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 33 20 00 20 20 20 20 |43 . |13 . |
|00000a80| 20 20 20 20 32 31 33 20 | 20 34 34 32 33 34 36 31 | 213 | 4423461|
|00000a90| 33 35 37 20 20 20 37 30 | 30 35 00 20 00 00 00 00 |357 70|05. ....|
|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| 61 6c 6c 3a 09 09 70 77 | 64 69 66 66 20 70 77 64 |all:..pw|diff pwd|
|00000c10| 69 66 66 2e 38 0a 0a 69 | 6e 73 74 61 6c 6c 3a 09 |iff.8..i|nstall:.|
|00000c20| 61 6c 6c 0a 09 40 65 63 | 68 6f 20 49 6e 73 74 61 |all..@ec|ho Insta|
|00000c30| 6c 6c 69 6e 67 20 61 63 | 63 6f 72 64 69 6e 67 20 |lling ac|cording |
|00000c40| 74 6f 20 6c 6f 63 61 6c | 20 63 6f 6e 76 65 6e 74 |to local| convent|
|00000c50| 69 6f 6e 0a 0a 70 77 64 | 69 66 66 3a 09 09 70 77 |ion..pwd|iff:..pw|
|00000c60| 64 69 66 66 2e 63 0a 09 | 24 28 43 43 29 20 2d 6f |diff.c..|$(CC) -o|
|00000c70| 20 70 77 64 69 66 66 20 | 24 28 43 46 4c 41 47 53 | pwdiff |$(CFLAGS|
|00000c80| 29 20 70 77 64 69 66 66 | 2e 63 0a 64 2d 62 79 3a |) pwdiff|.c.d-by:|
|00000c90| 20 44 6f 6e 20 4c 69 62 | 65 73 20 3c 6c 69 62 65 | Don Lib|es <libe|
|00000ca0| 73 40 63 6d 65 2d 64 75 | 72 65 72 2e 61 72 70 61 |s@cme-du|rer.arpa|
|00000cb0| 3e 0a 50 6f 73 74 69 6e | 67 2d 6e 75 6d 62 65 72 |>.Postin|g-number|
|00000cc0| 3a 20 56 6f 6c 75 6d 65 | 20 31 38 2c 20 49 73 73 |: Volume| 18, Iss|
|00000cd0| 75 65 20 36 38 0a 41 72 | 63 68 69 76 65 2d 6e 61 |ue 68.Ar|chive-na|
|00000ce0| 6d 65 3a 20 70 77 64 69 | 66 66 0a 0a 70 77 64 69 |me: pwdi|ff..pwdi|
|00000cf0| 66 66 20 74 61 6b 65 73 | 20 6d 75 6c 74 69 70 6c |ff takes| multipl|
|00000d00| 65 20 70 61 73 73 77 6f | 72 64 20 66 69 6c 65 73 |e passwo|rd files|
|00000d10| 20 61 6e 64 20 63 6f 6d | 70 61 72 65 73 20 74 68 | and com|pares th|
|00000d20| 65 6d 20 69 6e 20 61 6e | 0a 69 6e 74 65 6c 6c 69 |em in an|.intelli|
|00000d30| 67 65 6e 74 20 77 61 79 | 2e 20 20 46 6f 72 20 69 |gent way|. For i|
|00000d40| 6e 73 74 61 6e 63 65 2c | 20 69 74 20 77 69 6c 6c |nstance,| it will|
|00000d50| 20 72 65 70 6f 72 74 20 | 6f 6e 20 64 69 66 66 65 | report |on diffe|
|00000d60| 72 65 6e 74 20 6e 61 6d | 65 73 0a 77 69 74 68 20 |rent nam|es.with |
|00000d70| 74 68 65 20 73 61 6d 65 | 20 75 69 64 2c 20 62 75 |the same| uid, bu|
|00000d80| 74 20 6c 65 74 20 70 61 | 73 73 20 74 68 65 20 73 |t let pa|ss the s|
|00000d90| 61 6d 65 20 6e 61 6d 65 | 20 77 69 74 68 20 74 68 |ame name| with th|
|00000da0| 65 20 73 61 6d 65 20 75 | 69 64 2e 0a 0a 57 68 61 |e same u|id...Wha|
|00000db0| 74 20 68 61 70 70 65 6e | 65 64 20 77 61 73 20 74 |t happen|ed was t|
|00000dc0| 68 61 74 20 77 65 20 73 | 74 61 72 74 65 64 20 6f |hat we s|tarted o|
|00000dd0| 75 74 20 77 69 74 68 20 | 6f 6e 65 20 73 68 61 72 |ut with |one shar|
|00000de0| 65 64 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |ed passw|ord file|
|00000df0| 20 69 6e 0a 61 20 73 6d | 61 6c 6c 20 4c 41 4e 20 | in.a sm|all LAN |
|00000e00| 70 77 64 69 66 66 2f 52 | 45 41 44 4d 45 00 00 00 |pwdiff/R|EADME...|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000e70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000e80| 20 20 20 32 31 30 31 20 | 20 34 34 32 33 34 36 31 | 2101 | 4423461|
|00000e90| 33 36 31 20 20 20 36 32 | 33 36 00 20 00 00 00 00 |361 62|36. ....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 70 77 64 69 66 66 20 74 | 61 6b 65 73 20 6d 75 6c |pwdiff t|akes mul|
|00001010| 74 69 70 6c 65 20 70 61 | 73 73 77 6f 72 64 20 66 |tiple pa|ssword f|
|00001020| 69 6c 65 73 20 61 6e 64 | 20 63 6f 6d 70 61 72 65 |iles and| compare|
|00001030| 73 20 74 68 65 6d 20 69 | 6e 20 61 6e 0a 69 6e 74 |s them i|n an.int|
|00001040| 65 6c 6c 69 67 65 6e 74 | 20 77 61 79 2e 20 20 46 |elligent| way. F|
|00001050| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 69 74 20 |or insta|nce, it |
|00001060| 77 69 6c 6c 20 72 65 70 | 6f 72 74 20 6f 6e 20 64 |will rep|ort on d|
|00001070| 69 66 66 65 72 65 6e 74 | 20 6e 61 6d 65 73 0a 77 |ifferent| names.w|
|00001080| 69 74 68 20 74 68 65 20 | 73 61 6d 65 20 75 69 64 |ith the |same uid|
|00001090| 2c 20 62 75 74 20 6c 65 | 74 20 70 61 73 73 20 74 |, but le|t pass t|
|000010a0| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 77 69 74 |he same |name wit|
|000010b0| 68 20 74 68 65 20 73 61 | 6d 65 20 75 69 64 2e 0a |h the sa|me uid..|
|000010c0| 0a 49 20 77 72 6f 74 65 | 20 69 74 20 6f 6e 65 20 |.I wrote| it one |
|000010d0| 64 61 79 20 77 68 65 6e | 20 77 65 20 68 61 64 20 |day when| we had |
|000010e0| 74 6f 20 6a 6f 69 6e 20 | 74 77 6f 20 70 61 73 73 |to join |two pass|
|000010f0| 77 6f 72 64 20 66 69 6c | 65 73 20 66 72 6f 6d 0a |word fil|es from.|
|00001100| 64 69 66 66 65 72 65 6e | 74 20 6d 61 63 68 69 6e |differen|t machin|
|00001110| 65 73 2e 0a 0a 57 68 61 | 74 20 68 61 70 70 65 6e |es...Wha|t happen|
|00001120| 65 64 20 77 61 73 20 74 | 68 61 74 20 77 65 20 73 |ed was t|hat we s|
|00001130| 74 61 72 74 65 64 20 6f | 75 74 20 77 69 74 68 20 |tarted o|ut with |
|00001140| 6f 6e 65 20 73 68 61 72 | 65 64 20 70 61 73 73 77 |one shar|ed passw|
|00001150| 6f 72 64 20 66 69 6c 65 | 20 69 6e 0a 61 20 73 6d |ord file| in.a sm|
|00001160| 61 6c 6c 20 4c 41 4e 20 | 65 6e 76 69 72 6f 6e 6d |all LAN |environm|
|00001170| 65 6e 74 2e 20 20 4f 76 | 65 72 20 74 69 6d 65 2c |ent. Ov|er time,|
|00001180| 20 6d 6f 72 65 20 6d 61 | 63 68 69 6e 65 73 20 63 | more ma|chines c|
|00001190| 61 6d 65 20 6f 6e 2d 6c | 69 6e 65 2e 0a 4e 65 77 |ame on-l|ine..New|
|000011a0| 20 61 64 6d 69 6e 69 73 | 74 72 61 74 6f 72 73 20 | adminis|trators |
|000011b0| 73 6f 6d 65 74 69 6d 65 | 73 20 73 68 61 72 65 64 |sometime|s shared|
|000011c0| 20 74 68 65 20 6f 6c 64 | 20 70 61 73 73 77 6f 72 | the old| passwor|
|000011d0| 64 20 66 69 6c 65 2c 20 | 61 6e 64 0a 73 6f 6d 65 |d file, |and.some|
|000011e0| 74 69 6d 65 73 20 6a 75 | 73 74 20 63 6f 70 69 65 |times ju|st copie|
|000011f0| 64 20 69 74 2e 20 20 47 | 72 61 64 75 61 6c 6c 79 |d it. G|radually|
|00001200| 20 69 74 20 64 69 76 65 | 72 67 65 64 2c 20 73 6f | it dive|rged, so|
|00001210| 20 74 68 61 74 20 73 6f | 6d 65 20 6f 66 20 74 68 | that so|me of th|
|00001220| 65 0a 75 69 64 73 20 6d | 61 70 70 65 64 20 74 6f |e.uids m|apped to|
|00001230| 20 6d 75 6c 74 69 70 6c | 65 20 75 73 65 72 73 20 | multipl|e users |
|00001240| 61 63 72 6f 73 73 20 74 | 68 65 20 4c 41 4e 2e 0a |across t|he LAN..|
|00001250| 0a 45 76 65 6e 74 75 61 | 6c 6c 79 20 6f 75 72 20 |.Eventua|lly our |
|00001260| 4c 41 4e 20 67 6f 74 20 | 62 69 67 20 65 6e 6f 75 |LAN got |big enou|
|00001270| 67 68 2c 20 73 6f 20 74 | 68 61 74 20 77 65 20 68 |gh, so t|hat we h|
|00001280| 69 72 65 64 20 61 20 73 | 69 74 65 77 69 64 65 20 |ired a s|itewide |
|00001290| 61 64 6d 69 6e 2c 0a 61 | 6e 64 20 68 65 20 77 61 |admin,.a|nd he wa|
|000012a0| 6e 74 65 64 20 74 6f 20 | 75 73 65 20 6f 6e 65 20 |nted to |use one |
|000012b0| 63 6f 6d 6d 6f 6e 20 70 | 61 73 73 77 6f 72 64 20 |common p|assword |
|000012c0| 66 69 6c 65 2e 20 20 54 | 68 69 73 20 6d 61 6b 65 |file. T|his make|
|000012d0| 73 20 4e 46 53 20 61 63 | 63 65 73 73 0a 6d 75 63 |s NFS ac|cess.muc|
|000012e0| 68 20 65 61 73 69 65 72 | 2c 20 66 6f 72 20 65 78 |h easier|, for ex|
|000012f0| 61 6d 70 6c 65 2e 20 20 | 53 6f 20 49 20 77 72 6f |ample. |So I wro|
|00001300| 74 65 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |te this |program |
|00001310| 74 6f 20 73 6f 6c 76 65 | 20 68 69 73 0a 70 72 6f |to solve| his.pro|
|00001320| 62 6c 65 6d 2e 20 20 49 | 20 66 69 67 75 72 65 20 |blem. I| figure |
|00001330| 74 68 69 73 20 76 65 72 | 79 20 73 61 6d 65 20 74 |this ver|y same t|
|00001340| 68 69 6e 67 20 6d 75 73 | 74 20 68 61 70 70 65 6e |hing mus|t happen|
|00001350| 20 74 6f 20 6c 6f 74 73 | 20 6f 66 20 73 69 74 65 | to lots| of site|
|00001360| 73 2c 0a 73 6f 20 74 6f | 20 73 61 76 65 20 79 6f |s,.so to| save yo|
|00001370| 75 20 73 6f 6d 65 20 67 | 72 69 65 66 2c 20 68 65 |u some g|rief, he|
|00001380| 72 65 20 69 74 20 69 73 | 2e 20 20 53 65 6e 64 20 |re it is|. Send |
|00001390| 62 75 67 73 2c 20 69 6d | 70 72 6f 76 65 6d 65 6e |bugs, im|provemen|
|000013a0| 74 73 2c 20 61 6e 64 0a | 63 61 73 68 20 74 6f 20 |ts, and.|cash to |
|000013b0| 6d 65 2e 0a 0a 44 6f 6e | 20 4c 69 62 65 73 0a 4e |me...Don| Libes.N|
|000013c0| 61 74 69 6f 6e 61 6c 20 | 42 75 72 65 61 75 20 6f |ational |Bureau o|
|000013d0| 66 20 53 74 61 6e 64 61 | 72 64 73 0a 42 6c 64 67 |f Standa|rds.Bldg|
|000013e0| 20 32 32 30 2c 20 52 6d | 20 41 2d 31 32 37 0a 47 | 220, Rm| A-127.G|
|000013f0| 61 69 74 68 65 72 73 62 | 75 72 67 2c 20 4d 44 20 |aithersb|urg, MD |
|00001400| 20 32 30 38 39 39 0a 28 | 33 30 31 29 20 39 37 35 | 20899.(|301) 975|
|00001410| 2d 33 35 33 35 0a 6c 69 | 62 65 73 40 63 6d 65 2d |-3535.li|bes@cme-|
|00001420| 64 75 72 65 72 2e 61 72 | 70 61 0a 75 75 6e 65 74 |durer.ar|pa.uunet|
|00001430| 21 63 6d 65 2d 64 75 72 | 65 72 21 6c 69 62 65 73 |!cme-dur|er!libes|
|00001440| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 70 77 64 69 66 66 2f 70 | 77 64 69 66 66 2e 38 00 |pwdiff/p|wdiff.8.|
|00001610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001670| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00001680| 20 20 20 31 33 32 34 20 | 20 34 34 32 33 34 36 31 | 1324 | 4423461|
|00001690| 33 36 34 20 20 20 36 37 | 33 37 00 20 00 00 00 00 |364 67|37. ....|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 2e 54 48 20 50 57 44 49 | 46 46 20 38 20 22 32 35 |.TH PWDI|FF 8 "25|
|00001810| 20 4a 75 6e 65 20 31 39 | 38 38 22 0a 2e 53 48 20 | June 19|88"..SH |
|00001820| 4e 41 4d 45 0a 70 77 64 | 69 66 66 20 5c 2d 20 66 |NAME.pwd|iff \- f|
|00001830| 69 6e 64 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |ind diff|erences |
|00001840| 69 6e 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |in passw|ord file|
|00001850| 73 0a 2e 53 48 20 53 59 | 4e 4f 50 53 49 53 0a 70 |s..SH SY|NOPSIS.p|
|00001860| 77 64 69 66 66 20 66 69 | 6c 65 31 20 66 69 6c 65 |wdiff fi|le1 file|
|00001870| 32 20 66 69 6c 65 33 20 | 2e 2e 2e 0a 2e 53 48 20 |2 file3 |.....SH |
|00001880| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 54 68 69 73 |DESCRIPT|ION.This|
|00001890| 20 70 72 6f 67 72 61 6d | 20 63 6f 6d 70 61 72 65 | program| compare|
|000018a0| 73 20 6d 75 6c 74 69 70 | 6c 65 20 70 61 73 73 77 |s multip|le passw|
|000018b0| 6f 72 64 20 66 69 6c 65 | 73 20 61 6e 64 20 72 65 |ord file|s and re|
|000018c0| 70 6f 72 74 73 20 6f 6e | 20 75 69 64 20 6f 72 0a |ports on| uid or.|
|000018d0| 6e 61 6d 65 20 63 6f 6e | 66 6c 69 63 74 73 20 74 |name con|flicts t|
|000018e0| 68 61 74 20 77 6f 75 6c | 64 20 70 72 65 76 65 6e |hat woul|d preven|
|000018f0| 74 20 74 68 65 20 66 69 | 6c 65 73 20 66 72 6f 6d |t the fi|les from|
|00001900| 20 62 65 69 6e 67 20 6d | 65 72 67 65 64 2e 0a 2e | being m|erged...|
|00001910| 50 50 0a 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |PP.For e|xample, |
|00001920| 69 66 20 75 69 64 20 32 | 37 20 69 73 20 64 6f 6e |if uid 2|7 is don|
|00001930| 20 69 6e 20 66 69 6c 65 | 31 20 61 6e 64 20 73 75 | in file|1 and su|
|00001940| 73 61 6e 20 69 6e 20 66 | 69 6c 65 32 2c 20 74 68 |san in f|ile2, th|
|00001950| 69 73 20 77 69 6c 6c 20 | 62 65 0a 64 65 74 65 63 |is will |be.detec|
|00001960| 74 65 64 2e 0a 2e 50 50 | 0a 54 68 65 20 70 72 6f |ted...PP|.The pro|
|00001970| 67 72 61 6d 20 61 6c 73 | 6f 20 6e 6f 74 65 73 20 |gram als|o notes |
|00001980| 73 79 6e 74 61 63 74 69 | 63 61 6c 6c 79 20 69 6e |syntacti|cally in|
|00001990| 63 6f 72 72 65 63 74 20 | 6c 69 6e 65 73 20 61 6e |correct |lines an|
|000019a0| 64 20 6e 69 63 6b 6e 61 | 6d 65 73 0a 28 74 68 65 |d nickna|mes.(the|
|000019b0| 20 75 73 65 72 20 6e 61 | 6d 65 20 64 6f 65 73 20 | user na|me does |
|000019c0| 6e 6f 74 20 6d 61 74 63 | 68 20 74 68 65 20 68 6f |not matc|h the ho|
|000019d0| 6d 65 20 64 69 72 65 63 | 74 6f 72 79 29 2e 20 20 |me direc|tory). |
|000019e0| 53 69 6e 63 65 20 6d 61 | 6e 79 20 6c 6f 77 0a 75 |Since ma|ny low.u|
|000019f0| 69 64 73 20 61 72 65 20 | 6e 69 63 6b 6e 61 6d 65 |ids are |nickname|
|00001a00| 73 20 28 72 6f 6f 74 2c | 20 75 75 63 70 2c 20 65 |s (root,| uucp, e|
|00001a10| 74 63 2e 29 20 61 20 63 | 6f 6d 70 69 6c 65 2d 74 |tc.) a c|ompile-t|
|00001a20| 69 6d 65 20 63 6f 6e 73 | 74 61 6e 74 20 63 6f 6e |ime cons|tant con|
|00001a30| 74 72 6f 6c 73 0a 61 20 | 63 75 74 2d 6f 66 66 20 |trols.a |cut-off |
|00001a40| 62 65 6c 6f 77 20 77 68 | 69 63 68 20 6e 69 63 6b |below wh|ich nick|
|00001a50| 6e 61 6d 65 73 20 61 72 | 65 20 69 67 6e 6f 72 65 |names ar|e ignore|
|00001a60| 64 2e 20 20 41 73 20 64 | 69 73 74 72 69 62 75 74 |d. As d|istribut|
|00001a70| 65 64 2c 20 75 69 64 73 | 0a 62 65 6c 6f 77 20 32 |ed, uids|.below 2|
|00001a80| 30 20 61 72 65 20 6e 6f | 74 20 63 68 65 63 6b 65 |0 are no|t checke|
|00001a90| 64 20 66 6f 72 20 6e 69 | 63 6b 6e 61 6d 65 73 2e |d for ni|cknames.|
|00001aa0| 0a 2e 53 48 20 41 55 54 | 48 4f 52 0a 44 6f 6e 20 |..SH AUT|HOR.Don |
|00001ab0| 4c 69 62 65 73 2c 20 4e | 61 74 69 6f 6e 61 6c 20 |Libes, N|ational |
|00001ac0| 42 75 72 65 61 75 20 6f | 66 20 53 74 61 6e 64 61 |Bureau o|f Standa|
|00001ad0| 72 64 73 0a 53 20 61 63 | 63 65 73 73 0a 6d 75 63 |rds.S ac|cess.muc|
|00001ae0| 68 20 65 61 73 69 65 72 | 2c 20 66 6f 72 20 65 78 |h easier|, for ex|
|00001af0| 61 6d 70 6c 65 2e 20 20 | 53 6f 20 49 20 77 72 6f |ample. |So I wro|
|00001b00| 74 65 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |te this |program |
|00001b10| 74 6f 20 73 6f 6c 76 65 | 20 68 69 73 0a 70 72 6f |to solve| his.pro|
|00001b20| 62 6c 65 6d 2e 20 20 49 | 20 66 69 67 75 72 65 20 |blem. I| figure |
|00001b30| 74 68 69 73 20 76 65 72 | 79 20 73 61 6d 65 20 74 |this ver|y same t|
|00001b40| 68 69 6e 67 20 6d 75 73 | 74 20 68 61 70 70 65 6e |hing mus|t happen|
|00001b50| 20 74 6f 20 6c 6f 74 73 | 20 6f 66 20 73 69 74 65 | to lots| of site|
|00001b60| 73 2c 0a 73 6f 20 74 6f | 20 73 61 76 65 20 79 6f |s,.so to| save yo|
|00001b70| 75 20 73 6f 6d 65 20 67 | 72 69 65 66 2c 20 68 65 |u some g|rief, he|
|00001b80| 72 65 20 69 74 20 69 73 | 2e 20 20 53 65 6e 64 20 |re it is|. Send |
|00001b90| 62 75 67 73 2c 20 69 6d | 70 72 6f 76 65 6d 65 6e |bugs, im|provemen|
|00001ba0| 74 73 2c 20 61 6e 64 0a | 63 61 73 68 20 74 6f 20 |ts, and.|cash to |
|00001bb0| 6d 65 2e 0a 0a 44 6f 6e | 20 4c 69 62 65 73 0a 4e |me...Don| Libes.N|
|00001bc0| 61 74 69 6f 6e 61 6c 20 | 42 75 72 65 61 75 20 6f |ational |Bureau o|
|00001bd0| 66 20 53 74 61 6e 64 61 | 72 64 73 0a 42 6c 64 67 |f Standa|rds.Bldg|
|00001be0| 20 32 32 30 2c 20 52 6d | 20 41 2d 31 32 37 0a 47 | 220, Rm| A-127.G|
|00001bf0| 61 69 74 68 65 72 73 62 | 75 72 67 2c 20 4d 44 20 |aithersb|urg, MD |
|00001c00| 70 77 64 69 66 66 2f 70 | 77 64 69 66 66 2e 63 00 |pwdiff/p|wdiff.c.|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001c70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00001c80| 20 20 20 36 33 35 37 20 | 20 34 34 32 33 34 36 31 | 6357 | 4423461|
|00001c90| 33 36 37 20 20 20 37 30 | 33 30 00 20 00 00 00 00 |367 70|30. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 2f 2a 20 43 68 65 63 6b | 20 6d 75 6c 74 69 70 6c |/* Check| multipl|
|00001e10| 65 20 70 61 73 73 77 64 | 20 66 69 6c 65 73 20 66 |e passwd| files f|
|00001e20| 6f 72 20 75 69 64 2f 6e | 61 6d 65 20 6f 76 65 72 |or uid/n|ame over|
|00001e30| 6c 61 70 20 2d 20 44 6f | 6e 20 4c 69 62 65 73 20 |lap - Do|n Libes |
|00001e40| 2a 2f 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |*/..#inc|lude <st|
|00001e50| 64 69 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dio.h>.#|include |
|00001e60| 3c 70 77 64 2e 68 3e 0a | 0a 23 64 65 66 69 6e 65 |<pwd.h>.|.#define|
|00001e70| 20 54 52 55 45 20 31 0a | 23 64 65 66 69 6e 65 20 | TRUE 1.|#define |
|00001e80| 46 41 4c 53 45 20 30 0a | 0a 73 74 72 75 63 74 20 |FALSE 0.|.struct |
|00001e90| 74 69 6e 79 70 61 73 73 | 77 64 20 7b 09 2f 2a 20 |tinypass|wd {./* |
|00001ea0| 6c 69 6b 65 20 73 74 72 | 75 63 74 20 70 77 64 20 |like str|uct pwd |
|00001eb0| 62 75 74 20 6d 69 73 73 | 69 6e 67 20 73 6f 6d 65 |but miss|ing some|
|00001ec0| 20 65 6e 74 72 69 65 73 | 20 2a 2f 0a 09 63 68 61 | entries| */..cha|
|00001ed0| 72 20 2a 6e 61 6d 65 3b | 0a 09 63 68 61 72 20 2a |r *name;|..char *|
|00001ee0| 64 69 72 3b 0a 09 73 74 | 72 75 63 74 20 74 69 6e |dir;..st|ruct tin|
|00001ef0| 79 70 61 73 73 77 64 20 | 2a 6e 65 78 74 3b 20 20 |ypasswd |*next; |
|00001f00| 2f 2a 20 6f 74 68 65 72 | 20 65 6e 74 72 69 65 73 |/* other| entries|
|00001f10| 20 6d 61 70 70 69 6e 67 | 20 74 6f 20 73 61 6d 65 | mapping| to same|
|00001f20| 20 75 69 64 20 2a 2f 0a | 09 63 68 61 72 20 2a 66 | uid */.|.char *f|
|00001f30| 69 6c 65 3b 09 09 20 20 | 2f 2a 20 66 69 6c 65 20 |ile;.. |/* file |
|00001f40| 74 68 69 73 20 65 6e 74 | 72 79 20 77 61 73 20 66 |this ent|ry was f|
|00001f50| 6f 75 6e 64 20 69 6e 20 | 2a 2f 0a 7d 3b 0a 0a 23 |ound in |*/.};..#|
|00001f60| 64 65 66 69 6e 65 20 4d | 49 4e 55 53 45 52 55 49 |define M|INUSERUI|
|00001f70| 44 09 32 30 09 2f 2a 20 | 64 6f 6e 27 74 20 63 68 |D.20./* |don't ch|
|00001f80| 65 63 6b 20 75 69 64 73 | 20 62 65 6c 6f 77 20 74 |eck uids| below t|
|00001f90| 68 69 73 20 66 6f 72 20 | 2a 2f 0a 09 09 09 09 2f |his for |*/...../|
|00001fa0| 2a 20 6e 61 6d 65 73 20 | 74 6f 20 6d 61 74 63 68 |* names |to match|
|00001fb0| 20 64 69 72 65 63 74 6f | 72 69 65 73 20 2a 2f 0a | directo|ries */.|
|00001fc0| 23 64 65 66 69 6e 65 20 | 4d 41 58 4c 49 4e 45 4c |#define |MAXLINEL|
|00001fd0| 45 4e 09 31 33 32 0a 23 | 64 65 66 69 6e 65 20 4d |EN.132.#|define M|
|00001fe0| 41 58 55 49 44 09 09 35 | 37 30 30 09 09 2f 2a 20 |AXUID..5|700../* |
|00001ff0| 6c 61 72 67 65 73 74 20 | 75 69 64 20 77 65 20 6d |largest |uid we m|
|00002000| 69 67 68 74 20 70 6f 73 | 73 69 62 6c 79 20 73 65 |ight pos|sibly se|
|00002010| 65 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 4e 4f 42 |e */.#de|fine NOB|
|00002020| 4f 44 59 09 09 2d 32 0a | 23 64 65 66 69 6e 65 20 |ODY..-2.|#define |
|00002030| 73 6b 69 70 75 69 64 28 | 78 29 09 28 78 20 3d 3d |skipuid(|x).(x ==|
|00002040| 20 4e 4f 42 4f 44 59 29 | 09 2f 2a 20 61 6e 79 20 | NOBODY)|./* any |
|00002050| 75 69 64 73 20 74 6f 20 | 73 6b 69 70 2e 20 20 49 |uids to |skip. I|
|00002060| 66 20 6e 6f 6e 65 20 2a | 2f 0a 09 09 09 09 09 2f |f none *|/....../|
|00002070| 2a 20 74 68 65 6e 20 6a | 75 73 74 20 64 65 66 69 |* then j|ust defi|
|00002080| 6e 65 20 74 6f 20 62 65 | 20 30 20 2a 2f 0a 0a 73 |ne to be| 0 */..s|
|00002090| 74 72 75 63 74 20 74 69 | 6e 79 70 61 73 73 77 64 |truct ti|nypasswd|
|000020a0| 20 2a 70 77 64 73 5b 4d | 41 58 55 49 44 5d 3b 0a | *pwds[M|AXUID];.|
|000020b0| 63 68 61 72 20 6c 69 6e | 65 5b 4d 41 58 4c 49 4e |char lin|e[MAXLIN|
|000020c0| 45 4c 45 4e 5d 3b 0a 73 | 74 72 75 63 74 20 74 69 |ELEN];.s|truct ti|
|000020d0| 6e 79 70 61 73 73 77 64 | 20 2a 70 77 64 3b 0a 0a |nypasswd| *pwd;..|
|000020e0| 63 68 61 72 20 2a 6d 61 | 6c 6c 6f 63 28 29 3b 0a |char *ma|lloc();.|
|000020f0| 63 68 61 72 20 2a 6e 65 | 77 73 74 72 28 29 3b 0a |char *ne|wstr();.|
|00002100| 63 68 61 72 20 2a 72 69 | 6e 64 65 78 28 29 3b 0a |char *ri|ndex();.|
|00002110| 73 74 72 75 63 74 20 70 | 61 73 73 77 64 20 2a 66 |struct p|asswd *f|
|00002120| 67 65 74 70 77 65 6e 74 | 28 29 3b 0a 23 64 65 66 |getpwent|();.#def|
|00002130| 69 6e 65 20 6e 65 77 28 | 74 79 70 65 29 09 28 74 |ine new(|type).(t|
|00002140| 79 70 65 20 2a 29 6d 61 | 6c 6c 6f 63 28 73 69 7a |ype *)ma|lloc(siz|
|00002150| 65 6f 66 28 74 79 70 65 | 29 29 0a 0a 6d 61 69 6e |eof(type|))..main|
|00002160| 28 61 72 67 63 2c 61 72 | 67 76 29 0a 69 6e 74 20 |(argc,ar|gv).int |
|00002170| 61 72 67 63 3b 0a 63 68 | 61 72 20 2a 2a 61 72 67 |argc;.ch|ar **arg|
|00002180| 76 3b 0a 7b 0a 09 69 6e | 74 20 66 69 6c 65 3b 0a |v;.{..in|t file;.|
|00002190| 09 69 6e 74 20 75 69 64 | 3b 0a 09 46 49 4c 45 20 |.int uid|;..FILE |
|000021a0| 2a 70 66 70 3b 0a 09 73 | 74 72 75 63 74 20 70 61 |*pfp;..s|truct pa|
|000021b0| 73 73 77 64 20 2a 73 74 | 61 74 69 63 70 77 64 3b |sswd *st|aticpwd;|
|000021c0| 0a 09 63 68 61 72 20 2a | 6c 65 61 66 3b 0a 0a 09 |..char *|leaf;...|
|000021d0| 66 6f 72 20 28 75 69 64 | 3d 30 3b 75 69 64 3c 4d |for (uid|=0;uid<M|
|000021e0| 41 58 55 49 44 3b 75 69 | 64 2b 2b 29 20 70 77 64 |AXUID;ui|d++) pwd|
|000021f0| 73 5b 75 69 64 5d 20 3d | 20 4e 55 4c 4c 3b 0a 0a |s[uid] =| NULL;..|
|00002200| 09 66 6f 72 20 28 66 69 | 6c 65 3d 31 3b 66 69 6c |.for (fi|le=1;fil|
|00002210| 65 3c 61 72 67 63 3b 66 | 69 6c 65 2b 2b 29 20 7b |e<argc;f|ile++) {|
|00002220| 0a 09 09 69 66 20 28 4e | 55 4c 4c 20 3d 3d 20 28 |...if (N|ULL == (|
|00002230| 70 66 70 20 3d 20 66 6f | 70 65 6e 28 61 72 67 76 |pfp = fo|pen(argv|
|00002240| 5b 66 69 6c 65 5d 2c 22 | 72 22 29 29 29 20 7b 0a |[file],"|r"))) {.|
|00002250| 09 09 09 70 65 72 72 6f | 72 28 61 72 67 76 5b 66 |...perro|r(argv[f|
|00002260| 69 6c 65 5d 29 3b 0a 09 | 09 09 63 6f 6e 74 69 6e |ile]);..|..contin|
|00002270| 75 65 3b 0a 09 09 7d 0a | 0a 09 09 77 68 69 6c 65 |ue;...}.|...while|
|00002280| 20 28 4e 55 4c 4c 20 21 | 3d 20 28 73 74 61 74 69 | (NULL !|= (stati|
|00002290| 63 70 77 64 20 3d 20 66 | 67 65 74 70 77 65 6e 74 |cpwd = f|getpwent|
|000022a0| 28 70 66 70 29 29 29 20 | 7b 0a 09 09 09 69 66 20 |(pfp))) |{....if |
|000022b0| 28 70 77 64 20 3d 3d 20 | 4e 55 4c 4c 29 20 7b 0a |(pwd == |NULL) {.|
|000022c0| 09 09 09 09 69 66 20 28 | 4e 55 4c 4c 20 3d 3d 20 |....if (|NULL == |
|000022d0| 28 70 77 64 20 3d 20 6e | 65 77 28 73 74 72 75 63 |(pwd = n|ew(struc|
|000022e0| 74 20 74 69 6e 79 70 61 | 73 73 77 64 29 29 29 20 |t tinypa|sswd))) |
|000022f0| 7b 0a 09 09 09 09 09 70 | 72 69 6e 74 66 28 22 6d |{......p|rintf("m|
|00002300| 61 6c 6c 6f 63 3a 20 6f | 75 74 20 6f 66 20 73 70 |alloc: o|ut of sp|
|00002310| 61 63 65 5c 6e 22 29 3b | 0a 09 09 09 09 09 65 78 |ace\n");|......ex|
|00002320| 69 74 28 2d 31 29 3b 0a | 09 09 09 09 7d 0a 09 09 |it(-1);.|....}...|
|00002330| 09 7d 0a 0a 09 09 09 2f | 2a 20 73 6b 69 70 20 53 |.}...../|* skip S|
|00002340| 75 6e 20 79 70 20 68 6f | 6f 6b 20 2a 2f 0a 09 09 |un yp ho|ok */...|
|00002350| 09 69 66 20 28 73 74 61 | 74 69 63 70 77 64 2d 3e |.if (sta|ticpwd->|
|00002360| 70 77 5f 6e 61 6d 65 5b | 30 5d 20 3d 3d 20 27 2b |pw_name[|0] == '+|
|00002370| 27 29 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 0a 09 09 |') conti|nue;....|
|00002380| 09 70 77 64 2d 3e 6e 61 | 6d 65 20 3d 20 6e 65 77 |.pwd->na|me = new|
|00002390| 73 74 72 28 73 74 61 74 | 69 63 70 77 64 2d 3e 70 |str(stat|icpwd->p|
|000023a0| 77 5f 6e 61 6d 65 29 3b | 0a 09 09 09 70 77 64 2d |w_name);|....pwd-|
|000023b0| 3e 64 69 72 20 3d 20 6e | 65 77 73 74 72 28 73 74 |>dir = n|ewstr(st|
|000023c0| 61 74 69 63 70 77 64 2d | 3e 70 77 5f 64 69 72 29 |aticpwd-|>pw_dir)|
|000023d0| 3b 0a 09 09 09 75 69 64 | 20 3d 20 73 74 61 74 69 |;....uid| = stati|
|000023e0| 63 70 77 64 2d 3e 70 77 | 5f 75 69 64 3b 0a 0a 09 |cpwd->pw|_uid;...|
|000023f0| 09 09 69 66 20 28 73 6b | 69 70 75 69 64 28 75 69 |..if (sk|ipuid(ui|
|00002400| 64 29 29 20 63 6f 6e 74 | 69 6e 75 65 3b 0a 09 09 |d)) cont|inue;...|
|00002410| 09 69 66 20 28 75 69 64 | 20 3c 20 30 20 7c 7c 20 |.if (uid| < 0 || |
|00002420| 75 69 64 20 3e 3d 20 4d | 41 58 55 49 44 29 20 7b |uid >= M|AXUID) {|
|00002430| 0a 09 09 09 09 70 72 69 | 6e 74 66 28 22 25 73 3a |.....pri|ntf("%s:|
|00002440| 20 75 69 64 20 25 64 20 | 6f 75 74 20 6f 66 20 72 | uid %d |out of r|
|00002450| 61 6e 67 65 5c 6e 22 2c | 0a 09 09 09 09 09 61 72 |ange\n",|......ar|
|00002460| 67 76 5b 66 69 6c 65 5d | 2c 75 69 64 29 3b 0a 09 |gv[file]|,uid);..|
|00002470| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 09 09 |...conti|nue;....|
|00002480| 7d 0a 0a 09 09 09 2f 2a | 20 63 68 65 63 6b 20 66 |}...../*| check f|
|00002490| 6f 72 20 6d 61 74 63 68 | 69 6e 67 20 64 69 72 65 |or match|ing dire|
|000024a0| 63 74 6f 72 69 65 73 20 | 6f 6e 20 6c 61 72 67 65 |ctories |on large|
|000024b0| 20 75 69 64 73 20 2a 2f | 0a 09 09 09 69 66 20 28 | uids */|....if (|
|000024c0| 75 69 64 20 3e 20 4d 49 | 4e 55 53 45 52 55 49 44 |uid > MI|NUSERUID|
|000024d0| 29 20 7b 0a 09 09 09 09 | 69 66 20 28 30 20 3d 3d |) {.....|if (0 ==|
|000024e0| 20 28 6c 65 61 66 20 3d | 20 72 69 6e 64 65 78 28 | (leaf =| rindex(|
|000024f0| 70 77 64 2d 3e 64 69 72 | 2c 27 2f 27 29 29 29 20 |pwd->dir|,'/'))) |
|00002500| 7b 0a 09 09 09 09 09 70 | 72 69 6e 74 66 28 22 25 |{......p|rintf("%|
|00002510| 73 3a 20 6e 6f 20 6c 65 | 61 66 20 69 6e 20 64 69 |s: no le|af in di|
|00002520| 72 65 63 74 6f 72 79 20 | 25 73 5c 6e 22 2c 0a 09 |rectory |%s\n",..|
|00002530| 09 09 09 09 09 61 72 67 | 76 5b 66 69 6c 65 5d 2c |.....arg|v[file],|
|00002540| 6c 69 6e 65 29 3b 0a 09 | 09 09 09 7d 20 65 6c 73 |line);..|...} els|
|00002550| 65 20 69 66 20 28 30 20 | 21 3d 20 73 74 72 63 6d |e if (0 |!= strcm|
|00002560| 70 28 70 77 64 2d 3e 6e | 61 6d 65 2c 31 2b 6c 65 |p(pwd->n|ame,1+le|
|00002570| 61 66 29 29 20 7b 0a 09 | 09 09 09 09 70 72 69 6e |af)) {..|....prin|
|00002580| 74 66 28 22 25 73 3a 20 | 6e 69 63 6b 6e 61 6d 65 |tf("%s: |nickname|
|00002590| 20 25 73 20 68 61 73 20 | 64 69 72 65 63 74 6f 72 | %s has |director|
|000025a0| 79 20 25 73 5c 6e 22 2c | 0a 09 09 09 09 09 09 61 |y %s\n",|.......a|
|000025b0| 72 67 76 5b 66 69 6c 65 | 5d 2c 70 77 64 2d 3e 6e |rgv[file|],pwd->n|
|000025c0| 61 6d 65 2c 70 77 64 2d | 3e 64 69 72 29 3b 0a 09 |ame,pwd-|>dir);..|
|000025d0| 09 09 09 7d 0a 09 09 09 | 7d 0a 0a 09 09 09 70 77 |...}....|}.....pw|
|000025e0| 64 2d 3e 66 69 6c 65 20 | 3d 20 61 72 67 76 5b 66 |d->file |= argv[f|
|000025f0| 69 6c 65 5d 3b 0a 09 09 | 09 70 77 64 2d 3e 6e 65 |ile];...|.pwd->ne|
|00002600| 78 74 20 3d 20 4e 55 4c | 4c 3b 0a 0a 09 09 09 69 |xt = NUL|L;.....i|
|00002610| 66 20 28 21 68 61 73 68 | 5f 70 77 64 28 26 70 77 |f (!hash|_pwd(&pw|
|00002620| 64 73 5b 75 69 64 5d 2c | 70 77 64 29 29 20 7b 0a |ds[uid],|pwd)) {.|
|00002630| 09 09 09 09 66 72 65 65 | 28 70 77 64 2d 3e 6e 61 |....free|(pwd->na|
|00002640| 6d 65 29 3b 0a 09 09 09 | 09 66 72 65 65 28 70 77 |me);....|.free(pw|
|00002650| 64 2d 3e 64 69 72 29 3b | 0a 09 09 09 7d 20 65 6c |d->dir);|....} el|
|00002660| 73 65 20 70 77 64 20 3d | 20 4e 55 4c 4c 3b 0a 09 |se pwd =| NULL;..|
|00002670| 09 7d 0a 09 09 66 63 6c | 6f 73 65 28 70 66 70 29 |.}...fcl|ose(pfp)|
|00002680| 3b 0a 09 7d 0a 0a 09 2f | 2a 20 73 63 61 6e 20 64 |;..}.../|* scan d|
|00002690| 6f 77 6e 20 6c 69 73 74 | 20 6c 6f 6f 6b 69 6e 67 |own list| looking|
|000026a0| 20 66 6f 72 20 64 75 70 | 73 20 2a 2f 0a 09 66 6f | for dup|s */..fo|
|000026b0| 72 20 28 75 69 64 3d 30 | 3b 75 69 64 3c 4d 41 58 |r (uid=0|;uid<MAX|
|000026c0| 55 49 44 3b 75 69 64 2b | 2b 29 20 7b 0a 09 09 2f |UID;uid+|+) {.../|
|000026d0| 2a 20 6e 6f 20 70 77 64 | 20 77 69 74 68 20 74 68 |* no pwd| with th|
|000026e0| 69 73 20 75 69 64 20 2a | 2f 0a 09 09 69 66 20 28 |is uid *|/...if (|
|000026f0| 70 77 64 73 5b 75 69 64 | 5d 20 3d 3d 20 4e 55 4c |pwds[uid|] == NUL|
|00002700| 4c 29 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 0a 09 09 |L) conti|nue;....|
|00002710| 2f 2a 20 6e 6f 20 6f 74 | 68 65 72 20 70 77 64 20 |/* no ot|her pwd |
|00002720| 77 69 74 68 20 74 68 69 | 73 20 75 69 64 20 2a 2f |with thi|s uid */|
|00002730| 0a 09 09 69 66 20 28 70 | 77 64 73 5b 75 69 64 5d |...if (p|wds[uid]|
|00002740| 2d 3e 6e 65 78 74 20 3d | 3d 20 4e 55 4c 4c 29 20 |->next =|= NULL) |
|00002750| 63 6f 6e 74 69 6e 75 65 | 3b 0a 0a 09 09 70 72 69 |continue|;....pri|
|00002760| 6e 74 5f 70 77 64 28 75 | 69 64 29 3b 0a 09 7d 0a |nt_pwd(u|id);..}.|
|00002770| 7d 0a 0a 70 72 69 6e 74 | 5f 70 77 64 28 75 69 64 |}..print|_pwd(uid|
|00002780| 29 0a 69 6e 74 20 75 69 | 64 3b 0a 7b 0a 09 73 74 |).int ui|d;.{..st|
|00002790| 72 75 63 74 20 74 69 6e | 79 70 61 73 73 77 64 20 |ruct tin|ypasswd |
|000027a0| 2a 70 3b 0a 0a 09 66 6f | 72 20 28 70 20 3d 20 70 |*p;...fo|r (p = p|
|000027b0| 77 64 73 5b 75 69 64 5d | 3b 70 3b 70 3d 70 2d 3e |wds[uid]|;p;p=p->|
|000027c0| 6e 65 78 74 29 20 7b 0a | 09 09 70 72 69 6e 74 66 |next) {.|..printf|
|000027d0| 28 22 25 36 64 20 25 32 | 30 73 20 25 34 30 73 5c |("%6d %2|0s %40s\|
|000027e0| 6e 22 2c 75 69 64 2c 70 | 2d 3e 6e 61 6d 65 2c 70 |n",uid,p|->name,p|
|000027f0| 2d 3e 66 69 6c 65 29 3b | 0a 09 7d 0a 7d 0a 0a 2f |->file);|..}.}../|
|00002800| 2a 20 72 65 74 75 72 6e | 73 20 54 52 55 45 20 69 |* return|s TRUE i|
|00002810| 66 20 70 77 64 20 73 74 | 6f 72 65 64 2c 20 46 41 |f pwd st|ored, FA|
|00002820| 4c 53 45 20 69 66 20 6e | 6f 74 20 73 74 6f 72 65 |LSE if n|ot store|
|00002830| 64 20 2a 2f 0a 68 61 73 | 68 5f 70 77 64 28 70 65 |d */.has|h_pwd(pe|
|00002840| 70 2c 70 29 0a 73 74 72 | 75 63 74 20 74 69 6e 79 |p,p).str|uct tiny|
|00002850| 70 61 73 73 77 64 20 2a | 2a 70 65 70 3b 09 2f 2a |passwd *|*pep;./*|
|00002860| 20 70 77 64 73 20 65 6e | 74 72 79 20 70 6f 69 6e | pwds en|try poin|
|00002870| 74 65 72 20 2a 2f 0a 73 | 74 72 75 63 74 20 74 69 |ter */.s|truct ti|
|00002880| 6e 79 70 61 73 73 77 64 | 20 2a 70 3b 0a 7b 0a 09 |nypasswd| *p;.{..|
|00002890| 69 6e 74 20 64 69 66 66 | 65 72 65 6e 74 20 3d 20 |int diff|erent = |
|000028a0| 46 41 4c 53 45 3b 0a 09 | 73 74 72 75 63 74 20 74 |FALSE;..|struct t|
|000028b0| 69 6e 79 70 61 73 73 77 | 64 20 2a 70 70 74 72 3b |inypassw|d *pptr;|
|000028c0| 20 20 2f 2a 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 | /* poi|nter to |
|000028d0| 6f 70 65 6e 2d 68 61 73 | 68 65 64 20 70 77 64 20 |open-has|hed pwd |
|000028e0| 65 6e 74 72 69 65 73 20 | 2a 2f 0a 09 73 74 72 75 |entries |*/..stru|
|000028f0| 63 74 20 74 69 6e 79 70 | 61 73 73 77 64 20 2a 6c |ct tinyp|asswd *l|
|00002900| 61 73 74 70 3b 20 2f 2a | 20 77 68 65 72 65 20 74 |astp; /*| where t|
|00002910| 6f 20 61 70 70 65 6e 64 | 20 6e 65 77 20 73 74 72 |o append| new str|
|00002920| 75 63 74 20 70 61 73 73 | 77 64 20 2a 2f 0a 0a 09 |uct pass|wd */...|
|00002930| 69 66 20 28 4e 55 4c 4c | 20 3d 3d 20 2a 70 65 70 |if (NULL| == *pep|
|00002940| 29 20 7b 0a 09 09 2a 70 | 65 70 20 3d 20 70 3b 0a |) {...*p|ep = p;.|
|00002950| 09 09 72 65 74 75 72 6e | 28 54 52 55 45 29 3b 0a |..return|(TRUE);.|
|00002960| 09 7d 0a 0a 09 66 6f 72 | 20 28 70 70 74 72 20 3d |.}...for| (pptr =|
|00002970| 20 2a 70 65 70 3b 70 70 | 74 72 3b 70 70 74 72 3d | *pep;pp|tr;pptr=|
|00002980| 70 70 74 72 2d 3e 6e 65 | 78 74 29 20 7b 0a 09 09 |pptr->ne|xt) {...|
|00002990| 6c 61 73 74 70 20 3d 20 | 70 70 74 72 3b 0a 09 09 |lastp = |pptr;...|
|000029a0| 69 66 20 28 64 69 66 66 | 65 72 65 6e 74 29 20 63 |if (diff|erent) c|
|000029b0| 6f 6e 74 69 6e 75 65 3b | 09 2f 2a 20 6a 75 73 74 |ontinue;|./* just|
|000029c0| 20 67 65 74 20 74 6f 20 | 65 6e 64 20 6f 66 20 6c | get to |end of l|
|000029d0| 69 73 74 20 2a 2f 0a 09 | 09 69 66 20 28 30 20 21 |ist */..|.if (0 !|
|000029e0| 3d 20 73 74 72 63 6d 70 | 28 70 70 74 72 2d 3e 6e |= strcmp|(pptr->n|
|000029f0| 61 6d 65 2c 70 2d 3e 6e | 61 6d 65 29 29 20 64 69 |ame,p->n|ame)) di|
|00002a00| 66 66 65 72 65 6e 74 20 | 3d 20 54 52 55 45 3b 0a |fferent |= TRUE;.|
|00002a10| 09 7d 0a 09 69 66 20 28 | 64 69 66 66 65 72 65 6e |.}..if (|differen|
|00002a20| 74 29 20 6c 61 73 74 70 | 2d 3e 6e 65 78 74 20 3d |t) lastp|->next =|
|00002a30| 20 70 3b 0a 0a 09 72 65 | 74 75 72 6e 28 64 69 66 | p;...re|turn(dif|
|00002a40| 66 65 72 65 6e 74 29 3b | 0a 7d 0a 0a 63 68 61 72 |ferent);|.}..char|
|00002a50| 20 2a 6e 65 77 73 74 72 | 28 73 29 0a 63 68 61 72 | *newstr|(s).char|
|00002a60| 20 2a 73 3b 0a 7b 0a 09 | 63 68 61 72 20 2a 6e 65 | *s;.{..|char *ne|
|00002a70| 77 73 3b 0a 0a 09 69 66 | 20 28 21 28 6e 65 77 73 |ws;...if| (!(news|
|00002a80| 20 3d 20 6d 61 6c 6c 6f | 63 28 31 2b 73 74 72 6c | = mallo|c(1+strl|
|00002a90| 65 6e 28 73 29 29 29 29 | 20 7b 0a 09 09 70 72 69 |en(s))))| {...pri|
|00002aa0| 6e 74 66 28 22 6e 65 77 | 73 74 72 3a 20 6f 75 74 |ntf("new|str: out|
|00002ab0| 20 6f 66 20 73 70 61 63 | 65 5c 6e 22 29 3b 0a 09 | of spac|e\n");..|
|00002ac0| 09 65 78 69 74 28 30 29 | 3b 0a 09 7d 0a 09 73 74 |.exit(0)|;..}..st|
|00002ad0| 72 63 70 79 28 6e 65 77 | 73 2c 73 29 3b 0a 09 72 |rcpy(new|s,s);..r|
|00002ae0| 65 74 75 72 6e 28 6e 65 | 77 73 29 3b 0a 7d 0a 00 |eturn(ne|ws);.}..|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 70 77 64 69 66 66 20 74 | 61 6b 65 73 20 6d 75 6c |pwdiff t|akes mul|
|00003010| 74 69 70 6c 65 20 70 61 | 73 73 77 6f 72 64 20 66 |tiple pa|ssword f|
|00003020| 69 6c 65 73 20 61 6e 64 | 20 63 6f 6d 70 61 72 65 |iles and| compare|
|00003030| 73 20 74 68 65 6d 20 69 | 6e 20 61 6e 0a 69 6e 74 |s them i|n an.int|
|00003040| 65 6c 6c 69 67 65 6e 74 | 20 77 61 79 2e 20 20 46 |elligent| way. F|
|00003050| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 69 74 20 |or insta|nce, it |
|00003060| 77 69 6c 6c 20 72 65 70 | 6f 72 74 20 6f 6e 20 64 |will rep|ort on d|
|00003070| 69 66 66 65 72 65 6e 74 | 20 6e 61 6d 65 73 0a 77 |ifferent| names.w|
|00003080| 69 74 68 20 74 68 65 20 | 73 61 6d 65 20 75 69 64 |ith the |same uid|
|00003090| 2c 20 62 75 74 20 6c 65 | 74 20 70 61 73 73 20 74 |, but le|t pass t|
|000030a0| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 77 69 74 |he same |name wit|
|000030b0| 68 20 74 68 65 20 73 61 | 6d 65 20 75 69 64 2e 0a |h the sa|me uid..|
|000030c0| 0a 49 20 77 72 6f 74 65 | 20 69 74 20 6f 6e 65 20 |.I wrote| it one |
|000030d0| 64 61 79 20 77 68 65 6e | 20 77 65 20 68 61 64 20 |day when| we had |
|000030e0| 74 6f 20 6a 6f 69 6e 20 | 74 77 6f 20 70 61 73 73 |to join |two pass|
|000030f0| 77 6f 72 64 20 66 69 6c | 65 73 20 66 72 6f 6d 0a |word fil|es from.|
|00003100| 64 69 66 66 65 72 65 6e | 74 20 6d 61 63 68 69 6e |differen|t machin|
|00003110| 65 73 2e 0a 0a 57 68 61 | 74 20 68 61 70 70 65 6e |es...Wha|t happen|
|00003120| 65 64 20 77 61 73 20 74 | 68 61 74 20 77 65 20 73 |ed was t|hat we s|
|00003130| 74 61 72 74 65 64 20 6f | 75 74 20 77 69 74 68 20 |tarted o|ut with |
|00003140| 6f 6e 65 20 73 68 61 72 | 65 64 20 70 61 73 73 77 |one shar|ed passw|
|00003150| 6f 72 64 20 66 69 6c 65 | 20 69 6e 0a 61 20 73 6d |ord file| in.a sm|
|00003160| 61 6c 6c 20 4c 41 4e 20 | 65 6e 76 69 72 6f 6e 6d |all LAN |environm|
|00003170| 65 6e 74 2e 20 20 4f 76 | 65 72 20 74 69 6d 65 2c |ent. Ov|er time,|
|00003180| 20 6d 6f 72 65 20 6d 61 | 63 68 69 6e 65 73 20 63 | more ma|chines c|
|00003190| 61 6d 65 20 6f 6e 2d 6c | 69 6e 65 2e 0a 4e 65 77 |ame on-l|ine..New|
|000031a0| 20 61 64 6d 69 6e 69 73 | 74 72 61 74 6f 72 73 20 | adminis|trators |
|000031b0| 73 6f 6d 65 74 69 6d 65 | 73 20 73 68 61 72 65 64 |sometime|s shared|
|000031c0| 20 74 68 65 20 6f 6c 64 | 20 70 61 73 73 77 6f 72 | the old| passwor|
|000031d0| 64 20 66 69 6c 65 2c 20 | 61 6e 64 0a 73 6f 6d 65 |d file, |and.some|
|000031e0| 74 69 6d 65 73 20 6a 75 | 73 74 20 63 6f 70 69 65 |times ju|st copie|
|000031f0| 64 20 69 74 2e 20 20 47 | 72 61 64 75 61 6c 6c 79 |d it. G|radually|
|00003200| 20 69 74 20 64 69 76 65 | 72 67 65 64 2c 20 73 6f | it dive|rged, so|
|00003210| 20 74 68 61 74 20 73 6f | 6d 65 20 6f 66 20 74 68 | that so|me of th|
|00003220| 65 0a 75 69 64 73 20 6d | 61 70 70 65 64 20 74 6f |e.uids m|apped to|
|00003230| 20 6d 75 6c 74 69 70 6c | 65 20 75 73 65 72 73 20 | multipl|e users |
|00003240| 61 63 72 6f 73 73 20 74 | 68 65 20 4c 41 4e 2e 0a |across t|he LAN..|
|00003250| 0a 45 76 65 6e 74 75 61 | 6c 6c 79 20 6f 75 72 20 |.Eventua|lly our |
|00003260| 4c 41 4e 20 67 6f 74 20 | 62 69 67 20 65 6e 6f 75 |LAN got |big enou|
|00003270| 67 68 2c 20 73 6f 20 74 | 68 61 74 20 77 65 20 68 |gh, so t|hat we h|
|00003280| 69 72 65 64 20 61 20 73 | 69 74 65 77 69 64 65 20 |ired a s|itewide |
|00003290| 61 64 6d 69 6e 2c 0a 61 | 6e 64 20 68 65 20 77 61 |admin,.a|nd he wa|
|000032a0| 6e 74 65 64 20 74 6f 20 | 75 73 65 20 6f 6e 65 20 |nted to |use one |
|000032b0| 63 6f 6d 6d 6f 6e 20 70 | 61 73 73 77 6f 72 64 20 |common p|assword |
|000032c0| 66 69 6c 65 2e 20 20 54 | 68 69 73 20 6d 61 6b 65 |file. T|his make|
|000032d0| 73 20 4e 46 53 20 61 63 | 63 65 73 73 0a 6d 75 63 |s NFS ac|cess.muc|
|000032e0| 68 20 65 61 73 69 65 72 | 2c 20 66 6f 72 20 65 78 |h easier|, for ex|
|000032f0| 61 6d 70 6c 65 2e 20 20 | 53 6f 20 49 20 77 72 6f |ample. |So I wro|
|00003300| 74 65 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |te this |program |
|00003310| 74 6f 20 73 6f 6c 76 65 | 20 68 69 73 0a 70 72 6f |to solve| his.pro|
|00003320| 62 6c 65 6d 2e 20 20 49 | 20 66 69 67 75 72 65 20 |blem. I| figure |
|00003330| 74 68 69 73 20 76 65 72 | 79 20 73 61 6d 65 20 74 |this ver|y same t|
|00003340| 68 69 6e 67 20 6d 75 73 | 74 20 68 61 70 70 65 6e |hing mus|t happen|
|00003350| 20 74 6f 20 6c 6f 74 73 | 20 6f 66 20 73 69 74 65 | to lots| of site|
|00003360| 73 2c 0a 73 6f 20 74 6f | 20 73 61 76 65 20 79 6f |s,.so to| save yo|
|00003370| 75 20 73 6f 6d 65 20 67 | 72 69 65 66 2c 20 68 65 |u some g|rief, he|
|00003380| 72 65 20 69 74 20 69 73 | 2e 20 20 53 65 6e 64 20 |re it is|. Send |
|00003390| 62 75 67 73 2c 20 69 6d | 70 72 6f 76 65 6d 65 6e |bugs, im|provemen|
|000033a0| 74 73 2c 20 61 6e 64 0a | 63 61 73 68 20 74 6f 20 |ts, and.|cash to |
|000033b0| 6d 65 2e 0a 0a 44 6f 6e | 20 4c 69 62 65 73 0a 4e |me...Don| Libes.N|
|000033c0| 61 74 69 6f 6e 61 6c 20 | 42 75 72 65 61 75 20 6f |ational |Bureau o|
|000033d0| 66 20 53 74 61 6e 64 61 | 72 64 73 0a 42 6c 64 67 |f Standa|rds.Bldg|
|000033e0| 20 32 32 30 2c 20 52 6d | 20 41 2d 31 32 37 0a 47 | 220, Rm| A-127.G|
|000033f0| 61 69 74 68 65 72 73 62 | 75 72 67 2c 20 4d 44 20 |aithersb|urg, MD |
|00003400| 20 32 30 38 39 39 0a 28 | 33 30 31 29 20 39 37 35 | 20899.(|301) 975|
|00003410| 2d 33 35 33 35 0a 6c 69 | 62 65 73 40 63 6d 65 2d |-3535.li|bes@cme-|
|00003420| 64 75 72 65 72 2e 61 72 | 70 61 0a 75 75 6e 65 74 |durer.ar|pa.uunet|
|00003430| 21 63 6d 65 2d 64 75 72 | 65 72 21 6c 69 62 65 73 |!cme-dur|er!libes|
|00003440| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 70 77 64 69 66 66 2f 70 | 77 64 69 66 66 2e 38 00 |pwdiff/p|wdiff.8.|
|00003610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003670| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00003680| 20 20 20 31 33 32 34 20 | 20 34 34 32 33 34 36 31 | 1324 | 4423461|
|00003690| 33 36 34 20 20 20 36 37 | 33 37 00 20 00 00 00 00 |364 67|37. ....|
|000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 2e 54 48 20 50 57 44 49 | 46 46 20 38 20 22 32 35 |.TH PWDI|FF 8 "25|
|00003810| 20 4a 75 6e 65 20 31 39 | 38 38 22 0a 2e 53 48 20 | June 19|88"..SH |
|00003820| 4e 41 4d 45 0a 70 77 64 | 69 66 66 20 5c 2d 20 66 |NAME.pwd|iff \- f|
|00003830| 69 6e 64 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |ind diff|erences |
|00003840| 69 6e 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |in passw|ord file|
|00003850| 73 0a 2e 53 48 20 53 59 | 4e 4f 50 53 49 53 0a 70 |s..SH SY|NOPSIS.p|
|00003860| 77 64 69 66 66 20 66 69 | 6c 65 31 20 66 69 6c 65 |wdiff fi|le1 file|
|00003870| 32 20 66 69 6c 65 33 20 | 2e 2e 2e 0a 2e 53 48 20 |2 file3 |.....SH |
|00003880| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 54 68 69 73 |DESCRIPT|ION.This|
|00003890| 20 70 72 6f 67 72 61 6d | 20 63 6f 6d 70 61 72 65 | program| compare|
|000038a0| 73 20 6d 75 6c 74 69 70 | 6c 65 20 70 61 73 73 77 |s multip|le passw|
|000038b0| 6f 72 64 20 66 69 6c 65 | 73 20 61 6e 64 20 72 65 |ord file|s and re|
|000038c0| 70 6f 72 74 73 20 6f 6e | 20 75 69 64 20 6f 72 0a |ports on| uid or.|
|000038d0| 6e 61 6d 65 20 63 6f 6e | 66 6c 69 63 74 73 20 74 |name con|flicts t|
|000038e0| 68 61 74 20 77 6f 75 6c | 64 20 70 72 65 76 65 6e |hat woul|d preven|
|000038f0| 74 20 74 68 65 20 66 69 | 6c 65 73 20 66 72 6f 6d |t the fi|les from|
|00003900| 20 62 65 69 6e 67 20 6d | 65 72 67 65 64 2e 0a 2e | being m|erged...|
|00003910| 50 50 0a 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |PP.For e|xample, |
|00003920| 69 66 20 75 69 64 20 32 | 37 20 69 73 20 64 6f 6e |if uid 2|7 is don|
|00003930| 20 69 6e 20 66 69 6c 65 | 31 20 61 6e 64 20 73 75 | in file|1 and su|
|00003940| 73 61 6e 20 69 6e 20 66 | 69 6c 65 32 2c 20 74 68 |san in f|ile2, th|
|00003950| 69 73 20 77 69 6c 6c 20 | 62 65 0a 64 65 74 65 63 |is will |be.detec|
|00003960| 74 65 64 2e 0a 2e 50 50 | 0a 54 68 65 20 70 72 6f |ted...PP|.The pro|
|00003970| 67 72 61 6d 20 61 6c 73 | 6f 20 6e 6f 74 65 73 20 |gram als|o notes |
|00003980| 73 79 6e 74 61 63 74 69 | 63 61 6c 6c 79 20 69 6e |syntacti|cally in|
|00003990| 63 6f 72 72 65 63 74 20 | 6c 69 6e 65 73 20 61 6e |correct |lines an|
|000039a0| 64 20 6e 69 63 6b 6e 61 | 6d 65 73 0a 28 74 68 65 |d nickna|mes.(the|
|000039b0| 20 75 73 65 72 20 6e 61 | 6d 65 20 64 6f 65 73 20 | user na|me does |
|000039c0| 6e 6f 74 20 6d 61 74 63 | 68 20 74 68 65 20 68 6f |not matc|h the ho|
|000039d0| 6d 65 20 64 69 72 65 63 | 74 6f 72 79 29 2e 20 20 |me direc|tory). |
|000039e0| 53 69 6e 63 65 20 6d 61 | 6e 79 20 6c 6f 77 0a 75 |Since ma|ny low.u|
|000039f0| 69 64 73 20 61 72 65 20 | 6e 69 63 6b 6e 61 6d 65 |ids are |nickname|
|00003a00| 73 20 28 72 6f 6f 74 2c | 20 75 75 63 70 2c 20 65 |s (root,| uucp, e|
|00003a10| 74 63 2e 29 20 61 20 63 | 6f 6d 70 69 6c 65 2d 74 |tc.) a c|ompile-t|
|00003a20| 69 6d 65 20 63 6f 6e 73 | 74 61 6e 74 20 63 6f 6e |ime cons|tant con|
|00003a30| 74 72 6f 6c 73 0a 61 20 | 63 75 74 2d 6f 66 66 20 |trols.a |cut-off |
|00003a40| 62 65 6c 6f 77 20 77 68 | 69 63 68 20 6e 69 63 6b |below wh|ich nick|
|00003a50| 6e 61 6d 65 73 20 61 72 | 65 20 69 67 6e 6f 72 65 |names ar|e ignore|
|00003a60| 64 2e 20 20 41 73 20 64 | 69 73 74 72 69 62 75 74 |d. As d|istribut|
|00003a70| 65 64 2c 20 75 69 64 73 | 0a 62 65 6c 6f 77 20 32 |ed, uids|.below 2|
|00003a80| 30 20 61 72 65 20 6e 6f | 74 20 63 68 65 63 6b 65 |0 are no|t checke|
|00003a90| 64 20 66 6f 72 20 6e 69 | 63 6b 6e 61 6d 65 73 2e |d for ni|cknames.|
|00003aa0| 0a 2e 53 48 20 41 55 54 | 48 4f 52 0a 44 6f 6e 20 |..SH AUT|HOR.Don |
|00003ab0| 4c 69 62 65 73 2c 20 4e | 61 74 69 6f 6e 61 6c 20 |Libes, N|ational |
|00003ac0| 42 75 72 65 61 75 20 6f | 66 20 53 74 61 6e 64 61 |Bureau o|f Standa|
|00003ad0| 72 64 73 0a 53 20 61 63 | 63 65 73 73 0a 6d 75 63 |rds.S ac|cess.muc|
|00003ae0| 68 20 65 61 73 69 65 72 | 2c 20 66 6f 72 20 65 78 |h easier|, for ex|
|00003af0| 61 6d 70 6c 65 2e 20 20 | 53 6f 20 49 20 77 72 6f |ample. |So I wro|
|00003b00| 74 65 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |te this |program |
|00003b10| 74 6f 20 73 6f 6c 76 65 | 20 68 69 73 0a 70 72 6f |to solve| his.pro|
|00003b20| 62 6c 65 6d 2e 20 20 49 | 20 66 69 67 75 72 65 20 |blem. I| figure |
|00003b30| 74 68 69 73 20 76 65 72 | 79 20 73 61 6d 65 20 74 |this ver|y same t|
|00003b40| 68 69 6e 67 20 6d 75 73 | 74 20 68 61 70 70 65 6e |hing mus|t happen|
|00003b50| 20 74 6f 20 6c 6f 74 73 | 20 6f 66 20 73 69 74 65 | to lots| of site|
|00003b60| 73 2c 0a 73 6f 20 74 6f | 20 73 61 76 65 20 79 6f |s,.so to| save yo|
|00003b70| 75 20 73 6f 6d 65 20 67 | 72 69 65 66 2c 20 68 65 |u some g|rief, he|
|00003b80| 72 65 20 69 74 20 69 73 | 2e 20 20 53 65 6e 64 20 |re it is|. Send |
|00003b90| 62 75 67 73 2c 20 69 6d | 70 72 6f 76 65 6d 65 6e |bugs, im|provemen|
|00003ba0| 74 73 2c 20 61 6e 64 0a | 63 61 73 68 20 74 6f 20 |ts, and.|cash to |
|00003bb0| 6d 65 2e 0a 0a 44 6f 6e | 20 4c 69 62 65 73 0a 4e |me...Don| Libes.N|
|00003bc0| 61 74 69 6f 6e 61 6c 20 | 42 75 72 65 61 75 20 6f |ational |Bureau o|
|00003bd0| 66 20 53 74 61 6e 64 61 | 72 64 73 0a 42 6c 64 67 |f Standa|rds.Bldg|
|00003be0| 20 32 32 30 2c 20 52 6d | 20 41 2d 31 32 37 0a 47 | 220, Rm| A-127.G|
|00003bf0| 61 69 74 68 65 72 73 62 | 75 72 67 2c 20 4d 44 20 |aithersb|urg, MD |
|00003c00| 70 77 64 69 66 66 2f 70 | 77 64 69 66 66 2e 63 00 |pwdiff/p|wdiff.c.|
|00003c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003c70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00003c80| 20 20 20 36 33 35 37 20 | 20 34 34 32 33 34 36 31 | 6357 | 4423461|
|00003c90| 33 36 37 20 20 20 37 30 | 33 30 00 20 00 00 00 00 |367 70|30. ....|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 2f 2a 20 43 68 65 63 6b | 20 6d 75 6c 74 69 70 6c |/* Check| multipl|
|00003e10| 65 20 70 61 73 73 77 64 | 20 66 69 6c 65 73 20 66 |e passwd| files f|
|00003e20| 6f 72 20 75 69 64 2f 6e | 61 6d 65 20 6f 76 65 72 |or uid/n|ame over|
|00003e30| 6c 61 70 20 2d 20 44 6f | 6e 20 4c 69 62 65 73 20 |lap - Do|n Libes |
|00003e40| 2a 2f 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |*/..#inc|lude <st|
|00003e50| 64 69 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dio.h>.#|include |
|00003e60| 3c 70 77 64 2e 68 3e 0a | 0a 23 64 65 66 69 6e 65 |<pwd.h>.|.#define|
|00003e70| 20 54 52 55 45 20 31 0a | 23 64 65 66 69 6e 65 20 | TRUE 1.|#define |
|00003e80| 46 41 4c 53 45 20 30 0a | 0a 73 74 72 75 63 74 20 |FALSE 0.|.struct |
|00003e90| 74 69 6e 79 70 61 73 73 | 77 64 20 7b 09 2f 2a 20 |tinypass|wd {./* |
|00003ea0| 6c 69 6b 65 20 73 74 72 | 75 63 74 20 70 77 64 20 |like str|uct pwd |
|00003eb0| 62 75 74 20 6d 69 73 73 | 69 6e 67 20 73 6f 6d 65 |but miss|ing some|
|00003ec0| 20 65 6e 74 72 69 65 73 | 20 2a 2f 0a 09 63 68 61 | entries| */..cha|
|00003ed0| 72 20 2a 6e 61 6d 65 3b | 0a 09 63 68 61 72 20 2a |r *name;|..char *|
|00003ee0| 64 69 72 3b 0a 09 73 74 | 72 75 63 74 20 74 69 6e |dir;..st|ruct tin|
|00003ef0| 79 70 61 73 73 77 64 20 | 2a 6e 65 78 74 3b 20 20 |ypasswd |*next; |
|00003f00| 2f 2a 20 6f 74 68 65 72 | 20 65 6e 74 72 69 65 73 |/* other| entries|
|00003f10| 20 6d 61 70 70 69 6e 67 | 20 74 6f 20 73 61 6d 65 | mapping| to same|
|00003f20| 20 75 69 64 20 2a 2f 0a | 09 63 68 61 72 20 2a 66 | uid */.|.char *f|
|00003f30| 69 6c 65 3b 09 09 20 20 | 2f 2a 20 66 69 6c 65 20 |ile;.. |/* file |
|00003f40| 74 68 69 73 20 65 6e 74 | 72 79 20 77 61 73 20 66 |this ent|ry was f|
|00003f50| 6f 75 6e 64 20 69 6e 20 | 2a 2f 0a 7d 3b 0a 0a 23 |ound in |*/.};..#|
|00003f60| 64 65 66 69 6e 65 20 4d | 49 4e 55 53 45 52 55 49 |define M|INUSERUI|
|00003f70| 44 09 32 30 09 2f 2a 20 | 64 6f 6e 27 74 20 63 68 |D.20./* |don't ch|
|00003f80| 65 63 6b 20 75 69 64 73 | 20 62 65 6c 6f 77 20 74 |eck uids| below t|
|00003f90| 68 69 73 20 66 6f 72 20 | 2a 2f 0a 09 09 09 09 2f |his for |*/...../|
|00003fa0| 2a 20 6e 61 6d 65 73 20 | 74 6f 20 6d 61 74 63 68 |* names |to match|
|00003fb0| 20 64 69 72 65 63 74 6f | 72 69 65 73 20 2a 2f 0a | directo|ries */.|
|00003fc0| 23 64 65 66 69 6e 65 20 | 4d 41 58 4c 49 4e 45 4c |#define |MAXLINEL|
|00003fd0| 45 4e 09 31 33 32 0a 23 | 64 65 66 69 6e 65 20 4d |EN.132.#|define M|
|00003fe0| 41 58 55 49 44 09 09 35 | 37 30 30 09 09 2f 2a 20 |AXUID..5|700../* |
|00003ff0| 6c 61 72 67 65 73 74 20 | 75 69 64 20 77 65 20 6d |largest |uid we m|
+--------+-------------------------+-------------------------+--------+--------+