home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 46 72 |.sources|.unix.Fr|
|00000020| 6f 6d 3a 20 63 6c 79 64 | 65 40 65 6d 78 2e 75 74 |om: clyd|e@emx.ut|
|00000030| 65 78 61 73 2e 65 64 75 | 20 28 43 6c 79 64 65 20 |exas.edu| (Clyde |
|00000040| 48 6f 6f 76 65 72 29 0a | 53 75 62 6a 65 63 74 3a |Hoover).|Subject:|
|00000050| 20 76 32 35 69 30 37 34 | 3a 20 6e 70 61 73 73 77 | v25i074|: npassw|
|00000060| 64 20 2d 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |d - repl|acement |
|00000070| 66 6f 72 20 70 61 73 73 | 77 64 28 31 29 2c 20 50 |for pass|wd(1), P|
|00000080| 61 72 74 30 31 2f 30 33 | 0a 53 65 6e 64 65 72 3a |art01/03|.Sender:|
|00000090| 20 73 6f 75 72 63 65 73 | 2d 6d 6f 64 65 72 61 74 | sources|-moderat|
|000000a0| 6f 72 40 70 61 2e 64 65 | 63 2e 63 6f 6d 0a 41 70 |or@pa.de|c.com.Ap|
|000000b0| 70 72 6f 76 65 64 3a 20 | 76 69 78 69 65 40 70 61 |proved: |vixie@pa|
|000000c0| 2e 64 65 63 2e 63 6f 6d | 0a 0a 53 75 62 6d 69 74 |.dec.com|..Submit|
|000000d0| 74 65 64 2d 42 79 3a 20 | 63 6c 79 64 65 40 65 6d |ted-By: |clyde@em|
|000000e0| 78 2e 75 74 65 78 61 73 | 2e 65 64 75 20 28 43 6c |x.utexas|.edu (Cl|
|000000f0| 79 64 65 20 48 6f 6f 76 | 65 72 29 0a 50 6f 73 74 |yde Hoov|er).Post|
|00000100| 69 6e 67 2d 4e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-Numb|er: Volu|
|00000110| 6d 65 20 32 35 2c 20 49 | 73 73 75 65 20 37 34 0a |me 25, I|ssue 74.|
|00000120| 41 72 63 68 69 76 65 2d | 4e 61 6d 65 3a 20 6e 70 |Archive-|Name: np|
|00000130| 61 73 73 77 64 2f 70 61 | 72 74 30 31 0a 0a 4e 70 |asswd/pa|rt01..Np|
|00000140| 61 73 73 77 64 20 69 73 | 20 61 20 70 72 65 74 74 |asswd is| a prett|
|00000150| 79 2d 6d 75 63 68 2d 70 | 6c 75 67 2d 63 6f 6d 70 |y-much-p|lug-comp|
|00000160| 61 74 61 62 6c 65 20 72 | 65 70 6c 61 63 65 6d 65 |atable r|eplaceme|
|00000170| 6e 74 20 66 6f 72 20 70 | 61 73 73 77 64 28 31 29 |nt for p|asswd(1)|
|00000180| 2e 20 20 54 68 69 73 0a | 76 65 72 73 69 6f 6e 20 |. This.|version |
|00000190| 69 6e 63 6f 72 70 6f 72 | 61 74 65 73 20 61 20 70 |incorpor|ates a p|
|000001a0| 61 73 73 77 6f 72 64 20 | 63 68 65 63 6b 69 6e 67 |assword |checking|
|000001b0| 20 73 79 73 74 65 6d 20 | 74 68 61 74 20 64 69 73 | system |that dis|
|000001c0| 61 6c 6c 6f 77 73 20 73 | 69 6d 70 6c 65 2d 6d 69 |allows s|imple-mi|
|000001d0| 6e 64 65 64 0a 70 61 73 | 73 77 6f 72 64 73 2e 0a |nded.pas|swords..|
|000001e0| 0a 49 74 20 64 6f 65 73 | 20 65 78 61 63 74 6c 79 |.It does| exactly|
|000001f0| 20 4f 4e 45 20 74 68 69 | 6e 67 20 2d 20 63 68 61 | ONE thi|ng - cha|
|00000200| 6e 67 65 20 6c 6f 67 69 | 6e 20 70 61 73 73 77 6f |nge logi|n passwo|
|00000210| 72 64 73 2c 20 74 68 6f | 75 67 68 20 69 74 20 77 |rds, tho|ugh it w|
|00000220| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 0a 74 6f 6f 20 |ould not| be.too |
|00000230| 64 69 66 66 69 63 75 6c | 74 20 74 6f 20 6d 61 6b |difficul|t to mak|
|00000240| 65 20 69 74 20 64 6f 20 | 73 68 65 6c 6c 73 20 61 |e it do |shells a|
|00000250| 6e 64 20 47 45 43 4f 53 | 20 73 74 75 66 66 20 61 |nd GECOS| stuff a|
|00000260| 6c 73 6f 2e 0a 0a 49 20 | 68 61 76 65 20 6d 6f 64 |lso...I |have mod|
|00000270| 65 6c 65 64 20 6e 70 61 | 73 73 77 64 20 61 66 74 |eled npa|sswd aft|
|00000280| 65 72 20 70 61 73 73 77 | 64 28 31 29 20 66 72 6f |er passw|d(1) fro|
|00000290| 6d 20 34 2e 33 42 53 44 | 20 61 6e 64 20 53 75 6e |m 4.3BSD| and Sun|
|000002a0| 4f 53 20 34 2e 30 2c 20 | 62 75 74 20 69 74 0a 64 |OS 4.0, |but it.d|
|000002b0| 6f 65 73 20 6e 6f 74 20 | 69 6d 70 6c 69 6d 65 6e |oes not |implimen|
|000002c0| 74 20 74 68 65 20 6f 70 | 74 69 6f 6e 73 20 74 68 |t the op|tions th|
|000002d0| 6f 73 65 20 76 65 72 73 | 69 6f 6e 73 20 68 61 76 |ose vers|ions hav|
|000002e0| 65 2e 20 20 49 20 68 61 | 76 65 20 61 6c 73 6f 20 |e. I ha|ve also |
|000002f0| 69 6e 63 6c 75 64 65 64 | 0a 73 75 70 70 6f 72 74 |included|.support|
|00000300| 20 66 6f 72 20 53 79 73 | 20 56 52 33 20 70 61 73 | for Sys| VR3 pas|
|00000310| 73 77 6f 72 64 20 61 67 | 69 6e 67 2e 0a 0a 54 68 |sword ag|ing...Th|
|00000320| 69 73 20 76 65 72 73 69 | 6f 6e 20 72 75 6e 73 20 |is versi|on runs |
|00000330| 61 74 20 6f 75 72 20 73 | 69 74 65 20 75 6e 64 65 |at our s|ite unde|
|00000340| 72 20 53 75 6e 4f 53 20 | 34 2e 58 2c 20 55 6c 74 |r SunOS |4.X, Ult|
|00000350| 72 69 78 20 34 2e 30 2c | 20 55 4d 41 58 20 34 2e |rix 4.0,| UMAX 4.|
|00000360| 33 20 61 6e 64 0a 4d 4f | 52 45 2f 42 53 44 2e 0a |3 and.MO|RE/BSD..|
|00000370| 0a 49 74 20 69 73 20 61 | 6c 73 6f 20 61 76 61 69 |.It is a|lso avai|
|00000380| 6c 61 62 6c 65 20 76 69 | 61 20 61 6e 6f 6e 79 6d |lable vi|a anonym|
|00000390| 6f 75 73 20 46 54 50 20 | 66 72 6f 6d 20 65 6d 78 |ous FTP |from emx|
|000003a0| 2e 75 74 65 78 61 73 2e | 65 64 75 20 69 6e 20 74 |.utexas.|edu in t|
|000003b0| 68 65 20 64 69 72 65 63 | 74 6f 72 79 0a 70 75 62 |he direc|tory.pub|
|000003c0| 2f 6e 70 61 73 73 77 64 | 2e 0a 0a 09 63 6c 79 64 |/npasswd|....clyd|
|000003d0| 65 40 65 6d 78 2e 75 74 | 65 78 61 73 2e 65 64 75 |e@emx.ut|exas.edu|
|000003e0| 0a 09 2d 43 6c 79 64 65 | 20 48 6f 6f 76 65 72 0a |..-Clyde| Hoover.|
|000003f0| 0a 23 21 20 2f 62 69 6e | 2f 73 68 0a 23 20 54 68 |.#! /bin|/sh.# Th|
|00000400| 69 73 20 69 73 20 61 20 | 73 68 65 6c 6c 20 61 72 |is is a |shell ar|
|00000410| 63 68 69 76 65 2e 20 20 | 52 65 6d 6f 76 65 20 61 |chive. |Remove a|
|00000420| 6e 79 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 74 |nything |before t|
|00000430| 68 69 73 20 6c 69 6e 65 | 2c 20 74 68 65 6e 20 75 |his line|, then u|
|00000440| 6e 70 61 63 6b 0a 23 20 | 69 74 20 62 79 20 73 61 |npack.# |it by sa|
|00000450| 76 69 6e 67 20 69 74 20 | 69 6e 74 6f 20 61 20 66 |ving it |into a f|
|00000460| 69 6c 65 20 61 6e 64 20 | 74 79 70 69 6e 67 20 22 |ile and |typing "|
|00000470| 73 68 20 66 69 6c 65 22 | 2e 20 20 54 6f 20 6f 76 |sh file"|. To ov|
|00000480| 65 72 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |erwrite |existing|
|00000490| 0a 23 20 66 69 6c 65 73 | 2c 20 74 79 70 65 20 22 |.# files|, type "|
|000004a0| 73 68 20 66 69 6c 65 20 | 2d 63 22 2e 20 20 59 6f |sh file |-c". Yo|
|000004b0| 75 20 63 61 6e 20 61 6c | 73 6f 20 66 65 65 64 20 |u can al|so feed |
|000004c0| 74 68 69 73 20 61 73 20 | 73 74 61 6e 64 61 72 64 |this as |standard|
|000004d0| 20 69 6e 70 75 74 20 76 | 69 61 0a 23 20 75 6e 73 | input v|ia.# uns|
|000004e0| 68 61 72 2c 20 6f 72 20 | 62 79 20 74 79 70 69 6e |har, or |by typin|
|000004f0| 67 20 22 73 68 20 3c 66 | 69 6c 65 22 2c 20 65 2e |g "sh <f|ile", e.|
|00000500| 67 2e 2e 20 20 49 66 20 | 74 68 69 73 20 61 72 63 |g.. If |this arc|
|00000510| 68 69 76 65 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |hive is |complete|
|00000520| 2c 20 79 6f 75 0a 23 20 | 77 69 6c 6c 20 73 65 65 |, you.# |will see|
|00000530| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6d | the fol|lowing m|
|00000540| 65 73 73 61 67 65 20 61 | 74 20 74 68 65 20 65 6e |essage a|t the en|
|00000550| 64 3a 0a 23 09 09 22 45 | 6e 64 20 6f 66 20 61 72 |d:.#.."E|nd of ar|
|00000560| 63 68 69 76 65 20 31 20 | 28 6f 66 20 33 29 2e 22 |chive 1 |(of 3)."|
|00000570| 0a 23 20 43 6f 6e 74 65 | 6e 74 73 3a 20 20 4d 41 |.# Conte|nts: MA|
|00000580| 4e 49 46 45 53 54 20 52 | 45 41 44 4d 45 20 63 68 |NIFEST R|EADME ch|
|00000590| 65 63 6b 70 61 73 73 77 | 64 2f 4d 61 6b 65 66 69 |eckpassw|d/Makefi|
|000005a0| 6c 65 0a 23 20 20 20 63 | 68 65 63 6b 70 61 73 73 |le.# c|heckpass|
|000005b0| 77 64 2f 63 61 6c 6c 5f | 63 6b 70 61 73 73 77 64 |wd/call_|ckpasswd|
|000005c0| 2e 63 20 63 68 65 63 6b | 70 61 73 73 77 64 2f 63 |.c check|passwd/c|
|000005d0| 68 65 63 6b 70 61 73 73 | 77 64 2e 33 0a 23 20 20 |heckpass|wd.3.# |
|000005e0| 20 63 68 65 63 6b 70 61 | 73 73 77 64 2f 63 68 65 | checkpa|sswd/che|
|000005f0| 63 6b 70 61 73 73 77 64 | 2e 63 20 63 68 65 63 6b |ckpasswd|.c check|
|00000600| 70 61 73 73 77 64 2f 63 | 68 65 63 6b 70 61 73 73 |passwd/c|heckpass|
|00000610| 77 64 2e 63 66 0a 23 20 | 20 20 63 68 65 63 6b 70 |wd.cf.# | checkp|
|00000620| 61 73 73 77 64 2f 63 68 | 65 63 6b 70 61 73 73 77 |asswd/ch|eckpassw|
|00000630| 64 2e 68 20 63 68 65 63 | 6b 70 61 73 73 77 64 2f |d.h chec|kpasswd/|
|00000640| 64 69 63 74 2f 4d 61 6b | 65 66 69 6c 65 0a 23 20 |dict/Mak|efile.# |
|00000650| 20 20 63 68 65 63 6b 70 | 61 73 73 77 64 2f 64 69 | checkp|asswd/di|
|00000660| 63 74 2f 52 45 41 44 4d | 45 20 63 68 65 63 6b 70 |ct/READM|E checkp|
|00000670| 61 73 73 77 64 2f 64 69 | 63 74 2f 6d 61 6b 65 64 |asswd/di|ct/maked|
|00000680| 69 63 74 2e 38 0a 23 20 | 20 20 63 68 65 63 6b 70 |ict.8.# | checkp|
|00000690| 61 73 73 77 64 2f 64 69 | 63 74 2f 6d 61 6b 65 64 |asswd/di|ct/maked|
|000006a0| 69 63 74 2e 63 20 63 68 | 65 63 6b 70 61 73 73 77 |ict.c ch|eckpassw|
|000006b0| 64 2f 64 69 63 74 2f 76 | 69 65 77 64 69 63 74 2e |d/dict/v|iewdict.|
|000006c0| 38 0a 23 20 20 20 63 68 | 65 63 6b 70 61 73 73 77 |8.# ch|eckpassw|
|000006d0| 64 2f 64 69 63 74 2f 76 | 69 65 77 64 69 63 74 2e |d/dict/v|iewdict.|
|000006e0| 63 20 63 68 65 63 6b 70 | 61 73 73 77 64 2f 6c 69 |c checkp|asswd/li|
|000006f0| 62 6d 61 69 6e 2e 63 0a | 23 20 20 20 63 68 65 63 |bmain.c.|# chec|
|00000700| 6b 70 61 73 73 77 64 2f | 6d 61 69 6e 2e 63 20 63 |kpasswd/|main.c c|
|00000710| 68 65 63 6b 70 61 73 73 | 77 64 2f 70 77 63 6b 5f |heckpass|wd/pwck_|
|00000720| 6c 6f 63 61 6c 2e 63 0a | 23 20 20 20 63 68 65 63 |local.c.|# chec|
|00000730| 6b 70 61 73 73 77 64 2f | 70 77 63 6b 5f 70 61 73 |kpasswd/|pwck_pas|
|00000740| 73 77 64 2e 63 20 63 68 | 65 63 6b 70 61 73 73 77 |swd.c ch|eckpassw|
|00000750| 64 2f 76 65 72 73 69 6f | 6e 2e 68 20 6e 70 61 73 |d/versio|n.h npas|
|00000760| 73 77 64 2e 31 0a 23 20 | 20 20 6e 70 61 73 73 77 |swd.1.# | npassw|
|00000770| 64 2e 63 6f 6e 66 20 6e | 70 61 73 73 77 64 2e 68 |d.conf n|passwd.h|
|00000780| 65 6c 70 20 6e 70 61 73 | 73 77 64 2e 6d 6f 74 64 |elp npas|swd.motd|
|00000790| 20 6e 70 61 73 73 77 64 | 2e 73 68 61 72 20 76 65 | npasswd|.shar ve|
|000007a0| 72 73 69 6f 6e 2e 68 0a | 23 20 57 72 61 70 70 65 |rsion.h.|# Wrappe|
|000007b0| 64 20 62 79 20 63 6c 79 | 64 65 40 74 69 67 67 65 |d by cly|de@tigge|
|000007c0| 72 2e 63 63 2e 75 74 65 | 78 61 73 2e 65 64 75 20 |r.cc.ute|xas.edu |
|000007d0| 6f 6e 20 46 72 69 20 4a | 61 6e 20 32 35 20 31 30 |on Fri J|an 25 10|
|000007e0| 3a 33 35 3a 30 35 20 31 | 39 39 31 0a 66 6f 72 20 |:35:05 1|991.for |
|000007f0| 66 20 69 6e 20 63 68 65 | 63 6b 70 61 73 73 77 64 |f in che|ckpasswd|
|00000800| 20 63 68 65 63 6b 70 61 | 73 73 77 64 2f 64 69 63 | checkpa|sswd/dic|
|00000810| 74 3b 20 64 6f 0a 09 6d | 6b 64 69 72 20 24 66 0a |t; do..m|kdir $f.|
|00000820| 64 6f 6e 65 0a 50 41 54 | 48 3d 2f 62 69 6e 3a 2f |done.PAT|H=/bin:/|
|00000830| 75 73 72 2f 62 69 6e 3a | 2f 75 73 72 2f 75 63 62 |usr/bin:|/usr/ucb|
|00000840| 20 3b 20 65 78 70 6f 72 | 74 20 50 41 54 48 0a 69 | ; expor|t PATH.i|
|00000850| 66 20 74 65 73 74 20 2d | 66 20 27 4d 41 4e 49 46 |f test -|f 'MANIF|
|00000860| 45 53 54 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |EST' -a |"${1}" !|
|00000870| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00000880| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00000890| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000008a0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 4d 41 |sting fi|le \"'MA|
|000008b0| 4e 49 46 45 53 54 27 5c | 22 0a 65 6c 73 65 0a 65 |NIFEST'\|".else.e|
|000008c0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|000008d0| 74 69 6e 67 20 5c 22 27 | 4d 41 4e 49 46 45 53 54 |ting \"'|MANIFEST|
|000008e0| 27 5c 22 20 5c 28 31 32 | 31 33 20 63 68 61 72 61 |'\" \(12|13 chara|
|000008f0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00000900| 58 2f 2f 22 20 3e 27 4d | 41 4e 49 46 45 53 54 27 |X//" >'M|ANIFEST'|
|00000910| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00000920| 0a 58 4d 41 4e 49 46 45 | 53 54 09 09 54 68 69 73 |.XMANIFE|ST..This|
|00000930| 20 66 69 6c 65 0a 58 52 | 45 41 44 4d 45 09 09 09 | file.XR|EADME...|
|00000940| 44 6f 20 73 6f 0a 58 43 | 48 41 4e 47 45 2e 4c 4f |Do so.XC|HANGE.LO|
|00000950| 47 09 09 43 68 61 6e 67 | 65 20 64 65 73 63 72 69 |G..Chang|e descri|
|00000960| 70 74 69 6f 6e 73 20 66 | 72 6f 6d 20 53 43 43 53 |ptions f|rom SCCS|
|00000970| 20 66 69 6c 65 73 0a 58 | 4d 61 6b 65 66 69 6c 65 | files.X|Makefile|
|00000980| 2e 64 69 73 74 09 09 71 | 2e 65 2e 64 2e 0a 58 76 |.dist..q|.e.d..Xv|
|00000990| 65 72 73 69 6f 6e 2e 68 | 09 09 56 65 72 73 69 6f |ersion.h|..Versio|
|000009a0| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0a 58 6e |n inform|ation.Xn|
|000009b0| 70 61 73 73 77 64 2e 63 | 09 09 4d 61 69 6e 20 70 |passwd.c|..Main p|
|000009c0| 72 6f 67 72 61 6d 0a 58 | 6e 70 61 73 73 77 64 2e |rogram.X|npasswd.|
|000009d0| 68 65 6c 70 09 09 48 65 | 6c 70 20 66 69 6c 65 0a |help..He|lp file.|
|000009e0| 58 6e 70 61 73 73 77 64 | 2e 63 6f 6e 66 09 09 53 |Xnpasswd|.conf..S|
|000009f0| 61 6d 70 6c 65 20 63 6f | 6e 66 69 67 20 66 69 6c |ample co|nfig fil|
|00000a00| 65 20 28 73 61 6d 65 20 | 61 73 20 63 68 65 63 6b |e (same |as check|
|00000a10| 70 61 73 73 77 64 2e 63 | 66 29 0a 58 6e 70 61 73 |passwd.c|f).Xnpas|
|00000a20| 73 77 64 2e 6d 6f 74 64 | 09 09 53 61 6d 70 6c 65 |swd.motd|..Sample|
|00000a30| 20 6d 65 73 73 61 67 65 | 20 66 69 6c 65 0a 58 70 | message| file.Xp|
|00000a40| 77 5f 70 61 73 73 77 64 | 2e 63 09 09 53 74 61 6e |w_passwd|.c..Stan|
|00000a50| 64 61 72 64 20 70 61 73 | 73 77 6f 72 64 20 66 69 |dard pas|sword fi|
|00000a60| 6c 65 20 75 70 64 61 74 | 65 72 0a 58 70 77 5f 79 |le updat|er.Xpw_y|
|00000a70| 70 2e 63 09 09 09 59 65 | 6c 6c 6f 77 20 50 61 67 |p.c...Ye|llow Pag|
|00000a80| 65 73 20 28 4e 49 53 29 | 20 75 70 64 61 74 65 72 |es (NIS)| updater|
|00000a90| 0a 58 70 77 5f 75 73 65 | 72 69 6e 66 6f 2e 63 09 |.Xpw_use|rinfo.c.|
|00000aa0| 09 55 54 43 43 20 27 75 | 73 65 72 69 6e 66 6f 27 |.UTCC 'u|serinfo'|
|00000ab0| 20 75 70 64 61 74 65 72 | 0a 58 6e 70 61 73 73 77 | updater|.Xnpassw|
|00000ac0| 64 2e 31 09 09 4d 61 6e | 75 61 6c 20 70 61 67 65 |d.1..Man|ual page|
|00000ad0| 20 62 6f 69 6c 65 72 70 | 6c 61 74 65 0a 58 0a 58 | boilerp|late.X.X|
|00000ae0| 63 68 65 63 6b 70 61 73 | 73 77 64 2f 52 45 41 44 |checkpas|swd/READ|
|00000af0| 4d 45 09 09 52 65 61 64 | 6d 65 20 66 69 6c 65 20 |ME..Read|me file |
|00000b00| 66 6f 72 20 70 61 73 73 | 77 6f 72 64 20 63 68 65 |for pass|word che|
|00000b10| 63 6b 65 72 0a 58 63 68 | 65 63 6b 70 61 73 73 77 |cker.Xch|eckpassw|
|00000b20| 64 2f 4d 61 6b 65 66 69 | 6c 65 09 09 4d 61 6b 65 |d/Makefi|le..Make|
|00000b30| 66 69 6c 65 20 66 6f 72 | 20 70 61 73 73 77 6f 72 |file for| passwor|
|00000b40| 64 20 63 68 65 63 6b 65 | 72 0a 58 63 68 65 63 6b |d checke|r.Xcheck|
|00000b50| 70 61 73 73 77 64 2f 63 | 68 65 63 6b 70 61 73 73 |passwd/c|heckpass|
|00000b60| 77 64 2e 38 09 4d 61 6e | 20 70 61 67 65 20 66 6f |wd.8.Man| page fo|
|00000b70| 72 20 70 61 73 73 77 6f | 72 64 20 63 68 65 63 6b |r passwo|rd check|
|00000b80| 65 72 0a 58 63 68 65 63 | 6b 70 61 73 73 77 64 2f |er.Xchec|kpasswd/|
|00000b90| 63 68 65 63 6b 70 61 73 | 73 77 64 2e 33 09 4d 61 |checkpas|swd.3.Ma|
|00000ba0| 6e 20 70 61 67 65 20 66 | 6f 72 20 6c 69 62 72 61 |n page f|or libra|
|00000bb0| 72 79 20 76 65 72 73 69 | 6f 6e 0a 58 63 68 65 63 |ry versi|on.Xchec|
|00000bc0| 6b 70 61 73 73 77 64 2f | 63 68 65 63 6b 70 61 73 |kpasswd/|checkpas|
|00000bd0| 73 77 64 2e 68 09 49 6e | 63 6c 75 64 65 20 66 69 |swd.h.In|clude fi|
|00000be0| 6c 65 0a 58 63 68 65 63 | 6b 70 61 73 73 77 64 2f |le.Xchec|kpasswd/|
|00000bf0| 63 68 65 63 6b 70 61 73 | 73 77 64 2e 63 66 09 53 |checkpas|swd.cf.S|
|00000c00| 61 6d 70 6c 65 20 63 6f | 6e 66 69 67 75 72 61 74 |ample co|nfigurat|
|00000c10| 69 6f 6e 20 66 69 6c 65 | 0a 58 63 68 65 63 6b 70 |ion file|.Xcheckp|
|00000c20| 61 73 73 77 64 2f 63 68 | 65 63 6b 70 61 73 73 77 |asswd/ch|eckpassw|
|00000c30| 64 2e 63 09 44 72 69 76 | 65 72 20 66 6f 72 20 70 |d.c.Driv|er for p|
|00000c40| 61 73 73 77 6f 72 64 20 | 63 68 65 63 6b 65 72 0a |assword |checker.|
|00000c50| 58 63 68 65 63 6b 70 61 | 73 73 77 64 2f 6c 69 62 |Xcheckpa|sswd/lib|
|00000c60| 6d 61 69 6e 2e 63 09 09 | 4c 69 62 72 61 72 79 20 |main.c..|Library |
|00000c70| 67 6c 75 65 20 6d 61 69 | 6e 0a 58 63 68 65 63 6b |glue mai|n.Xcheck|
|00000c80| 70 61 73 73 77 64 2f 6d | 61 69 6e 2e 63 09 09 53 |passwd/m|ain.c..S|
|00000c90| 74 61 6e 64 61 6c 6f 6e | 65 20 70 72 6f 67 72 61 |tandalon|e progra|
|00000ca0| 6d 20 6d 61 69 6e 0a 58 | 63 68 65 63 6b 70 61 73 |m main.X|checkpas|
|00000cb0| 73 77 64 2f 70 77 63 6b | 5f 64 69 63 74 2e 63 0a |swd/pwck|_dict.c.|
|00000cc0| 58 63 68 65 63 6b 70 61 | 73 73 77 64 2f 70 77 63 |Xcheckpa|sswd/pwc|
|00000cd0| 6b 5f 6c 65 78 69 63 61 | 6c 2e 63 0a 58 63 68 65 |k_lexica|l.c.Xche|
|00000ce0| 63 6b 70 61 73 73 77 64 | 2f 70 77 63 6b 5f 6c 6f |ckpasswd|/pwck_lo|
|00000cf0| 63 61 6c 2e 63 0a 58 63 | 68 65 63 6b 70 61 73 73 |cal.c.Xc|heckpass|
|00000d00| 77 64 2f 70 77 63 6b 5f | 70 61 73 73 77 64 2e 63 |wd/pwck_|passwd.c|
|00000d10| 0a 58 63 68 65 63 6b 70 | 61 73 73 77 64 2f 75 74 |.Xcheckp|asswd/ut|
|00000d20| 69 6c 2e 63 0a 58 63 68 | 65 63 6b 70 61 73 73 77 |il.c.Xch|eckpassw|
|00000d30| 64 2f 76 65 72 73 69 6f | 6e 2e 68 0a 58 63 68 65 |d/versio|n.h.Xche|
|00000d40| 63 6b 70 61 73 73 77 64 | 2f 63 61 6c 6c 5f 63 6b |ckpasswd|/call_ck|
|00000d50| 70 61 73 73 77 64 2e 63 | 0a 58 0a 58 63 68 65 63 |passwd.c|.X.Xchec|
|00000d60| 6b 70 61 73 73 77 64 2f | 64 69 63 74 2f 52 45 41 |kpasswd/|dict/REA|
|00000d70| 44 4d 45 0a 58 63 68 65 | 63 6b 70 61 73 73 77 64 |DME.Xche|ckpasswd|
|00000d80| 2f 64 69 63 74 2f 4d 61 | 6b 65 66 69 6c 65 0a 58 |/dict/Ma|kefile.X|
|00000d90| 63 68 65 63 6b 70 61 73 | 73 77 64 2f 64 69 63 74 |checkpas|swd/dict|
|00000da0| 2f 6d 61 6b 65 64 69 63 | 74 2e 38 0a 58 63 68 65 |/makedic|t.8.Xche|
|00000db0| 63 6b 70 61 73 73 77 64 | 2f 64 69 63 74 2f 6d 61 |ckpasswd|/dict/ma|
|00000dc0| 6b 65 64 69 63 74 2e 63 | 0a 58 63 68 65 63 6b 70 |kedict.c|.Xcheckp|
|00000dd0| 61 73 73 77 64 2f 64 69 | 63 74 2f 76 69 65 77 64 |asswd/di|ct/viewd|
|00000de0| 69 63 74 2e 38 0a 58 63 | 68 65 63 6b 70 61 73 73 |ict.8.Xc|heckpass|
|00000df0| 77 64 2f 64 69 63 74 2f | 76 69 65 77 64 69 63 74 |wd/dict/|viewdict|
|00000e00| 2e 63 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |.c.END_O|F_FILE.i|
|00000e10| 66 20 74 65 73 74 20 31 | 32 31 33 20 2d 6e 65 20 |f test 1|213 -ne |
|00000e20| 60 77 63 20 2d 63 20 3c | 27 4d 41 4e 49 46 45 53 |`wc -c <|'MANIFES|
|00000e30| 54 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |T'`; the|n. ec|
|00000e40| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 4d 41 4e 49 |ho shar:| \"'MANI|
|00000e50| 46 45 53 54 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |FEST'\" |unpacked|
|00000e60| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00000e70| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 4d |!.fi.# e|nd of 'M|
|00000e80| 41 4e 49 46 45 53 54 27 | 0a 66 69 0a 69 66 20 74 |ANIFEST'|.fi.if t|
|00000e90| 65 73 74 20 2d 66 20 27 | 52 45 41 44 4d 45 27 20 |est -f '|README' |
|00000ea0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00000eb0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00000ec0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00000ed0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00000ee0| 20 66 69 6c 65 20 5c 22 | 27 52 45 41 44 4d 45 27 | file \"|'README'|
|00000ef0| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00000f00| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00000f10| 27 52 45 41 44 4d 45 27 | 5c 22 20 5c 28 34 38 32 |'README'|\" \(482|
|00000f20| 35 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |5 charac|ters\).s|
|00000f30| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 52 45 |ed "s/^X|//" >'RE|
|00000f40| 41 44 4d 45 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |ADME' <<|'END_OF_|
|00000f50| 46 49 4c 45 27 0a 58 52 | 45 41 44 4d 45 20 66 6f |FILE'.XR|EADME fo|
|00000f60| 72 20 6e 70 61 73 73 77 | 64 20 4d 61 72 63 68 20 |r npassw|d March |
|00000f70| 31 39 39 30 0a 58 0a 58 | 40 28 23 29 52 45 41 44 |1990.X.X|@(#)READ|
|00000f80| 4d 45 09 31 2e 36 20 33 | 2f 31 39 2f 39 30 20 28 |ME.1.6 3|/19/90 (|
|00000f90| 63 63 2e 75 74 65 78 61 | 73 2e 65 64 75 29 0a 58 |cc.utexa|s.edu).X|
|00000fa0| 0a 58 2a 20 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |.X* Intr|oduction|
|00000fb0| 0a 58 0a 58 4e 70 61 73 | 73 77 64 20 69 73 20 61 |.X.XNpas|swd is a|
|00000fc0| 20 70 72 65 74 74 79 2d | 6d 75 63 68 2d 70 6c 75 | pretty-|much-plu|
|00000fd0| 67 2d 63 6f 6d 70 61 74 | 61 62 6c 65 20 72 65 70 |g-compat|able rep|
|00000fe0| 6c 61 63 65 6d 65 6e 74 | 20 66 6f 72 20 70 61 73 |lacement| for pas|
|00000ff0| 73 77 64 28 31 29 2e 0a | 58 54 68 69 73 20 76 65 |swd(1)..|XThis ve|
|00001000| 72 73 69 6f 6e 20 69 6e | 63 6f 72 70 6f 72 61 74 |rsion in|corporat|
|00001010| 65 73 20 61 20 70 61 73 | 73 77 6f 72 64 20 63 68 |es a pas|sword ch|
|00001020| 65 63 6b 69 6e 67 20 73 | 79 73 74 65 6d 0a 58 74 |ecking s|ystem.Xt|
|00001030| 68 61 74 20 64 69 73 61 | 6c 6c 6f 77 73 20 73 69 |hat disa|llows si|
|00001040| 6d 70 6c 65 2d 6d 69 6e | 64 65 64 20 70 61 73 73 |mple-min|ded pass|
|00001050| 77 6f 72 64 73 2e 0a 58 | 0a 58 49 74 20 64 6f 65 |words..X|.XIt doe|
|00001060| 73 20 65 78 61 63 74 6c | 79 20 4f 4e 45 20 74 68 |s exactl|y ONE th|
|00001070| 69 6e 67 20 2d 20 63 68 | 61 6e 67 65 20 6c 6f 67 |ing - ch|ange log|
|00001080| 69 6e 20 70 61 73 73 77 | 6f 72 64 73 2c 20 74 68 |in passw|ords, th|
|00001090| 6f 75 67 68 20 69 74 20 | 77 6f 75 6c 64 0a 58 6e |ough it |would.Xn|
|000010a0| 6f 74 20 62 65 20 74 6f | 6f 20 64 69 66 66 69 63 |ot be to|o diffic|
|000010b0| 75 6c 74 20 74 6f 20 6d | 61 6b 65 20 69 74 20 64 |ult to m|ake it d|
|000010c0| 6f 20 73 68 65 6c 6c 73 | 20 61 6e 64 20 47 45 43 |o shells| and GEC|
|000010d0| 4f 53 20 73 74 75 66 66 | 20 61 6c 73 6f 2e 0a 58 |OS stuff| also..X|
|000010e0| 0a 58 49 20 68 61 76 65 | 20 6d 6f 64 65 6c 65 64 |.XI have| modeled|
|000010f0| 20 6e 70 61 73 73 77 64 | 20 61 66 74 65 72 20 70 | npasswd| after p|
|00001100| 61 73 73 77 64 28 31 29 | 20 66 72 6f 6d 20 34 2e |asswd(1)| from 4.|
|00001110| 33 42 53 44 20 61 6e 64 | 20 53 75 6e 4f 53 20 34 |3BSD and| SunOS 4|
|00001120| 2e 30 2c 20 62 75 74 0a | 58 69 74 20 64 6f 65 73 |.0, but.|Xit does|
|00001130| 20 6e 6f 74 20 69 6d 70 | 6c 69 6d 65 6e 74 20 74 | not imp|liment t|
|00001140| 68 65 20 6f 70 74 69 6f | 6e 73 20 74 68 6f 73 65 |he optio|ns those|
|00001150| 20 76 65 72 73 69 6f 6e | 73 20 68 61 76 65 2e 0a | version|s have..|
|00001160| 58 49 20 68 61 76 65 20 | 61 6c 73 6f 20 69 6e 63 |XI have |also inc|
|00001170| 6c 75 64 65 64 20 73 75 | 70 70 6f 72 74 20 66 6f |luded su|pport fo|
|00001180| 72 20 53 79 73 20 56 52 | 33 20 70 61 73 73 77 6f |r Sys VR|3 passwo|
|00001190| 72 64 20 61 67 69 6e 67 | 2c 20 62 75 74 20 49 20 |rd aging|, but I |
|000011a0| 64 6f 6e 27 74 20 68 61 | 76 65 0a 58 61 20 53 79 |don't ha|ve.Xa Sy|
|000011b0| 73 56 20 62 6f 78 20 61 | 72 6f 75 6e 64 20 74 6f |sV box a|round to|
|000011c0| 20 74 65 73 74 20 69 74 | 20 6f 6e 2e 0a 58 0a 58 | test it| on..X.X|
|000011d0| 2a 20 41 62 6f 75 74 20 | 6e 70 61 73 73 77 64 0a |* About |npasswd.|
|000011e0| 58 0a 58 54 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |X.XThe p|rogram i|
|000011f0| 73 20 64 69 76 69 64 65 | 64 20 69 6e 74 6f 20 75 |s divide|d into u|
|00001200| 70 70 65 72 20 61 6e 64 | 20 6c 6f 77 65 72 20 73 |pper and| lower s|
|00001210| 65 63 74 69 6f 6e 73 2e | 0a 58 54 68 65 20 75 70 |ections.|.XThe up|
|00001220| 70 65 72 20 28 64 72 69 | 76 65 72 29 20 68 61 6c |per (dri|ver) hal|
|00001230| 66 20 64 65 61 6c 73 20 | 77 69 74 68 20 61 62 73 |f deals |with abs|
|00001240| 74 72 61 63 74 20 64 61 | 74 61 20 73 75 63 68 20 |tract da|ta such |
|00001250| 61 73 20 6c 6f 67 69 6e | 20 6e 61 6d 65 73 20 61 |as login| names a|
|00001260| 6e 64 0a 58 70 61 73 73 | 77 6f 72 64 73 2e 20 20 |nd.Xpass|words. |
|00001270| 49 74 20 68 61 73 20 6e | 6f 20 6b 6e 6f 77 6c 65 |It has n|o knowle|
|00001280| 64 67 65 20 6f 66 20 68 | 6f 77 20 6f 72 20 77 68 |dge of h|ow or wh|
|00001290| 65 72 65 20 70 61 73 73 | 77 6f 72 64 73 20 61 72 |ere pass|words ar|
|000012a0| 65 20 73 74 6f 72 65 64 | 2e 0a 58 0a 58 54 68 65 |e stored|..X.XThe|
|000012b0| 20 6c 6f 77 65 72 20 28 | 6d 65 74 68 6f 64 29 20 | lower (|method) |
|000012c0| 68 61 6c 66 20 64 6f 65 | 73 20 64 61 74 61 20 6c |half doe|s data l|
|000012d0| 6f 6f 6b 75 70 20 61 6e | 64 20 72 65 70 6c 61 63 |ookup an|d replac|
|000012e0| 65 6d 65 6e 74 2e 20 20 | 54 68 65 72 65 20 61 72 |ement. |There ar|
|000012f0| 65 20 0a 58 74 77 6f 20 | 64 69 66 66 65 72 65 6e |e .Xtwo |differen|
|00001300| 74 20 6d 65 74 68 6f 64 | 20 6d 6f 64 75 6c 65 73 |t method| modules|
|00001310| 20 70 72 6f 76 69 64 65 | 64 20 77 69 74 68 20 74 | provide|d with t|
|00001320| 68 69 73 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |his dist|ribution|
|00001330| 2e 0a 58 0a 58 09 70 77 | 5f 70 61 73 73 77 64 2e |..X.X.pw|_passwd.|
|00001340| 63 20 2d 20 64 65 61 6c | 73 20 77 69 74 68 20 73 |c - deal|s with s|
|00001350| 74 61 6e 64 61 72 64 20 | 2f 65 74 63 2f 70 61 73 |tandard |/etc/pas|
|00001360| 73 77 64 20 74 79 70 65 | 20 66 69 6c 65 73 20 61 |swd type| files a|
|00001370| 6e 64 0a 58 09 09 74 68 | 65 20 68 61 73 68 65 64 |nd.X..th|e hashed|
|00001380| 20 70 61 73 73 77 64 20 | 64 61 74 61 62 61 73 65 | passwd |database|
|00001390| 20 75 73 65 64 20 69 6e | 20 34 2e 33 42 53 44 2e | used in| 4.3BSD.|
|000013a0| 0a 58 09 70 77 5f 79 70 | 2e 63 20 2d 20 64 65 61 |.X.pw_yp|.c - dea|
|000013b0| 6c 73 20 77 69 74 68 20 | 73 74 61 6e 64 61 72 64 |ls with |standard|
|000013c0| 20 2f 65 74 63 2f 70 61 | 73 73 77 64 20 66 69 6c | /etc/pa|sswd fil|
|000013d0| 65 73 20 61 6e 64 20 59 | 65 6c 6c 6f 77 20 50 61 |es and Y|ellow Pa|
|000013e0| 67 65 73 0a 58 09 09 70 | 61 73 73 77 64 20 73 65 |ges.X..p|asswd se|
|000013f0| 72 76 69 63 65 2e 0a 58 | 0a 58 54 68 65 20 6c 6f |rvice..X|.XThe lo|
|00001400| 77 65 72 20 68 61 6c 66 | 20 68 69 64 65 73 20 61 |wer half| hides a|
|00001410| 6c 6c 20 69 74 73 20 64 | 61 74 61 20 66 72 6f 6d |ll its d|ata from|
|00001420| 20 74 68 65 20 75 70 70 | 65 72 20 68 61 6c 66 2c | the upp|er half,|
|00001430| 20 61 6e 64 20 76 69 63 | 65 20 76 65 72 73 61 2e | and vic|e versa.|
|00001440| 0a 58 54 68 65 20 75 70 | 70 65 72 20 61 6e 64 20 |.XThe up|per and |
|00001450| 6c 6f 77 65 72 20 68 61 | 6c 76 65 73 20 63 6f 6d |lower ha|lves com|
|00001460| 6d 75 6e 69 63 61 74 65 | 20 76 69 61 20 74 68 69 |municate| via thi|
|00001470| 73 20 69 6e 74 65 72 66 | 61 63 65 3a 0a 58 0a 58 |s interf|ace:.X.X|
|00001480| 09 70 77 5f 69 6e 69 74 | 61 6c 69 7a 65 28 29 09 |.pw_init|alize().|
|00001490| 09 44 6f 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |.Do init|ializati|
|000014a0| 6f 6e 73 20 0a 58 09 70 | 77 5f 67 65 74 75 73 65 |ons .X.p|w_getuse|
|000014b0| 72 62 79 6e 61 6d 65 28 | 29 09 47 65 74 20 75 73 |rbyname(|).Get us|
|000014c0| 65 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 62 |er infor|mation b|
|000014d0| 79 20 6e 61 6d 65 0a 58 | 09 70 77 5f 70 65 72 6d |y name.X|.pw_perm|
|000014e0| 69 73 73 69 6f 6e 28 29 | 09 09 43 68 65 63 6b 20 |ission()|..Check |
|000014f0| 69 66 20 75 73 65 72 20 | 68 61 73 20 70 65 72 6d |if user |has perm|
|00001500| 69 73 73 69 6f 6e 0a 58 | 09 09 09 09 20 74 6f 20 |ission.X|.... to |
|00001510| 63 68 61 6e 67 65 20 74 | 68 69 73 20 75 73 65 72 |change t|his user|
|00001520| 73 27 20 70 61 73 73 77 | 6f 72 64 0a 58 09 70 77 |s' passw|ord.X.pw|
|00001530| 5f 63 6f 6d 70 61 72 65 | 28 29 09 09 43 6f 6d 70 |_compare|()..Comp|
|00001540| 61 72 65 20 70 61 73 73 | 77 6f 72 64 73 20 28 72 |are pass|words (r|
|00001550| 65 74 75 72 6e 73 20 31 | 20 6f 6e 20 6d 61 74 63 |eturns 1| on matc|
|00001560| 68 2c 20 30 20 69 66 20 | 6e 6f 74 29 0a 58 09 70 |h, 0 if |not).X.p|
|00001570| 77 5f 63 68 65 63 6b 28 | 29 09 09 43 68 65 63 6b |w_check(|)..Check|
|00001580| 20 70 61 73 73 77 6f 72 | 64 20 28 72 65 74 75 72 | passwor|d (retur|
|00001590| 6e 73 20 31 20 69 66 20 | 6f 6b 2c 20 30 20 6f 74 |ns 1 if |ok, 0 ot|
|000015a0| 68 65 72 77 69 73 65 29 | 0a 58 09 70 77 5f 72 65 |herwise)|.X.pw_re|
|000015b0| 70 6c 61 63 65 28 29 09 | 09 52 65 70 6c 61 63 65 |place().|.Replace|
|000015c0| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 0a 58 09 | the pas|sword.X.|
|000015d0| 70 77 5f 63 6c 65 61 6e | 75 70 28 29 09 09 43 6c |pw_clean|up()..Cl|
|000015e0| 65 61 6e 75 70 0a 58 0a | 58 42 6f 74 68 20 74 68 |eanup.X.|XBoth th|
|000015f0| 65 20 75 70 70 65 72 20 | 61 6e 64 20 6c 6f 77 65 |e upper |and lowe|
|00001600| 72 20 68 61 6c 76 65 73 | 20 6b 65 65 70 20 70 72 |r halves| keep pr|
|00001610| 69 76 61 74 65 20 73 74 | 61 74 65 2c 20 61 6e 64 |ivate st|ate, and|
|00001620| 20 6d 75 73 74 20 64 65 | 74 65 72 6d 69 6e 65 0a | must de|termine.|
|00001630| 58 73 75 63 68 20 74 68 | 69 6e 67 73 20 61 73 20 |Xsuch th|ings as |
|00001640| 77 68 6f 20 69 6e 76 6f | 6b 65 64 20 74 68 65 20 |who invo|ked the |
|00001650| 70 72 6f 67 72 61 6d 20 | 73 65 70 65 72 61 74 65 |program |seperate|
|00001660| 6c 79 2e 0a 58 0a 58 54 | 68 69 73 20 61 70 70 72 |ly..X.XT|his appr|
|00001670| 6f 61 63 68 20 61 6c 6c | 6f 77 73 20 74 68 65 72 |oach all|ows ther|
|00001680| 65 20 74 6f 20 62 65 20 | 6f 6e 65 20 75 73 65 72 |e to be |one user|
|00001690| 20 69 6e 74 65 72 66 61 | 63 65 20 66 6f 72 20 61 | interfa|ce for a|
|000016a0| 20 76 61 72 69 65 74 79 | 20 6f 66 0a 58 70 61 73 | variety| of.Xpas|
|000016b0| 73 77 6f 72 64 20 73 74 | 6f 72 61 67 65 20 6d 65 |sword st|orage me|
|000016c0| 74 68 6f 64 73 2e 20 20 | 54 6f 20 73 75 70 70 6f |thods. |To suppo|
|000016d0| 72 74 20 61 6e 6f 74 68 | 65 72 20 6d 65 74 68 6f |rt anoth|er metho|
|000016e0| 64 2c 20 73 75 63 68 20 | 61 73 20 73 68 61 64 6f |d, such |as shado|
|000016f0| 77 0a 58 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |w.Xpassw|ord file|
|00001700| 73 2c 20 61 20 6e 65 77 | 20 63 6f 6c 6c 65 63 74 |s, a new| collect|
|00001710| 69 6f 6e 20 6f 66 20 6d | 65 74 68 6f 64 20 72 6f |ion of m|ethod ro|
|00001720| 75 74 69 6e 65 73 20 6e | 65 65 64 20 62 65 20 77 |utines n|eed be w|
|00001730| 72 69 74 74 65 6e 20 61 | 6e 64 0a 58 6c 69 6e 6b |ritten a|nd.Xlink|
|00001740| 65 64 20 74 6f 20 6e 70 | 61 73 73 77 64 2e 6f 2e |ed to np|asswd.o.|
|00001750| 0a 58 0a 58 49 20 68 61 | 76 65 20 74 72 69 65 64 |.X.XI ha|ve tried|
|00001760| 20 74 6f 20 6d 69 6e 69 | 6d 61 6c 69 7a 65 20 74 | to mini|malize t|
|00001770| 68 65 20 61 73 73 75 6d | 70 74 69 6f 6e 73 20 61 |he assum|ptions a|
|00001780| 62 6f 75 74 20 77 68 61 | 74 20 69 73 20 61 76 61 |bout wha|t is ava|
|00001790| 69 6c 61 62 6c 65 20 69 | 6e 20 74 68 65 0a 58 43 |ilable i|n the.XC|
|000017a0| 20 6c 69 62 72 61 72 79 | 20 61 6e 64 20 6c 6f 63 | library| and loc|
|000017b0| 61 6c 69 7a 65 64 20 55 | 4e 49 58 20 76 65 72 73 |alized U|NIX vers|
|000017c0| 69 6f 6e 20 64 65 70 65 | 6e 64 61 6e 63 69 65 73 |ion depe|ndancies|
|000017d0| 2e 0a 58 0a 58 2a 20 42 | 75 69 6c 64 69 6e 67 20 |..X.X* B|uilding |
|000017e0| 6e 70 61 73 73 77 64 0a | 58 0a 58 2d 20 59 6f 75 |npasswd.|X.X- You|
|000017f0| 20 77 69 6c 6c 20 70 72 | 6f 62 61 62 6c 79 20 77 | will pr|obably w|
|00001800| 61 6e 74 20 74 6f 20 65 | 64 69 74 20 74 68 65 20 |ant to e|dit the |
|00001810| 6d 61 6e 75 61 6c 20 70 | 61 67 65 20 2d 20 69 74 |manual p|age - it|
|00001820| 20 69 73 20 66 61 69 72 | 6c 79 20 72 6f 75 67 68 | is fair|ly rough|
|00001830| 2e 0a 58 0a 58 2d 20 4c | 6f 6f 6b 20 61 74 20 74 |..X.X- L|ook at t|
|00001840| 68 65 20 73 6f 75 72 63 | 65 73 20 62 65 66 6f 72 |he sourc|es befor|
|00001850| 65 20 79 6f 75 20 69 6e | 73 74 61 6c 6c 20 74 6f |e you in|stall to|
|00001860| 20 73 65 65 20 69 66 20 | 74 68 65 20 61 73 73 75 | see if |the assu|
|00001870| 6d 70 74 69 6f 6e 73 0a | 58 20 20 49 20 6d 61 64 |mptions.|X I mad|
|00001880| 65 20 61 72 65 20 63 6f | 72 72 65 63 74 20 66 6f |e are co|rrect fo|
|00001890| 72 20 79 6f 75 72 20 73 | 69 74 65 2e 0a 58 0a 58 |r your s|ite..X.X|
|000018a0| 31 2e 20 43 68 6f 6f 73 | 65 20 77 68 69 63 68 20 |1. Choos|e which |
|000018b0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 6e 70 61 73 73 |version |of npass|
|000018c0| 77 64 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 62 |wd you w|ant to b|
|000018d0| 65 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 61 6e |e the de|fault an|
|000018e0| 64 0a 58 20 20 20 72 65 | 74 61 72 67 65 74 20 27 |d.X re|target '|
|000018f0| 61 6c 6c 27 20 69 6e 20 | 4d 61 6b 65 66 69 6c 65 |all' in |Makefile|
|00001900| 20 74 6f 20 70 6f 69 6e | 74 20 74 6f 20 69 74 2e | to poin|t to it.|
|00001910| 0a 58 0a 58 32 2e 20 52 | 65 61 64 20 63 68 65 63 |.X.X2. R|ead chec|
|00001920| 6b 70 61 73 73 77 64 2f | 52 45 41 44 4d 45 20 61 |kpasswd/|README a|
|00001930| 6e 64 20 63 6f 6e 66 69 | 67 75 72 65 20 4d 61 6b |nd confi|gure Mak|
|00001940| 65 66 69 6c 65 73 20 61 | 63 63 6f 72 64 69 6e 67 |efiles a|ccording|
|00001950| 6c 79 2e 0a 58 0a 58 33 | 2e 20 53 65 74 20 74 68 |ly..X.X3|. Set th|
|00001960| 65 20 73 79 73 74 65 6d | 20 74 61 72 67 65 74 20 |e system| target |
|00001970| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 6e 20 4d |informat|ion in M|
|00001980| 61 6b 65 66 69 6c 65 2e | 0a 58 09 2a 20 46 6f 72 |akefile.|.X.* For|
|00001990| 20 72 75 6e 6e 69 6e 67 | 20 75 6e 64 65 72 20 53 | running| under S|
|000019a0| 75 6e 4f 53 20 34 2e 58 | 20 73 79 73 74 65 6d 2c |unOS 4.X| system,|
|000019b0| 20 73 65 74 20 4f 50 54 | 49 4f 4e 53 20 3d 20 2d | set OPT|IONS = -|
|000019c0| 44 53 55 4e 4f 53 34 20 | 0a 58 09 2a 20 49 66 20 |DSUNOS4 |.X.* If |
|000019d0| 79 6f 75 20 61 72 65 20 | 74 68 69 6e 6b 69 6e 67 |you are |thinking|
|000019e0| 20 61 62 6f 75 74 20 72 | 75 6e 6e 69 6e 67 20 53 | about r|unning S|
|000019f0| 75 6e 20 22 53 65 63 75 | 72 65 20 52 50 43 22 2c |un "Secu|re RPC",|
|00001a00| 20 61 64 64 0a 58 09 20 | 20 2d 44 53 45 43 55 52 | add.X. | -DSECUR|
|00001a10| 45 5f 52 50 43 20 74 6f | 20 4f 50 54 49 4f 4e 53 |E_RPC to| OPTIONS|
|00001a20| 0a 58 09 2a 20 46 6f 72 | 20 72 75 6e 6e 69 6e 67 |.X.* For| running|
|00001a30| 20 75 6e 64 65 72 20 53 | 79 73 74 65 6d 20 56 2c | under S|ystem V,|
|00001a40| 20 73 65 74 20 4f 50 54 | 49 4f 4e 53 20 3d 20 2d | set OPT|IONS = -|
|00001a50| 44 53 59 53 56 0a 58 09 | 2a 20 54 6f 20 75 73 65 |DSYSV.X.|* To use|
|00001a60| 20 73 79 73 6c 6f 67 28 | 33 29 2c 20 69 6e 63 6c | syslog(|3), incl|
|00001a70| 75 64 65 20 2d 44 53 59 | 53 4c 4f 47 20 69 6e 20 |ude -DSY|SLOG in |
|00001a80| 4f 50 54 49 4f 4e 53 0a | 58 09 2a 20 54 6f 20 75 |OPTIONS.|X.* To u|
|00001a90| 70 64 61 74 65 20 74 68 | 65 20 34 2e 33 42 53 44 |pdate th|e 4.3BSD|
|00001aa0| 20 68 61 73 68 65 64 20 | 70 61 73 73 77 6f 72 64 | hashed |password|
|00001ab0| 20 64 61 74 61 62 61 73 | 65 2c 0a 58 09 20 20 69 | databas|e,.X. i|
|00001ac0| 6e 63 6c 75 64 65 20 27 | 2d 44 42 53 44 34 5f 33 |nclude '|-DBSD4_3|
|00001ad0| 27 20 69 6e 20 4f 50 54 | 49 4f 4e 53 2e 0a 58 09 |' in OPT|IONS..X.|
|00001ae0| 2a 20 43 68 61 6e 67 65 | 20 74 68 65 20 6c 69 6e |* Change| the lin|
|00001af0| 65 73 20 66 6f 72 20 27 | 43 46 27 20 61 6e 64 20 |es for '|CF' and |
|00001b00| 27 48 46 27 20 74 6f 20 | 72 65 74 61 72 67 65 74 |'HF' to |retarget|
|00001b10| 20 74 68 65 20 63 6f 6e | 66 69 67 20 61 6e 64 0a | the con|fig and.|
|00001b20| 58 09 20 20 6f 72 20 68 | 65 6c 70 20 66 69 6c 65 |X. or h|elp file|
|00001b30| 73 2e 0a 58 0a 58 34 2e | 20 45 64 69 74 20 27 6e |s..X.X4.| Edit 'n|
|00001b40| 70 61 73 73 77 64 2e 68 | 65 6c 70 27 20 74 6f 20 |passwd.h|elp' to |
|00001b50| 72 65 66 6c 65 63 74 20 | 74 68 65 20 70 72 65 66 |reflect |the pref|
|00001b60| 65 72 65 6e 63 65 73 20 | 63 68 6f 73 65 6e 20 66 |erences |chosen f|
|00001b70| 6f 72 20 74 68 65 0a 58 | 20 20 20 70 61 73 73 77 |or the.X| passw|
|00001b80| 6f 72 64 20 63 68 65 63 | 6b 69 6e 67 20 70 6c 75 |ord chec|king plu|
|00001b90| 73 20 61 64 64 20 61 6e | 79 20 6f 74 68 65 72 20 |s add an|y other |
|00001ba0| 6c 6f 63 61 6c 20 61 64 | 6d 69 6e 69 73 74 72 61 |local ad|ministra|
|00001bb0| 74 69 76 61 2e 0a 58 0a | 58 35 2e 20 45 64 69 74 |tiva..X.|X5. Edit|
|00001bc0| 20 27 6e 70 61 73 73 77 | 64 2e 63 6f 6e 66 27 20 | 'npassw|d.conf' |
|00001bd0| 74 6f 20 72 65 66 6c 65 | 63 74 20 79 6f 75 72 20 |to refle|ct your |
|00001be0| 70 72 65 66 65 72 65 6e | 63 65 73 2e 20 20 53 65 |preferen|ces. Se|
|00001bf0| 65 0a 58 20 20 20 63 68 | 65 63 6b 70 61 73 73 77 |e.X ch|eckpassw|
|00001c00| 64 2f 63 68 65 63 6b 70 | 61 73 73 77 64 2e 38 20 |d/checkp|asswd.8 |
|00001c10| 28 6f 72 20 74 68 65 20 | 73 65 63 74 69 6f 6e 20 |(or the |section |
|00001c20| 62 65 6c 6f 77 29 20 66 | 6f 72 20 69 6e 66 6f 72 |below) f|or infor|
|00001c30| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 0a 58 20 20 |mation a|bout.X |
|00001c40| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 20 63 68 | the pas|sword ch|
|00001c50| 65 63 6b 69 6e 67 20 63 | 6f 6e 66 69 67 75 72 61 |ecking c|onfigura|
|00001c60| 74 69 6f 6e 20 66 69 6c | 65 2e 0a 58 0a 58 36 2e |tion fil|e..X.X6.|
|00001c70| 20 44 6f 20 61 20 27 6d | 61 6b 65 27 2e 0a 58 0a | Do a 'm|ake'..X.|
|00001c80| 58 37 2e 20 42 65 63 6f | 6d 65 20 73 75 70 65 72 |X7. Beco|me super|
|00001c90| 2d 75 73 65 72 20 61 6e | 64 20 64 6f 20 27 6d 61 |-user an|d do 'ma|
|00001ca0| 6b 65 20 69 6e 73 74 61 | 6c 6c 27 2e 0a 58 0a 58 |ke insta|ll'..X.X|
|00001cb0| 38 2e 20 49 66 20 79 6f | 75 20 62 75 69 6c 74 20 |8. If yo|u built |
|00001cc0| 6e 70 61 73 73 77 64 20 | 77 69 74 68 20 2d 44 53 |npasswd |with -DS|
|00001cd0| 59 53 4c 4f 47 2c 20 6d | 6f 64 69 66 79 20 2f 65 |YSLOG, m|odify /e|
|00001ce0| 74 63 2f 73 79 73 6c 6f | 67 2e 63 6f 6e 66 20 74 |tc/syslo|g.conf t|
|00001cf0| 6f 20 6c 6f 67 0a 58 20 | 20 20 6d 65 73 73 61 67 |o log.X | messag|
|00001d00| 65 73 20 66 6f 72 20 66 | 61 63 69 6c 69 74 79 20 |es for f|acility |
|00001d10| 4c 4f 47 5f 41 55 54 48 | 20 6c 65 76 65 6c 20 4c |LOG_AUTH| level L|
|00001d20| 4f 47 5f 49 4e 46 4f 2e | 20 20 54 68 69 73 20 67 |OG_INFO.| This g|
|00001d30| 69 76 65 73 20 79 6f 75 | 20 61 20 72 65 63 6f 72 |ives you| a recor|
|00001d40| 64 0a 58 20 20 20 6f 66 | 20 70 61 73 73 77 6f 72 |d.X of| passwor|
|00001d50| 64 20 63 68 61 6e 67 65 | 73 2e 0a 58 0a 58 2a 20 |d change|s..X.X* |
|00001d60| 54 68 65 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |The conf|iguratio|
|00001d70| 6e 20 66 69 6c 65 20 65 | 78 70 6c 61 69 6e 65 64 |n file e|xplained|
|00001d80| 0a 58 0a 58 64 69 63 74 | 69 6f 6e 61 72 79 09 2f |.X.Xdict|ionary./|
|00001d90| 70 61 74 68 2f 74 6f 2f | 64 69 63 74 69 6f 6e 61 |path/to/|dictiona|
|00001da0| 72 79 09 5b 64 65 73 63 | 72 69 70 74 69 6f 6e 5d |ry.[desc|ription]|
|00001db0| 0a 58 09 2f 75 73 72 2f | 64 69 63 74 2f 77 6f 72 |.X./usr/|dict/wor|
|00001dc0| 64 73 20 69 73 20 61 6c | 77 61 79 73 20 6c 6f 6f |ds is al|ways loo|
|00001dd0| 6b 65 64 20 69 6e 2e 0a | 58 09 54 68 65 72 65 20 |ked in..|X.There |
|00001de0| 61 72 65 20 32 20 67 6f | 6f 64 20 72 65 61 73 6f |are 2 go|od reaso|
|00001df0| 6e 73 20 74 6f 20 68 61 | 76 65 20 61 20 44 42 4d |ns to ha|ve a DBM|
|00001e00| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 65 61 63 68 | version| of each|
|00001e10| 20 64 69 63 74 69 6f 6e | 61 72 79 3a 0a 58 09 31 | diction|ary:.X.1|
|00001e20| 2e 20 46 61 73 74 65 72 | 20 70 61 73 73 77 6f 72 |. Faster| passwor|
|00001e30| 64 20 63 68 65 63 6b 69 | 6e 67 2e 09 0a 58 09 32 |d checki|ng...X.2|
|00001e40| 2e 20 4d 6f 72 65 20 73 | 65 63 75 72 65 20 63 68 |. More s|ecure ch|
|00001e50| 65 63 6b 69 6e 67 2e 20 | 20 49 66 20 74 68 65 72 |ecking. | If ther|
|00001e60| 65 20 61 72 65 20 6e 6f | 20 44 42 4d 20 66 69 6c |e are no| DBM fil|
|00001e70| 65 73 2c 20 74 68 65 6e | 20 65 67 72 65 70 28 31 |es, then| egrep(1|
|00001e80| 29 0a 58 09 20 20 20 69 | 73 20 75 73 65 64 20 61 |).X. i|s used a|
|00001e90| 6e 64 20 75 6e 66 6f 72 | 74 75 6e 61 74 65 6c 79 |nd unfor|tunately|
|00001ea0| 2c 20 74 68 65 20 63 61 | 6e 64 69 64 61 74 65 20 |, the ca|ndidate |
|00001eb0| 70 61 73 73 77 6f 72 64 | 20 6d 75 73 74 20 62 65 |password| must be|
|00001ec0| 20 70 75 74 20 6f 6e 20 | 74 68 65 20 0a 58 09 20 | put on |the .X. |
|00001ed0| 20 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 2d | comman|d line -|
|00001ee0| 20 77 68 69 63 68 20 6d | 61 6b 65 73 20 69 74 20 | which m|akes it |
|00001ef0| 73 75 73 70 65 63 74 69 | 62 6c 65 20 74 6f 20 62 |suspecti|ble to b|
|00001f00| 65 69 6e 67 20 73 65 65 | 6e 20 77 69 74 68 20 70 |eing see|n with p|
|00001f10| 73 28 31 29 2e 0a 58 0a | 58 23 20 73 69 6e 67 6c |s(1)..X.|X# singl|
|00001f20| 65 63 61 73 65 09 79 65 | 73 20 7c 20 5b 6e 6f 5d |ecase.ye|s | [no]|
|00001f30| 09 2d 20 50 61 73 73 20 | 73 69 6e 67 6c 65 2d 63 |.- Pass |single-c|
|00001f40| 61 73 65 20 70 61 73 73 | 77 6f 72 64 73 0a 58 09 |ase pass|words.X.|
|00001f50| 41 6c 6c 6f 77 20 73 69 | 6e 67 6c 65 20 63 61 73 |Allow si|ngle cas|
|00001f60| 65 20 70 61 73 73 77 6f | 72 64 73 2e 20 20 44 65 |e passwo|rds. De|
|00001f70| 66 61 75 6c 74 20 69 73 | 20 6e 6f 74 20 74 6f 2e |fault is| not to.|
|00001f80| 0a 58 0a 58 23 20 6d 69 | 6e 6c 65 6e 67 74 68 09 |.X.X# mi|nlength.|
|00001f90| 4e 20 5b 35 5d 09 2d 20 | 4d 69 6e 69 6d 75 6d 20 |N [5].- |Minimum |
|00001fa0| 70 61 73 73 77 6f 72 64 | 20 6c 65 6e 67 74 68 0a |password| length.|
|00001fb0| 58 09 35 20 63 68 61 72 | 61 63 74 65 72 73 20 69 |X.5 char|acters i|
|00001fc0| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 6d 69 |s the de|fault mi|
|00001fd0| 6e 69 6d 75 6d 20 70 61 | 73 73 77 6f 72 64 20 6c |nimum pa|ssword l|
|00001fe0| 65 6e 67 74 68 0a 58 0a | 58 23 20 6d 61 78 6c 65 |ength.X.|X# maxle|
|00001ff0| 6e 67 74 68 09 4e 20 5b | 38 5d 09 4d 61 78 69 6d |ngth.N [|8].Maxim|
|00002000| 75 6d 20 65 66 66 65 63 | 74 69 76 65 20 70 61 73 |um effec|tive pas|
|00002010| 73 77 6f 72 64 20 6c 65 | 6e 67 74 68 0a 58 09 41 |sword le|ngth.X.A|
|00002020| 6c 6c 20 74 68 69 73 20 | 64 6f 65 73 20 69 73 20 |ll this |does is |
|00002030| 69 73 73 75 65 20 61 20 | 77 61 72 6e 69 6e 67 20 |issue a |warning |
|00002040| 6d 65 73 73 61 67 65 20 | 74 68 61 74 20 6a 75 73 |message |that jus|
|00002050| 74 20 74 68 65 20 66 69 | 72 73 74 20 4e 0a 58 09 |t the fi|rst N.X.|
|00002060| 63 68 61 72 61 63 74 65 | 72 73 20 6f 66 20 61 20 |characte|rs of a |
|00002070| 70 61 73 73 77 6f 72 64 | 20 61 72 65 20 75 73 65 |password| are use|
|00002080| 64 2e 0a 58 0a 58 23 20 | 70 72 69 6e 74 6f 6e 6c |d..X.X# |printonl|
|00002090| 79 09 79 65 73 20 7c 20 | 5b 6e 6f 5d 20 09 2d 20 |y.yes | |[no] .- |
|000020a0| 41 6c 6c 6f 77 20 6f 6e | 6c 79 20 70 72 69 6e 74 |Allow on|ly print|
|000020b0| 61 62 6c 65 20 63 68 61 | 72 61 63 74 65 72 73 0a |able cha|racters.|
|000020c0| 58 09 41 6c 6c 6f 77 20 | 6e 6f 6e 2d 70 72 69 6e |X.Allow |non-prin|
|000020d0| 74 61 62 6c 65 20 28 41 | 53 43 49 49 20 63 6f 6e |table (A|SCII con|
|000020e0| 74 72 6f 6c 29 20 63 68 | 61 72 61 63 74 65 72 73 |trol) ch|aracters|
|000020f0| 20 69 6e 20 70 61 73 73 | 77 6f 72 64 73 0a 58 0a | in pass|words.X.|
|00002100| 58 23 20 62 61 64 63 68 | 61 72 73 09 22 3c 73 74 |X# badch|ars."<st|
|00002110| 72 69 6e 67 3e 22 09 2d | 20 52 65 70 6c 61 63 65 |ring>".-| Replace|
|00002120| 20 69 6c 6c 65 67 61 6c | 20 63 68 61 72 61 63 74 | illegal| charact|
|00002130| 65 72 20 6c 69 73 74 0a | 58 09 53 65 74 20 61 20 |er list.|X.Set a |
|00002140| 6c 69 73 74 20 6f 66 20 | 63 68 61 72 61 63 74 65 |list of |characte|
|00002150| 72 73 20 76 65 72 62 6f | 74 65 6e 20 69 6e 20 70 |rs verbo|ten in p|
|00002160| 61 73 73 77 6f 72 64 73 | 2e 0a 58 09 54 68 69 73 |asswords|..X.This|
|00002170| 20 66 6f 72 6d 20 52 45 | 50 4c 41 43 45 53 20 74 | form RE|PLACES t|
|00002180| 68 65 20 62 75 69 6c 74 | 2d 69 6e 20 69 6c 6c 65 |he built|-in ille|
|00002190| 67 61 6c 20 63 68 61 72 | 61 63 74 65 72 20 6c 69 |gal char|acter li|
|000021a0| 73 74 2e 0a 58 09 43 6f | 6e 74 72 6f 6c 20 63 68 |st..X.Co|ntrol ch|
|000021b0| 61 72 61 63 74 65 72 73 | 20 6d 61 79 20 62 65 20 |aracters| may be |
|000021c0| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 74 68 65 |specifie|d by the|
|000021d0| 20 27 5e 58 27 20 63 6f | 6e 76 65 6e 74 69 6f 6e | '^X' co|nvention|
|000021e0| 2e 20 20 0a 58 0a 58 23 | 20 62 61 64 63 68 61 72 |. .X.X#| badchar|
|000021f0| 73 09 2b 22 3c 73 74 72 | 69 6e 67 3e 22 09 2d 20 |s.+"<str|ing>".- |
|00002200| 41 64 64 20 74 6f 20 69 | 6c 6c 65 67 61 6c 20 63 |Add to i|llegal c|
|00002210| 68 61 72 61 63 74 65 72 | 20 6c 69 73 74 0a 58 09 |haracter| list.X.|
|00002220| 41 64 64 73 20 74 6f 20 | 74 68 65 20 62 75 69 6c |Adds to |the buil|
|00002230| 74 2d 69 6e 20 69 6c 6c | 65 67 61 6c 20 63 68 61 |t-in ill|egal cha|
|00002240| 72 61 63 74 65 72 20 6c | 69 73 74 2e 0a 58 0a 58 |racter l|ist..X.X|
|00002250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002260| 2d 2d 2d 2d 2d 2d 0a 58 | 42 75 67 20 72 65 70 6f |------.X|Bug repo|
|00002270| 72 74 73 20 26 20 65 6e | 68 61 6e 63 65 6d 65 6e |rts & en|hancemen|
|00002280| 74 73 20 74 6f 0a 58 63 | 6c 79 64 65 40 65 6d 78 |ts to.Xc|lyde@emx|
|00002290| 2e 75 74 65 78 61 73 2e | 65 64 75 0a 58 0a 58 0a |.utexas.|edu.X.X.|
|000022a0| 58 09 2d 43 6c 79 64 65 | 20 48 6f 6f 76 65 72 0a |X.-Clyde| Hoover.|
|000022b0| 58 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |X.END_OF|_FILE.if|
|000022c0| 20 74 65 73 74 20 34 38 | 32 35 20 2d 6e 65 20 60 | test 48|25 -ne `|
|000022d0| 77 63 20 2d 63 20 3c 27 | 52 45 41 44 4d 45 27 60 |wc -c <'|README'`|
|000022e0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000022f0| 73 68 61 72 3a 20 5c 22 | 27 52 45 41 44 4d 45 27 |shar: \"|'README'|
|00002300| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00002310| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00002320| 23 20 65 6e 64 20 6f 66 | 20 27 52 45 41 44 4d 45 |# end of| 'README|
|00002330| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00002340| 27 63 68 65 63 6b 70 61 | 73 73 77 64 2f 4d 61 6b |'checkpa|sswd/Mak|
|00002350| 65 66 69 6c 65 27 20 2d | 61 20 22 24 7b 31 7d 22 |efile' -|a "${1}"|
|00002360| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00002370| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00002380| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00002390| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000023a0| 63 68 65 63 6b 70 61 73 | 73 77 64 2f 4d 61 6b 65 |checkpas|swd/Make|
|000023b0| 66 69 6c 65 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |file'\".|else.ech|
|000023c0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|000023d0| 6e 67 20 5c 22 27 63 68 | 65 63 6b 70 61 73 73 77 |ng \"'ch|eckpassw|
|000023e0| 64 2f 4d 61 6b 65 66 69 | 6c 65 27 5c 22 20 5c 28 |d/Makefi|le'\" \(|
|000023f0| 32 39 37 31 20 63 68 61 | 72 61 63 74 65 72 73 5c |2971 cha|racters\|
|00002400| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00002410| 27 63 68 65 63 6b 70 61 | 73 73 77 64 2f 4d 61 6b |'checkpa|sswd/Mak|
|00002420| 65 66 69 6c 65 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |efile' <|<'END_OF|
|00002430| 5f 46 49 4c 45 27 0a 58 | 0a 58 23 20 2d 2d 2d 2d |_FILE'.X|.X# ----|
|00002440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002460| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002480| 20 20 23 0a 58 23 20 20 | 20 20 20 20 20 20 20 20 | #.X# | |
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 0a 58 | | #.X|
|000024d0| 23 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |# | |
|000024e0| 20 20 20 20 20 20 20 20 | 20 20 41 75 74 68 6f 72 | | Author|
|000024f0| 3a 20 43 6c 79 64 65 20 | 48 6f 6f 76 65 72 20 20 |: Clyde |Hoover |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002510| 20 20 20 20 20 20 20 20 | 23 0a 58 23 20 20 20 20 | |#.X# |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002530| 20 20 20 20 20 20 43 6f | 6d 70 75 74 61 74 69 6f | Co|mputatio|
|00002540| 6e 20 43 65 6e 74 65 72 | 20 20 20 20 20 20 20 20 |n Center| |
|00002550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002560| 20 20 20 23 0a 58 23 20 | 20 20 20 20 20 20 20 20 | #.X# | |
|00002570| 20 20 20 20 20 20 20 20 | 20 20 54 68 65 20 55 6e | | The Un|
|00002580| 69 76 65 72 73 69 74 79 | 20 6f 66 20 54 65 78 61 |iversity| of Texa|
|00002590| 73 20 61 74 20 41 75 73 | 74 69 6e 20 20 20 20 20 |s at Aus|tin |
|000025a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 23 0a | | #.|
|000025b0| 58 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X# | |
|000025c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 41 75 73 74 | | Aust|
|000025d0| 69 6e 2c 20 54 65 78 61 | 73 20 37 38 37 31 32 20 |in, Texa|s 78712 |
|000025e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025f0| 20 20 20 20 20 20 20 20 | 20 23 0a 58 23 20 20 20 | | #.X# |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002610| 20 20 20 20 20 20 63 6c | 79 64 65 40 65 6d 78 2e | cl|yde@emx.|
|00002620| 75 74 65 78 61 73 2e 65 | 64 75 20 20 20 20 20 20 |utexas.e|du |
|00002630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002640| 20 20 20 20 23 0a 58 23 | 20 20 20 20 20 20 20 20 | #.X#| |
|00002650| 20 20 20 20 20 20 20 20 | 20 20 20 75 75 6e 65 74 | | uunet|
|00002660| 21 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 21 75 |!cs.utex|as.edu!u|
|00002670| 74 2d 65 6d 78 21 63 6c | 79 64 65 20 20 20 20 20 |t-emx!cl|yde |
|00002680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|00002690| 0a 58 23 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X# | |
|000026a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026d0| 20 20 20 20 20 20 20 20 | 20 20 23 0a 58 23 54 68 | | #.X#Th|
|000026e0| 69 73 20 63 6f 64 65 20 | 6d 61 79 20 62 65 20 64 |is code |may be d|
|000026f0| 69 73 74 72 69 62 75 74 | 65 64 20 66 72 65 65 6c |istribut|ed freel|
|00002700| 79 2c 20 70 72 6f 76 69 | 64 65 64 20 74 68 69 73 |y, provi|ded this|
|00002710| 20 6e 6f 74 69 63 65 20 | 69 73 20 72 65 74 61 69 | notice |is retai|
|00002720| 6e 65 64 2e 20 23 0a 58 | 23 20 20 20 20 20 20 20 |ned. #.X|# |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002770| 23 0a 58 23 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |#.X# ---|--------|
|00002780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000027a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000027b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 20 23 0a 58 23 0a |--------|- #.X#.|
|000027c0| 58 23 09 4d 61 6b 65 66 | 69 6c 65 20 66 6f 72 20 |X#.Makef|ile for |
|000027d0| 63 68 65 63 6b 70 61 73 | 73 77 64 20 28 61 70 70 |checkpas|swd (app|
|000027e0| 6c 69 63 61 74 69 6f 6e | 20 26 20 6c 69 62 72 61 |lication| & libra|
|000027f0| 72 79 29 0a 58 23 0a 58 | 23 09 40 28 23 29 4d 61 |ry).X#.X|#.@(#)Ma|
|00002800| 6b 65 66 69 6c 65 09 31 | 2e 32 20 31 30 2f 33 30 |kefile.1|.2 10/30|
|00002810| 2f 38 39 20 28 63 63 2e | 75 74 65 78 61 73 2e 65 |/89 (cc.|utexas.e|
|00002820| 64 75 29 0a 58 23 0a 58 | 42 49 4e 44 49 52 09 3d |du).X#.X|BINDIR.=|
|00002830| 20 2f 75 73 72 2f 6c 6f | 63 61 6c 0a 58 41 44 4d | /usr/lo|cal.XADM|
|00002840| 44 49 52 09 3d 20 2f 75 | 73 72 2f 61 64 6d 0a 58 |DIR.= /u|sr/adm.X|
|00002850| 44 49 52 09 3d 20 2e 0a | 58 0a 58 41 50 50 4e 41 |DIR.= ..|X.XAPPNA|
|00002860| 4d 45 09 3d 20 63 68 65 | 63 6b 70 61 73 73 77 64 |ME.= che|ckpasswd|
|00002870| 0a 58 4c 49 42 4e 41 4d | 45 20 3d 20 63 68 65 63 |.XLIBNAM|E = chec|
|00002880| 6b 70 61 73 73 77 64 2e | 61 0a 58 0a 58 44 45 42 |kpasswd.|a.X.XDEB|
|00002890| 55 47 09 3d 20 2d 67 20 | 2d 44 44 45 42 55 47 0a |UG.= -g |-DDEBUG.|
|000028a0| 58 23 20 53 65 74 20 74 | 68 65 20 66 6f 6c 6c 6f |X# Set t|he follo|
|000028b0| 77 69 6e 67 20 74 77 6f | 20 6c 69 6e 65 73 20 74 |wing two| lines t|
|000028c0| 6f 20 24 28 44 45 42 55 | 47 29 20 66 6f 72 20 64 |o $(DEBU|G) for d|
|000028d0| 65 62 75 67 67 69 6e 67 | 0a 58 43 46 4c 41 47 53 |ebugging|.XCFLAGS|
|000028e0| 09 3d 20 2d 4f 0a 58 4c | 44 46 4c 41 47 53 09 3d |.= -O.XL|DFLAGS.=|
|000028f0| 20 0a 58 53 55 42 44 49 | 52 53 09 3d 20 64 69 63 | .XSUBDI|RS.= dic|
|00002900| 74 0a 58 0a 58 23 20 49 | 66 20 62 75 69 6c 64 69 |t.X.X# I|f buildi|
|00002910| 6e 67 20 77 69 74 68 20 | 4e 44 42 4d 2c 20 75 73 |ng with |NDBM, us|
|00002920| 65 20 74 68 65 73 65 20 | 6c 69 6e 65 73 20 0a 58 |e these |lines .X|
|00002930| 5a 4c 49 42 09 3d 0a 58 | 44 42 4d 09 3d 20 2d 44 |ZLIB.=.X|DBM.= -D|
|00002940| 4e 44 42 4d 0a 58 0a 58 | 53 4f 55 52 43 45 53 20 |NDBM.X.X|SOURCES |
|00002950| 3d 20 63 68 65 63 6b 70 | 61 73 73 77 64 2e 68 20 |= checkp|asswd.h |
|00002960| 63 68 65 63 6b 70 61 73 | 73 77 64 2e 63 20 6d 61 |checkpas|swd.c ma|
|00002970| 69 6e 2e 63 20 70 77 63 | 6b 5f 64 69 63 74 2e 63 |in.c pwc|k_dict.c|
|00002980| 20 70 77 63 6b 5f 70 61 | 73 73 77 64 2e 63 20 5c | pwck_pa|sswd.c \|
|00002990| 0a 58 09 70 77 63 6b 5f | 6c 65 78 69 63 61 6c 2e |.X.pwck_|lexical.|
|000029a0| 63 20 70 77 63 6b 5f 6c | 6f 63 61 6c 2e 63 20 75 |c pwck_l|ocal.c u|
|000029b0| 74 69 6c 2e 63 20 63 68 | 65 63 6b 70 61 73 73 77 |til.c ch|eckpassw|
|000029c0| 64 2e 68 20 0a 58 0a 58 | 4f 42 4a 45 43 54 53 20 |d.h .X.X|OBJECTS |
|000029d0| 3d 20 63 68 65 63 6b 70 | 61 73 73 77 64 2e 6f 20 |= checkp|asswd.o |
|000029e0| 70 77 63 6b 5f 64 69 63 | 74 2e 6f 20 70 77 63 6b |pwck_dic|t.o pwck|
|000029f0| 5f 70 61 73 73 77 64 2e | 6f 20 70 77 63 6b 5f 6c |_passwd.|o pwck_l|
|00002a00| 65 78 69 63 61 6c 2e 6f | 20 5c 0a 58 09 70 77 63 |exical.o| \.X.pwc|
|00002a10| 6b 5f 6c 6f 63 61 6c 2e | 6f 20 75 74 69 6c 2e 6f |k_local.|o util.o|
|00002a20| 0a 58 0a 58 41 50 50 4d | 41 49 4e 20 3d 20 6d 61 |.X.XAPPM|AIN = ma|
|00002a30| 69 6e 2e 6f 0a 58 4c 49 | 42 4d 41 49 4e 09 3d 20 |in.o.XLI|BMAIN.= |
|00002a40| 6c 69 62 6d 61 69 6e 2e | 6f 0a 58 0a 58 61 6c 6c |libmain.|o.X.Xall|
|00002a50| 3a 09 24 28 41 50 50 4e | 41 4d 45 29 20 24 28 4c |:.$(APPN|AME) $(L|
|00002a60| 49 42 4e 41 4d 45 29 20 | 64 69 63 74 0a 58 0a 58 |IBNAME) |dict.X.X|
|00002a70| 24 28 41 50 50 4e 41 4d | 45 29 3a 20 24 28 41 50 |$(APPNAM|E): $(AP|
|00002a80| 50 4d 41 49 4e 29 20 24 | 28 4f 42 4a 45 43 54 53 |PMAIN) $|(OBJECTS|
|00002a90| 29 0a 58 09 63 63 20 2d | 6f 20 24 28 41 50 50 4e |).X.cc -|o $(APPN|
|00002aa0| 41 4d 45 29 20 24 28 4c | 44 46 4c 41 47 53 29 20 |AME) $(L|DFLAGS) |
|00002ab0| 6d 61 69 6e 2e 6f 20 24 | 28 4f 42 4a 45 43 54 53 |main.o $|(OBJECTS|
|00002ac0| 29 0a 58 0a 58 24 28 4c | 49 42 4e 41 4d 45 29 3a |).X.X$(L|IBNAME):|
|00002ad0| 20 09 24 28 4c 49 42 4d | 41 49 4e 29 20 24 28 4f | .$(LIBM|AIN) $(O|
|00002ae0| 42 4a 45 43 54 53 29 0a | 58 09 2d 72 6d 20 2d 66 |BJECTS).|X.-rm -f|
|00002af0| 20 24 28 4c 49 42 4e 41 | 4d 45 29 0a 58 09 61 72 | $(LIBNA|ME).X.ar|
|00002b00| 20 63 72 20 24 28 4c 49 | 42 4e 41 4d 45 29 20 24 | cr $(LI|BNAME) $|
|00002b10| 28 4c 49 42 4d 41 49 4e | 29 20 24 28 4f 42 4a 45 |(LIBMAIN|) $(OBJE|
|00002b20| 43 54 53 29 0a 58 09 72 | 61 6e 6c 69 62 20 24 28 |CTS).X.r|anlib $(|
|00002b30| 4c 49 42 4e 41 4d 45 29 | 0a 58 0a 58 23 0a 58 23 |LIBNAME)|.X.X#.X#|
|00002b40| 20 49 66 20 6e 6f 74 20 | 75 73 69 6e 67 20 4e 44 | If not |using ND|
|00002b50| 42 4d 20 66 72 6f 6d 20 | 6c 69 62 63 2c 20 6c 69 |BM from |libc, li|
|00002b60| 6e 6b 20 69 6e 20 24 28 | 5a 4c 49 42 29 20 68 65 |nk in $(|ZLIB) he|
|00002b70| 72 65 0a 58 23 0a 58 70 | 77 63 6b 5f 64 69 63 74 |re.X#.Xp|wck_dict|
|00002b80| 2e 6f 3a 20 70 77 63 6b | 5f 64 69 63 74 2e 63 20 |.o: pwck|_dict.c |
|00002b90| 63 68 65 63 6b 70 61 73 | 73 77 64 2e 68 20 24 28 |checkpas|swd.h $(|
|00002ba0| 5a 4c 49 42 29 0a 58 09 | 24 28 43 43 29 20 24 28 |ZLIB).X.|$(CC) $(|
|00002bb0| 43 46 4c 41 47 53 29 20 | 24 28 44 42 4d 29 20 2d |CFLAGS) |$(DBM) -|
|00002bc0| 63 20 70 77 63 6b 5f 64 | 69 63 74 2e 63 0a 58 09 |c pwck_d|ict.c.X.|
|00002bd0| 2d 40 69 66 20 5b 20 2d | 6e 20 22 24 28 5a 4c 49 |-@if [ -|n "$(ZLI|
|00002be0| 42 29 22 20 5d 3b 20 74 | 68 65 6e 5c 0a 58 09 09 |B)" ]; t|hen\.X..|
|00002bf0| 73 65 74 20 2d 78 3b 5c | 0a 58 09 09 24 28 4c 44 |set -x;\|.X..$(LD|
|00002c00| 29 20 2d 72 20 24 2a 2e | 6f 20 2d 6f 20 24 2a 2e |) -r $*.|o -o $*.|
|00002c10| 78 20 24 28 5a 4c 49 42 | 29 3b 5c 0a 58 09 09 6d |x $(ZLIB|);\.X..m|
|00002c20| 76 20 24 2a 2e 78 20 24 | 2a 2e 6f 3b 5c 0a 58 09 |v $*.x $|*.o;\.X.|
|00002c30| 66 69 0a 58 09 40 65 63 | 68 6f 20 42 75 69 6c 64 |fi.X.@ec|ho Build|
|00002c40| 20 70 72 6f 67 72 61 6d | 73 20 69 6e 20 73 75 62 | program|s in sub|
|00002c50| 64 69 72 20 5c 27 64 69 | 63 74 5c 27 20 77 69 74 |dir \'di|ct\' wit|
|00002c60| 68 20 5c 22 24 28 44 42 | 4d 29 5c 22 0a 58 0a 58 |h \"$(DB|M)\".X.X|
|00002c70| 23 0a 58 23 20 4c 6f 63 | 61 6c 20 6c 69 62 72 61 |#.X# Loc|al libra|
|00002c80| 72 79 20 6c 69 6e 6b 65 | 64 20 74 6f 20 74 68 69 |ry linke|d to thi|
|00002c90| 73 20 6d 6f 64 75 6c 65 | 20 74 6f 20 73 69 6d 70 |s module| to simp|
|00002ca0| 6c 69 66 79 20 72 65 73 | 74 20 6f 66 20 6d 61 6b |lify res|t of mak|
|00002cb0| 65 20 70 72 6f 63 65 64 | 75 72 65 0a 58 23 20 28 |e proced|ure.X# (|
|00002cc0| 55 54 45 58 41 53 20 43 | 43 20 6f 6e 6c 79 29 2e |UTEXAS C|C only).|
|00002cd0| 20 0a 58 23 0a 58 55 49 | 4c 49 42 09 3d 20 2f 75 | .X#.XUI|LIB.= /u|
|00002ce0| 73 72 2f 6c 6f 63 61 6c | 2f 6c 69 62 2f 6c 69 62 |sr/local|/lib/lib|
|00002cf0| 75 73 65 72 69 6e 66 6f | 2e 61 0a 58 70 77 63 6b |userinfo|.a.Xpwck|
|00002d00| 5f 70 61 73 73 77 64 2e | 6f 3a 20 70 77 63 6b 5f |_passwd.|o: pwck_|
|00002d10| 70 61 73 73 77 64 2e 63 | 20 63 68 65 63 6b 70 61 |passwd.c| checkpa|
|00002d20| 73 73 77 64 2e 68 0a 58 | 09 2d 40 69 66 20 5b 20 |sswd.h.X|.-@if [ |
|00002d30| 2d 66 20 24 28 55 49 4c | 49 42 29 20 5d 3b 20 74 |-f $(UIL|IB) ]; t|
|00002d40| 68 65 6e 20 5c 0a 58 09 | 09 73 65 74 20 2d 65 78 |hen \.X.|.set -ex|
|00002d50| 3b 5c 0a 58 09 09 24 28 | 43 43 29 20 24 28 43 46 |;\.X..$(|CC) $(CF|
|00002d60| 4c 41 47 53 29 20 2d 44 | 55 54 45 58 41 53 5f 43 |LAGS) -D|UTEXAS_C|
|00002d70| 43 20 2d 63 20 24 3c 3b | 5c 0a 58 09 09 24 28 4c |C -c $<;|\.X..$(L|
|00002d80| 44 29 20 2d 72 20 24 2a | 2e 6f 20 2d 6f 20 24 2a |D) -r $*|.o -o $*|
|00002d90| 2e 78 20 24 28 55 49 4c | 49 42 29 3b 5c 0a 58 09 |.x $(UIL|IB);\.X.|
|00002da0| 09 6d 76 20 24 2a 2e 78 | 20 24 2a 2e 6f 3b 5c 0a |.mv $*.x| $*.o;\.|
|00002db0| 58 09 65 6c 73 65 20 5c | 0a 58 09 09 73 65 74 20 |X.else \|.X..set |
|00002dc0| 2d 78 3b 20 24 28 43 43 | 29 20 24 28 43 46 4c 41 |-x; $(CC|) $(CFLA|
|00002dd0| 47 53 29 20 2d 63 20 24 | 3c 3b 5c 0a 58 09 66 69 |GS) -c $|<;\.X.fi|
|00002de0| 0a 58 0a 58 63 6c 65 61 | 6e 3a 3a 0a 58 09 72 6d |.X.Xclea|n::.X.rm|
|00002df0| 20 2d 66 20 2a 2e 6f 20 | 61 2e 6f 75 74 20 63 68 | -f *.o |a.out ch|
|00002e00| 65 63 6b 70 61 73 73 77 | 64 20 63 6f 72 65 20 24 |eckpassw|d core $|
|00002e10| 28 4c 49 42 4e 41 4d 45 | 29 0a 58 09 2d 40 66 6f |(LIBNAME|).X.-@fo|
|00002e20| 72 20 66 20 69 6e 20 24 | 28 53 55 42 44 49 52 53 |r f in $|(SUBDIRS|
|00002e30| 29 3b 20 64 6f 20 5c 0a | 58 09 09 28 63 64 20 24 |); do \.|X..(cd $|
|00002e40| 24 66 3b 20 6d 61 6b 65 | 20 63 6c 65 61 6e 29 3b |$f; make| clean);|
|00002e50| 20 64 6f 6e 65 0a 58 0a | 58 64 69 63 74 3a 3a 0a | done.X.|Xdict::.|
|00002e60| 58 09 28 63 64 20 64 69 | 63 74 3b 20 6d 61 6b 65 |X.(cd di|ct; make|
|00002e70| 20 24 28 4d 46 4c 41 47 | 53 29 29 0a 58 0a 58 69 | $(MFLAG|S)).X.Xi|
|00002e80| 6e 73 74 61 6c 6c 3a 09 | 63 68 65 63 6b 70 61 73 |nstall:.|checkpas|
|00002e90| 73 77 64 0a 58 09 69 6e | 73 74 61 6c 6c 20 2d 73 |swd.X.in|stall -s|
|00002ea0| 20 63 68 65 63 6b 70 61 | 73 73 77 64 20 24 28 42 | checkpa|sswd $(B|
|00002eb0| 49 4e 44 49 52 29 0a 58 | 09 69 6e 73 74 61 6c 6c |INDIR).X|.install|
|00002ec0| 20 2d 63 20 2d 6d 20 30 | 36 34 34 20 63 68 65 63 | -c -m 0|644 chec|
|00002ed0| 6b 70 61 73 73 77 64 2e | 63 66 20 24 28 41 44 4d |kpasswd.|cf $(ADM|
|00002ee0| 44 49 52 29 0a 58 20 0a | 58 23 20 2d 2d 2d 2d 2d |DIR).X .|X# -----|
|00002ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 58 23 |--------|-----.X#|
|00002f30| 0a 58 23 20 53 6f 75 72 | 63 65 20 64 65 70 65 6e |.X# Sour|ce depen|
|00002f40| 64 61 6e 63 69 65 73 0a | 58 23 0a 58 63 68 65 63 |dancies.|X#.Xchec|
|00002f50| 6b 70 61 73 73 77 64 2e | 6f 3a 20 63 68 65 63 6b |kpasswd.|o: check|
|00002f60| 70 61 73 73 77 64 2e 63 | 20 63 68 65 63 6b 70 61 |passwd.c| checkpa|
|00002f70| 73 73 77 64 2e 68 0a 58 | 6d 61 69 6e 2e 6f 3a 20 |sswd.h.X|main.o: |
|00002f80| 6d 61 69 6e 2e 63 20 63 | 68 65 63 6b 70 61 73 73 |main.c c|heckpass|
|00002f90| 77 64 2e 68 20 76 65 72 | 73 69 6f 6e 2e 68 0a 58 |wd.h ver|sion.h.X|
|00002fa0| 6c 69 62 6d 61 69 6e 2e | 6f 3a 20 6c 69 62 6d 61 |libmain.|o: libma|
|00002fb0| 69 6e 2e 63 20 63 68 65 | 63 6b 70 61 73 73 77 64 |in.c che|ckpasswd|
|00002fc0| 2e 68 0a 58 70 77 63 6b | 5f 6c 65 78 69 63 61 6c |.h.Xpwck|_lexical|
|00002fd0| 2e 6f 3a 20 70 77 63 6b | 5f 6c 65 78 69 63 61 6c |.o: pwck|_lexical|
|00002fe0| 2e 63 20 63 68 65 63 6b | 70 61 73 73 77 64 2e 68 |.c check|passwd.h|
|00002ff0| 0a 58 70 77 63 6b 5f 6c | 6f 63 61 6c 2e 6f 3a 20 |.Xpwck_l|ocal.o: |
|00003000| 70 77 63 6b 5f 6c 6f 63 | 61 6c 2e 63 20 63 68 65 |pwck_loc|al.c che|
|00003010| 63 6b 70 61 73 73 77 64 | 2e 68 0a 58 75 74 69 6c |ckpasswd|.h.Xutil|
|00003020| 2e 6f 3a 20 75 74 69 6c | 2e 63 20 63 68 65 63 6b |.o: util|.c check|
|00003030| 70 61 73 73 77 64 2e 68 | 0a 45 4e 44 5f 4f 46 5f |passwd.h|.END_OF_|
|00003040| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 32 39 37 |FILE.if |test 297|
|00003050| 31 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 63 |1 -ne `w|c -c <'c|
|00003060| 68 65 63 6b 70 61 73 73 | 77 64 2f 4d 61 6b 65 66 |heckpass|wd/Makef|
|00003070| 69 6c 65 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |ile'`; t|hen. |
|00003080| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 63 68 |echo sha|r: \"'ch|
|00003090| 65 63 6b 70 61 73 73 77 | 64 2f 4d 61 6b 65 66 69 |eckpassw|d/Makefi|
|000030a0| 6c 65 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |le'\" un|packed w|
|000030b0| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|000030c0| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 63 68 65 |fi.# end| of 'che|
|000030d0| 63 6b 70 61 73 73 77 64 | 2f 4d 61 6b 65 66 69 6c |ckpasswd|/Makefil|
|000030e0| 65 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |e'.fi.if| test -f|
|000030f0| 20 27 63 68 65 63 6b 70 | 61 73 73 77 64 2f 63 61 | 'checkp|asswd/ca|
|00003100| 6c 6c 5f 63 6b 70 61 73 | 73 77 64 2e 63 27 20 2d |ll_ckpas|swd.c' -|
|00003110| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00003120| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00003130| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00003140| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00003150| 66 69 6c 65 20 5c 22 27 | 63 68 65 63 6b 70 61 73 |file \"'|checkpas|
|00003160| 73 77 64 2f 63 61 6c 6c | 5f 63 6b 70 61 73 73 77 |swd/call|_ckpassw|
|00003170| 64 2e 63 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |d.c'\".e|lse.echo|
|00003180| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00003190| 67 20 5c 22 27 63 68 65 | 63 6b 70 61 73 73 77 64 |g \"'che|ckpasswd|
|000031a0| 2f 63 61 6c 6c 5f 63 6b | 70 61 73 73 77 64 2e 63 |/call_ck|passwd.c|
|000031b0| 27 5c 22 20 5c 28 32 35 | 31 38 20 63 68 61 72 61 |'\" \(25|18 chara|
|000031c0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000031d0| 58 2f 2f 22 20 3e 27 63 | 68 65 63 6b 70 61 73 73 |X//" >'c|heckpass|
|000031e0| 77 64 2f 63 61 6c 6c 5f | 63 6b 70 61 73 73 77 64 |wd/call_|ckpasswd|
|000031f0| 2e 63 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.c' <<'E|ND_OF_FI|
|00003200| 4c 45 27 0a 58 0a 58 2f | 2a 20 2d 2d 2d 2d 2d 2d |LE'.X.X/|* ------|
|00003210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 20 20 |--------|------ |
|00003250| 2a 2f 0a 58 2f 2a 20 20 | 20 20 20 20 20 20 20 20 |*/.X/* | |
|00003260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|000032a0| 58 2f 2a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X/* | |
|000032b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 41 75 74 68 | | Auth|
|000032c0| 6f 72 3a 20 43 6c 79 64 | 65 20 48 6f 6f 76 65 72 |or: Clyd|e Hoover|
|000032d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032e0| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 58 2f 2a | | */.X/*|
|000032f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003300| 20 20 20 20 20 20 20 20 | 20 20 43 6f 6d 70 75 74 | | Comput|
|00003310| 61 74 69 6f 6e 20 43 65 | 6e 74 65 72 20 20 20 20 |ation Ce|nter |
|00003320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003330| 20 20 20 20 20 20 20 2a | 2f 0a 58 2f 2a 20 20 20 | *|/.X/* |
|00003340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003350| 54 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |The Univ|ersity o|
|00003360| 66 20 54 65 78 61 73 20 | 61 74 20 41 75 73 74 69 |f Texas |at Austi|
|00003370| 6e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n | |
|00003380| 20 20 20 20 2a 2f 0a 58 | 2f 2a 20 20 20 20 20 20 | */.X|/* |
|00003390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033a0| 20 20 20 20 41 75 73 74 | 69 6e 2c 20 54 65 78 61 | Aust|in, Texa|
|000033b0| 73 20 37 38 37 31 32 20 | 20 20 20 20 20 20 20 20 |s 78712 | |
|000033c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033d0| 20 2a 2f 0a 58 2f 2a 20 | 20 20 20 20 20 20 20 20 | */.X/* | |
|000033e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033f0| 63 6c 79 64 65 40 65 6d | 78 2e 75 74 65 78 61 73 |clyde@em|x.utexas|
|00003400| 2e 65 64 75 20 20 20 20 | 20 20 20 20 20 20 20 20 |.edu | |
|00003410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00003420| 0a 58 2f 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X/* | |
|00003430| 20 20 20 20 20 20 20 75 | 75 6e 65 74 21 63 73 2e | u|unet!cs.|
|00003440| 75 74 65 78 61 73 2e 65 | 64 75 21 75 74 2d 65 6d |utexas.e|du!ut-em|
|00003450| 78 21 63 6c 79 64 65 20 | 20 20 20 20 20 20 20 20 |x!clyde | |
|00003460| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 58 2f | | */.X/|
|00003470| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00003480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034b0| 20 20 20 20 20 20 20 20 | 2a 2f 0a 58 2f 2a 54 68 | |*/.X/*Th|
|000034c0| 69 73 20 63 6f 64 65 20 | 6d 61 79 20 62 65 20 64 |is code |may be d|
|000034d0| 69 73 74 72 69 62 75 74 | 65 64 20 66 72 65 65 6c |istribut|ed freel|
|000034e0| 79 2c 20 70 72 6f 76 69 | 64 65 64 20 74 68 69 73 |y, provi|ded this|
|000034f0| 20 6e 6f 74 69 63 65 20 | 69 73 20 72 65 74 61 69 | notice |is retai|
|00003500| 6e 65 64 2e 20 2a 2f 0a | 58 2f 2a 20 20 20 20 20 |ned. */.|X/* |
|00003510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003550| 20 20 2a 2f 0a 58 2f 2a | 20 2d 2d 2d 2d 2d 2d 2d | */.X/*| -------|
|00003560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003580| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 20 20 2a |--------|----- *|
|000035a0| 2f 0a 58 2f 2a 0a 58 20 | 2a 09 43 6f 64 65 20 77 |/.X/*.X |*.Code w|
|000035b0| 68 69 63 68 20 63 61 6c | 6c 73 20 74 68 65 20 73 |hich cal|ls the s|
|000035c0| 74 61 6e 64 61 6c 6f 6e | 65 20 70 61 73 73 77 6f |tandalon|e passwo|
|000035d0| 72 64 20 63 68 65 63 6b | 20 70 72 6f 67 72 61 6d |rd check| program|
|000035e0| 0a 58 20 2a 2f 0a 58 23 | 69 6e 63 6c 75 64 65 20 |.X */.X#|include |
|000035f0| 3c 73 79 73 2f 74 79 70 | 65 73 2e 68 3e 0a 58 23 |<sys/typ|es.h>.X#|
|00003600| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 77 61 69 |include |<sys/wai|
|00003610| 74 2e 68 3e 0a 58 0a 58 | 23 69 66 6e 64 65 66 09 |t.h>.X.X|#ifndef.|
|00003620| 43 48 45 43 4b 50 41 53 | 53 57 44 0a 58 23 64 65 |CHECKPAS|SWD.X#de|
|00003630| 66 69 6e 65 09 43 48 45 | 43 4b 50 41 53 53 57 44 |fine.CHE|CKPASSWD|
|00003640| 09 22 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 6c 69 62 |."/usr/l|ocal/lib|
|00003650| 2f 63 68 65 63 6b 70 61 | 73 73 77 64 22 0a 58 23 |/checkpa|sswd".X#|
|00003660| 65 6e 64 69 66 0a 58 2f | 2a 0a 58 20 2a 09 63 68 |endif.X/|*.X *.ch|
|00003670| 65 63 6b 70 61 73 73 77 | 64 20 2d 20 63 61 6c 6c |eckpassw|d - call|
|00003680| 20 70 61 73 73 77 6f 72 | 64 20 63 68 65 63 6b 65 | passwor|d checke|
|00003690| 72 0a 58 20 2a 0a 58 20 | 2a 09 52 65 74 75 72 6e |r.X *.X |*.Return|
|000036a0| 73 3a 20 30 20 69 66 20 | 70 61 73 73 77 6f 72 64 |s: 0 if |password|
|000036b0| 20 63 61 6e 20 6e 6f 74 | 20 62 65 20 75 73 65 64 | can not| be used|
|000036c0| 0a 58 20 2a 09 09 20 31 | 20 69 66 20 70 61 73 73 |.X *.. 1| if pass|
|000036d0| 77 6f 72 64 20 63 61 6e | 20 62 65 20 75 73 65 64 |word can| be used|
|000036e0| 0a 58 20 2a 09 09 2d 31 | 20 69 66 20 65 72 72 6f |.X *..-1| if erro|
|000036f0| 72 0a 58 20 2a 2f 0a 58 | 63 68 65 63 6b 70 61 73 |r.X */.X|checkpas|
|00003700| 73 77 64 28 75 69 64 2c | 20 6e 65 77 70 77 29 0a |swd(uid,| newpw).|
|00003710| 58 69 6e 74 09 75 69 64 | 3b 09 09 2f 2a 20 55 73 |Xint.uid|;../* Us|
|00003720| 65 72 20 69 64 20 77 61 | 6e 74 69 6e 67 20 6e 65 |er id wa|nting ne|
|00003730| 77 20 70 61 73 73 77 6f | 72 64 20 2a 2f 0a 58 63 |w passwo|rd */.Xc|
|00003740| 68 61 72 09 2a 6e 65 77 | 70 77 3b 09 09 2f 2a 20 |har.*new|pw;../* |
|00003750| 50 61 73 73 77 6f 72 64 | 20 77 61 6e 74 65 64 20 |Password| wanted |
|00003760| 2a 2f 0a 58 7b 0a 58 09 | 69 6e 74 09 70 69 64 2c |*/.X{.X.|int.pid,|
|00003770| 09 09 2f 2a 20 43 68 69 | 6c 64 20 70 69 64 20 2a |../* Chi|ld pid *|
|00003780| 2f 0a 58 09 09 69 2c 09 | 09 2f 2a 20 54 65 6d 70 |/.X..i,.|./* Temp|
|00003790| 20 2a 2f 0a 58 09 09 69 | 69 2c 09 09 2f 2a 20 54 | */.X..i|i,../* T|
|000037a0| 65 6d 70 20 2a 2f 0a 58 | 09 09 66 64 73 5b 32 5d |emp */.X|..fds[2]|
|000037b0| 3b 09 09 2f 2a 20 50 69 | 70 65 20 2a 2f 0a 58 09 |;../* Pi|pe */.X.|
|000037c0| 75 6e 69 6f 6e 20 77 61 | 69 74 09 73 74 61 74 75 |union wa|it.statu|
|000037d0| 73 3b 20 2f 2a 20 43 68 | 69 6c 64 20 72 65 74 75 |s; /* Ch|ild retu|
|000037e0| 72 6e 20 73 74 61 74 75 | 73 20 2a 2f 0a 58 09 63 |rn statu|s */.X.c|
|000037f0| 68 61 72 09 70 77 62 75 | 66 5b 31 32 38 5d 3b 09 |har.pwbu|f[128];.|
|00003800| 2f 2a 20 50 61 73 73 77 | 6f 72 64 20 74 65 6d 70 |/* Passw|ord temp|
|00003810| 20 62 75 66 66 65 72 20 | 2a 2f 0a 58 0a 58 23 69 | buffer |*/.X.X#i|
|00003820| 66 64 65 66 09 44 45 42 | 55 47 0a 58 09 70 72 69 |fdef.DEB|UG.X.pri|
|00003830| 6e 74 66 28 22 63 68 65 | 63 6b 70 61 73 73 77 64 |ntf("che|ckpasswd|
|00003840| 20 25 73 5c 6e 22 2c 20 | 6e 65 77 70 77 29 3b 0a | %s\n", |newpw);.|
|00003850| 58 23 65 6e 64 69 66 0a | 58 09 28 76 6f 69 64 29 |X#endif.|X.(void)|
|00003860| 20 73 70 72 69 6e 74 66 | 28 70 77 62 75 66 2c 20 | sprintf|(pwbuf, |
|00003870| 22 25 73 5c 6e 22 2c 20 | 6e 65 77 70 77 29 3b 0a |"%s\n", |newpw);.|
|00003880| 58 09 69 66 20 28 70 69 | 70 65 28 66 64 73 29 20 |X.if (pi|pe(fds) |
|00003890| 3c 20 30 29 20 7b 0a 58 | 09 09 70 65 72 72 6f 72 |< 0) {.X|..perror|
|000038a0| 28 22 70 61 73 73 77 6f | 72 64 5f 6f 6b 20 70 69 |("passwo|rd_ok pi|
|000038b0| 70 65 22 29 3b 0a 58 09 | 09 72 65 74 75 72 6e 28 |pe");.X.|.return(|
|000038c0| 2d 31 29 3b 0a 58 09 7d | 0a 58 09 69 66 20 28 28 |-1);.X.}|.X.if ((|
|000038d0| 70 69 64 20 3d 20 66 6f | 72 6b 28 29 29 20 3d 3d |pid = fo|rk()) ==|
|000038e0| 20 30 29 20 7b 0a 58 09 | 09 28 76 6f 69 64 29 20 | 0) {.X.|.(void) |
|000038f0| 63 6c 6f 73 65 28 30 29 | 3b 0a 58 09 09 28 76 6f |close(0)|;.X..(vo|
|00003900| 69 64 29 20 64 75 70 32 | 28 66 64 73 5b 30 5d 2c |id) dup2|(fds[0],|
|00003910| 20 30 29 3b 09 2f 2a 20 | 73 74 64 69 6e 20 66 72 | 0);./* |stdin fr|
|00003920| 6f 6d 20 70 69 70 65 20 | 2a 2f 0a 58 09 09 28 76 |om pipe |*/.X..(v|
|00003930| 6f 69 64 29 20 63 6c 6f | 73 65 28 66 64 73 5b 30 |oid) clo|se(fds[0|
|00003940| 5d 29 3b 0a 58 09 09 28 | 76 6f 69 64 29 20 63 6c |]);.X..(|void) cl|
|00003950| 6f 73 65 28 31 29 3b 0a | 58 09 09 28 76 6f 69 64 |ose(1);.|X..(void|
|00003960| 29 20 64 75 70 32 28 66 | 64 73 5b 31 5d 2c 20 31 |) dup2(f|ds[1], 1|
|00003970| 29 3b 09 2f 2a 20 73 74 | 64 69 6e 20 74 6f 20 70 |);./* st|din to p|
|00003980| 69 70 65 20 2a 2f 0a 58 | 09 09 28 76 6f 69 64 29 |ipe */.X|..(void)|
|00003990| 20 63 6c 6f 73 65 28 66 | 64 73 5b 31 5d 29 3b 0a | close(f|ds[1]);.|
|000039a0| 58 09 09 28 76 6f 69 64 | 29 20 73 65 74 67 69 64 |X..(void|) setgid|
|000039b0| 28 67 65 74 67 69 64 28 | 29 29 3b 09 2f 2a 20 4e |(getgid(|));./* N|
|000039c0| 4f 2d 4f 50 20 69 66 20 | 6e 6f 74 20 73 75 20 2a |O-OP if |not su *|
|000039d0| 2f 0a 58 09 09 28 76 6f | 69 64 29 20 73 65 74 75 |/.X..(vo|id) setu|
|000039e0| 69 64 28 75 69 64 29 3b | 09 09 2f 2a 20 4e 4f 2d |id(uid);|../* NO-|
|000039f0| 4f 50 20 69 66 20 6e 6f | 74 20 73 75 20 2a 2f 0a |OP if no|t su */.|
|00003a00| 58 09 09 28 76 6f 69 64 | 29 20 65 78 65 63 6c 28 |X..(void|) execl(|
|00003a10| 43 48 45 43 4b 50 41 53 | 53 57 44 2c 20 22 63 68 |CHECKPAS|SWD, "ch|
|00003a20| 65 63 6b 70 61 73 73 77 | 64 22 2c 20 22 2d 6f 22 |eckpassw|d", "-o"|
|00003a30| 2c 20 30 29 3b 0a 58 09 | 09 65 78 69 74 28 2d 31 |, 0);.X.|.exit(-1|
|00003a40| 29 3b 0a 58 09 7d 0a 58 | 09 69 66 20 28 70 69 64 |);.X.}.X|.if (pid|
|00003a50| 20 3c 20 30 29 20 7b 0a | 58 09 09 70 65 72 72 6f | < 0) {.|X..perro|
|00003a60| 72 28 22 63 68 65 63 6b | 70 61 73 73 77 64 20 66 |r("check|passwd f|
|00003a70| 6f 72 6b 22 29 3b 0a 58 | 09 09 72 65 74 75 72 6e |ork");.X|..return|
|00003a80| 28 2d 31 29 3b 0a 58 09 | 7d 0a 58 09 69 20 3d 20 |(-1);.X.|}.X.i = |
|00003a90| 77 72 69 74 65 28 66 64 | 73 5b 31 5d 2c 20 70 77 |write(fd|s[1], pw|
|00003aa0| 62 75 66 2c 20 73 74 72 | 6c 65 6e 28 70 77 62 75 |buf, str|len(pwbu|
|00003ab0| 66 29 29 3b 0a 58 09 28 | 76 6f 69 64 29 20 63 6c |f));.X.(|void) cl|
|00003ac0| 6f 73 65 28 66 64 73 5b | 31 5d 29 3b 0a 58 09 28 |ose(fds[|1]);.X.(|
|00003ad0| 76 6f 69 64 29 20 73 6c | 65 65 70 28 31 29 3b 0a |void) sl|eep(1);.|
|00003ae0| 58 09 62 7a 65 72 6f 28 | 70 77 62 75 66 2c 20 73 |X.bzero(|pwbuf, s|
|00003af0| 69 7a 65 6f 66 28 70 77 | 62 75 66 29 29 3b 0a 58 |izeof(pw|buf));.X|
|00003b00| 09 69 69 20 3d 20 72 65 | 61 64 28 66 64 73 5b 30 |.ii = re|ad(fds[0|
|00003b10| 5d 2c 20 70 77 62 75 66 | 2c 20 73 69 7a 65 6f 66 |], pwbuf|, sizeof|
|00003b20| 28 70 77 62 75 66 29 29 | 3b 0a 58 09 28 76 6f 69 |(pwbuf))|;.X.(voi|
|00003b30| 64 29 20 63 6c 6f 73 65 | 28 66 64 73 5b 30 5d 29 |d) close|(fds[0])|
|00003b40| 3b 0a 58 09 77 68 69 6c | 65 20 28 77 61 69 74 28 |;.X.whil|e (wait(|
|00003b50| 26 73 74 61 74 75 73 29 | 20 21 3d 20 70 69 64 29 |&status)| != pid)|
|00003b60| 3b 0a 58 09 69 66 20 28 | 73 74 61 74 75 73 2e 77 |;.X.if (|status.w|
|00003b70| 5f 72 65 74 63 6f 64 65 | 20 3d 3d 20 32 35 35 20 |_retcode| == 255 |
|00003b80| 7c 7c 20 69 20 3c 3d 20 | 30 20 7c 7c 20 69 69 20 ||| i <= |0 || ii |
|00003b90| 3c 20 30 29 20 7b 0a 58 | 09 09 66 70 72 69 6e 74 |< 0) {.X|..fprint|
|00003ba0| 66 28 73 74 64 65 72 72 | 2c 20 22 43 68 65 63 6b |f(stderr|, "Check|
|00003bb0| 70 61 73 73 77 64 20 65 | 72 72 6f 72 5c 6e 22 29 |passwd e|rror\n")|
|00003bc0| 3b 0a 58 09 09 72 65 74 | 75 72 6e 28 2d 31 29 3b |;.X..ret|urn(-1);|
|00003bd0| 0a 58 09 7d 0a 58 09 69 | 66 20 28 73 74 61 74 75 |.X.}.X.i|f (statu|
|00003be0| 73 2e 77 5f 72 65 74 63 | 6f 64 65 29 20 7b 0a 58 |s.w_retc|ode) {.X|
|00003bf0| 09 09 70 72 69 6e 74 66 | 28 22 25 73 5c 6e 22 2c |..printf|("%s\n",|
|00003c00| 20 70 77 62 75 66 29 3b | 0a 58 09 09 72 65 74 75 | pwbuf);|.X..retu|
|00003c10| 72 6e 28 30 29 3b 0a 58 | 09 7d 0a 58 09 72 65 74 |rn(0);.X|.}.X.ret|
|00003c20| 75 72 6e 28 31 29 3b 0a | 58 7d 0a 45 4e 44 5f 4f |urn(1);.|X}.END_O|
|00003c30| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|00003c40| 35 31 38 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |518 -ne |`wc -c <|
|00003c50| 27 63 68 65 63 6b 70 61 | 73 73 77 64 2f 63 61 6c |'checkpa|sswd/cal|
|00003c60| 6c 5f 63 6b 70 61 73 73 | 77 64 2e 63 27 60 3b 20 |l_ckpass|wd.c'`; |
|00003c70| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00003c80| 61 72 3a 20 5c 22 27 63 | 68 65 63 6b 70 61 73 73 |ar: \"'c|heckpass|
|00003c90| 77 64 2f 63 61 6c 6c 5f | 63 6b 70 61 73 73 77 64 |wd/call_|ckpasswd|
|00003ca0| 2e 63 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |.c'\" un|packed w|
|00003cb0| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00003cc0| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 63 68 65 |fi.# end| of 'che|
|00003cd0| 63 6b 70 61 73 73 77 64 | 2f 63 61 6c 6c 5f 63 6b |ckpasswd|/call_ck|
|00003ce0| 70 61 73 73 77 64 2e 63 | 27 0a 66 69 0a 69 66 20 |passwd.c|'.fi.if |
|00003cf0| 74 65 73 74 20 2d 66 20 | 27 63 68 65 63 6b 70 61 |test -f |'checkpa|
|00003d00| 73 73 77 64 2f 63 68 65 | 63 6b 70 61 73 73 77 64 |sswd/che|ckpasswd|
|00003d10| 2e 33 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.3' -a "|${1}" !=|
|00003d20| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00003d30| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00003d40| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00003d50| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 63 68 65 |ting fil|e \"'che|
|00003d60| 63 6b 70 61 73 73 77 64 | 2f 63 68 65 63 6b 70 61 |ckpasswd|/checkpa|
|00003d70| 73 73 77 64 2e 33 27 5c | 22 0a 65 6c 73 65 0a 65 |sswd.3'\|".else.e|
|00003d80| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00003d90| 74 69 6e 67 20 5c 22 27 | 63 68 65 63 6b 70 61 73 |ting \"'|checkpas|
|00003da0| 73 77 64 2f 63 68 65 63 | 6b 70 61 73 73 77 64 2e |swd/chec|kpasswd.|
|00003db0| 33 27 5c 22 20 5c 28 31 | 37 33 30 20 63 68 61 72 |3'\" \(1|730 char|
|00003dc0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00003dd0| 5e 58 2f 2f 22 20 3e 27 | 63 68 65 63 6b 70 61 73 |^X//" >'|checkpas|
|00003de0| 73 77 64 2f 63 68 65 63 | 6b 70 61 73 73 77 64 2e |swd/chec|kpasswd.|
|00003df0| 33 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |3' <<'EN|D_OF_FIL|
|00003e00| 45 27 0a 58 27 5c 22 0a | 58 27 5c 22 09 40 28 23 |E'.X'\".|X'\".@(#|
|00003e10| 29 63 68 65 63 6b 70 61 | 73 73 77 64 2e 33 09 31 |)checkpa|sswd.3.1|
|00003e20| 2e 31 20 35 2f 31 38 2f | 38 39 20 28 63 63 2e 75 |.1 5/18/|89 (cc.u|
|00003e30| 74 65 78 61 73 2e 65 64 | 75 29 0a 58 27 5c 22 0a |texas.ed|u).X'\".|
|00003e40| 58 2e 54 48 20 43 48 45 | 43 4b 50 41 53 53 57 44 |X.TH CHE|CKPASSWD|
|00003e50| 20 33 0a 58 2e 53 48 20 | 4e 41 4d 45 0a 58 63 68 | 3.X.SH |NAME.Xch|
|00003e60| 65 63 6b 70 61 73 73 77 | 64 20 5c 2d 20 63 68 65 |eckpassw|d \- che|
|00003e70| 63 6b 20 70 61 73 73 77 | 6f 72 64 0a 58 2e 62 72 |ck passw|ord.X.br|
|00003e80| 0a 58 73 65 74 63 68 65 | 63 6b 70 61 73 73 77 64 |.Xsetche|ckpasswd|
|00003e90| 20 5c 2d 20 73 65 74 20 | 70 61 72 61 6d 65 74 65 | \- set |paramete|
|00003ea0| 72 73 20 66 6f 72 20 63 | 68 65 63 6b 70 61 73 73 |rs for c|heckpass|
|00003eb0| 77 64 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |wd.X.SH |SYNOPSIS|
|00003ec0| 0a 58 2e 42 20 69 6e 74 | 20 63 68 65 63 6b 70 61 |.X.B int| checkpa|
|00003ed0| 73 73 77 64 28 75 69 64 | 2c 5c 20 70 61 73 73 77 |sswd(uid|,\ passw|
|00003ee0| 6f 72 64 29 3b 0a 58 2e | 62 72 0a 58 2e 42 20 69 |ord);.X.|br.X.B i|
|00003ef0| 6e 74 5c 20 75 69 64 3b | 0a 58 2e 62 72 0a 58 2e |nt\ uid;|.X.br.X.|
|00003f00| 42 20 63 68 61 72 5c 20 | 2a 70 61 73 73 77 6f 72 |B char\ |*passwor|
|00003f10| 64 3b 0a 58 2e 73 70 0a | 58 2e 42 20 76 6f 69 64 |d;.X.sp.|X.B void|
|00003f20| 20 73 65 74 63 68 65 63 | 6b 70 61 73 73 77 64 28 | setchec|kpasswd(|
|00003f30| 6f 70 74 31 2c 5c 20 6f | 70 74 32 2c 5c 20 2e 2e |opt1,\ o|pt2,\ ..|
|00003f40| 2e 5c 20 6f 70 74 6e 2c | 5c 20 30 29 3b 0a 58 2e |.\ optn,|\ 0);.X.|
|00003f50| 62 72 0a 58 2e 42 20 63 | 68 61 72 5c 20 2a 6f 70 |br.X.B c|har\ *op|
|00003f60| 74 31 2c 5c 20 2a 6f 70 | 74 32 2c 5c 20 2e 2e 2e |t1,\ *op|t2,\ ...|
|00003f70| 5c 20 2a 6f 70 74 6e 3b | 0a 58 2e 53 48 20 44 45 |\ *optn;|.X.SH DE|
|00003f80| 53 43 52 49 50 54 49 4f | 4e 0a 58 2e 49 20 43 68 |SCRIPTIO|N.X.I Ch|
|00003f90| 65 63 6b 70 61 73 73 77 | 64 0a 58 63 68 65 63 6b |eckpassw|d.Xcheck|
|00003fa0| 73 20 69 66 0a 58 2e 42 | 20 70 61 73 73 77 6f 72 |s if.X.B| passwor|
|00003fb0| 64 0a 58 69 73 20 73 75 | 69 74 61 62 6c 65 20 66 |d.Xis su|itable f|
|00003fc0| 6f 72 20 75 73 65 20 62 | 79 20 74 68 65 20 55 4e |or use b|y the UN|
|00003fd0| 49 58 20 75 73 65 72 20 | 77 69 74 68 20 75 73 65 |IX user |with use|
|00003fe0| 72 20 69 64 0a 58 2e 42 | 52 20 75 69 64 20 2e 0a |r id.X.B|R uid ..|
|00003ff0| 58 2e 50 50 0a 58 2e 49 | 20 43 68 65 63 6b 70 61 |X.PP.X.I| Checkpa|
|00004000| 73 73 77 64 0a 58 72 65 | 74 75 72 6e 73 20 31 20 |sswd.Xre|turns 1 |
|00004010| 69 66 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |if the p|assword |
|00004020| 69 73 20 64 65 65 6d 65 | 64 20 73 75 69 74 61 62 |is deeme|d suitab|
|00004030| 6c 65 2c 20 61 6e 64 20 | 30 20 6f 74 68 65 72 77 |le, and |0 otherw|
|00004040| 69 73 65 2e 0a 58 41 6e | 20 69 6e 66 6f 72 6d 61 |ise..XAn| informa|
|00004050| 74 69 76 65 20 6d 65 73 | 73 61 67 65 20 69 73 20 |tive mes|sage is |
|00004060| 61 6c 73 6f 20 70 72 69 | 6e 74 65 64 20 74 6f 20 |also pri|nted to |
|00004070| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 6f 75 74 |the stan|dard out|
|00004080| 70 75 74 0a 58 69 66 20 | 74 68 65 20 70 61 73 73 |put.Xif |the pass|
|00004090| 77 6f 72 64 20 64 6f 65 | 73 20 6e 6f 74 20 70 61 |word doe|s not pa|
|000040a0| 73 73 20 74 68 65 20 74 | 65 73 74 73 2e 0a 58 2e |ss the t|ests..X.|
|000040b0| 50 50 0a 58 2e 49 20 53 | 65 74 63 68 65 63 6b 70 |PP.X.I S|etcheckp|
|000040c0| 61 73 73 77 64 0a 58 6d | 61 79 20 62 65 20 75 73 |asswd.Xm|ay be us|
|000040d0| 65 64 20 74 6f 20 63 68 | 61 6e 67 65 20 74 68 65 |ed to ch|ange the|
|000040e0| 20 6f 70 65 72 61 74 69 | 6f 6e 20 70 61 72 61 6d | operati|on param|
|000040f0| 65 74 65 72 73 20 6f 66 | 20 0a 58 2e 49 52 20 63 |eters of| .X.IR c|
|00004100| 68 65 63 6b 70 61 73 73 | 77 64 20 2e 0a 58 49 74 |heckpass|wd ..XIt|
|00004110| 20 61 63 63 65 70 74 73 | 20 61 20 6c 69 73 74 20 | accepts| a list |
|00004120| 6f 66 20 73 74 72 69 6e | 67 73 20 77 68 69 63 68 |of strin|gs which|
|00004130| 20 6d 61 79 20 62 65 20 | 74 68 65 20 66 6f 6c 6c | may be |the foll|
|00004140| 6f 77 69 6e 67 3a 0a 58 | 2e 54 50 0a 58 2e 42 20 |owing:.X|.TP.X.B |
|00004150| 5c 2d 5c 5e 63 0a 58 54 | 61 6b 65 20 74 68 65 20 |\-\^c.XT|ake the |
|00004160| 6e 65 78 74 20 61 72 67 | 75 6d 65 6e 74 20 61 73 |next arg|ument as|
|00004170| 20 74 68 65 20 63 6f 6e | 66 69 67 75 72 61 74 69 | the con|figurati|
|00004180| 6f 6e 20 66 69 6c 65 20 | 74 6f 20 72 65 61 64 2e |on file |to read.|
|00004190| 0a 58 53 65 65 20 74 68 | 65 20 43 4f 4e 46 49 47 |.XSee th|e CONFIG|
|000041a0| 55 52 41 54 49 4f 4e 20 | 73 65 63 74 69 6f 6e 20 |URATION |section |
|000041b0| 69 6e 0a 58 2e 49 52 20 | 63 68 65 63 6b 70 61 73 |in.X.IR |checkpas|
|000041c0| 73 77 64 20 28 38 29 0a | 58 66 6f 72 20 69 6e 66 |swd (8).|Xfor inf|
|000041d0| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |ormation| on the |
|000041e0| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 69 |configur|ation fi|
|000041f0| 6c 65 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 5c 2d 5c |le..X.TP|.X.B \-\|
|00004200| 5e 65 0a 58 52 65 74 75 | 72 6e 20 74 68 65 20 64 |^e.XRetu|rn the d|
|00004210| 65 74 61 69 6c 65 64 20 | 63 68 65 63 6b 20 73 74 |etailed |check st|
|00004220| 61 74 75 73 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |atus ins|tead of |
|00004230| 31 20 6f 72 20 30 2e 0a | 58 53 65 65 20 62 65 6c |1 or 0..|XSee bel|
|00004240| 6f 77 20 66 6f 72 20 61 | 6e 20 65 78 70 6c 61 6e |ow for a|n explan|
|00004250| 61 74 69 6f 6e 2e 0a 58 | 2e 54 50 0a 58 2e 42 20 |ation..X|.TP.X.B |
|00004260| 5c 2d 5c 5e 73 0a 58 53 | 75 70 70 72 65 73 73 20 |\-\^s.XS|uppress |
|00004270| 6d 65 73 73 61 67 65 20 | 6f 75 74 70 75 74 2e 0a |message |output..|
|00004280| 58 2e 50 50 0a 58 54 68 | 65 20 64 65 74 61 69 6c |X.PP.XTh|e detail|
|00004290| 65 64 20 63 68 65 63 6b | 20 73 74 61 74 75 73 20 |ed check| status |
|000042a0| 69 73 20 6f 6e 65 20 6f | 66 20 74 68 65 20 66 6f |is one o|f the fo|
|000042b0| 6c 6c 6f 77 69 6e 67 3a | 0a 58 2e 6e 66 0a 58 2d |llowing:|.X.nf.X-|
|000042c0| 31 09 50 61 73 73 77 6f | 72 64 20 63 68 65 63 6b |1.Passwo|rd check|
|000042d0| 20 64 69 64 20 6e 6f 74 | 20 63 6f 6d 70 6c 65 74 | did not| complet|
|000042e0| 65 2e 0a 58 30 09 50 61 | 73 73 77 6f 72 64 20 70 |e..X0.Pa|ssword p|
|000042f0| 61 73 73 65 64 20 61 6c | 6c 20 63 68 65 63 6b 73 |assed al|l checks|
|00004300| 2e 0a 58 31 09 50 61 73 | 73 77 6f 72 64 20 77 61 |..X1.Pas|sword wa|
|00004310| 73 20 61 20 6e 75 6c 6c | 20 73 74 72 69 6e 67 2e |s a null| string.|
|00004320| 0a 58 32 09 50 61 73 73 | 77 6f 72 64 20 77 61 73 |.X2.Pass|word was|
|00004330| 20 5c 27 74 6f 6f 20 65 | 61 73 79 5c 27 20 74 6f | \'too e|asy\' to|
|00004340| 20 67 75 65 73 73 2e 0a | 58 33 09 50 61 73 73 77 | guess..|X3.Passw|
|00004350| 6f 72 64 20 77 61 73 20 | 70 61 72 74 20 6f 66 20 |ord was |part of |
|00004360| 74 68 65 20 75 73 65 72 | 73 20 5c 27 5c 66 49 66 |the user|s \'\fIf|
|00004370| 69 6e 67 65 72 5c 66 50 | 5c 27 20 69 6e 66 6f 72 |inger\fP|\' infor|
|00004380| 6d 61 74 69 6f 6e 2e 0a | 58 34 09 50 61 73 73 77 |mation..|X4.Passw|
|00004390| 6f 72 64 20 77 61 73 20 | 66 6f 75 6e 64 20 69 6e |ord was |found in|
|000043a0| 20 61 20 64 69 63 74 69 | 6f 6e 61 72 79 20 73 65 | a dicti|onary se|
|000043b0| 61 72 63 68 2e 0a 58 35 | 09 50 61 73 73 77 6f 72 |arch..X5|.Passwor|
|000043c0| 64 20 63 6f 6e 74 61 69 | 6e 65 64 20 61 6e 20 69 |d contai|ned an i|
|000043d0| 6c 6c 65 67 61 6c 20 63 | 68 61 72 61 63 74 65 72 |llegal c|haracter|
|000043e0| 20 6f 72 20 73 65 71 75 | 65 6e 63 65 20 6f 66 20 | or sequ|ence of |
|000043f0| 63 68 61 72 61 63 74 65 | 72 73 2e 0a 58 36 09 50 |characte|rs..X6.P|
|00004400| 61 73 73 77 6f 72 64 20 | 77 61 73 20 74 6f 6f 20 |assword |was too |
|00004410| 73 68 6f 72 74 2e 0a 58 | 2e 66 69 0a 58 2e 53 48 |short..X|.fi.X.SH|
|00004420| 20 53 45 45 20 41 4c 53 | 4f 0a 58 6d 61 6b 65 64 | SEE ALS|O.Xmaked|
|00004430| 69 63 74 28 38 29 2c 20 | 76 69 65 77 64 69 63 74 |ict(8), |viewdict|
|00004440| 28 38 29 2c 20 63 68 65 | 63 6b 70 61 73 73 77 64 |(8), che|ckpasswd|
|00004450| 28 38 29 2c 20 6e 70 61 | 73 73 77 64 28 31 29 0a |(8), npa|sswd(1).|
|00004460| 58 2e 53 48 20 41 55 54 | 48 4f 52 0a 58 43 6c 79 |X.SH AUT|HOR.XCly|
|00004470| 64 65 20 48 6f 6f 76 65 | 72 0a 58 2e 62 72 0a 58 |de Hoove|r.X.br.X|
|00004480| 43 6f 6d 70 75 74 61 74 | 69 6f 6e 20 43 65 6e 74 |Computat|ion Cent|
|00004490| 65 72 0a 58 2e 62 72 0a | 58 54 68 65 20 55 6e 69 |er.X.br.|XThe Uni|
|000044a0| 76 65 72 73 69 74 79 20 | 6f 66 20 54 65 78 61 73 |versity |of Texas|
|000044b0| 20 61 74 20 41 75 73 74 | 69 6e 0a 58 2e 62 72 0a | at Aust|in.X.br.|
|000044c0| 58 41 75 73 74 69 6e 2c | 20 54 65 78 61 73 0a 58 |XAustin,| Texas.X|
|000044d0| 2e 62 72 0a 58 63 6c 79 | 64 65 40 65 6d 78 2e 75 |.br.Xcly|de@emx.u|
|000044e0| 74 65 78 61 73 2e 65 64 | 75 2c 20 75 75 6e 65 74 |texas.ed|u, uunet|
|000044f0| 21 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 21 75 |!cs.utex|as.edu!u|
|00004500| 74 2d 65 6d 78 21 63 6c | 79 64 65 0a 45 4e 44 5f |t-emx!cl|yde.END_|
|00004510| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00004520| 31 37 33 30 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |1730 -ne| `wc -c |
|00004530| 3c 27 63 68 65 63 6b 70 | 61 73 73 77 64 2f 63 68 |<'checkp|asswd/ch|
|00004540| 65 63 6b 70 61 73 73 77 | 64 2e 33 27 60 3b 20 74 |eckpassw|d.3'`; t|
|00004550| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004560| 72 3a 20 5c 22 27 63 68 | 65 63 6b 70 61 73 73 77 |r: \"'ch|eckpassw|
|00004570| 64 2f 63 68 65 63 6b 70 | 61 73 73 77 64 2e 33 27 |d/checkp|asswd.3'|
|00004580| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00004590| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|000045a0| 23 20 65 6e 64 20 6f 66 | 20 27 63 68 65 63 6b 70 |# end of| 'checkp|
|000045b0| 61 73 73 77 64 2f 63 68 | 65 63 6b 70 61 73 73 77 |asswd/ch|eckpassw|
|000045c0| 64 2e 33 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |d.3'.fi.|if test |
|000045d0| 2d 66 20 27 63 68 65 63 | 6b 70 61 73 73 77 64 2f |-f 'chec|kpasswd/|
|000045e0| 63 68 65 63 6b 70 61 73 | 73 77 64 2e 63 27 20 2d |checkpas|swd.c' -|
|000045f0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00004600| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00004610| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00004620| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00004630| 66 69 6c 65 20 5c 22 27 | 63 68 65 63 6b 70 61 73 |file \"'|checkpas|
|00004640| 73 77 64 2f 63 68 65 63 | 6b 70 61 73 73 77 64 2e |swd/chec|kpasswd.|
|00004650| 63 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |c'\".els|e.echo s|
|00004660| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00004670| 5c 22 27 63 68 65 63 6b | 70 61 73 73 77 64 2f 63 |\"'check|passwd/c|
|00004680| 68 65 63 6b 70 61 73 73 | 77 64 2e 63 27 5c 22 20 |heckpass|wd.c'\" |
|00004690| 5c 28 33 36 37 30 20 63 | 68 61 72 61 63 74 65 72 |\(3670 c|haracter|
|000046a0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000046b0| 20 3e 27 63 68 65 63 6b | 70 61 73 73 77 64 2f 63 | >'check|passwd/c|
|000046c0| 68 65 63 6b 70 61 73 73 | 77 64 2e 63 27 20 3c 3c |heckpass|wd.c' <<|
|000046d0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 0a |'END_OF_|FILE'.X.|
|000046e0| 58 2f 2a 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X/* ----|--------|
|000046f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004720| 2d 2d 2d 2d 2d 2d 2d 2d | 20 20 2a 2f 0a 58 2f 2a |--------| */.X/*|
|00004730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004770| 20 20 20 20 20 20 20 2a | 2f 0a 58 2f 2a 20 20 20 | *|/.X/* |
|00004780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004790| 20 20 20 20 20 20 41 75 | 74 68 6f 72 3a 20 43 6c | Au|thor: Cl|
|000047a0| 79 64 65 20 48 6f 6f 76 | 65 72 20 20 20 20 20 20 |yde Hoov|er |
|000047b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047c0| 20 20 20 20 2a 2f 0a 58 | 2f 2a 20 20 20 20 20 20 | */.X|/* |
|000047d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047e0| 20 20 20 20 43 6f 6d 70 | 75 74 61 74 69 6f 6e 20 | Comp|utation |
|000047f0| 43 65 6e 74 65 72 20 20 | 20 20 20 20 20 20 20 20 |Center | |
|00004800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004810| 20 2a 2f 0a 58 2f 2a 20 | 20 20 20 20 20 20 20 20 | */.X/* | |
|00004820| 20 20 20 20 20 20 20 20 | 20 20 54 68 65 20 55 6e | | The Un|
|00004830| 69 76 65 72 73 69 74 79 | 20 6f 66 20 54 65 78 61 |iversity| of Texa|
|00004840| 73 20 61 74 20 41 75 73 | 74 69 6e 20 20 20 20 20 |s at Aus|tin |
|00004850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00004860| 0a 58 2f 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X/* | |
|00004870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 75 | | Au|
|00004880| 73 74 69 6e 2c 20 54 65 | 78 61 73 20 37 38 37 31 |stin, Te|xas 7871|
|00004890| 32 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2 | |
|000048a0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 58 2f | | */.X/|
|000048b0| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|000048c0| 20 20 20 20 20 20 20 20 | 20 20 63 6c 79 64 65 40 | | clyde@|
|000048d0| 65 6d 78 2e 75 74 65 78 | 61 73 2e 65 64 75 20 20 |emx.utex|as.edu |
|000048e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048f0| 20 20 20 20 20 20 20 20 | 2a 2f 0a 58 2f 2a 20 20 | |*/.X/* |
|00004900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004910| 20 75 75 6e 65 74 21 63 | 73 2e 75 74 65 78 61 73 | uunet!c|s.utexas|
|00004920| 2e 65 64 75 21 75 74 2d | 65 6d 78 21 63 6c 79 64 |.edu!ut-|emx!clyd|
|00004930| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00004940| 20 20 20 20 20 2a 2f 0a | 58 2f 2a 20 20 20 20 20 | */.|X/* |
|00004950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004990| 20 20 2a 2f 0a 58 2f 2a | 54 68 69 73 20 63 6f 64 | */.X/*|This cod|
|000049a0| 65 20 6d 61 79 20 62 65 | 20 64 69 73 74 72 69 62 |e may be| distrib|
|000049b0| 75 74 65 64 20 66 72 65 | 65 6c 79 2c 20 70 72 6f |uted fre|ely, pro|
|000049c0| 76 69 64 65 64 20 74 68 | 69 73 20 6e 6f 74 69 63 |vided th|is notic|
|000049d0| 65 20 69 73 20 72 65 74 | 61 69 6e 65 64 2e 20 2a |e is ret|ained. *|
|000049e0| 2f 0a 58 2f 2a 20 20 20 | 20 20 20 20 20 20 20 20 |/.X/* | |
|000049f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 | | */.X|
|00004a30| 2f 2a 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/* -----|--------|
|00004a40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a70| 2d 2d 2d 2d 2d 2d 2d 20 | 20 2a 2f 0a 58 2f 2a 0a |------- | */.X/*.|
|00004a80| 58 20 2a 09 63 68 65 63 | 6b 70 61 73 73 77 64 2e |X *.chec|kpasswd.|
|00004a90| 63 20 2d 20 50 61 73 73 | 77 6f 72 64 20 63 68 65 |c - Pass|word che|
|00004aa0| 63 6b 20 64 72 69 76 65 | 72 20 61 6e 64 20 64 61 |ck drive|r and da|
|00004ab0| 74 61 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |ta initi|alizatio|
|00004ac0| 6e 0a 58 20 2a 2f 0a 58 | 0a 58 23 69 66 6e 64 65 |n.X */.X|.X#ifnde|
|00004ad0| 66 20 6c 69 6e 74 0a 58 | 73 74 61 74 69 63 20 63 |f lint.X|static c|
|00004ae0| 68 61 72 20 73 63 63 73 | 69 64 5b 5d 20 3d 20 22 |har sccs|id[] = "|
|00004af0| 40 28 23 29 63 68 65 63 | 6b 70 61 73 73 77 64 2e |@(#)chec|kpasswd.|
|00004b00| 63 09 31 2e 31 20 35 2f | 31 38 2f 38 39 20 28 63 |c.1.1 5/|18/89 (c|
|00004b10| 63 2e 75 74 65 78 61 73 | 2e 65 64 75 29 22 3b 0a |c.utexas|.edu)";.|
|00004b20| 58 23 65 6e 64 69 66 0a | 58 0a 58 23 69 6e 63 6c |X#endif.|X.X#incl|
|00004b30| 75 64 65 20 22 63 68 65 | 63 6b 70 61 73 73 77 64 |ude "che|ckpasswd|
|00004b40| 2e 68 22 0a 58 0a 58 2f | 2a 0a 58 20 2a 09 54 61 |.h".X.X/|*.X *.Ta|
|00004b50| 62 6c 65 20 6f 66 20 70 | 61 73 73 77 6f 72 64 20 |ble of p|assword |
|00004b60| 63 68 65 63 6b 20 70 61 | 72 61 6d 65 74 65 72 73 |check pa|rameters|
|00004b70| 0a 58 20 2a 09 4d 61 79 | 20 62 65 20 6d 6f 64 69 |.X *.May| be modi|
|00004b80| 66 69 65 64 20 76 69 61 | 20 74 68 65 20 63 6f 6e |fied via| the con|
|00004b90| 66 69 67 75 72 61 74 69 | 6f 6e 20 66 69 6c 65 0a |figurati|on file.|
|00004ba0| 58 20 2a 2f 0a 58 69 6e | 74 09 73 69 6e 67 6c 65 |X */.Xin|t.single|
|00004bb0| 5f 63 61 73 65 20 3d 09 | 30 2c 09 09 2f 2a 20 53 |_case =.|0,../* S|
|00004bc0| 69 6e 67 6c 65 2d 63 61 | 73 65 20 70 77 64 73 20 |ingle-ca|se pwds |
|00004bd0| 6f 6b 20 2a 2f 0a 58 09 | 70 72 69 6e 74 5f 6f 6e |ok */.X.|print_on|
|00004be0| 6c 79 20 3d 09 30 2c 09 | 09 2f 2a 20 50 72 69 6e |ly =.0,.|./* Prin|
|00004bf0| 74 61 62 6c 65 20 41 53 | 43 49 49 20 63 68 61 72 |table AS|CII char|
|00004c00| 73 20 6f 6e 6c 79 20 2a | 2f 0a 58 09 72 75 6e 5f |s only *|/.X.run_|
|00004c10| 6c 65 6e 67 74 68 20 3d | 09 33 2c 09 09 2f 2a 20 |length =|.3,../* |
|00004c20| 48 6f 77 20 6c 6f 6e 67 | 20 63 68 61 72 73 20 72 |How long| chars r|
|00004c30| 75 6e 73 20 63 61 6e 20 | 62 65 20 2a 2f 0a 58 09 |uns can |be */.X.|
|00004c40| 6d 69 6e 5f 6c 65 6e 67 | 74 68 20 3d 09 35 2c 09 |min_leng|th =.5,.|
|00004c50| 09 2f 2a 20 4d 69 6e 69 | 6d 75 6d 20 6c 65 6e 67 |./* Mini|mum leng|
|00004c60| 74 68 20 2a 2f 0a 58 09 | 6d 61 78 5f 6c 65 6e 67 |th */.X.|max_leng|
|00004c70| 74 68 20 3d 09 38 3b 09 | 09 2f 2a 20 4d 61 78 69 |th =.8;.|./* Maxi|
|00004c80| 6d 75 6d 20 65 66 66 65 | 63 74 69 76 65 20 6c 65 |mum effe|ctive le|
|00004c90| 6e 67 74 68 20 2a 2f 0a | 58 0a 58 2f 2a 0a 58 20 |ngth */.|X.X/*.X |
|00004ca0| 2a 09 43 6f 6e 74 72 6f | 6c 20 63 68 61 72 61 63 |*.Contro|l charac|
|00004cb0| 74 65 72 73 20 62 65 73 | 74 20 61 76 6f 69 64 65 |ters bes|t avoide|
|00004cc0| 64 20 2d 20 63 6f 6d 6d | 6f 6e 6c 79 2d 75 73 65 |d - comm|only-use|
|00004cd0| 64 20 74 65 72 6d 69 6e | 61 6c 20 63 6f 6e 74 72 |d termin|al contr|
|00004ce0| 6f 6c 73 2e 0a 58 20 2a | 09 41 64 64 20 63 68 61 |ols..X *|.Add cha|
|00004cf0| 72 61 63 74 65 72 73 20 | 68 65 72 65 20 6f 72 20 |racters |here or |
|00004d00| 72 65 70 6c 61 63 65 20 | 65 6e 74 69 72 65 20 63 |replace |entire c|
|00004d10| 6f 6e 74 65 6e 74 73 20 | 76 69 61 20 74 68 65 0a |ontents |via the.|
|00004d20| 58 20 2a 09 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |X *.conf|iguratio|
|00004d30| 6e 20 66 69 6c 65 2e 0a | 58 20 2a 2f 0a 58 23 64 |n file..|X */.X#d|
|00004d40| 65 66 69 6e 65 09 63 74 | 72 6c 28 64 29 09 28 27 |efine.ct|rl(d).('|
|00004d50| 64 27 20 26 20 30 33 37 | 29 0a 58 0a 58 63 68 61 |d' & 037|).X.Xcha|
|00004d60| 72 09 69 6c 6c 65 67 61 | 6c 63 63 5b 73 69 7a 65 |r.illega|lcc[size|
|00004d70| 6f 66 5f 69 6c 6c 65 67 | 61 6c 63 63 5d 20 3d 20 |of_illeg|alcc] = |
|00004d80| 7b 0a 58 09 63 74 72 6c | 28 63 29 2c 09 2f 2a 20 |{.X.ctrl|(c),./* |
|00004d90| 49 6e 74 65 72 72 75 70 | 74 20 63 68 61 72 61 63 |Interrup|t charac|
|00004da0| 74 65 72 20 2a 2f 0a 58 | 09 63 74 72 6c 28 64 29 |ter */.X|.ctrl(d)|
|00004db0| 2c 09 2f 2a 20 55 4e 49 | 58 20 65 6e 64 2d 6f 66 |,./* UNI|X end-of|
|00004dc0| 2d 66 69 6c 65 20 2a 2f | 0a 58 09 63 74 72 6c 28 |-file */|.X.ctrl(|
|00004dd0| 68 29 2c 09 2f 2a 20 42 | 61 63 6b 73 70 61 63 65 |h),./* B|ackspace|
|00004de0| 20 2a 2f 0a 58 2f 2a 20 | 09 63 74 72 6c 28 69 29 | */.X/* |.ctrl(i)|
|00004df0| 2c 20 2a 2f 0a 58 09 63 | 74 72 6c 28 6a 29 2c 09 |, */.X.c|trl(j),.|
|00004e00| 2f 2a 20 4e 65 77 6c 69 | 6e 65 20 2a 2f 0a 58 09 |/* Newli|ne */.X.|
|00004e10| 63 74 72 6c 28 6d 29 2c | 09 2f 2a 20 43 61 72 72 |ctrl(m),|./* Carr|
|00004e20| 69 61 67 65 20 72 65 74 | 75 72 6e 20 2a 2f 0a 58 |iage ret|urn */.X|
|00004e30| 09 63 74 72 6c 28 6f 29 | 2c 09 2f 2a 20 46 6c 75 |.ctrl(o)|,./* Flu|
|00004e40| 73 68 20 6f 75 74 70 75 | 74 20 2a 2f 0a 58 09 63 |sh outpu|t */.X.c|
|00004e50| 74 72 6c 28 72 29 2c 09 | 2f 2a 20 52 65 74 79 70 |trl(r),.|/* Retyp|
|00004e60| 65 20 70 65 6e 64 69 6e | 67 20 69 6e 70 75 74 20 |e pendin|g input |
|00004e70| 2a 2f 0a 58 09 63 74 72 | 6c 28 73 29 2c 09 2f 2a |*/.X.ctr|l(s),./*|
|00004e80| 20 53 75 73 70 65 6e 64 | 20 6f 75 74 70 75 74 20 | Suspend| output |
|00004e90| 2a 2f 0a 58 09 63 74 72 | 6c 28 71 29 2c 09 2f 2a |*/.X.ctr|l(q),./*|
|00004ea0| 20 52 65 73 75 6d 65 20 | 6f 75 74 70 75 74 20 2a | Resume |output *|
|00004eb0| 2f 0a 58 09 63 74 72 6c | 28 79 29 2c 09 2f 2a 20 |/.X.ctrl|(y),./* |
|00004ec0| 53 75 73 70 65 6e 64 20 | 70 72 6f 67 72 61 6d 20 |Suspend |program |
|00004ed0| 64 65 66 65 72 72 65 64 | 20 2a 2f 0a 58 09 63 74 |deferred| */.X.ct|
|00004ee0| 72 6c 28 7a 29 2c 09 2f | 2a 20 53 75 73 70 65 6e |rl(z),./|* Suspen|
|00004ef0| 64 20 70 72 6f 67 72 61 | 6d 20 69 6d 6d 65 64 69 |d progra|m immedi|
|00004f00| 61 74 65 20 2a 2f 0a 58 | 09 63 74 72 6c 28 5c 5c |ate */.X|.ctrl(\\|
|00004f10| 29 2c 09 2f 2a 20 51 75 | 69 74 20 73 69 67 6e 61 |),./* Qu|it signa|
|00004f20| 6c 20 2a 2f 0a 58 09 63 | 74 72 6c 28 5b 29 2c 09 |l */.X.c|trl([),.|
|00004f30| 2f 2a 20 65 73 63 61 70 | 65 20 2d 20 6d 61 79 20 |/* escap|e - may |
|00004f40| 64 6f 20 73 74 72 61 6e | 67 65 20 74 68 69 6e 67 |do stran|ge thing|
|00004f50| 73 20 74 6f 20 74 74 79 | 73 20 69 66 20 65 63 68 |s to tty|s if ech|
|00004f60| 6f 65 64 20 2a 2f 0a 58 | 09 63 74 72 6c 28 5d 29 |oed */.X|.ctrl(])|
|00004f70| 2c 09 2f 2a 20 55 4e 49 | 58 20 74 65 6c 6e 65 74 |,./* UNI|X telnet|
|00004f80| 20 65 73 63 61 70 65 20 | 2a 2f 0a 58 09 27 5c 30 | escape |*/.X.'\0|
|00004f90| 31 37 37 27 2c 09 2f 2a | 20 72 75 62 6f 75 74 20 |177',./*| rubout |
|00004fa0| 2a 2f 0a 58 09 30 0a 58 | 7d 3b 0a 58 0a 58 2f 2a |*/.X.0.X|};.X.X/*|
|00004fb0| 0a 58 20 2a 09 54 68 65 | 20 27 70 77 63 6b 5f 2a |.X *.The| 'pwck_*|
|00004fc0| 27 20 72 6f 75 74 69 6e | 65 73 20 61 6c 6c 20 75 |' routin|es all u|
|00004fd0| 73 65 20 74 68 65 20 50 | 57 43 4b 5f 2a 20 72 65 |se the P|WCK_* re|
|00004fe0| 74 75 72 6e 0a 58 20 2a | 09 63 6f 64 65 73 2c 20 |turn.X *|.codes, |
|00004ff0| 77 68 69 63 68 20 61 72 | 65 20 74 68 65 6e 20 70 |which ar|e then p|
|00005000| 72 6f 70 69 67 61 74 65 | 64 20 75 70 20 74 6f 20 |ropigate|d up to |
|00005010| 74 68 65 20 63 61 6c 6c | 65 72 20 6f 66 20 63 68 |the call|er of ch|
|00005020| 65 63 6b 70 61 73 73 77 | 6f 72 64 28 29 2e 0a 58 |eckpassw|ord()..X|
|00005030| 20 2a 0a 58 20 2a 09 41 | 6c 6c 20 70 77 63 6b 5f | *.X *.A|ll pwck_|
|00005040| 2a 20 72 6f 75 74 69 6e | 65 73 20 69 6e 20 74 68 |* routin|es in th|
|00005050| 65 20 74 61 62 6c 65 20 | 62 65 6c 6f 77 20 61 72 |e table |below ar|
|00005060| 65 20 63 61 6c 6c 65 64 | 20 74 68 75 73 6c 79 3a |e called| thusly:|
|00005070| 0a 58 20 2a 09 09 70 77 | 63 6b 5f 2a 28 70 61 73 |.X *..pw|ck_*(pas|
|00005080| 73 77 6f 72 64 2c 20 75 | 73 65 72 69 64 2c 20 6d |sword, u|serid, m|
|00005090| 65 73 67 29 0a 58 20 2a | 09 09 09 70 61 73 73 77 |esg).X *|...passw|
|000050a0| 6f 72 64 20 3d 20 70 6c | 61 69 6e 74 65 78 74 20 |ord = pl|aintext |
|000050b0| 70 61 73 73 77 6f 72 64 | 20 73 74 72 69 6e 67 20 |password| string |
|000050c0| 74 6f 20 74 65 73 74 2e | 0a 58 20 2a 09 09 09 75 |to test.|.X *...u|
|000050d0| 73 65 72 69 64 20 3d 20 | 74 68 65 20 75 73 65 72 |serid = |the user|
|000050e0| 20 69 64 20 77 68 69 63 | 68 20 77 61 6e 74 73 20 | id whic|h wants |
|000050f0| 74 6f 20 75 73 65 20 3c | 70 61 73 73 77 6f 72 64 |to use <|password|
|00005100| 3e 2e 0a 58 20 2a 09 09 | 09 6d 65 73 67 20 3d 20 |>..X *..|.mesg = |
|00005110| 62 75 66 66 65 72 20 74 | 6f 20 70 6c 61 63 65 20 |buffer t|o place |
|00005120| 6c 6f 6e 67 20 65 78 70 | 6c 61 6e 61 74 69 6f 6e |long exp|lanation|
|00005130| 20 69 6e 74 6f 0a 58 20 | 2a 0a 58 20 2a 09 49 66 | into.X |*.X *.If|
|00005140| 20 6d 6f 72 65 20 63 68 | 65 63 6b 73 20 61 72 65 | more ch|ecks are|
|00005150| 20 64 65 73 69 72 65 64 | 2c 20 61 64 64 20 74 68 | desired|, add th|
|00005160| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 74 6f 20 74 |e functi|ons to t|
|00005170| 68 65 20 74 61 62 6c 65 | 73 20 62 65 6c 6f 77 2e |he table|s below.|
|00005180| 0a 58 20 2a 2f 0a 58 65 | 78 74 65 72 6e 20 69 6e |.X */.Xe|xtern in|
|00005190| 74 0a 58 09 70 77 63 6b | 5f 6c 65 78 69 63 61 6c |t.X.pwck|_lexical|
|000051a0| 28 29 2c 0a 58 09 70 77 | 63 6b 5f 6c 6f 63 61 6c |(),.X.pw|ck_local|
|000051b0| 28 29 2c 0a 58 09 70 77 | 63 6b 5f 70 61 73 73 77 |(),.X.pw|ck_passw|
|000051c0| 64 28 29 2c 0a 58 09 70 | 77 63 6b 5f 64 69 63 74 |d(),.X.p|wck_dict|
|000051d0| 69 6f 6e 61 72 79 28 29 | 3b 0a 58 0a 58 74 79 70 |ionary()|;.X.Xtyp|
|000051e0| 65 64 65 66 09 69 6e 74 | 09 28 2a 66 75 6e 63 74 |edef.int|.(*funct|
|000051f0| 69 6f 6e 29 28 29 3b 0a | 58 0a 58 66 75 6e 63 74 |ion)();.|X.Xfunct|
|00005200| 69 6f 6e 20 63 68 65 63 | 6b 70 72 6f 63 73 5b 5d |ion chec|kprocs[]|
|00005210| 20 3d 20 7b 0a 58 09 70 | 77 63 6b 5f 6c 65 78 69 | = {.X.p|wck_lexi|
|00005220| 63 61 6c 2c 0a 58 09 70 | 77 63 6b 5f 6c 6f 63 61 |cal,.X.p|wck_loca|
|00005230| 6c 2c 0a 58 09 70 77 63 | 6b 5f 70 61 73 73 77 64 |l,.X.pwc|k_passwd|
|00005240| 2c 0a 58 09 70 77 63 6b | 5f 64 69 63 74 69 6f 6e |,.X.pwck|_diction|
|00005250| 61 72 79 2c 0a 58 09 30 | 0a 58 7d 3b 0a 58 0a 58 |ary,.X.0|.X};.X.X|
|00005260| 2f 2a 0a 58 20 2a 09 63 | 68 65 63 6b 70 61 73 73 |/*.X *.c|heckpass|
|00005270| 77 6f 72 64 20 2d 20 50 | 61 73 73 77 6f 72 64 20 |word - P|assword |
|00005280| 63 61 6e 64 69 64 61 74 | 65 20 73 61 6e 69 74 79 |candidat|e sanity|
|00005290| 20 63 68 65 63 6b 65 72 | 2e 0a 58 20 2a 0a 58 20 | checker|..X *.X |
|000052a0| 2a 09 41 72 67 75 6d 65 | 6e 74 73 3b 0a 58 20 2a |*.Argume|nts;.X *|
|000052b0| 09 09 70 61 73 73 77 6f | 72 64 20 3d 20 70 6c 61 |..passwo|rd = pla|
|000052c0| 69 6e 20 74 65 78 74 20 | 70 61 73 73 77 6f 72 64 |in text |password|
|000052d0| 20 73 74 72 69 6e 67 20 | 74 6f 20 63 68 65 63 6b | string |to check|
|000052e0| 2e 0a 58 20 2a 09 09 75 | 73 65 72 69 64 20 3d 20 |..X *..u|serid = |
|000052f0| 74 68 65 20 75 69 64 20 | 77 68 6f 6d 20 74 68 65 |the uid |whom the|
|00005300| 20 70 61 73 73 77 6f 72 | 64 20 69 73 20 66 6f 72 | passwor|d is for|
|00005310| 2c 20 2d 31 20 74 6f 20 | 64 69 73 61 62 6c 65 2e |, -1 to |disable.|
|00005320| 0a 58 20 2a 0a 58 20 2a | 09 52 65 74 75 72 6e 73 |.X *.X *|.Returns|
|00005330| 3a 0a 58 20 2a 09 09 50 | 57 43 4b 5f 2a 20 76 61 |:.X *..P|WCK_* va|
|00005340| 6c 75 65 73 20 28 73 65 | 65 20 63 68 65 63 6b 70 |lues (se|e checkp|
|00005350| 61 73 73 77 64 2e 68 29 | 0a 58 20 2a 2f 0a 58 63 |asswd.h)|.X */.Xc|
|00005360| 68 65 63 6b 70 61 73 73 | 77 6f 72 64 28 70 61 73 |heckpass|word(pas|
|00005370| 73 77 6f 72 64 2c 20 75 | 73 65 72 69 64 2c 20 6d |sword, u|serid, m|
|00005380| 65 73 67 29 0a 58 63 68 | 61 72 09 2a 70 61 73 73 |esg).Xch|ar.*pass|
|00005390| 77 6f 72 64 3b 09 09 2f | 2a 20 50 6c 61 69 6e 74 |word;../|* Plaint|
|000053a0| 65 78 74 20 6f 66 20 70 | 61 73 73 77 6f 72 64 20 |ext of p|assword |
|000053b0| 74 6f 20 63 68 65 63 6b | 20 2a 2f 0a 58 69 6e 74 |to check| */.Xint|
|000053c0| 09 75 73 65 72 69 64 3b | 09 09 09 2f 2a 20 54 68 |.userid;|.../* Th|
|000053d0| 65 20 75 73 65 72 20 74 | 68 69 73 20 69 73 20 66 |e user t|his is f|
|000053e0| 6f 72 20 2a 2f 0a 58 63 | 68 61 72 09 2a 6d 65 73 |or */.Xc|har.*mes|
|000053f0| 67 3b 09 09 09 2f 2a 20 | 57 68 65 72 65 20 74 6f |g;.../* |Where to|
|00005400| 20 73 74 61 73 68 20 65 | 78 70 6c 61 6e 61 74 69 | stash e|xplanati|
|00005410| 6f 6e 20 6d 65 73 73 61 | 67 65 20 2a 2f 0a 58 7b |on messa|ge */.X{|
|00005420| 0a 58 09 69 6e 74 09 09 | 72 63 6f 64 65 3b 09 09 |.X.int..|rcode;..|
|00005430| 2f 2a 20 47 65 6e 65 72 | 61 6c 20 70 75 72 70 6f |/* Gener|al purpo|
|00005440| 73 65 20 73 63 72 61 74 | 63 68 20 2a 2f 0a 58 09 |se scrat|ch */.X.|
|00005450| 66 75 6e 63 74 69 6f 6e | 09 2a 63 68 65 63 6b 66 |function|.*checkf|
|00005460| 75 6e 63 3b 09 2f 2a 20 | 43 68 65 63 6b 20 66 75 |unc;./* |Check fu|
|00005470| 6e 63 74 69 6f 6e 20 70 | 6f 69 6e 74 65 72 20 2a |nction p|ointer *|
|00005480| 2f 0a 58 0a 58 09 69 66 | 20 28 70 61 73 73 77 6f |/.X.X.if| (passwo|
|00005490| 72 64 20 3d 3d 20 30 20 | 7c 7c 20 2a 70 61 73 73 |rd == 0 ||| *pass|
|000054a0| 77 6f 72 64 20 3d 3d 20 | 30 29 0a 58 09 09 72 65 |word == |0).X..re|
|000054b0| 74 75 72 6e 28 50 57 43 | 4b 5f 4e 55 4c 4c 29 3b |turn(PWC|K_NULL);|
|000054c0| 09 09 2f 2a 20 4e 75 6c | 6c 20 70 61 73 73 77 6f |../* Nul|l passwo|
|000054d0| 72 64 20 2a 2f 0a 58 0a | 58 09 6d 65 73 67 5b 30 |rd */.X.|X.mesg[0|
|000054e0| 5d 20 3d 20 30 3b 0a 58 | 09 66 6f 72 20 28 63 68 |] = 0;.X|.for (ch|
|000054f0| 65 63 6b 66 75 6e 63 20 | 3d 20 63 68 65 63 6b 70 |eckfunc |= checkp|
|00005500| 72 6f 63 73 3b 20 2a 63 | 68 65 63 6b 66 75 6e 63 |rocs; *c|heckfunc|
|00005510| 3b 20 63 68 65 63 6b 66 | 75 6e 63 2b 2b 29 20 7b |; checkf|unc++) {|
|00005520| 0a 58 09 09 69 66 20 28 | 28 72 63 6f 64 65 20 3d |.X..if (|(rcode =|
|00005530| 20 28 2a 63 68 65 63 6b | 66 75 6e 63 29 28 70 61 | (*check|func)(pa|
|00005540| 73 73 77 6f 72 64 2c 20 | 75 73 65 72 69 64 2c 20 |ssword, |userid, |
|00005550| 6d 65 73 67 29 29 20 21 | 3d 20 50 57 43 4b 5f 4f |mesg)) !|= PWCK_O|
|00005560| 4b 29 0a 58 09 09 09 72 | 65 74 75 72 6e 28 72 63 |K).X...r|eturn(rc|
|00005570| 6f 64 65 29 3b 0a 58 09 | 7d 0a 58 09 72 65 74 75 |ode);.X.|}.X.retu|
|00005580| 72 6e 28 50 57 43 4b 5f | 4f 4b 29 3b 0a 58 7d 0a |rn(PWCK_|OK);.X}.|
|00005590| 58 2f 2a 09 45 6e 64 20 | 63 68 65 63 6b 70 61 73 |X/*.End |checkpas|
|000055a0| 73 77 64 2e 63 20 2a 2f | 0a 45 4e 44 5f 4f 46 5f |swd.c */|.END_OF_|
|000055b0| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 33 36 37 |FILE.if |test 367|
|000055c0| 30 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 63 |0 -ne `w|c -c <'c|
|000055d0| 68 65 63 6b 70 61 73 73 | 77 64 2f 63 68 65 63 6b |heckpass|wd/check|
|000055e0| 70 61 73 73 77 64 2e 63 | 27 60 3b 20 74 68 65 6e |passwd.c|'`; then|
|000055f0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00005600| 5c 22 27 63 68 65 63 6b | 70 61 73 73 77 64 2f 63 |\"'check|passwd/c|
|00005610| 68 65 63 6b 70 61 73 73 | 77 64 2e 63 27 5c 22 20 |heckpass|wd.c'\" |
|00005620| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00005630| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00005640| 6e 64 20 6f 66 20 27 63 | 68 65 63 6b 70 61 73 73 |nd of 'c|heckpass|
|00005650| 77 64 2f 63 68 65 63 6b | 70 61 73 73 77 64 2e 63 |wd/check|passwd.c|
|00005660| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005670| 27 63 68 65 63 6b 70 61 | 73 73 77 64 2f 63 68 65 |'checkpa|sswd/che|
|00005680| 63 6b 70 61 73 73 77 64 | 2e 63 66 27 20 2d 61 20 |ckpasswd|.cf' -a |
|00005690| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000056a0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000056b0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000056c0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000056d0| 6c 65 20 5c 22 27 63 68 | 65 63 6b 70 61 73 73 77 |le \"'ch|eckpassw|
|000056e0| 64 2f 63 68 65 63 6b 70 | 61 73 73 77 64 2e 63 66 |d/checkp|asswd.cf|
|000056f0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00005700| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00005710| 22 27 63 68 65 63 6b 70 | 61 73 73 77 64 2f 63 68 |"'checkp|asswd/ch|
|00005720| 65 63 6b 70 61 73 73 77 | 64 2e 63 66 27 5c 22 20 |eckpassw|d.cf'\" |
|00005730| 5c 28 36 32 36 20 63 68 | 61 72 61 63 74 65 72 73 |\(626 ch|aracters|
|00005740| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00005750| 3e 27 63 68 65 63 6b 70 | 61 73 73 77 64 2f 63 68 |>'checkp|asswd/ch|
|00005760| 65 63 6b 70 61 73 73 77 | 64 2e 63 66 27 20 3c 3c |eckpassw|d.cf' <<|
|00005770| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|00005780| 0a 58 23 20 63 68 65 63 | 6b 70 61 73 73 77 64 20 |.X# chec|kpasswd |
|00005790| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 69 |configur|ation fi|
|000057a0| 6c 65 0a 58 23 20 0a 58 | 23 09 40 28 23 29 63 68 |le.X# .X|#.@(#)ch|
|000057b0| 65 63 6b 70 61 73 73 77 | 64 2e 63 66 09 31 2e 31 |eckpassw|d.cf.1.1|
|000057c0| 20 35 2f 31 38 2f 38 39 | 20 28 63 63 2e 75 74 65 | 5/18/89| (cc.ute|
|000057d0| 78 61 73 2e 65 64 75 29 | 0a 58 23 0a 58 23 20 64 |xas.edu)|.X#.X# d|
|000057e0| 69 63 74 69 6f 6e 61 72 | 79 20 2d 20 20 53 70 65 |ictionar|y - Spe|
|000057f0| 63 69 66 79 20 64 69 63 | 74 69 6f 6e 61 72 79 20 |cify dic|tionary |
|00005800| 74 6f 20 6c 6f 6f 6b 20 | 69 6e 2e 0a 58 23 09 20 |to look |in..X#. |
|00005810| 54 68 65 72 65 20 6d 61 | 79 20 62 65 20 6d 75 6c |There ma|y be mul|
|00005820| 74 69 70 6c 65 20 73 75 | 63 68 20 65 6e 74 72 69 |tiple su|ch entri|
|00005830| 65 73 2e 0a 58 23 20 64 | 69 63 74 69 6f 6e 61 72 |es..X# d|ictionar|
|00005840| 79 09 2f 70 61 74 68 2f | 74 6f 2f 64 69 63 74 69 |y./path/|to/dicti|
|00005850| 6f 6e 61 72 79 09 5b 64 | 65 73 63 72 69 70 74 69 |onary.[d|escripti|
|00005860| 6f 6e 5d 0a 58 64 69 63 | 74 69 6f 6e 61 72 79 09 |on].Xdic|tionary.|
|00005870| 73 79 73 64 69 63 74 0a | 58 0a 58 23 20 73 69 6e |sysdict.|X.X# sin|
|00005880| 67 6c 65 63 61 73 65 09 | 79 65 73 20 7c 20 5b 6e |glecase.|yes | [n|
|00005890| 6f 5d 09 2d 20 50 61 73 | 73 20 73 69 6e 67 6c 65 |o].- Pas|s single|
|000058a0| 2d 63 61 73 65 20 70 61 | 73 73 77 6f 72 64 73 0a |-case pa|sswords.|
|000058b0| 58 23 20 73 69 6e 67 6c | 65 63 61 73 65 09 79 65 |X# singl|ecase.ye|
|000058c0| 73 0a 58 0a 58 23 20 6d | 69 6e 6c 65 6e 67 74 68 |s.X.X# m|inlength|
|000058d0| 09 4e 20 5b 35 5d 09 2d | 20 4d 69 6e 69 6d 75 6d |.N [5].-| Minimum|
|000058e0| 20 70 61 73 73 77 6f 72 | 64 20 6c 65 6e 67 74 68 | passwor|d length|
|000058f0| 0a 58 23 20 6d 69 6e 6c | 65 6e 67 74 68 09 36 0a |.X# minl|ength.6.|
|00005900| 58 0a 58 23 20 6d 61 78 | 6c 65 6e 67 74 68 09 4e |X.X# max|length.N|
|00005910| 20 5b 38 5d 09 4d 61 78 | 69 6d 75 6d 20 65 66 66 | [8].Max|imum eff|
|00005920| 65 63 74 69 76 65 20 70 | 61 73 73 77 6f 72 64 20 |ective p|assword |
|00005930| 6c 65 6e 67 74 68 0a 58 | 23 09 09 09 28 66 6f 72 |length.X|#...(for|
|00005940| 20 77 61 72 6e 69 6e 67 | 20 70 75 72 70 6f 73 65 | warning| purpose|
|00005950| 73 20 6f 6e 6c 79 29 0a | 58 0a 58 23 20 70 72 69 |s only).|X.X# pri|
|00005960| 6e 74 6f 6e 6c 79 09 79 | 65 73 20 7c 20 5b 6e 6f |ntonly.y|es | [no|
|00005970| 5d 20 09 2d 20 41 6c 6c | 6f 77 20 6f 6e 6c 79 20 |] .- All|ow only |
|00005980| 70 72 69 6e 74 61 62 6c | 65 20 63 68 61 72 61 63 |printabl|e charac|
|00005990| 74 65 72 73 0a 58 0a 58 | 23 20 62 61 64 63 68 61 |ters.X.X|# badcha|
|000059a0| 72 73 09 22 3c 73 74 72 | 69 6e 67 3e 22 09 2d 20 |rs."<str|ing>".- |
|000059b0| 52 65 70 6c 61 63 65 20 | 69 6c 6c 65 67 61 6c 20 |Replace |illegal |
|000059c0| 63 68 61 72 61 63 74 65 | 72 20 6c 69 73 74 0a 58 |characte|r list.X|
|000059d0| 23 20 62 61 64 63 68 61 | 72 73 09 2b 22 3c 73 74 |# badcha|rs.+"<st|
|000059e0| 72 69 6e 67 3e 22 09 2d | 20 41 64 64 20 74 6f 20 |ring>".-| Add to |
|000059f0| 69 6c 6c 65 67 61 6c 20 | 63 68 61 72 61 63 74 65 |illegal |characte|
|00005a00| 72 20 6c 69 73 74 0a 45 | 4e 44 5f 4f 46 5f 46 49 |r list.E|ND_OF_FI|
|00005a10| 4c 45 0a 69 66 20 74 65 | 73 74 20 36 32 36 20 2d |LE.if te|st 626 -|
|00005a20| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 63 68 65 63 |ne `wc -|c <'chec|
|00005a30| 6b 70 61 73 73 77 64 2f | 63 68 65 63 6b 70 61 73 |kpasswd/|checkpas|
|00005a40| 73 77 64 2e 63 66 27 60 | 3b 20 74 68 65 6e 0a 20 |swd.cf'`|; then. |
|00005a50| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00005a60| 27 63 68 65 63 6b 70 61 | 73 73 77 64 2f 63 68 65 |'checkpa|sswd/che|
|00005a70| 63 6b 70 61 73 73 77 64 | 2e 63 66 27 5c 22 20 75 |ckpasswd|.cf'\" u|
|00005a80| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00005a90| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00005aa0| 64 20 6f 66 20 27 63 68 | 65 63 6b 70 61 73 73 77 |d of 'ch|eckpassw|
|00005ab0| 64 2f 63 68 65 63 6b 70 | 61 73 73 77 64 2e 63 66 |d/checkp|asswd.cf|
|00005ac0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005ad0| 27 63 68 65 63 6b 70 61 | 73 73 77 64 2f 63 68 65 |'checkpa|sswd/che|
|00005ae0| 63 6b 70 61 73 73 77 64 | 2e 68 27 20 2d 61 20 22 |ckpasswd|.h' -a "|
|00005af0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00005b00| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00005b10| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00005b20| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00005b30| 65 20 5c 22 27 63 68 65 | 63 6b 70 61 73 73 77 64 |e \"'che|ckpasswd|
|00005b40| 2f 63 68 65 63 6b 70 61 | 73 73 77 64 2e 68 27 5c |/checkpa|sswd.h'\|
|00005b50| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00005b60| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00005b70| 63 68 65 63 6b 70 61 73 | 73 77 64 2f 63 68 65 63 |checkpas|swd/chec|
|00005b80| 6b 70 61 73 73 77 64 2e | 68 27 5c 22 20 5c 28 33 |kpasswd.|h'\" \(3|
|00005b90| 32 36 37 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |267 char|acters\)|
|00005ba0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00005bb0| 63 68 65 63 6b 70 61 73 | 73 77 64 2f 63 68 65 63 |checkpas|swd/chec|
|00005bc0| 6b 70 61 73 73 77 64 2e | 68 27 20 3c 3c 27 45 4e |kpasswd.|h' <<'EN|
|00005bd0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 0a 58 2f 2a |D_OF_FIL|E'.X.X/*|
|00005be0| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00005bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c20| 2d 2d 2d 2d 2d 20 20 2a | 2f 0a 58 2f 2a 20 20 20 |----- *|/.X/* |
|00005c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c70| 20 20 20 20 2a 2f 0a 58 | 2f 2a 20 20 20 20 20 20 | */.X|/* |
|00005c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c90| 20 20 20 41 75 74 68 6f | 72 3a 20 43 6c 79 64 65 | Autho|r: Clyde|
|00005ca0| 20 48 6f 6f 76 65 72 20 | 20 20 20 20 20 20 20 20 | Hoover | |
|00005cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cc0| 20 2a 2f 0a 58 2f 2a 20 | 20 20 20 20 20 20 20 20 | */.X/* | |
|00005cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ce0| 20 43 6f 6d 70 75 74 61 | 74 69 6f 6e 20 43 65 6e | Computa|tion Cen|
|00005cf0| 74 65 72 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ter | |
|00005d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00005d10| 0a 58 2f 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X/* | |
|00005d20| 20 20 20 20 20 20 20 54 | 68 65 20 55 6e 69 76 65 | T|he Unive|
|00005d30| 72 73 69 74 79 20 6f 66 | 20 54 65 78 61 73 20 61 |rsity of| Texas a|
|00005d40| 74 20 41 75 73 74 69 6e | 20 20 20 20 20 20 20 20 |t Austin| |
|00005d50| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 58 2f | | */.X/|
|00005d60| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00005d70| 20 20 20 20 20 20 20 20 | 20 20 20 41 75 73 74 69 | | Austi|
|00005d80| 6e 2c 20 54 65 78 61 73 | 20 37 38 37 31 32 20 20 |n, Texas| 78712 |
|00005d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005da0| 20 20 20 20 20 20 20 20 | 2a 2f 0a 58 2f 2a 20 20 | |*/.X/* |
|00005db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005dc0| 20 20 20 20 20 20 20 63 | 6c 79 64 65 40 65 6d 78 | c|lyde@emx|
|00005dd0| 2e 75 74 65 78 61 73 2e | 65 64 75 20 20 20 20 20 |.utexas.|edu |
|00005de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005df0| 20 20 20 20 20 2a 2f 0a | 58 2f 2a 20 20 20 20 20 | */.|X/* |
|00005e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 75 75 | | uu|
|00005e10| 6e 65 74 21 63 73 2e 75 | 74 65 78 61 73 2e 65 64 |net!cs.u|texas.ed|
|00005e20| 75 21 75 74 2d 65 6d 78 | 21 63 6c 79 64 65 20 20 |u!ut-emx|!clyde |
|00005e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e40| 20 20 2a 2f 0a 58 2f 2a | 20 20 20 20 20 20 20 20 | */.X/*| |
|00005e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00005e90| 2f 0a 58 2f 2a 54 68 69 | 73 20 63 6f 64 65 20 6d |/.X/*Thi|s code m|
|00005ea0| 61 79 20 62 65 20 64 69 | 73 74 72 69 62 75 74 65 |ay be di|stribute|
|00005eb0| 64 20 66 72 65 65 6c 79 | 2c 20 70 72 6f 76 69 64 |d freely|, provid|
|00005ec0| 65 64 20 74 68 69 73 20 | 6e 6f 74 69 63 65 20 69 |ed this |notice i|
|00005ed0| 73 20 72 65 74 61 69 6e | 65 64 2e 20 2a 2f 0a 58 |s retain|ed. */.X|
|00005ee0| 2f 2a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/* | |
|00005ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f20| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 58 2f 2a 20 | | */.X/* |
|00005f30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f70| 2d 2d 2d 2d 20 20 2a 2f | 0a 58 2f 2a 0a 58 20 2a |---- */|.X/*.X *|
|00005f80| 09 63 68 65 63 6b 70 61 | 73 73 77 64 2e 68 20 2d |.checkpa|sswd.h -|
|00005f90| 20 4d 61 73 74 65 72 20 | 69 6e 63 6c 75 64 65 20 | Master |include |
|00005fa0| 66 6f 72 20 63 68 65 63 | 6b 70 61 73 73 77 64 0a |for chec|kpasswd.|
|00005fb0| 58 20 2a 20 0a 58 20 2a | 09 40 28 23 29 63 68 65 |X * .X *|.@(#)che|
|00005fc0| 63 6b 70 61 73 73 77 64 | 2e 68 09 31 2e 34 20 31 |ckpasswd|.h.1.4 1|
|00005fd0| 31 2f 32 36 2f 39 30 20 | 28 63 63 2e 75 74 65 78 |1/26/90 |(cc.utex|
|00005fe0| 61 73 2e 65 64 75 29 20 | 2f 74 6d 70 5f 6d 6e 74 |as.edu) |/tmp_mnt|
|00005ff0| 2f 75 73 72 2f 73 68 61 | 72 65 2f 73 72 63 2f 70 |/usr/sha|re/src/p|
|00006000| 72 69 76 61 74 65 2f 75 | 74 2f 73 68 61 72 65 2f |rivate/u|t/share/|
|00006010| 62 69 6e 2f 70 61 73 73 | 77 64 2f 63 68 65 63 6b |bin/pass|wd/check|
|00006020| 70 61 73 73 77 64 2f 53 | 43 43 53 2f 73 2e 63 68 |passwd/S|CCS/s.ch|
|00006030| 65 63 6b 70 61 73 73 77 | 64 2e 68 0a 58 20 2a 2f |eckpassw|d.h.X */|
|00006040| 0a 58 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.X.X#inc|lude <st|
|00006050| 64 69 6f 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |dio.h>.X|#include|
|00006060| 20 3c 63 74 79 70 65 2e | 68 3e 0a 58 23 69 66 64 | <ctype.|h>.X#ifd|
|00006070| 65 66 09 53 59 53 56 0a | 58 23 69 6e 63 6c 75 64 |ef.SYSV.|X#includ|
|00006080| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 58 23 64 |e <strin|g.h>.X#d|
|00006090| 65 66 69 6e 65 20 69 6e | 64 65 78 20 73 74 72 63 |efine in|dex strc|
|000060a0| 68 72 0a 58 23 65 6c 73 | 65 0a 58 23 69 6e 63 6c |hr.X#els|e.X#incl|
|000060b0| 75 64 65 20 3c 73 74 72 | 69 6e 67 73 2e 68 3e 0a |ude <str|ings.h>.|
|000060c0| 58 23 65 6e 64 69 66 0a | 58 0a 58 2f 2a 0a 58 20 |X#endif.|X.X/*.X |
|000060d0| 2a 09 52 65 74 75 72 6e | 20 63 6f 64 65 73 20 66 |*.Return| codes f|
|000060e0| 72 6f 6d 20 63 68 65 63 | 6b 70 61 73 73 77 64 28 |rom chec|kpasswd(|
|000060f0| 29 20 61 6e 64 20 70 77 | 63 6b 5f 2a 0a 58 20 2a |) and pw|ck_*.X *|
|00006100| 09 41 6c 73 6f 20 75 73 | 65 64 20 61 73 20 65 78 |.Also us|ed as ex|
|00006110| 69 74 20 63 6f 64 65 73 | 20 66 72 6f 6d 20 6d 61 |it codes| from ma|
|00006120| 69 6e 28 29 0a 58 20 2a | 2f 0a 58 23 64 65 66 69 |in().X *|/.X#defi|
|00006130| 6e 65 09 50 57 43 4b 5f | 46 41 49 4c 09 2d 31 09 |ne.PWCK_|FAIL.-1.|
|00006140| 2f 2a 20 46 61 69 6c 75 | 72 65 20 64 75 72 69 6e |/* Failu|re durin|
|00006150| 67 20 63 68 65 63 6b 20 | 70 72 6f 63 65 73 73 20 |g check |process |
|00006160| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 09 50 57 43 4b |*/.X#def|ine.PWCK|
|00006170| 5f 4f 4b 09 09 30 09 2f | 2a 20 50 61 73 73 77 6f |_OK..0./|* Passwo|
|00006180| 72 64 20 69 73 20 6f 6b | 20 74 6f 20 75 73 65 20 |rd is ok| to use |
|00006190| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 09 50 57 43 4b |*/.X#def|ine.PWCK|
|000061a0| 5f 4e 55 4c 4c 09 31 20 | 09 2f 2a 20 50 61 73 73 |_NULL.1 |./* Pass|
|000061b0| 77 6f 72 64 20 69 73 20 | 74 68 65 20 6e 75 6c 6c |word is |the null|
|000061c0| 20 73 74 72 69 6e 67 20 | 2a 2f 0a 58 23 64 65 66 | string |*/.X#def|
|000061d0| 69 6e 65 09 50 57 43 4b | 5f 4f 42 56 49 4f 55 53 |ine.PWCK|_OBVIOUS|
|000061e0| 09 32 09 2f 2a 20 50 61 | 73 73 77 6f 72 64 20 69 |.2./* Pa|ssword i|
|000061f0| 73 20 27 74 6f 6f 20 6f | 62 76 69 6f 75 73 27 20 |s 'too o|bvious' |
|00006200| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 09 50 57 43 4b |*/.X#def|ine.PWCK|
|00006210| 5f 46 49 4e 47 45 52 09 | 33 09 2f 2a 20 50 61 73 |_FINGER.|3./* Pas|
|00006220| 73 77 6f 72 64 20 69 73 | 20 70 61 72 74 20 6f 66 |sword is| part of|
|00006230| 20 75 73 65 72 73 20 66 | 69 6e 67 65 72 20 69 6e | users f|inger in|
|00006240| 66 6f 20 2a 2f 0a 58 23 | 64 65 66 69 6e 65 09 50 |fo */.X#|define.P|
|00006250| 57 43 4b 5f 49 4e 44 49 | 43 54 09 34 09 2f 2a 20 |WCK_INDI|CT.4./* |
|00006260| 50 61 73 73 77 6f 72 64 | 20 66 6f 75 6e 64 20 69 |Password| found i|
|00006270| 6e 20 61 20 64 69 63 74 | 69 6f 6e 61 72 79 20 2a |n a dict|ionary *|
|00006280| 2f 0a 58 23 64 65 66 69 | 6e 65 09 50 57 43 4b 5f |/.X#defi|ne.PWCK_|
|00006290| 49 4c 4c 43 48 41 52 09 | 35 09 2f 2a 20 49 6c 6c |ILLCHAR.|5./* Ill|
|000062a0| 65 67 61 6c 20 63 68 61 | 72 61 63 74 65 72 20 69 |egal cha|racter i|
|000062b0| 6e 20 70 61 73 73 77 6f | 72 64 20 2a 2f 0a 58 23 |n passwo|rd */.X#|
|000062c0| 64 65 66 69 6e 65 09 50 | 57 43 4b 5f 53 48 4f 52 |define.P|WCK_SHOR|
|000062d0| 54 09 36 09 2f 2a 20 50 | 61 73 73 77 6f 72 64 20 |T.6./* P|assword |
|000062e0| 74 6f 6f 20 73 68 6f 72 | 74 20 2a 2f 0a 58 0a 58 |too shor|t */.X.X|
|000062f0| 2f 2a 0a 58 20 2a 09 44 | 69 63 74 69 6f 6e 61 72 |/*.X *.D|ictionar|
|00006300| 79 20 69 6e 66 6f 0a 58 | 20 2a 2f 0a 58 74 79 70 |y info.X| */.Xtyp|
|00006310| 65 64 65 66 20 73 74 72 | 75 63 74 20 5f 64 69 63 |edef str|uct _dic|
|00006320| 74 20 7b 0a 58 09 63 68 | 61 72 09 2a 64 69 63 74 |t {.X.ch|ar.*dict|
|00006330| 5f 70 61 74 68 2c 09 09 | 2f 2a 20 50 61 74 68 20 |_path,..|/* Path |
|00006340| 74 6f 20 64 69 63 74 69 | 6f 6e 61 72 79 20 2a 2f |to dicti|onary */|
|00006350| 0a 58 09 09 2a 64 69 63 | 74 5f 64 65 73 63 3b 09 |.X..*dic|t_desc;.|
|00006360| 09 2f 2a 20 44 65 73 63 | 72 69 70 74 69 76 65 20 |./* Desc|riptive |
|00006370| 70 68 72 61 73 65 20 2a | 2f 0a 58 09 73 74 72 75 |phrase *|/.X.stru|
|00006380| 63 74 20 5f 64 69 63 74 | 20 20 2a 64 69 63 74 5f |ct _dict| *dict_|
|00006390| 6e 65 78 74 3b 09 2f 2a | 20 4c 69 6e 6b 20 74 6f |next;./*| Link to|
|000063a0| 20 6e 65 78 74 20 64 69 | 63 74 20 2a 2f 0a 58 7d | next di|ct */.X}|
|000063b0| 20 64 69 63 74 69 6f 6e | 61 72 79 3b 0a 58 65 78 | diction|ary;.Xex|
|000063c0| 74 65 72 6e 20 64 69 63 | 74 69 6f 6e 61 72 79 09 |tern dic|tionary.|
|000063d0| 2a 64 69 63 74 69 6f 6e | 61 72 69 65 73 3b 20 2f |*diction|aries; /|
|000063e0| 2a 20 4c 69 73 74 20 6f | 66 20 64 69 63 74 69 6f |* List o|f dictio|
|000063f0| 6e 61 72 69 65 73 20 74 | 6f 20 63 68 65 63 6b 20 |naries t|o check |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.