home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 3347
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| 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)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 6a 66 | 68 40 72 70 70 33 38 36 |From: jf|h@rpp386|
|00000010| 2e 63 61 63 74 75 73 2e | 6f 72 67 20 28 4a 6f 68 |.cactus.|org (Joh|
|00000020| 6e 20 46 20 48 61 75 67 | 68 20 49 49 29 0a 4e 65 |n F Haug|h II).Ne|
|00000030| 77 73 67 72 6f 75 70 73 | 3a 20 61 6c 74 2e 73 6f |wsgroups|: alt.so|
|00000040| 75 72 63 65 73 0a 53 75 | 62 6a 65 63 74 3a 20 53 |urces.Su|bject: S|
|00000050| 68 61 64 6f 77 20 4c 6f | 67 69 6e 20 53 75 69 74 |hadow Lo|gin Suit|
|00000060| 65 2c 20 76 65 72 73 69 | 6f 6e 20 33 20 28 70 61 |e, versi|on 3 (pa|
|00000070| 72 74 20 38 20 6f 66 20 | 38 29 0a 4d 65 73 73 61 |rt 8 of |8).Messa|
|00000080| 67 65 2d 49 44 3a 20 3c | 31 39 33 30 32 40 72 70 |ge-ID: <|19302@rp|
|00000090| 70 33 38 36 2e 63 61 63 | 74 75 73 2e 6f 72 67 3e |p386.cac|tus.org>|
|000000a0| 0a 44 61 74 65 3a 20 31 | 36 20 4d 61 79 20 39 31 |.Date: 1|6 May 91|
|000000b0| 20 31 36 3a 33 32 3a 32 | 34 20 47 4d 54 0a 0a 23 | 16:32:2|4 GMT..#|
|000000c0| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|000000d0| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|000000e0| 69 76 65 2c 20 6d 65 61 | 6e 69 6e 67 3a 0a 23 20 |ive, mea|ning:.# |
|000000f0| 31 2e 20 52 65 6d 6f 76 | 65 20 65 76 65 72 79 74 |1. Remov|e everyt|
|00000100| 68 69 6e 67 20 61 62 6f | 76 65 20 74 68 65 20 23 |hing abo|ve the #|
|00000110| 21 20 2f 62 69 6e 2f 73 | 68 20 6c 69 6e 65 2e 0a |! /bin/s|h line..|
|00000120| 23 20 32 2e 20 53 61 76 | 65 20 74 68 65 20 72 65 |# 2. Sav|e the re|
|00000130| 73 75 6c 74 69 6e 67 20 | 74 65 78 74 20 69 6e 20 |sulting |text in |
|00000140| 61 20 66 69 6c 65 2e 0a | 23 20 33 2e 20 45 78 65 |a file..|# 3. Exe|
|00000150| 63 75 74 65 20 74 68 65 | 20 66 69 6c 65 20 77 69 |cute the| file wi|
|00000160| 74 68 20 2f 62 69 6e 2f | 73 68 20 28 6e 6f 74 20 |th /bin/|sh (not |
|00000170| 63 73 68 29 20 74 6f 20 | 63 72 65 61 74 65 3a 0a |csh) to |create:.|
|00000180| 23 09 63 68 61 67 65 2e | 31 0a 23 09 63 68 66 6e |#.chage.|1.#.chfn|
|00000190| 2e 31 0a 23 09 63 68 73 | 68 2e 31 0a 23 09 6c 6f |.1.#.chs|h.1.#.lo|
|000001a0| 67 69 6e 2e 31 0a 23 09 | 70 61 73 73 77 64 2e 31 |gin.1.#.|passwd.1|
|000001b0| 0a 23 09 73 75 2e 31 0a | 23 09 73 68 61 64 6f 77 |.#.su.1.|#.shadow|
|000001c0| 2e 33 0a 23 09 66 61 69 | 6c 6c 6f 67 2e 34 0a 23 |.3.#.fai|llog.4.#|
|000001d0| 09 70 61 73 73 77 64 2e | 34 0a 23 09 70 6f 72 74 |.passwd.|4.#.port|
|000001e0| 74 69 6d 65 2e 34 0a 23 | 09 73 68 61 64 6f 77 2e |time.4.#|.shadow.|
|000001f0| 34 0a 23 09 66 61 69 6c | 6c 6f 67 2e 38 0a 23 09 |4.#.fail|log.8.#.|
|00000200| 70 77 63 6f 6e 76 2e 38 | 0a 23 09 70 77 75 6e 63 |pwconv.8|.#.pwunc|
|00000210| 6f 6e 76 2e 38 0a 23 09 | 73 75 6c 6f 67 69 6e 2e |onv.8.#.|sulogin.|
|00000220| 38 0a 23 20 54 68 69 73 | 20 61 72 63 68 69 76 65 |8.# This| archive|
|00000230| 20 63 72 65 61 74 65 64 | 3a 20 53 75 6e 20 4d 61 | created|: Sun Ma|
|00000240| 72 20 20 33 20 31 33 3a | 32 37 3a 34 31 20 31 39 |r 3 13:|27:41 19|
|00000250| 39 31 0a 23 20 42 79 3a | 09 4a 6f 68 6e 20 46 20 |91.# By:|.John F |
|00000260| 48 61 75 67 68 20 49 49 | 20 28 52 69 76 65 72 20 |Haugh II| (River |
|00000270| 50 61 72 69 73 68 65 73 | 20 50 72 6f 67 72 61 6d |Parishes| Program|
|00000280| 6d 69 6e 67 2c 20 41 75 | 73 74 69 6e 20 54 58 29 |ming, Au|stin TX)|
|00000290| 0a 65 78 70 6f 72 74 20 | 50 41 54 48 3b 20 50 41 |.export |PATH; PA|
|000002a0| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|000002b0| 3a 24 50 41 54 48 0a 65 | 63 68 6f 20 73 68 61 72 |:$PATH.e|cho shar|
|000002c0| 3a 20 22 65 78 74 72 61 | 63 74 69 6e 67 20 27 63 |: "extra|cting 'c|
|000002d0| 68 61 67 65 2e 31 27 22 | 20 27 28 31 38 37 35 20 |hage.1'"| '(1875 |
|000002e0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|000002f0| 74 65 73 74 20 2d 66 20 | 27 63 68 61 67 65 2e 31 |test -f |'chage.1|
|00000300| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00000310| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00000320| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00000330| 20 66 69 6c 65 20 27 63 | 68 61 67 65 2e 31 27 22 | file 'c|hage.1'"|
|00000340| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|00000350| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|00000360| 3e 20 27 63 68 61 67 65 | 2e 31 27 0a 58 2e 5c 22 |> 'chage|.1'.X.\"|
|00000370| 20 43 6f 70 79 72 69 67 | 68 74 20 31 39 39 30 2c | Copyrig|ht 1990,|
|00000380| 20 4a 6f 68 6e 20 46 2e | 20 48 61 75 67 68 20 49 | John F.| Haugh I|
|00000390| 49 0a 58 2e 5c 22 20 41 | 6c 6c 20 72 69 67 68 74 |I.X.\" A|ll right|
|000003a0| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 58 2e 5c 22 |s reserv|ed..X.\"|
|000003b0| 0a 58 2e 5c 22 20 55 73 | 65 2c 20 64 75 70 6c 69 |.X.\" Us|e, dupli|
|000003c0| 63 61 74 69 6f 6e 2c 20 | 61 6e 64 20 64 69 73 63 |cation, |and disc|
|000003d0| 6c 6f 73 75 72 65 20 70 | 72 6f 68 69 62 69 74 65 |losure p|rohibite|
|000003e0| 64 20 77 69 74 68 6f 75 | 74 0a 58 2e 5c 22 20 74 |d withou|t.X.\" t|
|000003f0| 68 65 20 65 78 70 72 65 | 73 73 20 77 72 69 74 74 |he expre|ss writt|
|00000400| 65 6e 20 70 65 72 6d 69 | 73 73 69 6f 6e 20 6f 66 |en permi|ssion of|
|00000410| 20 74 68 65 20 61 75 74 | 68 6f 72 2e 0a 58 2e 5c | the aut|hor..X.\|
|00000420| 22 0a 58 2e 5c 22 09 40 | 28 23 29 63 68 61 67 65 |".X.\".@|(#)chage|
|00000430| 2e 31 09 33 2e 31 09 30 | 39 3a 33 34 3a 31 34 09 |.1.3.1.0|9:34:14.|
|00000440| 31 31 2f 32 31 2f 39 30 | 0a 58 2e 5c 22 0a 58 2e |11/21/90|.X.\".X.|
|00000450| 54 48 20 43 48 41 47 45 | 20 31 0a 58 2e 53 48 20 |TH CHAGE| 1.X.SH |
|00000460| 4e 41 4d 45 0a 58 63 68 | 61 67 65 20 5c 2d 20 63 |NAME.Xch|age \- c|
|00000470| 68 61 6e 67 65 20 75 73 | 65 72 20 70 61 73 73 77 |hange us|er passw|
|00000480| 6f 72 64 20 65 78 70 69 | 72 61 74 65 20 69 6e 66 |ord expi|rate inf|
|00000490| 6f 72 6d 61 74 69 6f 6e | 0a 58 2e 53 48 20 53 59 |ormation|.X.SH SY|
|000004a0| 4e 4f 50 53 49 53 0a 58 | 5c 66 42 63 68 61 67 65 |NOPSIS.X|\fBchage|
|000004b0| 5c 66 52 20 5b 20 5c 66 | 42 2d 6d 20 5c 66 49 6d |\fR [ \f|B-m \fIm|
|000004c0| 69 6e 64 61 79 73 5c 66 | 52 20 5d 20 5b 20 5c 66 |indays\f|R ] [ \f|
|000004d0| 42 2d 4d 20 5c 66 49 6d | 61 78 64 61 79 73 5c 66 |B-M \fIm|axdays\f|
|000004e0| 52 20 5d 20 5b 20 5c 66 | 42 2d 64 20 5c 66 49 6c |R ] [ \f|B-d \fIl|
|000004f0| 61 73 74 64 61 79 5c 66 | 52 20 5d 20 5c 66 49 75 |astday\f|R ] \fIu|
|00000500| 73 65 72 5c 66 52 0a 58 | 2e 53 48 20 44 45 53 43 |ser\fR.X|.SH DESC|
|00000510| 52 49 50 54 49 4f 4e 0a | 58 5c 66 49 63 68 61 67 |RIPTION.|X\fIchag|
|00000520| 65 5c 66 20 63 68 61 6e | 67 65 73 20 74 68 65 20 |e\f chan|ges the |
|00000530| 6e 75 6d 62 65 72 20 6f | 66 20 64 61 79 73 20 62 |number o|f days b|
|00000540| 65 74 77 65 65 6e 20 70 | 61 73 73 77 6f 72 64 20 |etween p|assword |
|00000550| 63 68 61 6e 67 65 73 20 | 61 6e 64 20 74 68 65 0a |changes |and the.|
|00000560| 58 64 61 74 65 20 6f 66 | 20 74 68 65 20 6c 61 73 |Xdate of| the las|
|00000570| 74 20 70 61 73 73 77 6f | 72 64 20 63 68 61 6e 67 |t passwo|rd chang|
|00000580| 65 2e 0a 58 54 68 69 73 | 20 69 6e 66 6f 72 6d 61 |e..XThis| informa|
|00000590| 74 69 6f 6e 20 69 73 20 | 75 73 65 64 20 62 79 20 |tion is |used by |
|000005a0| 74 68 65 20 73 79 73 74 | 65 6d 20 74 6f 20 64 65 |the syst|em to de|
|000005b0| 74 65 72 6d 69 6e 65 20 | 77 68 65 6e 20 61 20 75 |termine |when a u|
|000005c0| 73 65 72 20 6d 75 73 74 | 0a 58 63 68 61 6e 67 65 |ser must|.Xchange|
|000005d0| 20 74 68 65 69 72 20 70 | 61 73 73 77 6f 72 64 2e | their p|assword.|
|000005e0| 0a 58 54 68 65 20 5c 66 | 49 63 68 61 67 65 5c 66 |.XThe \f|Ichage\f|
|000005f0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 72 65 73 74 | command| is rest|
|00000600| 72 69 63 74 65 64 20 74 | 6f 20 74 68 65 20 72 6f |ricted t|o the ro|
|00000610| 6f 74 20 75 73 65 72 2e | 0a 58 2e 50 50 0a 58 54 |ot user.|.X.PP.XT|
|00000620| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 5c 66 49 6d |he value| of \fIm|
|00000630| 69 6e 64 61 79 73 5c 66 | 20 69 73 20 74 68 65 20 |indays\f| is the |
|00000640| 6d 69 6e 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |minimum |number o|
|00000650| 66 20 64 61 79 73 20 62 | 65 74 77 65 65 6e 0a 58 |f days b|etween.X|
|00000660| 70 61 73 73 77 6f 72 64 | 20 63 68 61 6e 67 65 73 |password| changes|
|00000670| 2e 0a 58 41 20 76 61 6c | 75 65 20 6f 66 20 7a 65 |..XA val|ue of ze|
|00000680| 72 6f 20 66 6f 72 20 74 | 68 69 73 20 66 69 65 6c |ro for t|his fiel|
|00000690| 64 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |d indica|tes that|
|000006a0| 20 74 68 65 20 75 73 65 | 72 20 6d 61 79 20 63 68 | the use|r may ch|
|000006b0| 61 6e 67 65 0a 58 68 65 | 72 20 70 61 73 73 77 6f |ange.Xhe|r passwo|
|000006c0| 72 64 20 61 74 20 61 6e | 79 20 74 69 6d 65 2e 0a |rd at an|y time..|
|000006d0| 58 2e 50 50 0a 58 54 68 | 65 20 76 61 6c 75 65 20 |X.PP.XTh|e value |
|000006e0| 6f 66 20 5c 66 49 6d 61 | 78 64 61 79 73 5c 66 20 |of \fIma|xdays\f |
|000006f0| 69 73 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 6e |is the m|aximum n|
|00000700| 75 6d 62 65 72 20 6f 66 | 20 64 61 79 73 20 64 75 |umber of| days du|
|00000710| 72 69 6e 67 0a 58 77 68 | 69 63 68 20 61 20 70 61 |ring.Xwh|ich a pa|
|00000720| 73 73 77 6f 72 64 20 69 | 73 20 76 61 6c 69 64 2e |ssword i|s valid.|
|00000730| 0a 58 57 68 65 6e 20 5c | 66 49 6d 61 78 64 61 79 |.XWhen \|fImaxday|
|00000740| 73 5c 66 20 70 6c 75 73 | 20 5c 66 49 6c 61 73 74 |s\f plus| \fIlast|
|00000750| 64 61 79 5c 66 20 69 73 | 20 6c 65 73 73 20 74 68 |day\f is| less th|
|00000760| 61 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |an the c|urrent d|
|00000770| 61 79 2c 0a 58 74 68 65 | 20 75 73 65 72 20 77 69 |ay,.Xthe| user wi|
|00000780| 6c 6c 20 62 65 20 72 65 | 71 75 69 72 65 64 20 74 |ll be re|quired t|
|00000790| 6f 20 63 68 61 6e 67 65 | 20 68 65 72 20 70 61 73 |o change| her pas|
|000007a0| 73 77 6f 72 64 20 62 65 | 66 6f 72 65 20 62 65 69 |sword be|fore bei|
|000007b0| 6e 67 0a 58 61 62 6c 65 | 20 74 6f 20 75 73 65 20 |ng.Xable| to use |
|000007c0| 68 65 72 20 61 63 63 6f | 75 6e 74 2e 0a 58 2e 50 |her acco|unt..X.P|
|000007d0| 50 0a 58 54 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |P.XThe v|alue of |
|000007e0| 5c 66 49 6c 61 73 74 64 | 61 79 5c 66 20 69 73 20 |\fIlastd|ay\f is |
|000007f0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 64 61 |the numb|er of da|
|00000800| 79 73 20 73 69 6e 63 65 | 20 4a 61 6e 75 61 72 79 |ys since| January|
|00000810| 20 31 73 74 2c 0a 58 31 | 39 37 30 20 77 68 65 6e | 1st,.X1|970 when|
|00000820| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 20 77 61 | the pas|sword wa|
|00000830| 73 20 6c 61 73 74 20 63 | 68 61 6e 67 65 64 2e 0a |s last c|hanged..|
|00000840| 58 2e 50 50 0a 58 41 6c | 6c 20 6f 66 20 74 68 65 |X.PP.XAl|l of the|
|00000850| 20 61 62 6f 76 65 20 76 | 61 6c 75 65 73 20 61 72 | above v|alues ar|
|00000860| 65 20 73 74 6f 72 65 64 | 20 65 78 61 63 74 6c 79 |e stored| exactly|
|00000870| 20 61 73 20 64 61 79 73 | 20 77 68 65 6e 20 74 68 | as days| when th|
|00000880| 65 20 73 68 61 64 6f 77 | 0a 58 70 61 73 73 77 6f |e shadow|.Xpasswo|
|00000890| 72 64 20 66 69 6c 65 20 | 69 73 20 75 73 65 64 2c |rd file |is used,|
|000008a0| 20 62 75 74 20 61 72 65 | 20 63 6f 6e 76 65 72 74 | but are| convert|
|000008b0| 65 64 20 74 6f 20 61 6e | 64 20 66 72 6f 6d 20 77 |ed to an|d from w|
|000008c0| 65 65 6b 73 20 77 68 65 | 6e 20 74 68 65 0a 58 73 |eeks whe|n the.Xs|
|000008d0| 74 61 6e 64 61 72 64 20 | 70 61 73 73 77 6f 72 64 |tandard |password|
|000008e0| 20 66 69 6c 65 20 69 73 | 20 75 73 65 64 2e 0a 58 | file is| used..X|
|000008f0| 42 65 63 61 75 73 65 20 | 6f 66 20 74 68 69 73 20 |Because |of this |
|00000900| 63 6f 6e 76 65 72 73 69 | 6f 6e 2c 20 72 6f 75 6e |conversi|on, roun|
|00000910| 64 69 6e 67 20 65 72 72 | 6f 72 73 20 6d 61 79 20 |ding err|ors may |
|00000920| 72 65 73 75 6c 74 2e 0a | 58 2e 50 50 0a 58 49 66 |result..|X.PP.XIf|
|00000930| 20 6e 6f 6e 65 20 6f 66 | 20 74 68 65 20 6f 70 74 | none of| the opt|
|00000940| 69 6f 6e 73 20 61 72 65 | 20 73 65 6c 65 63 74 65 |ions are| selecte|
|00000950| 64 2c 20 5c 66 49 63 68 | 61 67 65 5c 66 20 6f 70 |d, \fIch|age\f op|
|00000960| 65 72 61 74 65 73 20 69 | 6e 20 61 6e 20 69 6e 74 |erates i|n an int|
|00000970| 65 72 61 63 74 69 76 65 | 0a 58 66 61 73 68 69 6f |eractive|.Xfashio|
|00000980| 6e 2c 20 70 72 6f 6d 70 | 74 69 6e 67 20 74 68 65 |n, promp|ting the|
|00000990| 20 75 73 65 72 20 77 69 | 74 68 20 74 68 65 20 63 | user wi|th the c|
|000009a0| 75 72 72 65 6e 74 20 76 | 61 6c 75 65 73 20 66 6f |urrent v|alues fo|
|000009b0| 72 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 66 69 65 |r all of| the fie|
|000009c0| 6c 64 73 2e 0a 58 45 6e | 74 65 72 20 74 68 65 20 |lds..XEn|ter the |
|000009d0| 6e 65 77 20 76 61 6c 75 | 65 20 74 6f 20 63 68 61 |new valu|e to cha|
|000009e0| 6e 67 65 20 74 68 65 20 | 66 69 65 6c 64 2c 20 6f |nge the |field, o|
|000009f0| 72 20 6c 65 61 76 65 20 | 74 68 65 20 6c 69 6e 65 |r leave |the line|
|00000a00| 20 62 6c 61 6e 6b 20 74 | 6f 20 75 73 65 0a 58 74 | blank t|o use.Xt|
|00000a10| 68 65 20 63 75 72 72 65 | 6e 74 20 76 61 6c 75 65 |he curre|nt value|
|00000a20| 2e 0a 58 54 68 65 20 63 | 75 72 72 65 6e 74 20 76 |..XThe c|urrent v|
|00000a30| 61 6c 75 65 20 69 73 20 | 64 69 73 70 6c 61 79 65 |alue is |displaye|
|00000a40| 64 20 62 65 74 77 65 65 | 6e 20 61 20 70 61 69 72 |d betwee|n a pair|
|00000a50| 20 6f 66 20 5c 66 42 5b | 20 5d 5c 66 20 6d 61 72 | of \fB[| ]\f mar|
|00000a60| 6b 73 2e 0a 58 2e 53 48 | 20 46 69 6c 65 73 0a 58 |ks..X.SH| Files.X|
|00000a70| 2f 65 74 63 2f 70 61 73 | 73 77 64 20 5c 2d 20 75 |/etc/pas|swd \- u|
|00000a80| 73 65 72 20 61 63 63 6f | 75 6e 74 20 69 6e 66 6f |ser acco|unt info|
|00000a90| 72 6d 61 74 69 6f 6e 0a | 58 2e 62 72 0a 58 2f 65 |rmation.|X.br.X/e|
|00000aa0| 74 63 2f 73 68 61 64 6f | 77 20 5c 2d 20 73 68 61 |tc/shado|w \- sha|
|00000ab0| 64 6f 77 20 75 73 65 72 | 20 61 63 63 6f 75 6e 74 |dow user| account|
|00000ac0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 58 2e 53 | informa|tion.X.S|
|00000ad0| 48 20 53 65 65 20 41 6c | 73 6f 0a 58 70 61 73 73 |H See Al|so.Xpass|
|00000ae0| 77 64 28 34 29 2c 0a 58 | 73 68 61 64 6f 77 28 34 |wd(4),.X|shadow(4|
|00000af0| 29 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |).SHAR_E|OF.if te|
|00000b00| 73 74 20 31 38 37 35 20 | 2d 6e 65 20 22 60 77 63 |st 1875 |-ne "`wc|
|00000b10| 20 2d 63 20 3c 20 27 63 | 68 61 67 65 2e 31 27 60 | -c < 'c|hage.1'`|
|00000b20| 22 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |".then..|echo sha|
|00000b30| 72 3a 20 22 65 72 72 6f | 72 20 74 72 61 6e 73 6d |r: "erro|r transm|
|00000b40| 69 74 74 69 6e 67 20 27 | 63 68 61 67 65 2e 31 27 |itting '|chage.1'|
|00000b50| 22 20 27 28 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |" '(shou|ld have |
|00000b60| 62 65 65 6e 20 31 38 37 | 35 20 63 68 61 72 61 63 |been 187|5 charac|
|00000b70| 74 65 72 73 29 27 0a 66 | 69 0a 66 69 0a 65 63 68 |ters)'.f|i.fi.ech|
|00000b80| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00000b90| 69 6e 67 20 27 63 68 66 | 6e 2e 31 27 22 20 27 28 |ing 'chf|n.1'" '(|
|00000ba0| 31 35 39 38 20 63 68 61 | 72 61 63 74 65 72 73 29 |1598 cha|racters)|
|00000bb0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 63 68 |'.if tes|t -f 'ch|
|00000bc0| 66 6e 2e 31 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |fn.1'.th|en..echo|
|00000bd0| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00000be0| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000bf0| 74 69 6e 67 20 66 69 6c | 65 20 27 63 68 66 6e 2e |ting fil|e 'chfn.|
|00000c00| 31 27 22 0a 65 6c 73 65 | 0a 73 65 64 20 27 73 2f |1'".else|.sed 's/|
|00000c10| 5e 58 2f 2f 27 20 3c 3c | 20 5c 53 48 41 52 5f 45 |^X//' <<| \SHAR_E|
|00000c20| 4f 46 20 3e 20 27 63 68 | 66 6e 2e 31 27 0a 58 2e |OF > 'ch|fn.1'.X.|
|00000c30| 5c 22 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |\" Copyr|ight 199|
|00000c40| 30 2c 20 4a 6f 68 6e 20 | 46 2e 20 48 61 75 67 68 |0, John |F. Haugh|
|00000c50| 20 49 49 0a 58 2e 5c 22 | 20 41 6c 6c 20 72 69 67 | II.X.\"| All rig|
|00000c60| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0a 58 2e |hts rese|rved..X.|
|00000c70| 5c 22 0a 58 2e 5c 22 20 | 55 73 65 2c 20 64 75 70 |\".X.\" |Use, dup|
|00000c80| 6c 69 63 61 74 69 6f 6e | 2c 20 61 6e 64 20 64 69 |lication|, and di|
|00000c90| 73 63 6c 6f 73 75 72 65 | 20 70 72 6f 68 69 62 69 |sclosure| prohibi|
|00000ca0| 74 65 64 20 77 69 74 68 | 6f 75 74 0a 58 2e 5c 22 |ted with|out.X.\"|
|00000cb0| 20 74 68 65 20 65 78 70 | 72 65 73 73 20 77 72 69 | the exp|ress wri|
|00000cc0| 74 74 65 6e 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |tten per|mission |
|00000cd0| 6f 66 20 74 68 65 20 61 | 75 74 68 6f 72 2e 0a 58 |of the a|uthor..X|
|00000ce0| 2e 5c 22 0a 58 2e 5c 22 | 09 40 28 23 29 63 68 66 |.\".X.\"|.@(#)chf|
|00000cf0| 6e 2e 31 09 33 2e 31 09 | 30 39 3a 33 34 3a 31 36 |n.1.3.1.|09:34:16|
|00000d00| 09 31 31 2f 32 31 2f 39 | 30 0a 58 2e 5c 22 0a 58 |.11/21/9|0.X.\".X|
|00000d10| 2e 54 48 20 43 48 46 4e | 20 31 0a 58 2e 53 48 20 |.TH CHFN| 1.X.SH |
|00000d20| 4e 41 4d 45 0a 58 63 68 | 66 6e 20 5c 2d 20 63 68 |NAME.Xch|fn \- ch|
|00000d30| 61 6e 67 65 20 75 73 65 | 72 20 6e 61 6d 65 20 61 |ange use|r name a|
|00000d40| 6e 64 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0a 58 |nd infor|mation.X|
|00000d50| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 58 5c 66 |.SH SYNO|PSIS.X\f|
|00000d60| 42 63 68 66 6e 5c 66 52 | 20 5b 20 5c 66 42 2d 66 |Bchfn\fR| [ \fB-f|
|00000d70| 20 5c 66 49 66 75 6c 6c | 5f 6e 61 6d 65 5c 66 52 | \fIfull|_name\fR|
|00000d80| 20 5d 20 5b 20 5c 66 42 | 2d 72 20 5c 66 49 72 6f | ] [ \fB|-r \fIro|
|00000d90| 6f 6d 5f 6e 6f 5c 66 52 | 20 5d 0a 58 2e 62 72 0a |om_no\fR| ].X.br.|
|00000da0| 58 5b 20 5c 66 42 2d 77 | 20 5c 66 49 77 6f 72 6b |X[ \fB-w| \fIwork|
|00000db0| 5f 70 68 5c 66 52 20 5d | 20 5b 20 5c 66 42 2d 68 |_ph\fR ]| [ \fB-h|
|00000dc0| 20 5c 66 49 68 6f 6d 65 | 5f 70 68 5c 66 52 20 5d | \fIhome|_ph\fR ]|
|00000dd0| 20 5b 20 5c 66 42 2d 6f | 20 5c 66 49 6f 74 68 65 | [ \fB-o| \fIothe|
|00000de0| 72 5c 66 52 20 5d 0a 58 | 5b 20 5c 66 49 75 73 65 |r\fR ].X|[ \fIuse|
|00000df0| 72 5c 66 52 20 5d 0a 58 | 2e 53 48 20 44 45 53 43 |r\fR ].X|.SH DESC|
|00000e00| 52 49 50 54 49 4f 4e 0a | 58 5c 66 49 63 68 66 6e |RIPTION.|X\fIchfn|
|00000e10| 5c 66 20 63 68 61 6e 67 | 65 73 20 75 73 65 72 20 |\f chang|es user |
|00000e20| 66 75 6c 6c 6e 61 6d 65 | 2c 20 6f 66 66 69 63 65 |fullname|, office|
|00000e30| 20 6e 75 6d 62 65 72 2c | 20 6f 66 66 69 63 65 20 | number,| office |
|00000e40| 65 78 74 65 6e 73 69 6f | 6e 2c 20 61 6e 64 20 68 |extensio|n, and h|
|00000e50| 6f 6d 65 0a 58 70 68 6f | 6e 65 20 6e 75 6d 62 65 |ome.Xpho|ne numbe|
|00000e60| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 6f |r inform|ation fo|
|00000e70| 72 20 61 20 75 73 65 72 | 27 73 20 61 63 63 6f 75 |r a user|'s accou|
|00000e80| 6e 74 2e 20 0a 58 54 68 | 69 73 20 69 6e 66 6f 72 |nt. .XTh|is infor|
|00000e90| 6d 61 74 69 6f 6e 20 69 | 73 20 74 79 70 69 63 61 |mation i|s typica|
|00000ea0| 6c 6c 79 20 70 72 69 6e | 74 65 64 20 62 79 20 5c |lly prin|ted by \|
|00000eb0| 66 49 66 69 6e 67 65 72 | 28 31 29 5c 66 20 61 6e |fIfinger|(1)\f an|
|00000ec0| 64 20 73 69 6d 69 6c 69 | 61 72 0a 58 70 72 6f 67 |d simili|ar.Xprog|
|00000ed0| 72 61 6d 73 2e 0a 58 41 | 20 6e 6f 72 6d 61 6c 20 |rams..XA| normal |
|00000ee0| 75 73 65 72 20 6d 61 79 | 20 6f 6e 6c 79 20 63 68 |user may| only ch|
|00000ef0| 61 6e 67 65 20 74 68 65 | 20 66 69 65 6c 64 73 20 |ange the| fields |
|00000f00| 66 6f 72 20 74 68 65 69 | 72 20 6f 77 6e 20 61 63 |for thei|r own ac|
|00000f10| 63 6f 75 6e 74 2c 0a 58 | 74 68 65 20 73 75 70 65 |count,.X|the supe|
|00000f20| 72 20 75 73 65 72 20 6d | 61 79 20 63 68 61 6e 67 |r user m|ay chang|
|00000f30| 65 20 74 68 65 20 66 69 | 65 6c 64 73 20 66 6f 72 |e the fi|elds for|
|00000f40| 20 61 6e 79 20 61 63 63 | 6f 75 6e 74 2e 0a 58 41 | any acc|ount..XA|
|00000f50| 6c 73 6f 2c 20 6f 6e 6c | 79 20 74 68 65 20 73 75 |lso, onl|y the su|
|00000f60| 70 65 72 20 75 73 65 72 | 20 6d 61 79 20 75 73 65 |per user| may use|
|00000f70| 20 74 68 65 20 5c 66 42 | 2d 6f 5c 66 20 6f 70 74 | the \fB|-o\f opt|
|00000f80| 69 6f 6e 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |ion to c|hange th|
|00000f90| 65 0a 58 75 6e 64 65 66 | 69 6e 65 64 20 70 6f 72 |e.Xundef|ined por|
|00000fa0| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 47 43 4f |tions of| the GCO|
|00000fb0| 53 20 66 69 65 6c 64 2e | 0a 58 2e 50 50 0a 58 54 |S field.|.X.PP.XT|
|00000fc0| 68 65 20 6f 6e 6c 79 20 | 72 65 73 74 72 69 63 74 |he only |restrict|
|00000fd0| 69 6f 6e 73 20 70 6c 61 | 63 65 64 20 6f 6e 20 74 |ions pla|ced on t|
|00000fe0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00000ff0| 68 65 20 66 69 65 6c 64 | 73 20 69 73 20 74 68 61 |he field|s is tha|
|00001000| 74 20 6e 6f 0a 58 63 6f | 6e 74 72 6f 6c 20 63 68 |t no.Xco|ntrol ch|
|00001010| 61 72 61 63 74 65 72 73 | 20 6d 61 79 20 62 65 20 |aracters| may be |
|00001020| 70 72 65 73 65 6e 74 2c | 20 6e 6f 72 20 61 6e 79 |present,| nor any|
|00001030| 20 6f 66 20 63 6f 6d 6d | 61 2c 20 63 6f 6c 6f 6e | of comm|a, colon|
|00001040| 2c 20 6f 72 20 65 71 75 | 61 6c 20 73 69 67 6e 2e |, or equ|al sign.|
|00001050| 0a 58 54 68 65 20 5c 66 | 49 6f 74 68 65 72 5c 66 |.XThe \f|Iother\f|
|00001060| 20 66 69 65 6c 64 20 64 | 6f 65 73 20 6e 6f 74 20 | field d|oes not |
|00001070| 68 61 76 65 20 74 68 69 | 73 20 72 65 73 74 72 69 |have thi|s restri|
|00001080| 63 74 69 6f 6e 2c 20 61 | 6e 64 20 69 73 20 75 73 |ction, a|nd is us|
|00001090| 65 64 20 74 6f 0a 58 73 | 74 6f 72 65 20 61 63 63 |ed to.Xs|tore acc|
|000010a0| 6f 75 6e 74 69 6e 67 20 | 69 6e 66 6f 72 6d 61 74 |ounting |informat|
|000010b0| 69 6f 6e 20 75 73 65 64 | 20 62 79 20 6f 74 68 65 |ion used| by othe|
|000010c0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 0a |r applic|ations..|
|000010d0| 58 2e 50 50 0a 58 49 66 | 20 6e 6f 6e 65 20 6f 66 |X.PP.XIf| none of|
|000010e0| 20 74 68 65 20 6f 70 74 | 69 6f 6e 73 20 61 72 65 | the opt|ions are|
|000010f0| 20 73 65 6c 65 63 74 65 | 64 2c 20 5c 66 49 63 68 | selecte|d, \fIch|
|00001100| 66 6e 5c 66 20 6f 70 65 | 72 61 74 65 73 20 69 6e |fn\f ope|rates in|
|00001110| 20 61 6e 20 69 6e 74 65 | 72 61 63 74 69 76 65 0a | an inte|ractive.|
|00001120| 58 66 61 73 68 69 6f 6e | 2c 20 70 72 6f 6d 70 74 |Xfashion|, prompt|
|00001130| 69 6e 67 20 74 68 65 20 | 75 73 65 72 20 77 69 74 |ing the |user wit|
|00001140| 68 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 76 61 |h the cu|rrent va|
|00001150| 6c 75 65 73 20 66 6f 72 | 20 61 6c 6c 20 6f 66 20 |lues for| all of |
|00001160| 74 68 65 20 66 69 65 6c | 64 73 2e 0a 58 45 6e 74 |the fiel|ds..XEnt|
|00001170| 65 72 20 74 68 65 20 6e | 65 77 20 76 61 6c 75 65 |er the n|ew value|
|00001180| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 65 20 66 | to chan|ge the f|
|00001190| 69 65 6c 64 2c 20 6f 72 | 20 6c 65 61 76 65 20 74 |ield, or| leave t|
|000011a0| 68 65 20 6c 69 6e 65 20 | 62 6c 61 6e 6b 20 74 6f |he line |blank to|
|000011b0| 20 75 73 65 0a 58 74 68 | 65 20 63 75 72 72 65 6e | use.Xth|e curren|
|000011c0| 74 20 76 61 6c 75 65 2e | 0a 58 54 68 65 20 63 75 |t value.|.XThe cu|
|000011d0| 72 72 65 6e 74 20 76 61 | 6c 75 65 20 69 73 20 64 |rrent va|lue is d|
|000011e0| 69 73 70 6c 61 79 65 64 | 20 62 65 74 77 65 65 6e |isplayed| between|
|000011f0| 20 61 20 70 61 69 72 20 | 6f 66 20 5c 66 42 5b 20 | a pair |of \fB[ |
|00001200| 5d 5c 66 20 6d 61 72 6b | 73 2e 0a 58 57 69 74 68 |]\f mark|s..XWith|
|00001210| 6f 75 74 20 6f 70 74 69 | 6f 6e 73 2c 20 63 68 66 |out opti|ons, chf|
|00001220| 6e 20 70 72 6f 6d 70 74 | 73 20 66 6f 72 20 74 68 |n prompt|s for th|
|00001230| 65 20 63 75 72 72 65 6e | 74 20 75 73 65 72 20 61 |e curren|t user a|
|00001240| 63 63 6f 75 6e 74 2e 0a | 58 2e 53 48 20 46 69 6c |ccount..|X.SH Fil|
|00001250| 65 73 0a 58 2f 65 74 63 | 2f 70 61 73 73 77 64 20 |es.X/etc|/passwd |
|00001260| 5c 2d 20 75 73 65 72 20 | 61 63 63 6f 75 6e 74 20 |\- user |account |
|00001270| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 58 2e 53 48 |informat|ion.X.SH|
|00001280| 20 53 65 65 20 41 6c 73 | 6f 0a 58 70 61 73 73 77 | See Als|o.Xpassw|
|00001290| 64 28 34 29 0a 53 48 41 | 52 5f 45 4f 46 0a 69 66 |d(4).SHA|R_EOF.if|
|000012a0| 20 74 65 73 74 20 31 35 | 39 38 20 2d 6e 65 20 22 | test 15|98 -ne "|
|000012b0| 60 77 63 20 2d 63 20 3c | 20 27 63 68 66 6e 2e 31 |`wc -c <| 'chfn.1|
|000012c0| 27 60 22 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |'`".then|..echo s|
|000012d0| 68 61 72 3a 20 22 65 72 | 72 6f 72 20 74 72 61 6e |har: "er|ror tran|
|000012e0| 73 6d 69 74 74 69 6e 67 | 20 27 63 68 66 6e 2e 31 |smitting| 'chfn.1|
|000012f0| 27 22 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |'" '(sho|uld have|
|00001300| 20 62 65 65 6e 20 31 35 | 39 38 20 63 68 61 72 61 | been 15|98 chara|
|00001310| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 0a 65 63 |cters)'.|fi.fi.ec|
|00001320| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00001330| 74 69 6e 67 20 27 63 68 | 73 68 2e 31 27 22 20 27 |ting 'ch|sh.1'" '|
|00001340| 28 31 34 37 35 20 63 68 | 61 72 61 63 74 65 72 73 |(1475 ch|aracters|
|00001350| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 63 |)'.if te|st -f 'c|
|00001360| 68 73 68 2e 31 27 0a 74 | 68 65 6e 0a 09 65 63 68 |hsh.1'.t|hen..ech|
|00001370| 6f 20 73 68 61 72 3a 20 | 22 77 69 6c 6c 20 6e 6f |o shar: |"will no|
|00001380| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00001390| 73 74 69 6e 67 20 66 69 | 6c 65 20 27 63 68 73 68 |sting fi|le 'chsh|
|000013a0| 2e 31 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |.1'".els|e.sed 's|
|000013b0| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|000013c0| 45 4f 46 20 3e 20 27 63 | 68 73 68 2e 31 27 0a 58 |EOF > 'c|hsh.1'.X|
|000013d0| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|000013e0| 39 30 2c 20 4a 6f 68 6e | 20 46 2e 20 48 61 75 67 |90, John| F. Haug|
|000013f0| 68 20 49 49 0a 58 2e 5c | 22 20 41 6c 6c 20 72 69 |h II.X.\|" All ri|
|00001400| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0a 58 |ghts res|erved..X|
|00001410| 2e 5c 22 0a 58 2e 5c 22 | 20 55 73 65 2c 20 64 75 |.\".X.\"| Use, du|
|00001420| 70 6c 69 63 61 74 69 6f | 6e 2c 20 61 6e 64 20 64 |plicatio|n, and d|
|00001430| 69 73 63 6c 6f 73 75 72 | 65 20 70 72 6f 68 69 62 |isclosur|e prohib|
|00001440| 69 74 65 64 20 77 69 74 | 68 6f 75 74 0a 58 2e 5c |ited wit|hout.X.\|
|00001450| 22 20 74 68 65 20 65 78 | 70 72 65 73 73 20 77 72 |" the ex|press wr|
|00001460| 69 74 74 65 6e 20 70 65 | 72 6d 69 73 73 69 6f 6e |itten pe|rmission|
|00001470| 20 6f 66 20 74 68 65 20 | 61 75 74 68 6f 72 2e 0a | of the |author..|
|00001480| 58 2e 5c 22 0a 58 2e 5c | 22 09 40 28 23 29 63 68 |X.\".X.\|".@(#)ch|
|00001490| 73 68 2e 31 09 33 2e 31 | 09 30 39 3a 33 34 3a 31 |sh.1.3.1|.09:34:1|
|000014a0| 37 09 31 31 2f 32 31 2f | 39 30 0a 58 2e 5c 22 0a |7.11/21/|90.X.\".|
|000014b0| 58 2e 54 48 20 43 48 53 | 48 20 31 0a 58 2e 53 48 |X.TH CHS|H 1.X.SH|
|000014c0| 20 4e 41 4d 45 0a 58 63 | 68 73 68 20 5c 2d 20 63 | NAME.Xc|hsh \- c|
|000014d0| 68 61 6e 67 65 20 6c 6f | 67 69 6e 20 73 68 65 6c |hange lo|gin shel|
|000014e0| 6c 0a 58 2e 53 48 20 53 | 59 4e 4f 50 53 49 53 0a |l.X.SH S|YNOPSIS.|
|000014f0| 58 5c 66 42 63 68 73 68 | 5c 66 52 20 5b 20 5c 66 |X\fBchsh|\fR [ \f|
|00001500| 42 2d 73 20 5c 66 49 6c | 6f 67 69 6e 5f 73 68 65 |B-s \fIl|ogin_she|
|00001510| 6c 6c 5c 66 52 20 5d 20 | 5b 20 5c 66 49 75 73 65 |ll\fR ] |[ \fIuse|
|00001520| 72 5c 66 52 20 5d 0a 58 | 2e 53 48 20 44 45 53 43 |r\fR ].X|.SH DESC|
|00001530| 52 49 50 54 49 4f 4e 0a | 58 5c 66 49 63 68 73 68 |RIPTION.|X\fIchsh|
|00001540| 5c 66 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 75 |\f chang|es the u|
|00001550| 73 65 72 20 6c 6f 67 69 | 6e 20 73 68 65 6c 6c 2e |ser logi|n shell.|
|00001560| 0a 58 54 68 69 73 20 64 | 65 74 65 72 6d 69 6e 65 |.XThis d|etermine|
|00001570| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00001580| 65 20 75 73 65 72 27 73 | 20 69 6e 69 74 69 61 6c |e user's| initial|
|00001590| 20 6c 6f 67 69 6e 20 63 | 6f 6d 6d 61 6e 64 2e 0a | login c|ommand..|
|000015a0| 58 41 20 6e 6f 72 6d 61 | 6c 20 75 73 65 72 20 6d |XA norma|l user m|
|000015b0| 61 79 20 6f 6e 6c 79 20 | 63 68 61 6e 67 65 20 74 |ay only |change t|
|000015c0| 68 65 20 6c 6f 67 69 6e | 20 73 68 65 6c 6c 20 66 |he login| shell f|
|000015d0| 6f 72 20 74 68 65 69 72 | 20 6f 77 6e 20 61 63 63 |or their| own acc|
|000015e0| 6f 75 6e 74 2c 0a 58 74 | 68 65 20 73 75 70 65 72 |ount,.Xt|he super|
|000015f0| 20 75 73 65 72 20 6d 61 | 79 20 63 68 61 6e 67 65 | user ma|y change|
|00001600| 20 74 68 65 20 6c 6f 67 | 69 6e 20 73 68 65 6c 6c | the log|in shell|
|00001610| 20 66 6f 72 20 61 6e 79 | 20 61 63 63 6f 75 6e 74 | for any| account|
|00001620| 2e 0a 58 2e 50 50 0a 58 | 54 68 65 20 6f 6e 6c 79 |..X.PP.X|The only|
|00001630| 20 72 65 73 74 72 69 63 | 74 69 6f 6e 73 20 70 6c | restric|tions pl|
|00001640| 61 63 65 64 20 6f 6e 20 | 74 68 65 20 6c 6f 67 69 |aced on |the logi|
|00001650| 6e 20 73 68 65 6c 6c 20 | 69 73 20 74 68 61 74 20 |n shell |is that |
|00001660| 74 68 65 0a 58 63 6f 6d | 6d 61 6e 64 20 6e 61 6d |the.Xcom|mand nam|
|00001670| 65 20 6d 75 73 74 20 62 | 65 20 6c 69 73 74 65 64 |e must b|e listed|
|00001680| 20 69 6e 20 5c 66 42 2f | 65 74 63 2f 73 68 65 6c | in \fB/|etc/shel|
|00001690| 6c 73 5c 66 52 2c 20 75 | 6e 6c 65 73 73 20 74 68 |ls\fR, u|nless th|
|000016a0| 65 0a 58 69 6e 76 6f 6b | 65 72 20 69 73 20 74 68 |e.Xinvok|er is th|
|000016b0| 65 20 73 75 70 65 72 2d | 75 73 65 72 2c 20 61 6e |e super-|user, an|
|000016c0| 64 20 74 68 65 6e 20 61 | 6e 79 20 76 61 6c 75 65 |d then a|ny value|
|000016d0| 20 6d 61 79 20 62 65 20 | 61 64 64 65 64 2e 0a 58 | may be |added..X|
|000016e0| 41 6e 20 61 63 63 6f 75 | 6e 74 20 77 69 74 68 20 |An accou|nt with |
|000016f0| 61 20 72 65 73 74 72 69 | 63 74 65 64 20 6c 6f 67 |a restri|cted log|
|00001700| 69 6e 20 73 68 65 6c 6c | 20 6d 61 79 20 6e 6f 74 |in shell| may not|
|00001710| 20 63 68 61 6e 67 65 0a | 58 74 68 65 69 72 20 6c | change.|Xtheir l|
|00001720| 6f 67 69 6e 20 73 68 65 | 6c 6c 2e 0a 58 46 6f 72 |ogin she|ll..XFor|
|00001730| 20 74 68 69 73 20 72 65 | 61 73 6f 6e 2c 20 70 6c | this re|ason, pl|
|00001740| 61 63 69 6e 67 20 5c 66 | 42 2f 62 69 6e 2f 72 73 |acing \f|B/bin/rs|
|00001750| 68 5c 66 52 20 69 6e 20 | 5c 66 42 2f 65 74 63 2f |h\fR in |\fB/etc/|
|00001760| 73 68 65 6c 6c 73 5c 66 | 52 0a 58 69 73 20 64 69 |shells\f|R.Xis di|
|00001770| 73 63 6f 75 72 61 67 65 | 64 20 73 69 6e 63 65 20 |scourage|d since |
|00001780| 61 63 63 69 64 65 6e 74 | 61 6c 6c 79 20 63 68 61 |accident|ally cha|
|00001790| 6e 67 69 6e 67 20 74 6f | 20 61 20 72 65 73 74 72 |nging to| a restr|
|000017a0| 69 63 74 65 64 0a 58 73 | 68 65 6c 6c 20 77 6f 75 |icted.Xs|hell wou|
|000017b0| 6c 64 20 70 72 65 76 65 | 6e 74 20 74 68 65 20 75 |ld preve|nt the u|
|000017c0| 73 65 72 20 66 72 6f 6d | 20 65 76 65 72 79 20 63 |ser from| every c|
|000017d0| 68 61 6e 67 69 6e 67 20 | 74 68 65 69 72 20 6c 6f |hanging |their lo|
|000017e0| 67 69 6e 0a 58 73 68 65 | 6c 6c 20 62 61 63 6b 20 |gin.Xshe|ll back |
|000017f0| 74 6f 20 69 74 73 20 6f | 72 69 67 69 6e 61 6c 20 |to its o|riginal |
|00001800| 76 61 6c 75 65 2e 0a 58 | 2e 50 50 0a 58 49 66 20 |value..X|.PP.XIf |
|00001810| 74 68 65 20 5c 66 42 2d | 73 5c 66 52 20 6f 70 74 |the \fB-|s\fR opt|
|00001820| 69 6f 6e 20 69 73 20 6e | 6f 74 20 73 65 6c 65 63 |ion is n|ot selec|
|00001830| 74 65 64 2c 20 5c 66 49 | 63 68 73 68 5c 66 20 6f |ted, \fI|chsh\f o|
|00001840| 70 65 72 61 74 65 73 20 | 69 6e 20 61 6e 20 69 6e |perates |in an in|
|00001850| 74 65 72 61 63 74 69 76 | 65 0a 58 66 61 73 68 69 |teractiv|e.Xfashi|
|00001860| 6f 6e 2c 20 70 72 6f 6d | 70 74 69 6e 67 20 74 68 |on, prom|pting th|
|00001870| 65 20 75 73 65 72 20 77 | 69 74 68 20 74 68 65 20 |e user w|ith the |
|00001880| 63 75 72 72 65 6e 74 20 | 6c 6f 67 69 6e 20 73 68 |current |login sh|
|00001890| 65 6c 6c 2e 0a 58 45 6e | 74 65 72 20 74 68 65 20 |ell..XEn|ter the |
|000018a0| 6e 65 77 20 76 61 6c 75 | 65 20 74 6f 20 63 68 61 |new valu|e to cha|
|000018b0| 6e 67 65 20 74 68 65 20 | 66 69 65 6c 64 2c 20 6f |nge the |field, o|
|000018c0| 72 20 6c 65 61 76 65 20 | 74 68 65 20 6c 69 6e 65 |r leave |the line|
|000018d0| 20 62 6c 61 6e 6b 20 74 | 6f 20 75 73 65 0a 58 74 | blank t|o use.Xt|
|000018e0| 68 65 20 63 75 72 72 65 | 6e 74 20 76 61 6c 75 65 |he curre|nt value|
|000018f0| 2e 0a 58 54 68 65 20 63 | 75 72 72 65 6e 74 20 76 |..XThe c|urrent v|
|00001900| 61 6c 75 65 20 69 73 20 | 64 69 73 70 6c 61 79 65 |alue is |displaye|
|00001910| 64 20 62 65 74 77 65 65 | 6e 20 61 20 70 61 69 72 |d betwee|n a pair|
|00001920| 20 6f 66 20 5c 66 42 5b | 20 5d 5c 66 20 6d 61 72 | of \fB[| ]\f mar|
|00001930| 6b 73 2e 0a 58 2e 53 48 | 20 46 69 6c 65 73 0a 58 |ks..X.SH| Files.X|
|00001940| 2f 65 74 63 2f 70 61 73 | 73 77 64 20 5c 2d 20 75 |/etc/pas|swd \- u|
|00001950| 73 65 72 20 61 63 63 6f | 75 6e 74 20 69 6e 66 6f |ser acco|unt info|
|00001960| 72 6d 61 74 69 6f 6e 0a | 58 2e 62 72 0a 58 2f 65 |rmation.|X.br.X/e|
|00001970| 74 63 2f 73 68 65 6c 6c | 73 20 5c 2d 20 6c 69 73 |tc/shell|s \- lis|
|00001980| 74 20 6f 66 20 76 61 6c | 69 64 20 6c 6f 67 69 6e |t of val|id login|
|00001990| 20 73 68 65 6c 6c 73 0a | 58 2e 53 48 20 53 65 65 | shells.|X.SH See|
|000019a0| 20 41 6c 73 6f 0a 58 63 | 68 66 6e 28 31 29 2c 0a | Also.Xc|hfn(1),.|
|000019b0| 58 70 61 73 73 77 64 28 | 34 29 0a 53 48 41 52 5f |Xpasswd(|4).SHAR_|
|000019c0| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 31 34 37 35 |EOF.if t|est 1475|
|000019d0| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 3c 20 27 | -ne "`w|c -c < '|
|000019e0| 63 68 73 68 2e 31 27 60 | 22 0a 74 68 65 6e 0a 09 |chsh.1'`|".then..|
|000019f0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 72 72 6f |echo sha|r: "erro|
|00001a00| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 27 |r transm|itting '|
|00001a10| 63 68 73 68 2e 31 27 22 | 20 27 28 73 68 6f 75 6c |chsh.1'"| '(shoul|
|00001a20| 64 20 68 61 76 65 20 62 | 65 65 6e 20 31 34 37 35 |d have b|een 1475|
|00001a30| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 66 69 | charact|ers)'.fi|
|00001a40| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|00001a50| 65 78 74 72 61 63 74 69 | 6e 67 20 27 6c 6f 67 69 |extracti|ng 'logi|
|00001a60| 6e 2e 31 27 22 20 27 28 | 33 33 34 34 20 63 68 61 |n.1'" '(|3344 cha|
|00001a70| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00001a80| 74 20 2d 66 20 27 6c 6f | 67 69 6e 2e 31 27 0a 74 |t -f 'lo|gin.1'.t|
|00001a90| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00001aa0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|00001ab0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00001ac0| 6c 65 20 27 6c 6f 67 69 | 6e 2e 31 27 22 0a 65 6c |le 'logi|n.1'".el|
|00001ad0| 73 65 0a 73 65 64 20 27 | 73 2f 5e 58 2f 2f 27 20 |se.sed '|s/^X//' |
|00001ae0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00001af0| 6c 6f 67 69 6e 2e 31 27 | 0a 58 2e 5c 22 20 43 6f |login.1'|.X.\" Co|
|00001b00| 70 79 72 69 67 68 74 20 | 31 39 38 39 2c 20 31 39 |pyright |1989, 19|
|00001b10| 39 30 2c 20 4a 6f 68 6e | 20 46 2e 20 48 61 75 67 |90, John| F. Haug|
|00001b20| 68 20 49 49 0a 58 2e 5c | 22 20 41 6c 6c 20 72 69 |h II.X.\|" All ri|
|00001b30| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0a 58 |ghts res|erved..X|
|00001b40| 2e 5c 22 0a 58 2e 5c 22 | 20 55 73 65 2c 20 64 75 |.\".X.\"| Use, du|
|00001b50| 70 6c 69 63 61 74 69 6f | 6e 2c 20 61 6e 64 20 64 |plicatio|n, and d|
|00001b60| 69 73 63 6c 6f 73 75 72 | 65 20 70 72 6f 68 69 62 |isclosur|e prohib|
|00001b70| 69 74 65 64 20 77 69 74 | 68 6f 75 74 0a 58 2e 5c |ited wit|hout.X.\|
|00001b80| 22 20 74 68 65 20 65 78 | 70 72 65 73 73 20 77 72 |" the ex|press wr|
|00001b90| 69 74 74 65 6e 20 70 65 | 72 6d 69 73 73 69 6f 6e |itten pe|rmission|
|00001ba0| 20 6f 66 20 74 68 65 20 | 61 75 74 68 6f 72 2e 0a | of the |author..|
|00001bb0| 58 2e 5c 22 0a 58 2e 5c | 22 09 40 28 23 29 6c 6f |X.\".X.\|".@(#)lo|
|00001bc0| 67 69 6e 2e 31 09 33 2e | 31 09 30 39 3a 33 34 3a |gin.1.3.|1.09:34:|
|00001bd0| 32 31 09 31 31 2f 32 31 | 2f 39 30 0a 58 2e 5c 22 |21.11/21|/90.X.\"|
|00001be0| 0a 58 2e 54 48 20 4c 4f | 47 49 4e 20 31 0a 58 2e |.X.TH LO|GIN 1.X.|
|00001bf0| 53 48 20 4e 41 4d 45 0a | 58 6c 6f 67 69 6e 20 5c |SH NAME.|Xlogin \|
|00001c00| 2d 20 42 65 67 69 6e 20 | 73 65 73 73 69 6f 6e 20 |- Begin |session |
|00001c10| 6f 6e 20 74 68 65 20 73 | 79 73 74 65 6d 0a 58 2e |on the s|ystem.X.|
|00001c20| 53 48 20 53 59 4e 4f 50 | 53 49 53 0a 58 2e 42 20 |SH SYNOP|SIS.X.B |
|00001c30| 6c 6f 67 69 6e 0a 58 5b | 20 75 73 65 72 6e 61 6d |login.X[| usernam|
|00001c40| 65 20 5b 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 61 |e [ envi|ronmenta|
|00001c50| 6c 2d 76 61 72 69 61 62 | 6c 65 73 20 5d 20 5d 0a |l-variab|les ] ].|
|00001c60| 58 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |X.SH DES|CRIPTION|
|00001c70| 0a 58 2e 49 20 6c 6f 67 | 69 6e 0a 58 69 73 20 75 |.X.I log|in.Xis u|
|00001c80| 73 65 64 20 74 6f 20 65 | 73 74 61 62 6c 69 73 68 |sed to e|stablish|
|00001c90| 20 61 20 6e 65 77 20 73 | 65 73 73 69 6f 6e 20 77 | a new s|ession w|
|00001ca0| 69 74 68 20 74 68 65 20 | 73 79 73 74 65 6d 2e 0a |ith the |system..|
|00001cb0| 58 49 74 20 69 73 20 6e | 6f 72 6d 61 6c 6c 79 20 |XIt is n|ormally |
|00001cc0| 69 6e 76 6f 6b 65 64 20 | 61 75 74 6f 6d 61 74 69 |invoked |automati|
|00001cd0| 63 61 6c 6c 79 20 62 79 | 20 72 65 73 70 6f 6e 64 |cally by| respond|
|00001ce0| 69 6e 67 20 74 6f 20 74 | 68 65 0a 58 2e 42 20 6c |ing to t|he.X.B l|
|00001cf0| 6f 67 69 6e 3a 0a 58 70 | 72 6f 6d 70 74 20 6f 6e |ogin:.Xp|rompt on|
|00001d00| 20 74 68 65 20 75 73 65 | 72 5c 27 73 20 74 65 72 | the use|r\'s ter|
|00001d10| 6d 69 6e 61 6c 2e 0a 58 | 2e 49 20 6c 6f 67 69 6e |minal..X|.I login|
|00001d20| 0a 58 6d 61 79 20 62 65 | 20 73 70 65 63 69 61 6c |.Xmay be| special|
|00001d30| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 20 61 6e | to the |shell an|
|00001d40| 64 20 6d 61 79 20 6e 6f | 74 20 62 65 20 69 6e 76 |d may no|t be inv|
|00001d50| 6f 6b 65 64 20 61 73 20 | 61 20 73 75 62 2d 70 72 |oked as |a sub-pr|
|00001d60| 6f 63 65 73 73 2e 0a 58 | 54 79 70 69 63 61 6c 6c |ocess..X|Typicall|
|00001d70| 79 2c 0a 58 2e 49 20 6c | 6f 67 69 6e 0a 58 69 73 |y,.X.I l|ogin.Xis|
|00001d80| 20 74 72 65 61 74 65 64 | 20 62 79 20 74 68 65 20 | treated| by the |
|00001d90| 73 68 65 6c 6c 20 61 73 | 20 5c 66 42 65 78 65 63 |shell as| \fBexec|
|00001da0| 20 6c 6f 67 69 6e 5c 66 | 52 20 77 68 69 63 68 20 | login\f|R which |
|00001db0| 63 61 75 73 65 73 20 74 | 68 65 20 75 73 65 72 0a |causes t|he user.|
|00001dc0| 58 74 6f 20 65 78 69 74 | 20 66 72 6f 6d 20 74 68 |Xto exit| from th|
|00001dd0| 65 20 63 75 72 72 65 6e | 74 20 73 68 65 6c 6c 2e |e curren|t shell.|
|00001de0| 0a 58 41 74 74 65 6d 70 | 74 69 6e 67 20 74 6f 20 |.XAttemp|ting to |
|00001df0| 65 78 65 63 75 74 65 20 | 5c 66 49 6c 6f 67 69 6e |execute |\fIlogin|
|00001e00| 5c 66 52 20 66 72 6f 6d | 20 61 6e 79 20 73 68 65 |\fR from| any she|
|00001e10| 6c 6c 20 62 75 74 20 74 | 68 65 20 6c 6f 67 69 6e |ll but t|he login|
|00001e20| 20 73 68 65 6c 6c 0a 58 | 77 69 6c 6c 20 70 72 6f | shell.X|will pro|
|00001e30| 64 75 63 65 20 61 6e 20 | 65 72 72 6f 72 20 6d 65 |duce an |error me|
|00001e40| 73 73 61 67 65 2e 0a 58 | 2e 50 50 0a 58 57 68 65 |ssage..X|.PP.XWhe|
|00001e50| 6e 20 69 6e 76 6f 6b 65 | 64 20 66 72 6f 6d 20 74 |n invoke|d from t|
|00001e60| 68 65 20 5c 66 42 6c 6f | 67 69 6e 3a 5c 66 52 20 |he \fBlo|gin:\fR |
|00001e70| 70 72 6f 6d 70 74 2c 20 | 74 68 65 20 75 73 65 72 |prompt, |the user|
|00001e80| 20 6d 61 79 20 65 6e 74 | 65 72 0a 58 65 6e 76 69 | may ent|er.Xenvi|
|00001e90| 72 6f 6e 6d 65 6e 74 61 | 6c 20 76 61 72 69 61 62 |ronmenta|l variab|
|00001ea0| 6c 65 73 20 61 66 74 65 | 72 20 74 68 65 20 75 73 |les afte|r the us|
|00001eb0| 65 72 6e 61 6d 65 2e 0a | 58 54 68 65 73 65 20 76 |ername..|XThese v|
|00001ec0| 61 72 69 61 62 6c 65 73 | 20 61 72 65 20 65 6e 74 |ariables| are ent|
|00001ed0| 65 72 65 64 20 69 6e 20 | 74 68 65 20 66 6f 72 6d |ered in |the form|
|00001ee0| 20 5c 66 42 4e 41 4d 45 | 3d 56 41 4c 55 45 5c 66 | \fBNAME|=VALUE\f|
|00001ef0| 52 2e 0a 58 4e 6f 74 20 | 61 6c 6c 20 76 61 72 69 |R..XNot |all vari|
|00001f00| 61 62 6c 65 73 20 6d 61 | 79 20 62 65 20 73 65 74 |ables ma|y be set|
|00001f10| 20 69 6e 20 74 68 65 20 | 66 61 73 68 69 6f 6e 2c | in the |fashion,|
|00001f20| 20 6e 6f 74 61 62 6c 79 | 20 5c 66 42 50 41 54 48 | notably| \fBPATH|
|00001f30| 5c 66 52 2c 0a 58 5c 66 | 42 48 4f 4d 45 5c 66 52 |\fR,.X\f|BHOME\fR|
|00001f40| 20 61 6e 64 20 5c 66 42 | 53 48 45 4c 4c 5c 66 52 | and \fB|SHELL\fR|
|00001f50| 2e 0a 58 41 64 64 69 74 | 69 6f 6e 61 6c 6c 79 2c |..XAddit|ionally,|
|00001f60| 20 5c 66 42 49 46 53 5c | 66 52 20 6d 61 79 20 62 | \fBIFS\|fR may b|
|00001f70| 65 20 69 6e 68 69 62 69 | 74 65 64 20 69 66 20 74 |e inhibi|ted if t|
|00001f80| 68 65 20 75 73 65 72 5c | 27 73 20 6c 6f 67 69 6e |he user\|'s login|
|00001f90| 0a 58 73 68 65 6c 6c 20 | 69 73 20 5c 66 42 2f 62 |.Xshell |is \fB/b|
|00001fa0| 69 6e 2f 73 68 5c 66 52 | 2e 0a 58 2e 50 50 0a 58 |in/sh\fR|..X.PP.X|
|00001fb0| 54 68 65 20 75 73 65 72 | 20 69 73 20 74 68 65 6e |The user| is then|
|00001fc0| 20 70 72 6f 6d 70 74 65 | 64 20 66 6f 72 20 61 20 | prompte|d for a |
|00001fd0| 70 61 73 73 77 6f 72 64 | 2c 20 77 68 65 72 65 20 |password|, where |
|00001fe0| 61 70 70 72 6f 70 72 69 | 61 74 65 2e 0a 58 45 63 |appropri|ate..XEc|
|00001ff0| 68 6f 69 6e 67 20 69 73 | 20 64 69 73 61 62 6c 65 |hoing is| disable|
|00002000| 64 20 74 6f 20 70 72 65 | 76 65 6e 74 20 72 65 76 |d to pre|vent rev|
|00002010| 65 61 6c 69 6e 67 20 74 | 68 65 20 70 61 73 73 77 |ealing t|he passw|
|00002020| 6f 72 64 2e 0a 58 4f 6e | 6c 79 20 61 20 73 6d 61 |ord..XOn|ly a sma|
|00002030| 6c 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 70 61 73 |ll numbe|r of pas|
|00002040| 73 77 6f 72 64 20 66 61 | 69 6c 75 72 65 73 20 61 |sword fa|ilures a|
|00002050| 72 65 20 70 65 72 6d 69 | 74 74 65 64 20 62 65 66 |re permi|tted bef|
|00002060| 6f 72 65 0a 58 5c 66 49 | 6c 6f 67 69 6e 5c 66 52 |ore.X\fI|login\fR|
|00002070| 20 65 78 69 74 73 20 61 | 6e 64 20 74 68 65 20 63 | exits a|nd the c|
|00002080| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 73 20 6c 69 |ommunica|tions li|
|00002090| 6e 6b 20 69 73 20 73 65 | 76 65 72 65 64 2e 0a 58 |nk is se|vered..X|
|000020a0| 2e 50 50 0a 58 49 66 20 | 70 61 73 73 77 6f 72 64 |.PP.XIf |password|
|000020b0| 20 61 67 69 6e 67 20 68 | 61 73 20 62 65 65 6e 20 | aging h|as been |
|000020c0| 65 6e 61 62 6c 65 64 20 | 66 6f 72 20 79 6f 75 72 |enabled |for your|
|000020d0| 20 61 63 63 6f 75 6e 74 | 2c 20 79 6f 75 20 6d 61 | account|, you ma|
|000020e0| 79 20 62 65 0a 58 70 72 | 6f 6d 70 74 65 64 20 66 |y be.Xpr|ompted f|
|000020f0| 6f 72 20 61 20 6e 65 77 | 20 70 61 73 73 77 6f 72 |or a new| passwor|
|00002100| 64 20 62 65 66 6f 72 65 | 20 70 72 6f 63 65 65 64 |d before| proceed|
|00002110| 69 6e 67 2e 0a 58 59 6f | 75 20 77 69 6c 6c 20 62 |ing..XYo|u will b|
|00002120| 65 20 66 6f 72 63 65 64 | 20 74 6f 20 70 72 6f 76 |e forced| to prov|
|00002130| 69 64 65 20 79 6f 75 72 | 20 6f 6c 64 20 70 61 73 |ide your| old pas|
|00002140| 73 77 6f 72 64 20 61 6e | 64 20 74 68 65 20 6e 65 |sword an|d the ne|
|00002150| 77 0a 58 70 61 73 73 77 | 6f 72 64 20 62 65 66 6f |w.Xpassw|ord befo|
|00002160| 72 65 20 63 6f 6e 74 69 | 6e 75 69 6e 67 2e 0a 58 |re conti|nuing..X|
|00002170| 50 6c 65 61 73 65 20 72 | 65 66 65 72 20 74 6f 20 |Please r|efer to |
|00002180| 5c 66 49 70 61 73 73 77 | 64 28 31 29 5c 66 52 20 |\fIpassw|d(1)\fR |
|00002190| 66 6f 72 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |for more| informa|
|000021a0| 74 69 6f 6e 2e 0a 58 2e | 50 50 0a 58 41 66 74 65 |tion..X.|PP.XAfte|
|000021b0| 72 20 61 20 73 75 63 63 | 65 73 73 66 75 6c 20 6c |r a succ|essful l|
|000021c0| 6f 67 69 6e 2c 0a 58 79 | 6f 75 20 77 69 6c 6c 20 |ogin,.Xy|ou will |
|000021d0| 62 65 20 69 6e 66 6f 72 | 6d 65 64 20 6f 66 20 61 |be infor|med of a|
|000021e0| 6e 79 20 73 79 73 74 65 | 6d 20 6d 65 73 73 61 67 |ny syste|m messag|
|000021f0| 65 73 20 61 6e 64 20 74 | 68 65 20 70 72 65 73 65 |es and t|he prese|
|00002200| 6e 63 65 0a 58 6f 66 20 | 6d 61 69 6c 2e 0a 58 59 |nce.Xof |mail..XY|
|00002210| 6f 75 20 6d 61 79 20 74 | 75 72 6e 20 6f 66 66 20 |ou may t|urn off |
|00002220| 74 68 65 20 70 72 69 6e | 74 69 6e 67 20 6f 66 20 |the prin|ting of |
|00002230| 74 68 65 20 73 79 73 74 | 65 6d 20 6d 65 73 73 61 |the syst|em messa|
|00002240| 67 65 20 66 69 6c 65 2c | 0a 58 5c 66 49 2f 65 74 |ge file,|.X\fI/et|
|00002250| 63 2f 6d 6f 74 64 5c 66 | 52 2c 20 62 79 20 63 72 |c/motd\f|R, by cr|
|00002260| 65 61 74 69 6e 67 20 61 | 20 7a 65 72 6f 2d 6c 65 |eating a| zero-le|
|00002270| 6e 67 74 68 20 66 69 6c | 65 20 5c 66 49 2e 68 75 |ngth fil|e \fI.hu|
|00002280| 73 68 6c 6f 67 69 6e 5c | 66 52 0a 58 69 6e 20 79 |shlogin\|fR.Xin y|
|00002290| 6f 75 72 20 6c 6f 67 69 | 6e 20 64 69 72 65 63 74 |our logi|n direct|
|000022a0| 6f 72 79 2e 0a 58 54 68 | 65 20 6d 61 69 6c 20 6d |ory..XTh|e mail m|
|000022b0| 65 73 73 61 67 65 20 77 | 69 6c 6c 20 62 65 20 6f |essage w|ill be o|
|000022c0| 6e 65 20 6f 66 20 22 5c | 66 49 59 6f 75 20 68 61 |ne of "\|fIYou ha|
|000022d0| 76 65 20 6e 65 77 20 6d | 61 69 6c 2e 5c 66 52 22 |ve new m|ail.\fR"|
|000022e0| 2c 0a 58 22 5c 66 49 59 | 6f 75 20 68 61 76 65 20 |,.X"\fIY|ou have |
|000022f0| 6d 61 69 6c 2e 5c 66 52 | 22 2c 20 6f 72 20 22 5c |mail.\fR|", or "\|
|00002300| 66 49 4e 6f 20 4d 61 69 | 6c 2e 5c 66 52 22 20 61 |fINo Mai|l.\fR" a|
|00002310| 63 63 6f 72 64 69 6e 67 | 20 74 6f 0a 58 74 68 65 |ccording| to.Xthe|
|00002320| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 6f 66 20 79 6f | conditi|on of yo|
|00002330| 75 72 20 6d 61 69 6c 62 | 6f 78 2e 0a 58 2e 50 50 |ur mailb|ox..X.PP|
|00002340| 0a 58 59 6f 75 72 20 75 | 73 65 72 20 61 6e 64 20 |.XYour u|ser and |
|00002350| 67 72 6f 75 70 20 49 44 | 20 77 69 6c 6c 20 62 65 |group ID| will be|
|00002360| 20 73 65 74 20 61 63 63 | 6f 72 64 69 6e 67 20 74 | set acc|ording t|
|00002370| 6f 20 74 68 65 69 72 20 | 76 61 6c 75 65 73 20 69 |o their |values i|
|00002380| 6e 0a 58 74 68 65 20 5c | 66 49 2f 65 74 63 2f 70 |n.Xthe \|fI/etc/p|
|00002390| 61 73 73 77 64 5c 66 52 | 20 66 69 6c 65 2e 0a 58 |asswd\fR| file..X|
|000023a0| 54 68 65 20 76 61 6c 75 | 65 20 66 6f 72 20 5c 66 |The valu|e for \f|
|000023b0| 42 24 48 4f 4d 45 5c 66 | 52 2c 20 5c 66 42 24 53 |B$HOME\f|R, \fB$S|
|000023c0| 48 45 4c 4c 5c 66 52 2c | 20 5c 66 42 24 50 41 54 |HELL\fR,| \fB$PAT|
|000023d0| 48 5c 66 52 2c 20 5c 66 | 42 24 4c 4f 47 4e 41 4d |H\fR, \f|B$LOGNAM|
|000023e0| 45 5c 66 52 2c 0a 58 61 | 6e 64 20 5c 66 42 24 4d |E\fR,.Xa|nd \fB$M|
|000023f0| 41 49 4c 5c 66 52 20 61 | 72 65 20 73 65 74 20 61 |AIL\fR a|re set a|
|00002400| 63 63 6f 72 64 69 6e 67 | 20 74 6f 20 74 68 65 20 |ccording| to the |
|00002410| 61 70 70 72 6f 70 72 69 | 61 74 65 20 66 69 65 6c |appropri|ate fiel|
|00002420| 64 73 20 69 6e 20 74 68 | 65 0a 58 70 61 73 73 77 |ds in th|e.Xpassw|
|00002430| 6f 72 64 20 65 6e 74 72 | 79 2e 0a 58 55 6c 69 6d |ord entr|y..XUlim|
|00002440| 69 74 2c 20 75 6d 61 73 | 6b 20 61 6e 64 20 6e 69 |it, umas|k and ni|
|00002450| 63 65 20 76 61 6c 75 65 | 73 20 6d 61 79 20 61 6c |ce value|s may al|
|00002460| 73 6f 20 62 65 20 73 65 | 74 20 61 63 63 6f 72 64 |so be se|t accord|
|00002470| 69 6e 67 20 74 6f 0a 58 | 65 6e 74 72 69 65 73 20 |ing to.X|entries |
|00002480| 69 6e 20 74 68 65 20 47 | 45 43 4f 53 20 66 69 65 |in the G|ECOS fie|
|00002490| 6c 64 2e 0a 58 2e 50 50 | 0a 58 4f 6e 20 73 6f 6d |ld..X.PP|.XOn som|
|000024a0| 65 20 69 6e 73 74 61 6c | 6c 61 74 69 6f 6e 73 2c |e instal|lations,|
|000024b0| 20 74 68 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 | the env|ironment|
|000024c0| 61 6c 20 76 61 72 69 61 | 62 6c 65 20 5c 66 42 24 |al varia|ble \fB$|
|000024d0| 54 45 52 4d 5c 66 52 20 | 77 69 6c 6c 20 62 65 0a |TERM\fR |will be.|
|000024e0| 58 69 6e 69 74 69 61 6c | 69 7a 65 20 74 6f 20 74 |Xinitial|ize to t|
|000024f0| 68 65 20 74 65 72 6d 69 | 6e 61 6c 20 74 79 70 65 |he termi|nal type|
|00002500| 20 6f 6e 20 79 6f 75 72 | 20 74 74 79 20 6c 69 6e | on your| tty lin|
|00002510| 65 2c 20 61 73 20 73 70 | 65 63 69 66 69 65 64 20 |e, as sp|ecified |
|00002520| 69 6e 0a 58 5c 66 49 2f | 65 74 63 2f 74 74 79 74 |in.X\fI/|etc/ttyt|
|00002530| 79 70 65 5c 66 52 2e 0a | 58 2e 50 50 0a 58 41 6e |ype\fR..|X.PP.XAn|
|00002540| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00002550| 73 63 72 69 70 74 20 66 | 6f 72 20 79 6f 75 72 20 |script f|or your |
|00002560| 63 6f 6d 6d 61 6e 64 20 | 69 6e 74 65 72 70 72 65 |command |interpre|
|00002570| 74 65 72 20 6d 61 79 20 | 61 6c 73 6f 20 62 65 0a |ter may |also be.|
|00002580| 58 65 78 65 63 75 74 65 | 64 2e 0a 58 50 6c 65 61 |Xexecute|d..XPlea|
|00002590| 73 65 20 73 65 65 20 74 | 68 65 20 61 70 70 72 6f |se see t|he appro|
|000025a0| 70 72 69 61 74 65 20 6d | 61 6e 75 61 6c 20 73 65 |priate m|anual se|
|000025b0| 63 74 69 6f 6e 20 66 6f | 72 20 6d 6f 72 65 20 69 |ction fo|r more i|
|000025c0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 0a 58 74 |nformati|on on.Xt|
|000025d0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 2e 0a 58 2e |his func|tion..X.|
|000025e0| 53 48 20 43 41 56 45 41 | 54 53 0a 58 2e 50 50 0a |SH CAVEA|TS.X.PP.|
|000025f0| 58 54 68 69 73 20 76 65 | 72 73 69 6f 6e 20 6f 66 |XThis ve|rsion of|
|00002600| 20 5c 66 49 6c 6f 67 69 | 6e 5c 66 52 20 68 61 73 | \fIlogi|n\fR has|
|00002610| 20 6d 61 6e 79 20 63 6f | 6d 70 69 6c 61 74 69 6f | many co|mpilatio|
|00002620| 6e 20 6f 70 74 69 6f 6e | 73 2c 20 6f 6e 6c 79 20 |n option|s, only |
|00002630| 73 6f 6d 65 20 6f 66 20 | 77 68 69 63 68 0a 58 6d |some of |which.Xm|
|00002640| 61 79 20 62 65 20 69 6e | 20 75 73 65 20 61 74 20 |ay be in| use at |
|00002650| 61 6e 79 20 70 61 72 74 | 69 63 75 6c 61 72 20 73 |any part|icular s|
|00002660| 69 74 65 2e 0a 58 2e 53 | 48 20 46 69 6c 65 73 0a |ite..X.S|H Files.|
|00002670| 58 2f 65 74 63 2f 75 74 | 6d 70 20 5c 2d 20 6c 69 |X/etc/ut|mp \- li|
|00002680| 73 74 20 6f 66 20 63 75 | 72 72 65 6e 74 20 6c 6f |st of cu|rrent lo|
|00002690| 67 69 6e 20 73 65 73 73 | 69 6f 6e 73 0a 58 2e 62 |gin sess|ions.X.b|
|000026a0| 72 0a 58 2f 65 74 63 2f | 77 74 6d 70 20 5c 2d 20 |r.X/etc/|wtmp \- |
|000026b0| 6c 69 73 74 20 6f 66 20 | 70 72 65 76 69 6f 75 73 |list of |previous|
|000026c0| 20 6c 6f 67 69 6e 20 73 | 65 73 73 69 6f 6e 73 0a | login s|essions.|
|000026d0| 58 2e 62 72 0a 58 2f 65 | 74 63 2f 70 61 73 73 77 |X.br.X/e|tc/passw|
|000026e0| 64 20 5c 2d 20 75 73 65 | 72 20 61 63 63 6f 75 6e |d \- use|r accoun|
|000026f0| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0a 58 2e |t inform|ation.X.|
|00002700| 62 72 0a 58 2f 65 74 63 | 2f 73 68 61 64 6f 77 20 |br.X/etc|/shadow |
|00002710| 5c 2d 20 65 6e 63 72 79 | 70 74 65 64 20 70 61 73 |\- encry|pted pas|
|00002720| 73 77 6f 72 64 73 20 61 | 6e 64 20 61 67 65 20 69 |swords a|nd age i|
|00002730| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0a 58 2e 62 72 0a |nformati|on.X.br.|
|00002740| 58 2f 65 74 63 2f 6d 6f | 74 64 20 5c 2d 20 73 79 |X/etc/mo|td \- sy|
|00002750| 73 74 65 6d 20 6d 65 73 | 73 61 67 65 20 66 69 6c |stem mes|sage fil|
|00002760| 65 0a 58 2e 62 72 0a 58 | 2f 65 74 63 2f 74 74 79 |e.X.br.X|/etc/tty|
|00002770| 74 79 70 65 20 5c 2d 20 | 6c 69 73 74 20 6f 66 20 |type \- |list of |
|00002780| 74 65 72 6d 69 6e 61 6c | 20 74 79 70 65 73 0a 58 |terminal| types.X|
|00002790| 2e 62 72 0a 58 24 48 4f | 4d 45 2f 2e 70 72 6f 66 |.br.X$HO|ME/.prof|
|000027a0| 69 6c 65 20 5c 2d 20 69 | 6e 69 74 69 61 6c 69 7a |ile \- i|nitializ|
|000027b0| 61 74 69 6f 6e 20 73 63 | 72 69 70 74 20 66 6f 72 |ation sc|ript for|
|000027c0| 20 64 65 66 61 75 6c 74 | 20 73 68 65 6c 6c 0a 58 | default| shell.X|
|000027d0| 2e 62 72 0a 58 24 48 4f | 4d 45 2f 2e 68 75 73 68 |.br.X$HO|ME/.hush|
|000027e0| 6c 6f 67 69 6e 20 5c 2d | 20 73 75 70 70 72 65 73 |login \-| suppres|
|000027f0| 73 20 70 72 69 6e 74 69 | 6e 67 20 6f 66 20 73 79 |s printi|ng of sy|
|00002800| 73 74 65 6d 20 6d 65 73 | 73 61 67 65 73 0a 58 2e |stem mes|sages.X.|
|00002810| 62 72 0a 58 2e 53 48 20 | 53 65 65 20 41 6c 73 6f |br.X.SH |See Also|
|00002820| 0a 58 2e 50 50 0a 58 67 | 65 74 74 79 28 31 4d 29 |.X.PP.Xg|etty(1M)|
|00002830| 2c 0a 58 6d 61 69 6c 28 | 31 29 2c 0a 58 70 61 73 |,.Xmail(|1),.Xpas|
|00002840| 73 77 64 28 31 29 2c 0a | 58 73 68 28 31 29 2c 0a |swd(1),.|Xsh(1),.|
|00002850| 58 73 75 28 31 29 2c 0a | 58 64 5f 70 61 73 73 77 |Xsu(1),.|Xd_passw|
|00002860| 64 28 34 29 2c 0a 58 70 | 61 73 73 77 64 28 34 29 |d(4),.Xp|asswd(4)|
|00002870| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00002880| 74 20 33 33 34 34 20 2d | 6e 65 20 22 60 77 63 20 |t 3344 -|ne "`wc |
|00002890| 2d 63 20 3c 20 27 6c 6f | 67 69 6e 2e 31 27 60 22 |-c < 'lo|gin.1'`"|
|000028a0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000028b0| 3a 20 22 65 72 72 6f 72 | 20 74 72 61 6e 73 6d 69 |: "error| transmi|
|000028c0| 74 74 69 6e 67 20 27 6c | 6f 67 69 6e 2e 31 27 22 |tting 'l|ogin.1'"|
|000028d0| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|000028e0| 65 65 6e 20 33 33 34 34 | 20 63 68 61 72 61 63 74 |een 3344| charact|
|000028f0| 65 72 73 29 27 0a 66 69 | 0a 66 69 0a 65 63 68 6f |ers)'.fi|.fi.echo|
|00002900| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00002910| 6e 67 20 27 70 61 73 73 | 77 64 2e 31 27 22 20 27 |ng 'pass|wd.1'" '|
|00002920| 28 34 31 31 36 20 63 68 | 61 72 61 63 74 65 72 73 |(4116 ch|aracters|
|00002930| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 70 |)'.if te|st -f 'p|
|00002940| 61 73 73 77 64 2e 31 27 | 0a 74 68 65 6e 0a 09 65 |asswd.1'|.then..e|
|00002950| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00002960| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00002970| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 70 61 |xisting |file 'pa|
|00002980| 73 73 77 64 2e 31 27 22 | 0a 65 6c 73 65 0a 73 65 |sswd.1'"|.else.se|
|00002990| 64 20 27 73 2f 5e 58 2f | 2f 27 20 3c 3c 20 5c 53 |d 's/^X/|/' << \S|
|000029a0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 70 61 73 73 77 |HAR_EOF |> 'passw|
|000029b0| 64 2e 31 27 0a 58 2e 5c | 22 20 43 6f 70 79 72 69 |d.1'.X.\|" Copyri|
|000029c0| 67 68 74 20 31 39 38 39 | 2c 20 31 39 39 30 2c 20 |ght 1989|, 1990, |
|000029d0| 4a 6f 68 6e 20 46 2e 20 | 48 61 75 67 68 20 49 49 |John F. |Haugh II|
|000029e0| 0a 58 2e 5c 22 20 41 6c | 6c 20 72 69 67 68 74 73 |.X.\" Al|l rights|
|000029f0| 20 72 65 73 65 72 76 65 | 64 2e 0a 58 2e 5c 22 0a | reserve|d..X.\".|
|00002a00| 58 2e 5c 22 20 55 73 65 | 2c 20 64 75 70 6c 69 63 |X.\" Use|, duplic|
|00002a10| 61 74 69 6f 6e 2c 20 61 | 6e 64 20 64 69 73 63 6c |ation, a|nd discl|
|00002a20| 6f 73 75 72 65 20 70 72 | 6f 68 69 62 69 74 65 64 |osure pr|ohibited|
|00002a30| 20 77 69 74 68 6f 75 74 | 0a 58 2e 5c 22 20 74 68 | without|.X.\" th|
|00002a40| 65 20 65 78 70 72 65 73 | 73 20 77 72 69 74 74 65 |e expres|s writte|
|00002a50| 6e 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6f 66 20 |n permis|sion of |
|00002a60| 74 68 65 20 61 75 74 68 | 6f 72 2e 0a 58 2e 5c 22 |the auth|or..X.\"|
|00002a70| 0a 58 2e 5c 22 09 40 28 | 23 29 70 61 73 73 77 64 |.X.\".@(|#)passwd|
|00002a80| 2e 31 09 33 2e 31 09 30 | 39 3a 33 34 3a 32 33 09 |.1.3.1.0|9:34:23.|
|00002a90| 31 31 2f 32 31 2f 39 30 | 0a 58 2e 5c 22 0a 58 2e |11/21/90|.X.\".X.|
|00002aa0| 54 48 20 50 41 53 53 57 | 44 20 31 0a 58 2e 53 48 |TH PASSW|D 1.X.SH|
|00002ab0| 20 4e 41 4d 45 0a 58 70 | 61 73 73 77 64 20 5c 2d | NAME.Xp|asswd \-|
|00002ac0| 20 63 68 61 6e 67 65 20 | 75 73 65 72 20 70 61 73 | change |user pas|
|00002ad0| 73 77 6f 72 64 0a 58 2e | 53 48 20 53 59 4e 4f 50 |sword.X.|SH SYNOP|
|00002ae0| 53 49 53 0a 58 5c 66 42 | 70 61 73 73 77 64 5c 66 |SIS.X\fB|passwd\f|
|00002af0| 52 20 5b 20 5c 66 42 2d | 66 5c 66 52 20 5d 20 5b |R [ \fB-|f\fR ] [|
|00002b00| 20 5c 66 49 6e 61 6d 65 | 5c 66 52 20 5d 0a 58 2e | \fIname|\fR ].X.|
|00002b10| 62 72 0a 58 5c 66 42 70 | 61 73 73 77 64 5c 66 52 |br.X\fBp|asswd\fR|
|00002b20| 20 5b 20 5c 66 42 2d 67 | 5c 66 52 20 5d 20 5b 20 | [ \fB-g|\fR ] [ |
|00002b30| 5c 66 42 2d 72 5c 66 52 | 20 5d 20 5c 66 49 67 72 |\fB-r\fR| ] \fIgr|
|00002b40| 6f 75 70 5c 66 52 0a 58 | 2e 53 48 20 44 45 53 43 |oup\fR.X|.SH DESC|
|00002b50| 52 49 50 54 49 4f 4e 0a | 58 5c 66 49 70 61 73 73 |RIPTION.|X\fIpass|
|00002b60| 77 64 5c 66 20 63 68 61 | 6e 67 65 73 20 70 61 73 |wd\f cha|nges pas|
|00002b70| 73 77 6f 72 64 73 20 66 | 6f 72 20 75 73 65 72 20 |swords f|or user |
|00002b80| 61 63 63 6f 75 6e 74 73 | 2e 0a 58 41 20 6e 6f 72 |accounts|..XA nor|
|00002b90| 6d 61 6c 20 75 73 65 72 | 20 6d 61 79 20 6f 6e 6c |mal user| may onl|
|00002ba0| 79 20 63 68 61 6e 67 65 | 20 74 68 65 20 70 61 73 |y change| the pas|
|00002bb0| 73 77 6f 72 64 20 66 6f | 72 20 74 68 65 69 72 20 |sword fo|r their |
|00002bc0| 6f 77 6e 20 61 63 63 6f | 75 6e 74 2c 0a 58 74 68 |own acco|unt,.Xth|
|00002bd0| 65 20 73 75 70 65 72 20 | 75 73 65 72 20 6d 61 79 |e super |user may|
|00002be0| 20 63 68 61 6e 67 65 20 | 74 68 65 20 70 61 73 73 | change |the pass|
|00002bf0| 77 6f 72 64 20 66 6f 72 | 20 61 6e 79 20 61 63 63 |word for| any acc|
|00002c00| 6f 75 6e 74 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |ount..X.|PP.XThe |
|00002c10| 75 73 65 72 20 69 73 20 | 66 69 72 73 74 20 70 72 |user is |first pr|
|00002c20| 6f 6d 70 74 65 64 20 66 | 6f 72 20 74 68 65 69 72 |ompted f|or their|
|00002c30| 20 6f 6c 64 20 70 61 73 | 73 77 6f 72 64 2c 0a 58 | old pas|sword,.X|
|00002c40| 69 66 20 6f 6e 65 20 69 | 73 20 70 72 65 73 65 6e |if one i|s presen|
|00002c50| 74 2e 0a 58 54 68 69 73 | 20 70 61 73 73 77 6f 72 |t..XThis| passwor|
|00002c60| 64 20 69 73 20 74 68 65 | 6e 20 65 6e 63 72 79 70 |d is the|n encryp|
|00002c70| 74 65 64 20 61 6e 64 20 | 63 6f 6d 70 61 72 65 64 |ted and |compared|
|00002c80| 20 61 67 61 69 6e 73 74 | 20 74 68 65 0a 58 73 74 | against| the.Xst|
|00002c90| 6f 72 65 64 20 70 61 73 | 73 77 6f 72 64 2e 0a 58 |ored pas|sword..X|
|00002ca0| 54 68 65 20 75 73 65 72 | 20 68 61 73 20 6f 6e 6c |The user| has onl|
|00002cb0| 79 20 6f 6e 65 20 63 68 | 61 6e 63 65 20 74 6f 20 |y one ch|ance to |
|00002cc0| 65 6e 74 65 72 20 74 68 | 65 20 63 6f 72 72 65 63 |enter th|e correc|
|00002cd0| 74 20 70 61 73 73 77 6f | 72 64 2e 0a 58 54 68 65 |t passwo|rd..XThe|
|00002ce0| 20 73 75 70 65 72 20 75 | 73 65 72 20 69 73 20 70 | super u|ser is p|
|00002cf0| 65 72 6d 69 74 74 65 64 | 20 74 6f 20 62 79 70 61 |ermitted| to bypa|
|00002d00| 73 73 20 74 68 69 73 20 | 73 74 65 70 20 73 6f 20 |ss this |step so |
|00002d10| 74 68 61 74 20 66 6f 72 | 67 6f 74 74 65 6e 0a 58 |that for|gotten.X|
|00002d20| 70 61 73 73 77 6f 72 64 | 73 20 6d 61 79 20 62 65 |password|s may be|
|00002d30| 20 63 68 61 6e 67 65 64 | 2e 0a 58 2e 50 50 0a 58 | changed|..X.PP.X|
|00002d40| 41 66 74 65 72 20 74 68 | 65 20 70 61 73 73 77 6f |After th|e passwo|
|00002d50| 72 64 20 68 61 73 20 62 | 65 65 6e 20 65 6e 74 65 |rd has b|een ente|
|00002d60| 72 65 64 20 70 61 73 73 | 77 6f 72 64 20 61 67 69 |red pass|word agi|
|00002d70| 6e 67 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0a 58 |ng infor|mation.X|
|00002d80| 69 73 20 63 68 65 63 6b | 65 64 20 74 6f 20 73 65 |is check|ed to se|
|00002d90| 65 20 69 66 20 74 68 65 | 20 75 73 65 72 20 69 73 |e if the| user is|
|00002da0| 20 70 65 72 6d 69 74 74 | 65 64 20 74 6f 20 63 68 | permitt|ed to ch|
|00002db0| 61 6e 67 65 20 74 68 65 | 69 72 20 70 61 73 73 77 |ange the|ir passw|
|00002dc0| 6f 72 64 0a 58 61 74 20 | 74 68 69 73 20 74 69 6d |ord.Xat |this tim|
|00002dd0| 65 2e 0a 58 49 66 20 6e | 6f 74 2c 20 5c 66 49 70 |e..XIf n|ot, \fIp|
|00002de0| 61 73 73 77 64 5c 66 52 | 20 72 65 66 75 73 65 73 |asswd\fR| refuses|
|00002df0| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 65 20 70 | to chan|ge the p|
|00002e00| 61 73 73 77 6f 72 64 20 | 61 6e 64 20 65 78 69 74 |assword |and exit|
|00002e10| 73 2e 0a 58 2e 50 50 0a | 58 54 68 65 20 75 73 65 |s..X.PP.|XThe use|
|00002e20| 72 20 69 73 20 74 68 65 | 6e 20 70 72 6f 6d 70 74 |r is the|n prompt|
|00002e30| 65 64 20 66 6f 72 20 61 | 20 72 65 70 6c 61 63 65 |ed for a| replace|
|00002e40| 6d 65 6e 74 20 70 61 73 | 73 77 6f 72 64 2e 0a 58 |ment pas|sword..X|
|00002e50| 54 68 69 73 20 70 61 73 | 73 77 6f 72 64 20 69 73 |This pas|sword is|
|00002e60| 20 74 65 73 74 65 64 20 | 66 6f 72 20 63 6f 6d 70 | tested |for comp|
|00002e70| 6c 65 78 69 74 79 2e 0a | 58 41 73 20 61 20 67 65 |lexity..|XAs a ge|
|00002e80| 6e 65 72 61 6c 20 67 75 | 69 64 65 6c 69 6e 65 2c |neral gu|ideline,|
|00002e90| 0a 58 70 61 73 73 77 6f | 72 64 73 20 73 68 6f 75 |.Xpasswo|rds shou|
|00002ea0| 6c 64 20 63 6f 6e 73 69 | 73 74 20 6f 66 20 36 20 |ld consi|st of 6 |
|00002eb0| 74 6f 20 38 20 63 68 61 | 72 61 63 74 65 72 73 20 |to 8 cha|racters |
|00002ec0| 69 6e 63 6c 75 64 69 6e | 67 0a 58 6f 6e 65 20 6f |includin|g.Xone o|
|00002ed0| 72 20 6d 6f 72 65 20 66 | 72 6f 6d 20 65 61 63 68 |r more f|rom each|
|00002ee0| 20 6f 66 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 65 | of foll|owing se|
|00002ef0| 74 73 3a 0a 58 2e 49 50 | 20 22 22 20 2e 35 69 0a |ts:.X.IP| "" .5i.|
|00002f00| 58 4c 6f 77 65 72 20 63 | 61 73 65 20 61 6c 70 68 |XLower c|ase alph|
|00002f10| 61 62 65 74 69 63 73 0a | 58 2e 49 50 20 22 22 20 |abetics.|X.IP "" |
|00002f20| 2e 35 69 0a 58 55 70 70 | 65 72 20 63 61 73 65 20 |.5i.XUpp|er case |
|00002f30| 61 6c 70 68 61 62 65 74 | 69 63 73 0a 58 2e 49 50 |alphabet|ics.X.IP|
|00002f40| 20 22 22 20 2e 35 69 0a | 58 44 69 67 69 74 73 20 | "" .5i.|XDigits |
|00002f50| 30 20 74 68 72 75 20 39 | 0a 58 2e 49 50 20 22 22 |0 thru 9|.X.IP ""|
|00002f60| 20 2e 35 69 0a 58 50 75 | 6e 63 74 75 61 74 69 6f | .5i.XPu|nctuatio|
|00002f70| 6e 20 6d 61 72 6b 73 0a | 58 2e 50 50 0a 58 43 61 |n marks.|X.PP.XCa|
|00002f80| 72 65 20 6d 75 73 74 20 | 62 65 20 74 61 6b 65 6e |re must |be taken|
|00002f90| 20 6e 6f 74 20 74 6f 20 | 69 6e 63 6c 75 64 65 20 | not to |include |
|00002fa0| 74 68 65 20 73 79 73 74 | 65 6d 20 64 65 66 61 75 |the syst|em defau|
|00002fb0| 6c 74 20 65 72 61 73 65 | 0a 58 6f 72 20 6b 69 6c |lt erase|.Xor kil|
|00002fc0| 6c 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 58 5c |l charac|ters..X\|
|00002fd0| 66 49 70 61 73 73 77 64 | 5c 66 52 20 77 69 6c 6c |fIpasswd|\fR will|
|00002fe0| 20 72 65 6a 65 63 74 20 | 61 6e 79 20 70 61 73 73 | reject |any pass|
|00002ff0| 77 6f 72 64 20 77 68 69 | 63 68 20 69 73 20 6e 6f |word whi|ch is no|
|00003000| 74 20 73 75 69 74 61 62 | 6c 79 0a 58 63 6f 6d 70 |t suitab|ly.Xcomp|
|00003010| 6c 65 78 2e 0a 58 2e 50 | 50 0a 58 49 66 20 74 68 |lex..X.P|P.XIf th|
|00003020| 65 20 70 61 73 73 77 6f | 72 64 20 69 73 20 61 63 |e passwo|rd is ac|
|00003030| 63 65 70 74 65 64 2c 0a | 58 5c 66 49 70 61 73 73 |cepted,.|X\fIpass|
|00003040| 77 64 5c 66 52 20 77 69 | 6c 6c 20 70 72 6f 6d 70 |wd\fR wi|ll promp|
|00003050| 74 20 61 67 61 69 6e 20 | 61 6e 64 20 63 6f 6d 70 |t again |and comp|
|00003060| 61 72 65 20 74 68 65 20 | 73 65 63 6f 6e 64 20 65 |are the |second e|
|00003070| 6e 74 72 79 0a 58 61 67 | 61 69 6e 73 74 20 74 68 |ntry.Xag|ainst th|
|00003080| 65 20 66 69 72 73 74 2e | 0a 58 42 6f 74 68 20 65 |e first.|.XBoth e|
|00003090| 6e 74 72 69 65 73 20 61 | 72 65 20 72 65 71 75 69 |ntries a|re requi|
|000030a0| 72 65 20 74 6f 20 6d 61 | 74 63 68 20 69 6e 20 6f |re to ma|tch in o|
|000030b0| 72 64 65 72 20 66 6f 72 | 20 74 68 65 20 70 61 73 |rder for| the pas|
|000030c0| 73 77 6f 72 64 0a 58 74 | 6f 20 62 65 20 63 68 61 |sword.Xt|o be cha|
|000030d0| 6e 67 65 64 2e 0a 58 2e | 50 50 0a 58 57 68 65 6e |nged..X.|PP.XWhen|
|000030e0| 20 74 68 65 20 5c 66 42 | 2d 67 5c 66 20 6f 70 74 | the \fB|-g\f opt|
|000030f0| 69 6f 6e 20 69 73 20 75 | 73 65 64 2c 20 74 68 65 |ion is u|sed, the|
|00003100| 20 70 61 73 73 77 6f 72 | 64 20 66 6f 72 20 74 68 | passwor|d for th|
|00003110| 65 20 6e 61 6d 65 64 0a | 58 67 72 6f 75 70 20 69 |e named.|Xgroup i|
|00003120| 73 20 63 68 61 6e 67 65 | 64 2e 0a 58 54 68 65 20 |s change|d..XThe |
|00003130| 75 73 65 72 20 6d 75 73 | 74 20 65 69 74 68 65 72 |user mus|t either|
|00003140| 20 62 65 20 74 68 65 20 | 73 75 70 65 72 20 75 73 | be the |super us|
|00003150| 65 72 2c 20 6f 72 20 74 | 68 65 20 66 69 72 73 74 |er, or t|he first|
|00003160| 20 67 72 6f 75 70 0a 58 | 6d 65 6d 62 65 72 20 6c | group.X|member l|
|00003170| 69 73 74 65 64 20 66 6f | 72 20 74 68 65 20 6e 61 |isted fo|r the na|
|00003180| 6d 65 64 20 67 72 6f 75 | 70 2e 0a 58 54 68 65 20 |med grou|p..XThe |
|00003190| 63 75 72 72 65 6e 74 20 | 67 72 6f 75 70 20 70 61 |current |group pa|
|000031a0| 73 73 77 6f 72 64 20 69 | 73 20 6e 6f 74 20 70 72 |ssword i|s not pr|
|000031b0| 6f 6d 70 74 65 64 20 66 | 6f 72 2e 0a 58 54 68 65 |ompted f|or..XThe|
|000031c0| 20 5c 66 42 2d 72 5c 66 | 20 6f 70 74 69 6f 6e 20 | \fB-r\f| option |
|000031d0| 69 73 20 75 73 65 64 20 | 77 69 74 68 20 74 68 65 |is used |with the|
|000031e0| 20 5c 66 42 2d 67 5c 66 | 20 6f 70 74 69 6f 6e 20 | \fB-g\f| option |
|000031f0| 74 6f 20 72 65 6d 6f 76 | 65 0a 58 74 68 65 20 63 |to remov|e.Xthe c|
|00003200| 75 72 72 65 6e 74 20 70 | 61 73 73 77 6f 72 64 20 |urrent p|assword |
|00003210| 66 72 6f 6d 20 74 68 65 | 20 6e 61 6d 65 64 20 67 |from the| named g|
|00003220| 72 6f 75 70 2e 0a 58 2e | 53 48 20 48 69 6e 74 73 |roup..X.|SH Hints|
|00003230| 20 66 6f 72 20 75 73 65 | 72 20 70 61 73 73 77 6f | for use|r passwo|
|00003240| 72 64 73 0a 58 54 68 65 | 20 73 65 63 75 72 69 74 |rds.XThe| securit|
|00003250| 79 20 6f 66 20 61 20 70 | 61 73 73 77 6f 72 64 20 |y of a p|assword |
|00003260| 64 65 70 65 6e 64 73 20 | 75 70 6f 6e 20 74 68 65 |depends |upon the|
|00003270| 20 73 74 72 65 6e 67 74 | 68 20 6f 66 20 74 68 65 | strengt|h of the|
|00003280| 0a 58 65 6e 63 72 79 70 | 74 69 6f 6e 20 61 6c 67 |.Xencryp|tion alg|
|00003290| 6f 72 69 74 68 6d 20 61 | 6e 64 20 74 68 65 20 73 |orithm a|nd the s|
|000032a0| 69 7a 65 20 6f 66 20 74 | 68 65 20 6b 65 79 20 73 |ize of t|he key s|
|000032b0| 70 61 63 65 2e 0a 58 54 | 68 65 20 5c 66 42 5c 73 |pace..XT|he \fB\s|
|000032c0| 2d 32 55 4e 49 58 5c 73 | 2b 32 5c 66 52 20 53 79 |-2UNIX\s|+2\fR Sy|
|000032d0| 73 74 65 6d 20 65 6e 63 | 72 79 70 74 69 6f 6e 20 |stem enc|ryption |
|000032e0| 6d 65 74 68 6f 64 20 69 | 73 20 62 61 73 65 64 20 |method i|s based |
|000032f0| 6f 6e 0a 58 74 68 65 20 | 4e 42 53 20 44 45 53 20 |on.Xthe |NBS DES |
|00003300| 61 6c 67 6f 72 69 74 68 | 6d 20 61 6e 64 20 69 73 |algorith|m and is|
|00003310| 20 76 65 72 79 20 73 65 | 63 75 72 65 2e 0a 58 54 | very se|cure..XT|
|00003320| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 6b |he size |of the k|
|00003330| 65 79 20 73 70 61 63 65 | 20 64 65 70 65 6e 64 73 |ey space| depends|
|00003340| 20 75 70 6f 6e 20 74 68 | 65 20 72 61 6e 64 6f 6d | upon th|e random|
|00003350| 6e 65 73 73 20 6f 66 20 | 74 68 65 0a 58 70 61 73 |ness of |the.Xpas|
|00003360| 73 77 6f 72 64 20 77 68 | 69 63 68 20 69 73 20 73 |sword wh|ich is s|
|00003370| 65 6c 65 63 74 65 64 2e | 0a 58 2e 50 50 0a 58 43 |elected.|.X.PP.XC|
|00003380| 6f 6d 70 72 6f 6d 69 73 | 65 73 20 69 6e 20 70 61 |ompromis|es in pa|
|00003390| 73 73 77 6f 72 64 20 73 | 65 63 75 72 69 74 79 20 |ssword s|ecurity |
|000033a0| 6e 6f 72 6d 61 6c 6c 79 | 20 72 65 73 75 6c 74 20 |normally| result |
|000033b0| 66 72 6f 6d 20 63 61 72 | 65 6c 65 73 73 0a 58 70 |from car|eless.Xp|
|000033c0| 61 73 73 77 6f 72 64 20 | 73 65 6c 65 63 74 69 6f |assword |selectio|
|000033d0| 6e 20 6f 72 20 68 61 6e | 64 6c 69 6e 67 2e 0a 58 |n or han|dling..X|
|000033e0| 46 6f 72 20 74 68 69 73 | 20 72 65 61 73 6f 6e 2c |For this| reason,|
|000033f0| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 73 65 6c 65 | you sho|uld sele|
|00003400| 63 74 20 61 20 70 61 73 | 73 77 6f 72 64 20 77 68 |ct a pas|sword wh|
|00003410| 69 63 68 20 64 6f 65 73 | 20 6e 6f 74 0a 58 61 70 |ich does| not.Xap|
|00003420| 70 65 61 72 20 69 6e 20 | 61 20 64 69 63 74 69 6f |pear in |a dictio|
|00003430| 6e 61 72 79 20 6f 72 20 | 77 68 69 63 68 20 6d 75 |nary or |which mu|
|00003440| 73 74 20 62 65 20 77 72 | 69 74 74 65 6e 20 64 6f |st be wr|itten do|
|00003450| 77 6e 2e 0a 58 54 68 65 | 20 70 61 73 73 77 6f 72 |wn..XThe| passwor|
|00003460| 64 20 73 68 6f 75 6c 64 | 20 61 6c 73 6f 20 6e 6f |d should| also no|
|00003470| 74 20 62 65 20 61 20 70 | 72 6f 70 65 72 20 6e 61 |t be a p|roper na|
|00003480| 6d 65 2c 20 79 6f 75 72 | 20 6c 69 63 65 6e 73 65 |me, your| license|
|00003490| 0a 58 6e 75 6d 62 65 72 | 2c 20 62 69 72 74 68 20 |.Xnumber|, birth |
|000034a0| 64 61 74 65 2c 20 6f 72 | 20 73 74 72 65 65 74 20 |date, or| street |
|000034b0| 61 64 64 72 65 73 73 2e | 0a 58 41 6e 79 20 6f 66 |address.|.XAny of|
|000034c0| 20 74 68 65 73 65 20 6d | 61 79 20 62 65 20 75 73 | these m|ay be us|
|000034d0| 65 64 20 61 73 20 67 75 | 65 73 73 65 73 20 74 6f |ed as gu|esses to|
|000034e0| 20 76 69 6f 6c 61 74 65 | 20 73 79 73 74 65 6d 20 | violate| system |
|000034f0| 73 65 63 75 72 69 74 79 | 2e 0a 58 2e 50 50 0a 58 |security|..X.PP.X|
|00003500| 59 6f 75 72 20 70 61 73 | 73 77 6f 72 64 20 6d 75 |Your pas|sword mu|
|00003510| 73 74 20 65 61 73 69 6c | 79 20 72 65 6d 65 6d 62 |st easil|y rememb|
|00003520| 65 72 65 64 20 73 6f 20 | 74 68 61 74 20 79 6f 75 |ered so |that you|
|00003530| 20 77 69 6c 6c 20 6e 6f | 74 0a 58 62 65 20 66 6f | will no|t.Xbe fo|
|00003540| 72 63 65 64 20 74 6f 20 | 77 72 69 74 65 20 69 74 |rced to |write it|
|00003550| 20 6f 6e 20 61 20 70 69 | 65 63 65 20 6f 66 20 70 | on a pi|ece of p|
|00003560| 61 70 65 72 2e 0a 58 54 | 68 69 73 20 63 61 6e 20 |aper..XT|his can |
|00003570| 62 65 20 61 63 63 6f 6d | 70 6c 69 73 68 65 64 20 |be accom|plished |
|00003580| 62 79 20 61 70 70 65 6e | 64 69 6e 67 20 74 77 6f |by appen|ding two|
|00003590| 20 73 6d 61 6c 6c 20 77 | 6f 72 64 73 20 74 6f 67 | small w|ords tog|
|000035a0| 65 74 68 65 72 0a 58 61 | 6e 64 20 73 65 70 61 72 |ether.Xa|nd separ|
|000035b0| 61 74 69 6e 67 20 65 61 | 63 68 20 77 69 74 68 20 |ating ea|ch with |
|000035c0| 61 20 73 70 65 63 69 61 | 6c 20 63 68 61 72 61 63 |a specia|l charac|
|000035d0| 74 65 72 20 6f 72 20 64 | 69 67 69 74 2e 0a 58 46 |ter or d|igit..XF|
|000035e0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 50 61 73 73 |or examp|le, Pass|
|000035f0| 25 77 6f 72 64 2e 0a 58 | 2e 50 50 0a 58 4f 74 68 |%word..X|.PP.XOth|
|00003600| 65 72 20 6d 65 74 68 6f | 64 73 20 6f 66 20 63 6f |er metho|ds of co|
|00003610| 6e 73 74 72 75 63 74 69 | 6f 6e 20 69 6e 76 6f 6c |nstructi|on invol|
|00003620| 76 65 20 73 65 6c 65 63 | 74 69 6e 67 20 61 6e 20 |ve selec|ting an |
|00003630| 65 61 73 69 6c 79 0a 58 | 72 65 6d 65 6d 62 65 72 |easily.X|remember|
|00003640| 65 64 20 70 68 72 61 73 | 65 20 66 72 6f 6d 20 6c |ed phras|e from l|
|00003650| 69 74 65 72 61 74 75 72 | 65 20 61 6e 64 20 73 65 |iteratur|e and se|
|00003660| 6c 65 63 74 69 6e 67 20 | 74 68 65 20 66 69 72 73 |lecting |the firs|
|00003670| 74 0a 58 6f 72 20 6c 61 | 73 74 20 6c 65 74 74 65 |t.Xor la|st lette|
|00003680| 72 20 66 72 6f 6d 20 65 | 61 63 68 2e 0a 58 41 6e |r from e|ach..XAn|
|00003690| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 74 68 69 73 | example| of this|
|000036a0| 20 69 73 0a 58 2e 49 50 | 20 22 22 20 2e 35 69 0a | is.X.IP| "" .5i.|
|000036b0| 58 41 73 6b 20 6e 6f 74 | 20 66 6f 72 20 77 68 6f |XAsk not| for who|
|000036c0| 6d 20 74 68 65 20 62 65 | 6c 6c 20 74 6f 6c 6c 73 |m the be|ll tolls|
|000036d0| 2e 0a 58 2e 50 50 0a 58 | 77 68 69 63 68 20 70 72 |..X.PP.X|which pr|
|000036e0| 6f 64 75 63 65 73 0a 58 | 2e 49 50 20 22 22 20 2e |oduces.X|.IP "" .|
|000036f0| 35 69 0a 58 41 6e 34 77 | 74 62 74 2e 0a 58 2e 50 |5i.XAn4w|tbt..X.P|
|00003700| 50 0a 58 59 6f 75 20 6d | 61 79 20 62 65 20 72 65 |P.XYou m|ay be re|
|00003710| 61 73 6f 6e 61 62 6c 79 | 20 73 75 72 65 20 66 65 |asonably| sure fe|
|00003720| 77 20 63 72 61 63 6b 65 | 72 73 20 77 69 6c 6c 20 |w cracke|rs will |
|00003730| 68 61 76 65 0a 58 69 6e | 63 6c 75 64 65 64 20 74 |have.Xin|cluded t|
|00003740| 68 69 73 20 69 6e 20 74 | 68 65 69 72 20 64 69 63 |his in t|heir dic|
|00003750| 74 69 6f 6e 61 72 79 2e | 0a 58 2e 53 48 20 4e 6f |tionary.|.X.SH No|
|00003760| 74 65 73 20 61 62 6f 75 | 74 20 67 72 6f 75 70 20 |tes abou|t group |
|00003770| 70 61 73 73 77 6f 72 64 | 73 0a 58 47 72 6f 75 70 |password|s.XGroup|
|00003780| 20 70 61 73 73 77 6f 72 | 64 73 20 61 72 65 20 61 | passwor|ds are a|
|00003790| 6e 20 69 6e 68 65 72 65 | 6e 74 20 73 65 63 75 72 |n inhere|nt secur|
|000037a0| 69 74 79 20 70 72 6f 62 | 6c 65 6d 20 73 69 6e 63 |ity prob|lem sinc|
|000037b0| 65 20 6d 6f 72 65 0a 58 | 74 68 61 6e 20 6f 6e 65 |e more.X|than one|
|000037c0| 20 70 65 72 73 6f 6e 20 | 69 73 20 70 65 72 6d 69 | person |is permi|
|000037d0| 74 74 65 64 20 74 6f 20 | 6b 6e 6f 77 20 74 68 65 |tted to |know the|
|000037e0| 20 70 61 73 73 77 6f 72 | 64 2e 0a 58 48 6f 77 65 | passwor|d..XHowe|
|000037f0| 76 65 72 2c 20 67 72 6f | 75 70 73 20 61 72 65 20 |ver, gro|ups are |
|00003800| 61 20 75 73 65 66 75 6c | 20 74 6f 6f 6c 20 66 6f |a useful| tool fo|
|00003810| 72 20 70 65 72 6d 69 74 | 74 69 6e 67 20 63 6f 2d |r permit|ting co-|
|00003820| 6f 70 65 72 61 74 69 6f | 6e 0a 58 62 65 74 77 65 |operatio|n.Xbetwe|
|00003830| 65 6e 20 64 69 66 66 65 | 72 65 6e 74 20 75 73 65 |en diffe|rent use|
|00003840| 72 73 2e 0a 58 2e 53 48 | 20 43 41 56 45 41 54 53 |rs..X.SH| CAVEATS|
|00003850| 0a 58 4e 6f 74 20 61 6c | 6c 20 6f 70 74 69 6f 6e |.XNot al|l option|
|00003860| 73 20 6d 61 79 20 62 65 | 20 73 75 70 70 6f 72 74 |s may be| support|
|00003870| 65 64 2e 0a 58 50 61 73 | 73 77 6f 72 64 20 63 6f |ed..XPas|sword co|
|00003880| 6d 70 6c 65 78 69 74 79 | 20 63 68 65 63 6b 69 6e |mplexity| checkin|
|00003890| 67 20 6d 61 79 20 76 61 | 72 79 20 66 72 6f 6d 20 |g may va|ry from |
|000038a0| 73 69 74 65 20 74 6f 20 | 73 69 74 65 2e 0a 58 54 |site to |site..XT|
|000038b0| 68 65 20 75 73 65 72 20 | 69 73 20 75 72 67 65 64 |he user |is urged|
|000038c0| 20 74 6f 20 73 65 6c 65 | 63 74 20 61 73 20 63 6f | to sele|ct as co|
|000038d0| 6d 70 6c 65 78 20 61 20 | 70 61 73 73 77 6f 72 64 |mplex a |password|
|000038e0| 20 61 73 20 74 68 65 79 | 0a 58 66 65 65 6c 20 63 | as they|.Xfeel c|
|000038f0| 6f 6d 66 6f 72 74 61 62 | 6c 65 20 77 69 74 68 2e |omfortab|le with.|
|00003900| 0a 58 41 20 5c 66 42 2d | 66 5c 66 52 20 6f 70 74 |.XA \fB-|f\fR opt|
|00003910| 69 6f 6e 20 65 78 69 73 | 74 73 20 74 6f 20 70 65 |ion exis|ts to pe|
|00003920| 72 6d 69 74 20 74 68 65 | 20 73 75 70 65 72 75 73 |rmit the| superus|
|00003930| 65 72 20 74 6f 20 6f 76 | 65 72 72 69 64 65 0a 58 |er to ov|erride.X|
|00003940| 61 6e 79 20 70 61 73 73 | 77 6f 72 64 20 63 6f 6d |any pass|word com|
|00003950| 70 6c 65 78 69 74 79 20 | 74 65 73 74 69 6e 67 3b |plexity |testing;|
|00003960| 0a 58 6e 6f 72 6d 61 6c | 20 75 73 65 72 73 20 6d |.Xnormal| users m|
|00003970| 75 73 74 20 63 72 65 61 | 74 65 20 70 61 73 73 77 |ust crea|te passw|
|00003980| 6f 72 64 73 20 77 68 69 | 63 68 20 70 61 73 73 20 |ords whi|ch pass |
|00003990| 74 68 65 20 63 6f 6d 70 | 6c 65 78 69 74 79 0a 58 |the comp|lexity.X|
|000039a0| 74 65 73 74 2e 0a 58 2e | 53 48 20 46 69 6c 65 73 |test..X.|SH Files|
|000039b0| 0a 58 2f 65 74 63 2f 70 | 61 73 73 77 64 20 5c 2d |.X/etc/p|asswd \-|
|000039c0| 20 75 73 65 72 20 61 63 | 63 6f 75 6e 74 20 69 6e | user ac|count in|
|000039d0| 66 6f 72 6d 61 74 69 6f | 6e 0a 58 2e 62 72 0a 58 |formatio|n.X.br.X|
|000039e0| 2f 65 74 63 2f 73 68 61 | 64 6f 77 20 5c 2d 20 65 |/etc/sha|dow \- e|
|000039f0| 6e 63 72 79 70 74 65 64 | 20 75 73 65 72 20 70 61 |ncrypted| user pa|
|00003a00| 73 73 77 6f 72 64 73 0a | 58 2e 53 48 20 53 65 65 |sswords.|X.SH See|
|00003a10| 20 41 6c 73 6f 0a 58 70 | 61 73 73 77 64 28 33 29 | Also.Xp|asswd(3)|
|00003a20| 2c 0a 58 73 68 61 64 6f | 77 28 33 29 2c 0a 58 67 |,.Xshado|w(3),.Xg|
|00003a30| 72 6f 75 70 28 34 29 2c | 0a 58 70 61 73 73 77 64 |roup(4),|.Xpasswd|
|00003a40| 28 34 29 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |(4).SHAR|_EOF.if |
|00003a50| 74 65 73 74 20 34 31 31 | 36 20 2d 6e 65 20 22 60 |test 411|6 -ne "`|
|00003a60| 77 63 20 2d 63 20 3c 20 | 27 70 61 73 73 77 64 2e |wc -c < |'passwd.|
|00003a70| 31 27 60 22 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |1'`".the|n..echo |
|00003a80| 73 68 61 72 3a 20 22 65 | 72 72 6f 72 20 74 72 61 |shar: "e|rror tra|
|00003a90| 6e 73 6d 69 74 74 69 6e | 67 20 27 70 61 73 73 77 |nsmittin|g 'passw|
|00003aa0| 64 2e 31 27 22 20 27 28 | 73 68 6f 75 6c 64 20 68 |d.1'" '(|should h|
|00003ab0| 61 76 65 20 62 65 65 6e | 20 34 31 31 36 20 63 68 |ave been| 4116 ch|
|00003ac0| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 66 69 |aracters|)'.fi.fi|
|00003ad0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 22 65 78 74 |.echo sh|ar: "ext|
|00003ae0| 72 61 63 74 69 6e 67 20 | 27 73 75 2e 31 27 22 20 |racting |'su.1'" |
|00003af0| 27 28 31 36 39 37 20 63 | 68 61 72 61 63 74 65 72 |'(1697 c|haracter|
|00003b00| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00003b10| 73 75 2e 31 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |su.1'.th|en..echo|
|00003b20| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00003b30| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00003b40| 74 69 6e 67 20 66 69 6c | 65 20 27 73 75 2e 31 27 |ting fil|e 'su.1'|
|00003b50| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|00003b60| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|00003b70| 20 3e 20 27 73 75 2e 31 | 27 0a 58 2e 5c 22 20 43 | > 'su.1|'.X.\" C|
|00003b80| 6f 70 79 72 69 67 68 74 | 20 31 39 38 39 2c 20 31 |opyright| 1989, 1|
|00003b90| 39 39 30 2c 20 4a 6f 68 | 6e 20 46 2e 20 48 61 75 |990, Joh|n F. Hau|
|00003ba0| 67 68 20 49 49 0a 58 2e | 5c 22 20 41 6c 6c 20 72 |gh II.X.|\" All r|
|00003bb0| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0a |ights re|served..|
|00003bc0| 58 2e 5c 22 0a 58 2e 5c | 22 20 55 73 65 2c 20 64 |X.\".X.\|" Use, d|
|00003bd0| 75 70 6c 69 63 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |uplicati|on, and |
|00003be0| 64 69 73 63 6c 6f 73 75 | 72 65 20 70 72 6f 68 69 |disclosu|re prohi|
|00003bf0| 62 69 74 65 64 20 77 69 | 74 68 6f 75 74 0a 58 2e |bited wi|thout.X.|
|00003c00| 5c 22 20 74 68 65 20 65 | 78 70 72 65 73 73 20 77 |\" the e|xpress w|
|00003c10| 72 69 74 74 65 6e 20 70 | 65 72 6d 69 73 73 69 6f |ritten p|ermissio|
|00003c20| 6e 20 6f 66 20 74 68 65 | 20 61 75 74 68 6f 72 2e |n of the| author.|
|00003c30| 0a 58 2e 5c 22 0a 58 2e | 5c 22 09 40 28 23 29 73 |.X.\".X.|\".@(#)s|
|00003c40| 75 2e 31 09 33 2e 31 09 | 30 39 3a 33 34 3a 32 38 |u.1.3.1.|09:34:28|
|00003c50| 09 31 31 2f 32 31 2f 39 | 30 0a 58 2e 5c 22 0a 58 |.11/21/9|0.X.\".X|
|00003c60| 2e 54 48 20 53 55 20 31 | 0a 58 2e 53 48 20 4e 41 |.TH SU 1|.X.SH NA|
|00003c70| 4d 45 0a 58 73 75 20 5c | 2d 20 43 68 61 6e 67 65 |ME.Xsu \|- Change|
|00003c80| 20 75 73 65 72 20 49 44 | 20 6f 72 20 62 65 63 6f | user ID| or beco|
|00003c90| 6d 65 20 73 75 70 65 72 | 2d 75 73 65 72 0a 58 2e |me super|-user.X.|
|00003ca0| 53 48 20 53 59 4e 4f 50 | 53 49 53 0a 58 2e 42 20 |SH SYNOP|SIS.X.B |
|00003cb0| 73 75 0a 58 5b 20 2d 20 | 5d 20 5b 20 75 73 65 72 |su.X[ - |] [ user|
|00003cc0| 6e 61 6d 65 20 5b 20 61 | 72 67 73 20 5d 20 5d 0a |name [ a|rgs ] ].|
|00003cd0| 58 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |X.SH DES|CRIPTION|
|00003ce0| 0a 58 2e 49 20 73 75 0a | 58 69 73 20 75 73 65 64 |.X.I su.|Xis used|
|00003cf0| 20 74 6f 20 62 65 63 6f | 6d 65 20 61 6e 6f 74 68 | to beco|me anoth|
|00003d00| 65 72 20 75 73 65 72 20 | 64 75 72 69 6e 67 20 61 |er user |during a|
|00003d10| 20 6c 6f 67 69 6e 20 73 | 65 73 73 69 6f 6e 2e 0a | login s|ession..|
|00003d20| 58 49 6e 76 6f 6b 65 64 | 20 77 69 74 68 6f 75 74 |XInvoked| without|
|00003d30| 20 61 20 75 73 65 72 6e | 61 6d 65 2c 20 5c 66 49 | a usern|ame, \fI|
|00003d40| 73 75 5c 66 52 20 64 65 | 66 61 75 6c 74 73 20 74 |su\fR de|faults t|
|00003d50| 6f 20 62 65 63 6f 6d 69 | 6e 67 0a 58 74 68 65 20 |o becomi|ng.Xthe |
|00003d60| 73 75 70 65 72 20 75 73 | 65 72 2e 0a 58 54 68 65 |super us|er..XThe|
|00003d70| 20 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 75 6d 65 | optiona|l argume|
|00003d80| 6e 74 20 5c 66 42 5c 2d | 5c 66 52 20 6d 61 79 20 |nt \fB\-|\fR may |
|00003d90| 62 65 20 75 73 65 64 20 | 74 6f 20 70 72 6f 76 69 |be used |to provi|
|00003da0| 64 65 20 61 6e 0a 58 65 | 6e 76 69 72 6f 6e 6d 65 |de an.Xe|nvironme|
|00003db0| 6e 74 20 73 69 6d 69 6c | 69 61 72 20 74 6f 20 77 |nt simil|iar to w|
|00003dc0| 68 61 74 20 74 68 65 20 | 75 73 65 72 20 77 6f 75 |hat the |user wou|
|00003dd0| 6c 64 20 65 78 70 65 63 | 74 20 68 61 64 0a 58 74 |ld expec|t had.Xt|
|00003de0| 68 65 20 75 73 65 72 20 | 6c 6f 67 67 65 64 20 69 |he user |logged i|
|00003df0| 6e 20 64 69 72 65 63 74 | 6c 79 2e 0a 58 2e 50 50 |n direct|ly..X.PP|
|00003e00| 0a 58 41 64 64 69 74 69 | 6f 6e 61 6c 20 61 72 67 |.XAdditi|onal arg|
|00003e10| 75 6d 65 6e 74 73 20 6d | 61 79 20 62 65 20 70 72 |uments m|ay be pr|
|00003e20| 6f 76 69 64 65 64 20 61 | 66 74 65 72 20 74 68 65 |ovided a|fter the|
|00003e30| 20 75 73 65 72 6e 61 6d | 65 2c 0a 58 69 6e 20 77 | usernam|e,.Xin w|
|00003e40| 68 69 63 68 20 63 61 73 | 65 20 74 68 65 79 20 61 |hich cas|e they a|
|00003e50| 72 65 20 73 75 70 70 6c | 69 65 64 20 74 6f 20 74 |re suppl|ied to t|
|00003e60| 68 65 20 75 73 65 72 5c | 27 73 20 6c 6f 67 69 6e |he user\|'s login|
|00003e70| 20 73 68 65 6c 6c 2e 0a | 58 49 6e 20 70 61 72 74 | shell..|XIn part|
|00003e80| 69 63 75 6c 61 72 2c 20 | 61 6e 20 61 72 67 75 6d |icular, |an argum|
|00003e90| 65 6e 74 20 6f 66 20 5c | 66 42 2d 63 5c 66 52 20 |ent of \|fB-c\fR |
|00003ea0| 77 69 6c 6c 20 63 61 75 | 73 65 20 74 68 65 0a 58 |will cau|se the.X|
|00003eb0| 6e 65 78 74 20 61 72 67 | 75 6d 65 6e 74 20 74 6f |next arg|ument to|
|00003ec0| 20 62 65 20 74 72 65 61 | 74 65 64 20 61 73 20 61 | be trea|ted as a|
|00003ed0| 20 63 6f 6d 6d 61 6e 64 | 20 62 79 20 6d 6f 73 74 | command| by most|
|00003ee0| 20 63 6f 6d 6d 61 6e 64 | 0a 58 69 6e 74 65 72 70 | command|.Xinterp|
|00003ef0| 72 65 74 65 72 73 2e 0a | 58 54 68 65 20 63 6f 6d |reters..|XThe com|
|00003f00| 6d 61 6e 64 20 77 69 6c | 6c 20 62 65 20 65 78 65 |mand wil|l be exe|
|00003f10| 63 75 74 65 64 20 75 6e | 64 65 72 20 74 68 65 20 |cuted un|der the |
|00003f20| 73 68 65 6c 6c 20 73 70 | 65 63 69 66 69 65 64 20 |shell sp|ecified |
|00003f30| 62 79 0a 58 5c 66 42 24 | 53 48 45 4c 4c 5c 66 52 |by.X\fB$|SHELL\fR|
|00003f40| 2c 20 6f 72 20 69 66 20 | 75 6e 64 65 66 69 6e 65 |, or if |undefine|
|00003f50| 64 2c 20 62 79 20 74 68 | 65 20 6f 6e 65 20 73 70 |d, by th|e one sp|
|00003f60| 65 63 69 66 69 65 64 20 | 69 6e 0a 58 5c 66 49 2f |ecified |in.X\fI/|
|00003f70| 65 74 63 2f 70 61 73 73 | 77 64 5c 66 52 2e 0a 58 |etc/pass|wd\fR..X|
|00003f80| 2e 50 50 0a 58 54 68 65 | 20 75 73 65 72 20 77 69 |.PP.XThe| user wi|
|00003f90| 6c 6c 20 62 65 20 70 72 | 6f 6d 70 74 65 64 20 66 |ll be pr|ompted f|
|00003fa0| 6f 72 20 61 20 70 61 73 | 73 77 6f 72 64 2c 20 69 |or a pas|sword, i|
|00003fb0| 66 20 61 70 70 72 6f 70 | 72 69 61 74 65 2e 0a 58 |f approp|riate..X|
|00003fc0| 49 6e 76 61 6c 69 64 20 | 70 61 73 73 77 6f 72 64 |Invalid |password|
|00003fd0| 73 20 77 69 6c 6c 20 70 | 72 6f 64 75 63 65 20 61 |s will p|roduce a|
|00003fe0| 6e 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 2e |n error |message.|
|00003ff0| 0a 58 41 6c 6c 20 61 74 | 74 65 6d 70 74 73 2c 20 |.XAll at|tempts, |
|00004000| 62 6f 74 68 20 76 61 6c | 69 64 20 61 6e 64 20 69 |both val|id and i|
|00004010| 6e 76 61 6c 69 64 2c 20 | 61 72 65 20 6c 6f 67 67 |nvalid, |are logg|
|00004020| 65 64 20 74 6f 20 64 65 | 74 65 63 74 0a 58 61 62 |ed to de|tect.Xab|
|00004030| 75 73 65 73 20 6f 66 20 | 74 68 65 20 73 79 73 74 |uses of |the syst|
|00004040| 65 6d 2e 0a 58 2e 50 50 | 0a 58 54 68 65 20 63 75 |em..X.PP|.XThe cu|
|00004050| 72 72 65 6e 74 20 65 6e | 76 69 72 6f 6e 6d 65 6e |rrent en|vironmen|
|00004060| 74 20 69 73 20 70 61 73 | 73 65 64 20 74 6f 20 74 |t is pas|sed to t|
|00004070| 68 65 20 6e 65 77 20 73 | 68 65 6c 6c 2e 0a 58 54 |he new s|hell..XT|
|00004080| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 5c 66 42 24 |he value| of \fB$|
|00004090| 50 41 54 48 5c 66 52 20 | 69 73 20 72 65 73 65 74 |PATH\fR |is reset|
|000040a0| 20 74 6f 20 5c 66 42 2f | 62 69 6e 3a 2f 75 73 72 | to \fB/|bin:/usr|
|000040b0| 2f 62 69 6e 5c 66 52 0a | 58 66 6f 72 20 6e 6f 72 |/bin\fR.|Xfor nor|
|000040c0| 6d 61 6c 20 75 73 65 72 | 73 2c 20 6f 72 20 5c 66 |mal user|s, or \f|
|000040d0| 42 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f |B/bin:/u|sr/bin:/|
|000040e0| 65 74 63 5c 66 52 20 66 | 6f 72 20 74 68 65 20 73 |etc\fR f|or the s|
|000040f0| 75 70 65 72 20 75 73 65 | 72 2e 0a 58 2e 53 48 20 |uper use|r..X.SH |
|00004100| 43 41 56 45 41 54 53 0a | 58 2e 50 50 0a 58 54 68 |CAVEATS.|X.PP.XTh|
|00004110| 69 73 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 5c 66 |is versi|on of \f|
|00004120| 49 73 75 5c 66 52 20 68 | 61 73 20 6d 61 6e 79 20 |Isu\fR h|as many |
|00004130| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 6f 70 74 69 |compilat|ion opti|
|00004140| 6f 6e 73 2c 20 6f 6e 6c | 79 20 73 6f 6d 65 20 6f |ons, onl|y some o|
|00004150| 66 20 77 68 69 63 68 0a | 58 6d 61 79 20 62 65 20 |f which.|Xmay be |
|00004160| 69 6e 20 75 73 65 20 61 | 74 20 61 6e 79 20 70 61 |in use a|t any pa|
|00004170| 72 74 69 63 75 6c 61 72 | 20 73 69 74 65 2e 0a 58 |rticular| site..X|
|00004180| 2e 53 48 20 46 69 6c 65 | 73 0a 58 2f 65 74 63 2f |.SH File|s.X/etc/|
|00004190| 70 61 73 73 77 64 20 5c | 2d 20 75 73 65 72 20 61 |passwd \|- user a|
|000041a0| 63 63 6f 75 6e 74 20 69 | 6e 66 6f 72 6d 61 74 69 |ccount i|nformati|
|000041b0| 6f 6e 0a 58 2e 62 72 0a | 58 2f 65 74 63 2f 73 68 |on.X.br.|X/etc/sh|
|000041c0| 61 64 6f 77 20 5c 2d 20 | 65 6e 63 72 79 70 74 65 |adow \- |encrypte|
|000041d0| 64 20 70 61 73 73 77 6f | 72 64 73 20 61 6e 64 20 |d passwo|rds and |
|000041e0| 61 67 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 0a |age info|rmation.|
|000041f0| 58 2e 62 72 0a 58 24 48 | 4f 4d 45 2f 2e 70 72 6f |X.br.X$H|OME/.pro|
|00004200| 66 69 6c 65 20 5c 2d 20 | 69 6e 69 74 69 61 6c 69 |file \- |initiali|
|00004210| 7a 61 74 69 6f 6e 20 73 | 63 72 69 70 74 20 66 6f |zation s|cript fo|
|00004220| 72 20 64 65 66 61 75 6c | 74 20 73 68 65 6c 6c 0a |r defaul|t shell.|
|00004230| 58 2e 53 48 20 53 65 65 | 20 41 6c 73 6f 0a 58 6c |X.SH See| Also.Xl|
|00004240| 6f 67 69 6e 28 31 29 2c | 0a 58 73 68 28 31 29 0a |ogin(1),|.Xsh(1).|
|00004250| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|00004260| 20 31 36 39 37 20 2d 6e | 65 20 22 60 77 63 20 2d | 1697 -n|e "`wc -|
|00004270| 63 20 3c 20 27 73 75 2e | 31 27 60 22 0a 74 68 65 |c < 'su.|1'`".the|
|00004280| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 65 |n..echo |shar: "e|
|00004290| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|000042a0| 67 20 27 73 75 2e 31 27 | 22 20 27 28 73 68 6f 75 |g 'su.1'|" '(shou|
|000042b0| 6c 64 20 68 61 76 65 20 | 62 65 65 6e 20 31 36 39 |ld have |been 169|
|000042c0| 37 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |7 charac|ters)'.f|
|000042d0| 69 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |i.fi.ech|o shar: |
|000042e0| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 73 68 61 |"extract|ing 'sha|
|000042f0| 64 6f 77 2e 33 27 22 20 | 27 28 32 38 30 31 20 63 |dow.3'" |'(2801 c|
|00004300| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00004310| 65 73 74 20 2d 66 20 27 | 73 68 61 64 6f 77 2e 33 |est -f '|shadow.3|
|00004320| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00004330| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00004340| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00004350| 20 66 69 6c 65 20 27 73 | 68 61 64 6f 77 2e 33 27 | file 's|hadow.3'|
|00004360| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|00004370| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|00004380| 20 3e 20 27 73 68 61 64 | 6f 77 2e 33 27 0a 58 2e | > 'shad|ow.3'.X.|
|00004390| 5c 22 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |\" Copyr|ight 198|
|000043a0| 39 2c 20 31 39 39 30 2c | 20 4a 6f 68 6e 20 46 2e |9, 1990,| John F.|
|000043b0| 20 48 61 75 67 68 20 49 | 49 0a 58 2e 5c 22 20 41 | Haugh I|I.X.\" A|
|000043c0| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|000043d0| 65 64 2e 0a 58 2e 5c 22 | 0a 58 2e 5c 22 20 55 73 |ed..X.\"|.X.\" Us|
|000043e0| 65 2c 20 64 75 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |e, dupli|cation, |
|000043f0| 61 6e 64 20 64 69 73 63 | 6c 6f 73 75 72 65 20 70 |and disc|losure p|
|00004400| 72 6f 68 69 62 69 74 65 | 64 20 77 69 74 68 6f 75 |rohibite|d withou|
|00004410| 74 0a 58 2e 5c 22 20 74 | 68 65 20 65 78 70 72 65 |t.X.\" t|he expre|
|00004420| 73 73 20 77 72 69 74 74 | 65 6e 20 70 65 72 6d 69 |ss writt|en permi|
|00004430| 73 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 61 75 74 |ssion of| the aut|
|00004440| 68 6f 72 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 09 40 |hor..X.\|".X.\".@|
|00004450| 28 23 29 73 68 61 64 6f | 77 2e 33 09 33 2e 31 09 |(#)shado|w.3.3.1.|
|00004460| 32 33 3a 34 39 3a 34 32 | 09 31 31 2f 31 31 2f 39 |23:49:42|.11/11/9|
|00004470| 30 0a 58 2e 5c 22 0a 58 | 2e 54 48 20 53 48 41 44 |0.X.\".X|.TH SHAD|
|00004480| 4f 57 20 33 0a 58 2e 53 | 48 20 4e 41 4d 45 0a 58 |OW 3.X.S|H NAME.X|
|00004490| 73 68 61 64 6f 77 20 5c | 2d 20 65 6e 63 72 79 70 |shadow \|- encryp|
|000044a0| 74 65 64 20 70 61 73 73 | 77 6f 72 64 20 66 69 6c |ted pass|word fil|
|000044b0| 65 20 72 6f 75 74 69 6e | 65 73 0a 58 2e 53 48 20 |e routin|es.X.SH |
|000044c0| 53 79 6e 74 61 78 0a 58 | 2e 49 50 20 22 22 20 2e |Syntax.X|.IP "" .|
|000044d0| 35 69 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 68 |5i.X#inc|lude <sh|
|000044e0| 61 64 6f 77 2e 68 3e 0a | 58 2e 49 50 20 22 22 20 |adow.h>.|X.IP "" |
|000044f0| 2e 35 69 0a 58 73 74 72 | 75 63 74 20 73 70 77 64 |.5i.Xstr|uct spwd|
|00004500| 20 2a 67 65 74 73 70 65 | 6e 74 28 29 3b 0a 58 2e | *getspe|nt();.X.|
|00004510| 62 72 0a 58 73 74 72 75 | 63 74 20 73 70 77 64 20 |br.Xstru|ct spwd |
|00004520| 2a 67 65 74 73 70 6e 61 | 6d 28 63 68 61 72 20 2a |*getspna|m(char *|
|00004530| 20 6e 61 6d 65 29 3b 0a | 58 2e 62 72 0a 58 76 6f | name);.|X.br.Xvo|
|00004540| 69 64 20 73 65 74 73 70 | 65 6e 74 28 29 3b 0a 58 |id setsp|ent();.X|
|00004550| 2e 62 72 0a 58 76 6f 69 | 64 20 65 6e 64 73 70 65 |.br.Xvoi|d endspe|
|00004560| 6e 74 28 29 3b 0a 58 2e | 62 72 0a 58 73 74 72 75 |nt();.X.|br.Xstru|
|00004570| 63 74 20 73 70 77 64 20 | 2a 66 67 65 74 73 70 65 |ct spwd |*fgetspe|
|00004580| 6e 74 28 46 49 4c 45 20 | 2a 66 70 29 3b 0a 58 2e |nt(FILE |*fp);.X.|
|00004590| 62 72 0a 58 73 74 72 75 | 63 74 20 73 70 77 64 20 |br.Xstru|ct spwd |
|000045a0| 2a 73 67 65 74 73 70 65 | 6e 74 28 63 68 61 72 20 |*sgetspe|nt(char |
|000045b0| 2a 63 70 29 3b 0a 58 2e | 62 72 0a 58 69 6e 74 20 |*cp);.X.|br.Xint |
|000045c0| 70 75 74 73 70 65 6e 74 | 28 73 74 72 75 63 74 20 |putspent|(struct |
|000045d0| 73 70 77 64 20 2a 70 2c | 46 49 4c 45 20 2a 66 70 |spwd *p,|FILE *fp|
|000045e0| 29 3b 0a 58 2e 53 48 20 | 44 45 53 43 52 49 50 54 |);.X.SH |DESCRIPT|
|000045f0| 49 4f 4e 0a 58 2e 49 20 | 73 68 61 64 6f 77 0a 58 |ION.X.I |shadow.X|
|00004600| 6d 61 6e 69 70 75 6c 61 | 74 65 73 20 74 68 65 20 |manipula|tes the |
|00004610| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|00004620| 73 68 61 64 6f 77 20 70 | 61 73 73 77 6f 72 64 20 |shadow p|assword |
|00004630| 66 69 6c 65 2c 0a 58 5c | 66 42 2f 65 74 63 2f 73 |file,.X\|fB/etc/s|
|00004640| 68 61 64 6f 77 5c 66 52 | 2e 0a 58 54 68 65 20 73 |hadow\fR|..XThe s|
|00004650| 74 72 75 63 74 75 72 65 | 20 69 6e 20 74 68 65 20 |tructure| in the |
|00004660| 5c 66 49 23 69 6e 63 6c | 75 64 65 5c 66 52 20 66 |\fI#incl|ude\fR f|
|00004670| 69 6c 65 20 69 73 0a 58 | 2e 49 50 20 22 22 20 2e |ile is.X|.IP "" .|
|00004680| 35 69 0a 58 73 74 72 75 | 63 74 20 73 70 77 64 20 |5i.Xstru|ct spwd |
|00004690| 7b 0a 58 2e 62 72 0a 58 | 09 63 68 61 72 09 2a 73 |{.X.br.X|.char.*s|
|000046a0| 70 5f 6e 61 6d 70 3b 20 | 2f 2a 20 75 73 65 72 20 |p_namp; |/* user |
|000046b0| 6c 6f 67 69 6e 20 6e 61 | 6d 65 20 2a 2f 0a 58 2e |login na|me */.X.|
|000046c0| 62 72 0a 58 09 63 68 61 | 72 09 2a 73 70 5f 70 77 |br.X.cha|r.*sp_pw|
|000046d0| 64 70 3b 20 2f 2a 20 65 | 6e 63 72 79 70 74 65 64 |dp; /* e|ncrypted|
|000046e0| 20 70 61 73 73 77 6f 72 | 64 20 2a 2f 0a 58 2e 62 | passwor|d */.X.b|
|000046f0| 72 0a 58 09 6c 6f 6e 67 | 09 73 70 5f 6c 73 74 63 |r.X.long|.sp_lstc|
|00004700| 68 67 3b 20 2f 2a 20 6c | 61 73 74 20 70 61 73 73 |hg; /* l|ast pass|
|00004710| 77 6f 72 64 20 63 68 61 | 6e 67 65 20 2a 2f 0a 58 |word cha|nge */.X|
|00004720| 2e 62 72 0a 58 09 69 6e | 74 09 73 70 5f 6d 69 6e |.br.X.in|t.sp_min|
|00004730| 3b 20 2f 2a 20 64 61 79 | 73 20 75 6e 74 69 6c 20 |; /* day|s until |
|00004740| 63 68 61 6e 67 65 20 61 | 6c 6c 6f 77 65 64 2e 20 |change a|llowed. |
|00004750| 2a 2f 0a 58 2e 62 72 0a | 58 09 69 6e 74 09 73 70 |*/.X.br.|X.int.sp|
|00004760| 5f 6d 61 78 3b 20 2f 2a | 20 64 61 79 73 20 62 65 |_max; /*| days be|
|00004770| 66 6f 72 65 20 63 68 61 | 6e 67 65 20 72 65 71 75 |fore cha|nge requ|
|00004780| 69 72 65 64 20 2a 2f 0a | 58 2e 62 72 0a 58 09 69 |ired */.|X.br.X.i|
|00004790| 6e 74 09 73 70 5f 77 61 | 72 6e 3b 20 2f 2a 20 64 |nt.sp_wa|rn; /* d|
|000047a0| 61 79 73 20 77 61 72 6e | 69 6e 67 20 66 6f 72 20 |ays warn|ing for |
|000047b0| 65 78 70 69 72 61 74 69 | 6f 6e 20 2a 2f 0a 58 2e |expirati|on */.X.|
|000047c0| 62 72 0a 58 09 69 6e 74 | 09 73 70 5f 69 6e 61 63 |br.X.int|.sp_inac|
|000047d0| 74 3b 20 2f 2a 20 64 61 | 79 73 20 62 65 66 6f 72 |t; /* da|ys befor|
|000047e0| 65 20 61 63 63 6f 75 6e | 74 20 69 6e 61 63 74 69 |e accoun|t inacti|
|000047f0| 76 65 20 2a 2f 0a 58 2e | 62 72 0a 58 09 69 6e 74 |ve */.X.|br.X.int|
|00004800| 09 73 70 5f 65 78 70 69 | 72 65 3b 20 2f 2a 20 64 |.sp_expi|re; /* d|
|00004810| 61 74 65 20 77 68 65 6e | 20 61 63 63 6f 75 6e 74 |ate when| account|
|00004820| 20 65 78 70 69 72 65 73 | 20 2a 2f 0a 58 2e 62 72 | expires| */.X.br|
|00004830| 0a 58 09 69 6e 74 09 73 | 70 5f 66 6c 61 67 3b 20 |.X.int.s|p_flag; |
|00004840| 2f 2a 20 72 65 73 65 72 | 76 65 64 20 66 6f 72 20 |/* reser|ved for |
|00004850| 66 75 74 75 72 65 20 75 | 73 65 20 2a 2f 0a 58 2e |future u|se */.X.|
|00004860| 62 72 0a 58 7d 0a 58 2e | 50 50 0a 58 54 68 65 20 |br.X}.X.|PP.XThe |
|00004870| 6d 65 61 6e 69 6e 67 73 | 20 6f 66 20 65 61 63 68 |meanings| of each|
|00004880| 20 66 69 65 6c 64 20 61 | 72 65 0a 58 2e 49 50 20 | field a|re.X.IP |
|00004890| 22 22 20 2e 35 69 0a 58 | 73 70 5f 6e 61 6d 70 20 |"" .5i.X|sp_namp |
|000048a0| 5c 2d 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 6e 75 |\- point|er to nu|
|000048b0| 6c 6c 2d 74 65 72 6d 69 | 6e 61 74 65 64 20 75 73 |ll-termi|nated us|
|000048c0| 65 72 20 6e 61 6d 65 2e | 0a 58 2e 49 50 20 22 22 |er name.|.X.IP ""|
|000048d0| 20 2e 35 69 0a 58 73 70 | 5f 70 77 64 70 20 5c 2d | .5i.Xsp|_pwdp \-|
|000048e0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 6e 75 6c 6c | pointer| to null|
|000048f0| 2d 74 65 72 6d 69 6e 61 | 74 65 64 20 70 61 73 73 |-termina|ted pass|
|00004900| 77 6f 72 64 2e 0a 58 2e | 49 50 20 22 22 20 2e 35 |word..X.|IP "" .5|
|00004910| 69 0a 58 73 70 5f 6c 73 | 74 63 68 67 20 5c 2d 20 |i.Xsp_ls|tchg \- |
|00004920| 64 61 79 73 20 73 69 6e | 63 65 20 4a 61 6e 20 31 |days sin|ce Jan 1|
|00004930| 2c 20 31 39 37 30 20 70 | 61 73 73 77 6f 72 64 20 |, 1970 p|assword |
|00004940| 77 61 73 20 6c 61 73 74 | 20 63 68 61 6e 67 65 64 |was last| changed|
|00004950| 2e 0a 58 2e 49 50 20 22 | 22 20 2e 35 69 0a 58 73 |..X.IP "|" .5i.Xs|
|00004960| 70 5f 6d 69 6e 20 5c 2d | 20 64 61 79 73 20 62 65 |p_min \-| days be|
|00004970| 66 6f 72 65 20 77 68 69 | 63 68 20 70 61 73 73 77 |fore whi|ch passw|
|00004980| 6f 72 64 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 63 |ord may |not be c|
|00004990| 68 61 6e 67 65 64 2e 0a | 58 2e 49 50 20 22 22 20 |hanged..|X.IP "" |
|000049a0| 2e 35 69 0a 58 73 70 5f | 6d 61 78 20 5c 2d 20 64 |.5i.Xsp_|max \- d|
|000049b0| 61 79 73 20 61 66 74 65 | 72 20 77 68 69 63 68 20 |ays afte|r which |
|000049c0| 70 61 73 73 77 6f 72 64 | 20 6d 75 73 74 20 62 65 |password| must be|
|000049d0| 20 63 68 61 6e 67 65 64 | 2e 0a 58 2e 49 50 20 22 | changed|..X.IP "|
|000049e0| 22 20 2e 35 69 0a 58 73 | 70 5f 77 61 72 6e 20 5c |" .5i.Xs|p_warn \|
|000049f0| 2d 20 64 61 79 73 20 62 | 65 66 6f 72 65 20 70 61 |- days b|efore pa|
|00004a00| 73 73 77 6f 72 64 20 69 | 73 20 74 6f 20 65 78 70 |ssword i|s to exp|
|00004a10| 69 72 65 20 74 68 61 74 | 20 75 73 65 72 20 69 73 |ire that| user is|
|00004a20| 20 77 61 72 6e 65 64 0a | 58 6f 66 20 70 65 6e 64 | warned.|Xof pend|
|00004a30| 69 6e 67 20 70 61 73 73 | 77 6f 72 64 20 65 78 70 |ing pass|word exp|
|00004a40| 69 72 61 74 69 6f 6e 2e | 0a 58 2e 49 50 20 22 22 |iration.|.X.IP ""|
|00004a50| 20 2e 35 69 0a 58 73 70 | 5f 69 6e 61 63 74 20 5c | .5i.Xsp|_inact \|
|00004a60| 2d 20 64 61 79 73 20 61 | 66 74 65 72 20 70 61 73 |- days a|fter pas|
|00004a70| 73 77 6f 72 64 20 65 78 | 70 69 72 65 73 20 74 68 |sword ex|pires th|
|00004a80| 61 74 20 61 63 63 6f 75 | 6e 74 20 69 73 20 63 6f |at accou|nt is co|
|00004a90| 6e 73 69 64 65 72 65 64 | 0a 58 69 6e 61 63 74 69 |nsidered|.Xinacti|
|00004aa0| 76 65 20 61 6e 64 20 64 | 69 73 61 62 6c 65 64 2e |ve and d|isabled.|
|00004ab0| 0a 58 2e 49 50 20 22 22 | 20 2e 35 69 0a 58 73 70 |.X.IP ""| .5i.Xsp|
|00004ac0| 5f 65 78 70 69 72 65 20 | 5c 2d 20 64 61 79 73 20 |_expire |\- days |
|00004ad0| 73 69 6e 63 65 20 4a 61 | 6e 20 31 2c 20 31 39 37 |since Ja|n 1, 197|
|00004ae0| 30 20 74 68 61 74 20 61 | 63 63 6f 75 6e 74 20 77 |0 that a|ccount w|
|00004af0| 69 6c 6c 20 62 65 20 64 | 69 73 61 62 6c 65 64 2e |ill be d|isabled.|
|00004b00| 0a 58 2e 49 50 20 22 22 | 20 2e 35 69 0a 58 73 70 |.X.IP ""| .5i.Xsp|
|00004b10| 5f 66 6c 61 67 20 5c 2d | 20 72 65 73 65 72 76 65 |_flag \-| reserve|
|00004b20| 64 20 66 6f 72 20 66 75 | 74 75 72 65 20 75 73 65 |d for fu|ture use|
|00004b30| 2e 0a 58 2e 53 48 20 44 | 65 73 63 72 69 70 74 69 |..X.SH D|escripti|
|00004b40| 6f 6e 0a 58 5c 66 49 67 | 65 74 73 70 65 6e 74 5c |on.X\fIg|etspent\|
|00004b50| 66 52 2c 20 5c 66 49 67 | 65 74 73 70 6e 61 6d 65 |fR, \fIg|etspname|
|00004b60| 5c 66 52 2c 20 5c 66 49 | 66 67 65 74 73 70 65 6e |\fR, \fI|fgetspen|
|00004b70| 74 5c 66 52 2c 20 61 6e | 64 20 5c 66 49 73 67 65 |t\fR, an|d \fIsge|
|00004b80| 74 73 70 65 6e 74 5c 66 | 52 0a 58 65 61 63 68 20 |tspent\f|R.Xeach |
|00004b90| 72 65 74 75 72 6e 20 61 | 20 70 6f 69 6e 74 65 72 |return a| pointer|
|00004ba0| 20 74 6f 20 61 20 5c 66 | 42 73 74 72 75 63 74 20 | to a \f|Bstruct |
|00004bb0| 73 70 77 64 5c 66 52 2e | 0a 58 5c 66 49 67 65 74 |spwd\fR.|.X\fIget|
|00004bc0| 73 70 65 6e 74 5c 66 52 | 20 72 65 74 75 72 6e 73 |spent\fR| returns|
|00004bd0| 20 74 68 65 0a 58 6e 65 | 78 74 20 65 6e 74 72 79 | the.Xne|xt entry|
|00004be0| 20 66 72 6f 6d 20 74 68 | 65 20 66 69 6c 65 2c 20 | from th|e file, |
|00004bf0| 61 6e 64 20 5c 66 49 66 | 67 65 74 73 70 65 6e 74 |and \fIf|getspent|
|00004c00| 5c 66 52 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |\fR retu|rns the |
|00004c10| 6e 65 78 74 0a 58 65 6e | 74 72 79 20 66 72 6f 6d |next.Xen|try from|
|00004c20| 20 74 68 65 20 67 69 76 | 65 6e 20 73 74 72 65 61 | the giv|en strea|
|00004c30| 6d 2c 20 77 68 69 63 68 | 20 69 73 20 61 73 73 75 |m, which| is assu|
|00004c40| 6d 65 64 20 74 6f 20 62 | 65 20 61 20 66 69 6c 65 |med to b|e a file|
|00004c50| 20 6f 66 0a 58 74 68 65 | 20 70 72 6f 70 65 72 20 | of.Xthe| proper |
|00004c60| 66 6f 72 6d 61 74 2e 0a | 58 5c 66 49 73 67 65 74 |format..|X\fIsget|
|00004c70| 73 70 65 6e 74 5c 66 52 | 20 72 65 74 75 72 6e 73 |spent\fR| returns|
|00004c80| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 61 20 | a point|er to a |
|00004c90| 5c 66 42 73 74 72 75 63 | 74 20 73 70 77 64 5c 66 |\fBstruc|t spwd\f|
|00004ca0| 52 20 75 73 69 6e 67 20 | 74 68 65 0a 58 70 72 6f |R using |the.Xpro|
|00004cb0| 76 69 64 65 64 20 73 74 | 72 69 6e 67 20 61 73 20 |vided st|ring as |
|00004cc0| 69 6e 70 75 74 2e 0a 58 | 5c 66 49 67 65 74 73 70 |input..X|\fIgetsp|
|00004cd0| 6e 61 6d 5c 66 52 20 73 | 65 61 72 63 68 65 73 20 |nam\fR s|earches |
|00004ce0| 66 72 6f 6d 20 74 68 65 | 20 63 75 72 72 65 6e 74 |from the| current|
|00004cf0| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 74 68 65 | positio|n in the|
|00004d00| 20 66 69 6c 65 20 66 6f | 72 0a 58 61 6e 20 65 6e | file fo|r.Xan en|
|00004d10| 74 72 79 20 6d 61 74 63 | 68 69 6e 67 20 5c 66 49 |try matc|hing \fI|
|00004d20| 6e 61 6d 65 5c 66 52 2e | 0a 58 2e 50 50 0a 58 5c |name\fR.|.X.PP.X\|
|00004d30| 66 49 73 65 74 73 70 65 | 6e 74 5c 66 52 20 61 6e |fIsetspe|nt\fR an|
|00004d40| 64 20 5c 66 49 65 6e 64 | 73 70 65 6e 74 5c 66 52 |d \fIend|spent\fR|
|00004d50| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 74 6f 20 | may be |used to |
|00004d60| 62 65 67 69 6e 20 61 6e | 64 20 65 6e 64 2c 0a 58 |begin an|d end,.X|
|00004d70| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2c 20 61 63 |respecti|vely, ac|
|00004d80| 63 65 73 73 20 74 6f 20 | 74 68 65 20 73 68 61 64 |cess to |the shad|
|00004d90| 6f 77 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |ow passw|ord file|
|00004da0| 2e 0a 58 2e 53 48 20 44 | 69 61 67 6e 6f 73 74 69 |..X.SH D|iagnosti|
|00004db0| 63 73 0a 58 52 6f 75 74 | 69 6e 65 73 20 72 65 74 |cs.XRout|ines ret|
|00004dc0| 75 72 6e 20 4e 55 4c 4c | 20 69 66 20 6e 6f 20 6d |urn NULL| if no m|
|00004dd0| 6f 72 65 20 65 6e 74 72 | 69 65 73 20 61 72 65 20 |ore entr|ies are |
|00004de0| 61 76 61 69 6c 61 62 6c | 65 20 6f 72 20 69 66 20 |availabl|e or if |
|00004df0| 61 6e 0a 58 65 72 72 6f | 72 20 6f 63 63 75 72 73 |an.Xerro|r occurs|
|00004e00| 20 64 75 72 69 6e 67 20 | 70 72 6f 63 65 73 73 69 | during |processi|
|00004e10| 6e 67 2e 0a 58 2e 53 48 | 20 43 61 76 65 61 74 73 |ng..X.SH| Caveats|
|00004e20| 0a 58 54 68 65 73 65 20 | 72 6f 75 74 69 6e 65 73 |.XThese |routines|
|00004e30| 20 6d 61 79 20 6f 6e 6c | 79 20 62 65 20 75 73 65 | may onl|y be use|
|00004e40| 64 20 62 79 20 74 68 65 | 20 73 75 70 65 72 20 75 |d by the| super u|
|00004e50| 73 65 72 20 61 73 20 61 | 63 63 65 73 73 20 74 6f |ser as a|ccess to|
|00004e60| 0a 58 74 68 65 20 73 68 | 61 64 6f 77 20 70 61 73 |.Xthe sh|adow pas|
|00004e70| 73 77 6f 72 64 20 66 69 | 6c 65 20 69 73 20 72 65 |sword fi|le is re|
|00004e80| 73 74 72 69 63 74 65 64 | 2e 0a 58 2e 53 48 20 46 |stricted|..X.SH F|
|00004e90| 69 6c 65 73 0a 58 2f 65 | 74 63 2f 73 68 61 64 6f |iles.X/e|tc/shado|
|00004ea0| 77 20 5c 2d 20 65 6e 63 | 72 79 70 74 65 64 20 75 |w \- enc|rypted u|
|00004eb0| 73 65 72 20 70 61 73 73 | 77 6f 72 64 73 0a 58 2e |ser pass|words.X.|
|00004ec0| 53 48 20 53 65 65 20 41 | 6c 73 6f 0a 58 67 65 74 |SH See A|lso.Xget|
|00004ed0| 70 77 65 6e 74 28 33 29 | 2c 0a 58 73 68 61 64 6f |pwent(3)|,.Xshado|
|00004ee0| 77 28 34 29 0a 53 48 41 | 52 5f 45 4f 46 0a 69 66 |w(4).SHA|R_EOF.if|
|00004ef0| 20 74 65 73 74 20 32 38 | 30 31 20 2d 6e 65 20 22 | test 28|01 -ne "|
|00004f00| 60 77 63 20 2d 63 20 3c | 20 27 73 68 61 64 6f 77 |`wc -c <| 'shadow|
|00004f10| 2e 33 27 60 22 0a 74 68 | 65 6e 0a 09 65 63 68 6f |.3'`".th|en..echo|
|00004f20| 20 73 68 61 72 3a 20 22 | 65 72 72 6f 72 20 74 72 | shar: "|error tr|
|00004f30| 61 6e 73 6d 69 74 74 69 | 6e 67 20 27 73 68 61 64 |ansmitti|ng 'shad|
|00004f40| 6f 77 2e 33 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |ow.3'" '|(should |
|00004f50| 68 61 76 65 20 62 65 65 | 6e 20 32 38 30 31 20 63 |have bee|n 2801 c|
|00004f60| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|00004f70| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00004f80| 74 72 61 63 74 69 6e 67 | 20 27 66 61 69 6c 6c 6f |tracting| 'faillo|
|00004f90| 67 2e 34 27 22 20 27 28 | 39 36 39 20 63 68 61 72 |g.4'" '(|969 char|
|00004fa0| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00004fb0| 20 2d 66 20 27 66 61 69 | 6c 6c 6f 67 2e 34 27 0a | -f 'fai|llog.4'.|
|00004fc0| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00004fd0| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00004fe0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00004ff0| 69 6c 65 20 27 66 61 69 | 6c 6c 6f 67 2e 34 27 22 |ile 'fai|llog.4'"|
|00005000| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|00005010| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|00005020| 3e 20 27 66 61 69 6c 6c | 6f 67 2e 34 27 0a 58 2e |> 'faill|og.4'.X.|
|00005030| 5c 22 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |\" Copyr|ight 198|
|00005040| 39 2c 20 31 39 39 30 2c | 20 4a 6f 68 6e 20 46 2e |9, 1990,| John F.|
|00005050| 20 48 61 75 67 68 20 49 | 49 0a 58 2e 5c 22 20 41 | Haugh I|I.X.\" A|
|00005060| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00005070| 65 64 2e 0a 58 2e 5c 22 | 0a 58 2e 5c 22 20 55 73 |ed..X.\"|.X.\" Us|
|00005080| 65 2c 20 64 75 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |e, dupli|cation, |
|00005090| 61 6e 64 20 64 69 73 63 | 6c 6f 73 75 72 65 20 70 |and disc|losure p|
|000050a0| 72 6f 68 69 62 69 74 65 | 64 20 77 69 74 68 6f 75 |rohibite|d withou|
|000050b0| 74 0a 58 2e 5c 22 20 74 | 68 65 20 65 78 70 72 65 |t.X.\" t|he expre|
|000050c0| 73 73 20 77 72 69 74 74 | 65 6e 20 70 65 72 6d 69 |ss writt|en permi|
|000050d0| 73 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 61 75 74 |ssion of| the aut|
|000050e0| 68 6f 72 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 09 40 |hor..X.\|".X.\".@|
|000050f0| 28 23 29 66 61 69 6c 6c | 6f 67 2e 34 09 33 2e 31 |(#)faill|og.4.3.1|
|00005100| 09 30 39 3a 33 34 3a 31 | 38 09 31 31 2f 32 31 2f |.09:34:1|8.11/21/|
|00005110| 39 30 0a 58 2e 5c 22 0a | 58 2e 54 48 20 46 41 49 |90.X.\".|X.TH FAI|
|00005120| 4c 4c 4f 47 20 34 0a 58 | 2e 53 48 20 4e 41 4d 45 |LLOG 4.X|.SH NAME|
|00005130| 0a 58 66 61 69 6c 6c 6f | 67 20 5c 2d 20 4c 6f 67 |.Xfaillo|g \- Log|
|00005140| 69 6e 20 66 61 69 6c 75 | 72 65 20 6c 6f 67 67 69 |in failu|re loggi|
|00005150| 6e 67 20 66 69 6c 65 0a | 58 2e 53 48 20 44 45 53 |ng file.|X.SH DES|
|00005160| 43 52 49 50 54 49 4f 4e | 0a 58 2e 49 20 66 61 69 |CRIPTION|.X.I fai|
|00005170| 6c 6c 6f 67 0a 58 6d 61 | 69 6e 74 61 69 6e 73 20 |llog.Xma|intains |
|00005180| 61 20 63 6f 75 6e 74 20 | 6f 66 20 6c 6f 67 69 6e |a count |of login|
|00005190| 20 66 61 69 6c 75 72 65 | 73 20 61 6e 64 20 74 68 | failure|s and th|
|000051a0| 65 20 6c 69 6d 69 74 73 | 20 66 6f 72 20 65 61 63 |e limits| for eac|
|000051b0| 68 20 61 63 63 6f 75 6e | 74 2e 0a 58 54 68 65 20 |h accoun|t..XThe |
|000051c0| 66 69 6c 65 20 69 73 20 | 66 69 78 65 64 20 6c 65 |file is |fixed le|
|000051d0| 6e 67 74 68 20 72 65 63 | 6f 72 64 2c 20 69 6e 64 |ngth rec|ord, ind|
|000051e0| 65 78 65 64 20 62 79 20 | 6e 75 6d 65 72 69 63 61 |exed by |numerica|
|000051f0| 6c 20 55 49 44 2e 0a 58 | 45 61 63 68 20 72 65 63 |l UID..X|Each rec|
|00005200| 6f 72 64 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |ord cont|ains the|
|00005210| 20 63 6f 75 6e 74 20 6f | 66 20 6c 6f 67 69 6e 20 | count o|f login |
|00005220| 66 61 69 6c 75 72 65 73 | 20 73 69 6e 63 65 20 74 |failures| since t|
|00005230| 68 65 20 6c 61 73 74 0a | 58 73 75 63 63 65 73 73 |he last.|Xsuccess|
|00005240| 66 75 6c 20 6c 6f 67 69 | 6e 3b 0a 58 74 68 65 20 |ful logi|n;.Xthe |
|00005250| 6d 61 78 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |maximum |number o|
|00005260| 66 20 66 61 69 6c 75 72 | 65 73 20 62 65 66 6f 72 |f failur|es befor|
|00005270| 65 20 74 68 65 20 61 63 | 63 6f 75 6e 74 20 69 73 |e the ac|count is|
|00005280| 20 64 69 73 61 62 6c 65 | 64 3b 0a 58 74 68 65 20 | disable|d;.Xthe |
|00005290| 6c 69 6e 65 20 74 68 65 | 20 6c 61 73 74 20 6c 6f |line the| last lo|
|000052a0| 67 69 6e 20 66 61 69 6c | 75 72 65 20 6f 63 63 75 |gin fail|ure occu|
|000052b0| 72 65 64 20 6f 6e 3b 0a | 58 61 6e 64 20 74 68 65 |red on;.|Xand the|
|000052c0| 20 64 61 74 65 20 74 68 | 65 20 6c 61 73 74 20 6c | date th|e last l|
|000052d0| 6f 67 69 6e 20 66 61 69 | 6c 75 72 65 20 6f 63 63 |ogin fai|lure occ|
|000052e0| 75 72 65 64 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |ured..X.|PP.XThe |
|000052f0| 73 74 72 75 63 74 75 72 | 65 20 6f 66 20 74 68 65 |structur|e of the|
|00005300| 20 66 69 6c 65 20 69 73 | 0a 58 2e 44 53 0a 58 0a | file is|.X.DS.X.|
|00005310| 58 20 20 20 20 20 20 20 | 20 73 74 72 75 63 74 09 |X | struct.|
|00005320| 66 61 69 6c 6c 6f 67 20 | 7b 0a 58 20 20 20 20 20 |faillog |{.X |
|00005330| 20 20 20 20 20 20 20 20 | 20 20 20 73 68 6f 72 74 | | short|
|00005340| 20 20 20 66 61 69 6c 5f | 63 6e 74 3b 0a 58 20 20 | fail_|cnt;.X |
|00005350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 68 | | sh|
|00005360| 6f 72 74 20 20 20 66 61 | 69 6c 5f 6d 61 78 3b 0a |ort fa|il_max;.|
|00005370| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00005380| 20 63 68 61 72 20 20 20 | 20 66 61 69 6c 5f 6c 69 | char | fail_li|
|00005390| 6e 65 5b 31 32 5d 3b 0a | 58 20 20 20 20 20 20 20 |ne[12];.|X |
|000053a0| 20 20 20 20 20 20 20 20 | 20 74 69 6d 65 5f 74 20 | | time_t |
|000053b0| 20 66 61 69 6c 5f 74 69 | 6d 65 3b 0a 58 20 20 20 | fail_ti|me;.X |
|000053c0| 20 20 20 20 20 7d 3b 0a | 58 0a 58 2e 44 45 0a 58 | };.|X.X.DE.X|
|000053d0| 2e 53 48 20 46 69 6c 65 | 73 0a 58 2f 75 73 72 2f |.SH File|s.X/usr/|
|000053e0| 61 64 6d 2f 66 61 69 6c | 6c 6f 67 20 5c 2d 20 6c |adm/fail|log \- l|
|000053f0| 6f 67 69 6e 20 66 61 69 | 6c 75 72 65 20 6c 6f 67 |ogin fai|lure log|
|00005400| 0a 58 2e 53 48 20 53 65 | 65 20 41 6c 73 6f 0a 58 |.X.SH Se|e Also.X|
|00005410| 66 61 69 6c 6c 6f 67 28 | 38 29 0a 53 48 41 52 5f |faillog(|8).SHAR_|
|00005420| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 39 36 39 20 |EOF.if t|est 969 |
|00005430| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 66 |-ne "`wc| -c < 'f|
|00005440| 61 69 6c 6c 6f 67 2e 34 | 27 60 22 0a 74 68 65 6e |aillog.4|'`".then|
|00005450| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 72 |..echo s|har: "er|
|00005460| 72 6f 72 20 74 72 61 6e | 73 6d 69 74 74 69 6e 67 |ror tran|smitting|
|00005470| 20 27 66 61 69 6c 6c 6f | 67 2e 34 27 22 20 27 28 | 'faillo|g.4'" '(|
|00005480| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|00005490| 20 39 36 39 20 63 68 61 | 72 61 63 74 65 72 73 29 | 969 cha|racters)|
|000054a0| 27 0a 66 69 0a 66 69 0a | 65 63 68 6f 20 73 68 61 |'.fi.fi.|echo sha|
|000054b0| 72 3a 20 22 65 78 74 72 | 61 63 74 69 6e 67 20 27 |r: "extr|acting '|
|000054c0| 70 61 73 73 77 64 2e 34 | 27 22 20 27 28 32 35 32 |passwd.4|'" '(252|
|000054d0| 30 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |0 charac|ters)'.i|
|000054e0| 66 20 74 65 73 74 20 2d | 66 20 27 70 61 73 73 77 |f test -|f 'passw|
|000054f0| 64 2e 34 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |d.4'.the|n..echo |
|00005500| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00005510| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00005520| 69 6e 67 20 66 69 6c 65 | 20 27 70 61 73 73 77 64 |ing file| 'passwd|
|00005530| 2e 34 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |.4'".els|e.sed 's|
|00005540| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|00005550| 45 4f 46 20 3e 20 27 70 | 61 73 73 77 64 2e 34 27 |EOF > 'p|asswd.4'|
|00005560| 0a 58 2e 5c 22 20 43 6f | 70 79 72 69 67 68 74 20 |.X.\" Co|pyright |
|00005570| 31 39 38 39 2c 20 31 39 | 39 30 2c 20 4a 6f 68 6e |1989, 19|90, John|
|00005580| 20 46 2e 20 48 61 75 67 | 68 20 49 49 0a 58 2e 5c | F. Haug|h II.X.\|
|00005590| 22 20 41 6c 6c 20 72 69 | 67 68 74 73 20 72 65 73 |" All ri|ghts res|
|000055a0| 65 72 76 65 64 2e 0a 58 | 2e 5c 22 0a 58 2e 5c 22 |erved..X|.\".X.\"|
|000055b0| 20 55 73 65 2c 20 64 75 | 70 6c 69 63 61 74 69 6f | Use, du|plicatio|
|000055c0| 6e 2c 20 61 6e 64 20 64 | 69 73 63 6c 6f 73 75 72 |n, and d|isclosur|
|000055d0| 65 20 70 72 6f 68 69 62 | 69 74 65 64 20 77 69 74 |e prohib|ited wit|
|000055e0| 68 6f 75 74 0a 58 2e 5c | 22 20 74 68 65 20 65 78 |hout.X.\|" the ex|
|000055f0| 70 72 65 73 73 20 77 72 | 69 74 74 65 6e 20 70 65 |press wr|itten pe|
|00005600| 72 6d 69 73 73 69 6f 6e | 20 6f 66 20 74 68 65 20 |rmission| of the |
|00005610| 61 75 74 68 6f 72 2e 0a | 58 2e 5c 22 0a 58 2e 5c |author..|X.\".X.\|
|00005620| 22 09 40 28 23 29 70 61 | 73 73 77 64 2e 34 09 33 |".@(#)pa|sswd.4.3|
|00005630| 2e 31 09 30 39 3a 33 34 | 3a 32 34 09 31 31 2f 32 |.1.09:34|:24.11/2|
|00005640| 31 2f 39 30 0a 58 2e 5c | 22 0a 58 2e 54 48 20 50 |1/90.X.\|".X.TH P|
|00005650| 41 53 53 57 44 20 34 0a | 58 2e 53 48 20 4e 41 4d |ASSWD 4.|X.SH NAM|
|00005660| 45 0a 58 70 61 73 73 77 | 64 20 5c 2d 20 54 68 65 |E.Xpassw|d \- The|
|00005670| 20 70 61 73 73 77 6f 72 | 64 20 66 69 6c 65 0a 58 | passwor|d file.X|
|00005680| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00005690| 58 2e 49 20 70 61 73 73 | 77 64 0a 58 63 6f 6e 74 |X.I pass|wd.Xcont|
|000056a0| 61 69 6e 73 20 76 61 72 | 69 6f 75 73 20 70 69 65 |ains var|ious pie|
|000056b0| 63 65 73 20 6f 66 20 69 | 6e 66 6f 72 6d 61 74 69 |ces of i|nformati|
|000056c0| 6f 6e 20 66 6f 72 20 65 | 61 63 68 20 75 73 65 72 |on for e|ach user|
|000056d0| 20 61 63 63 6f 75 6e 74 | 2e 0a 58 49 6e 63 6c 75 | account|..XInclu|
|000056e0| 64 65 64 20 69 73 0a 58 | 2e 49 50 20 22 22 20 2e |ded is.X|.IP "" .|
|000056f0| 35 69 0a 58 4c 6f 67 69 | 6e 20 6e 61 6d 65 0a 58 |5i.XLogi|n name.X|
|00005700| 2e 49 50 20 22 22 20 2e | 35 69 0a 58 4f 70 74 69 |.IP "" .|5i.XOpti|
|00005710| 6f 6e 61 6c 20 65 6e 63 | 72 79 70 74 65 64 20 70 |onal enc|rypted p|
|00005720| 61 73 73 77 6f 72 64 0a | 58 2e 49 50 20 22 22 20 |assword.|X.IP "" |
|00005730| 2e 35 69 0a 58 4e 75 6d | 65 72 69 63 61 6c 20 75 |.5i.XNum|erical u|
|00005740| 73 65 72 20 49 44 0a 58 | 2e 49 50 20 22 22 20 2e |ser ID.X|.IP "" .|
|00005750| 35 69 0a 58 4e 75 6d 65 | 72 69 63 61 6c 20 67 72 |5i.XNume|rical gr|
|00005760| 6f 75 70 20 49 44 0a 58 | 2e 49 50 20 22 22 20 2e |oup ID.X|.IP "" .|
|00005770| 35 69 0a 58 55 73 65 72 | 20 6e 61 6d 65 20 6f 72 |5i.XUser| name or|
|00005780| 20 63 6f 6d 6d 65 6e 74 | 20 66 69 65 6c 64 0a 58 | comment| field.X|
|00005790| 2e 49 50 20 22 22 20 2e | 35 69 0a 58 55 73 65 72 |.IP "" .|5i.XUser|
|000057a0| 20 68 6f 6d 65 20 64 69 | 72 65 63 74 6f 72 79 0a | home di|rectory.|
|000057b0| 58 2e 49 50 20 22 22 20 | 2e 35 69 0a 58 55 73 65 |X.IP "" |.5i.XUse|
|000057c0| 72 20 63 6f 6d 6d 61 6e | 64 20 69 6e 74 65 72 70 |r comman|d interp|
|000057d0| 72 65 74 65 72 0a 58 2e | 50 50 0a 58 54 68 65 20 |reter.X.|PP.XThe |
|000057e0| 70 61 73 73 77 6f 72 64 | 20 66 69 65 6c 64 20 6d |password| field m|
|000057f0| 61 79 20 6e 6f 74 20 62 | 65 20 66 69 6c 6c 65 64 |ay not b|e filled|
|00005800| 20 69 66 20 73 68 61 64 | 6f 77 20 70 61 73 73 77 | if shad|ow passw|
|00005810| 6f 72 64 73 0a 58 68 61 | 76 65 20 62 65 65 6e 20 |ords.Xha|ve been |
|00005820| 65 6e 61 62 6c 65 64 2e | 0a 58 49 66 20 73 68 61 |enabled.|.XIf sha|
|00005830| 64 6f 77 20 70 61 73 73 | 77 6f 72 64 73 20 61 72 |dow pass|words ar|
|00005840| 65 20 62 65 69 6e 67 20 | 75 73 65 64 2c 20 74 68 |e being |used, th|
|00005850| 65 20 65 6e 63 72 79 70 | 74 65 64 20 70 61 73 73 |e encryp|ted pass|
|00005860| 77 6f 72 64 20 77 69 6c | 6c 0a 58 62 65 20 66 6f |word wil|l.Xbe fo|
|00005870| 75 6e 64 20 69 6e 20 5c | 66 42 2f 65 74 63 2f 73 |und in \|fB/etc/s|
|00005880| 68 61 64 6f 77 5c 66 52 | 2e 0a 58 54 68 65 20 65 |hadow\fR|..XThe e|
|00005890| 6e 63 72 79 70 65 64 20 | 70 61 73 73 77 6f 72 64 |ncryped |password|
|000058a0| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 31 33 20 | consist|s of 13 |
|000058b0| 63 68 61 72 61 63 74 65 | 72 73 20 66 72 6f 6d 20 |characte|rs from |
|000058c0| 74 68 65 0a 58 36 34 20 | 63 68 61 72 61 63 74 65 |the.X64 |characte|
|000058d0| 72 20 61 6c 70 68 61 62 | 65 74 0a 58 61 20 74 68 |r alphab|et.Xa th|
|000058e0| 72 75 20 7a 2c 20 41 20 | 74 68 72 75 20 5a 2c 20 |ru z, A |thru Z, |
|000058f0| 30 20 74 68 72 75 20 39 | 2c 20 5c 2e 20 61 6e 64 |0 thru 9|, \. and|
|00005900| 20 2f 2e 0a 58 52 65 66 | 65 72 20 74 6f 20 5c 66 | /..XRef|er to \f|
|00005910| 49 63 72 79 70 74 28 33 | 29 5c 66 52 20 66 6f 72 |Icrypt(3|)\fR for|
|00005920| 20 64 65 74 61 69 6c 73 | 20 6f 6e 20 68 6f 77 20 | details| on how |
|00005930| 74 68 69 73 20 73 74 72 | 69 6e 67 20 69 73 0a 58 |this str|ing is.X|
|00005940| 69 6e 74 65 72 70 72 65 | 74 65 64 2e 0a 58 2e 50 |interpre|ted..X.P|
|00005950| 50 0a 58 41 6e 20 6f 70 | 74 69 6f 6e 61 6c 20 70 |P.XAn op|tional p|
|00005960| 61 73 73 77 6f 72 64 20 | 61 67 65 20 73 74 72 69 |assword |age stri|
|00005970| 6e 67 20 6d 61 79 20 66 | 6f 6c 6c 6f 77 20 74 68 |ng may f|ollow th|
|00005980| 65 20 65 6e 63 72 79 70 | 74 65 64 0a 58 70 61 73 |e encryp|ted.Xpas|
|00005990| 73 77 6f 72 64 2c 20 73 | 65 70 61 72 61 74 65 64 |sword, s|eparated|
|000059a0| 20 62 79 20 61 20 63 6f | 6d 6d 61 2c 20 66 72 6f | by a co|mma, fro|
|000059b0| 6d 20 74 68 65 20 73 61 | 6d 65 20 61 6c 70 68 61 |m the sa|me alpha|
|000059c0| 62 65 74 0a 58 61 73 20 | 74 68 65 20 70 61 73 73 |bet.Xas |the pass|
|000059d0| 77 6f 72 64 20 69 74 73 | 65 6c 66 2e 0a 58 54 68 |word its|elf..XTh|
|000059e0| 65 20 66 69 72 73 74 20 | 63 68 61 72 61 63 74 65 |e first |characte|
|000059f0| 72 20 67 69 76 65 73 20 | 74 68 65 20 6e 75 6d 62 |r gives |the numb|
|00005a00| 65 72 20 6f 66 20 77 65 | 65 6b 73 20 64 75 72 69 |er of we|eks duri|
|00005a10| 6e 67 20 77 68 69 63 68 | 20 74 68 65 0a 58 70 61 |ng which| the.Xpa|
|00005a20| 73 73 77 6f 72 64 20 69 | 73 20 76 61 6c 69 64 2e |ssword i|s valid.|
|00005a30| 0a 58 54 68 65 20 73 65 | 63 6f 6e 64 20 63 68 61 |.XThe se|cond cha|
|00005a40| 72 61 63 74 65 72 20 67 | 69 76 65 73 20 74 68 65 |racter g|ives the|
|00005a50| 20 6e 75 6d 62 65 72 20 | 6f 66 20 77 65 65 6b 73 | number |of weeks|
|00005a60| 20 77 68 69 63 68 20 6d | 75 73 74 20 70 61 73 73 | which m|ust pass|
|00005a70| 0a 58 62 65 66 6f 72 65 | 20 74 68 65 20 75 73 65 |.Xbefore| the use|
|00005a80| 72 20 69 73 20 70 65 72 | 6d 69 74 74 65 64 20 74 |r is per|mitted t|
|00005a90| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 70 61 73 |o change| the pas|
|00005aa0| 73 77 6f 72 64 2e 0a 58 | 54 68 65 20 6c 61 73 74 |sword..X|The last|
|00005ab0| 20 74 77 6f 20 63 68 61 | 72 61 63 74 65 72 73 20 | two cha|racters |
|00005ac0| 67 69 76 65 20 74 68 65 | 20 77 65 65 6b 20 73 69 |give the| week si|
|00005ad0| 6e 63 65 20 4a 61 6e 20 | 31 39 37 30 20 77 68 65 |nce Jan |1970 whe|
|00005ae0| 6e 20 74 68 65 0a 58 70 | 61 73 73 77 6f 72 64 20 |n the.Xp|assword |
|00005af0| 77 61 73 20 6c 61 73 74 | 20 63 68 61 6e 67 65 64 |was last| changed|
|00005b00| 2e 0a 58 57 68 65 6e 20 | 74 68 65 20 6e 75 6d 62 |..XWhen |the numb|
|00005b10| 65 72 20 6f 66 20 77 65 | 65 6b 73 20 64 75 72 69 |er of we|eks duri|
|00005b20| 6e 67 20 77 68 69 63 68 | 20 74 68 65 20 70 61 73 |ng which| the pas|
|00005b30| 73 77 6f 72 64 20 69 73 | 20 76 61 6c 69 64 0a 58 |sword is| valid.X|
|00005b40| 68 61 76 65 20 70 61 73 | 73 65 64 2c 20 74 68 65 |have pas|sed, the|
|00005b50| 20 75 73 65 72 20 77 69 | 6c 6c 20 62 65 20 72 65 | user wi|ll be re|
|00005b60| 71 75 69 72 65 64 20 74 | 6f 20 70 72 6f 76 69 64 |quired t|o provid|
|00005b70| 65 20 61 20 6e 65 77 0a | 58 70 61 73 73 77 6f 72 |e a new.|Xpasswor|
|00005b80| 64 2e 0a 58 2e 50 50 0a | 58 54 68 65 20 63 6f 6d |d..X.PP.|XThe com|
|00005b90| 6d 65 6e 74 20 66 69 65 | 6c 64 20 69 73 20 75 73 |ment fie|ld is us|
|00005ba0| 65 64 20 62 79 20 76 61 | 72 69 6f 75 73 20 73 79 |ed by va|rious sy|
|00005bb0| 73 74 65 6d 20 75 74 69 | 6c 69 74 69 65 73 2c 20 |stem uti|lities, |
|00005bc0| 73 75 63 68 20 61 73 0a | 58 5c 66 49 66 69 6e 67 |such as.|X\fIfing|
|00005bd0| 65 72 28 31 29 5c 66 52 | 2e 0a 58 54 68 72 65 65 |er(1)\fR|..XThree|
|00005be0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 76 61 6c 75 | additio|nal valu|
|00005bf0| 65 73 20 6d 61 79 20 62 | 65 20 70 72 65 73 65 6e |es may b|e presen|
|00005c00| 74 20 69 6e 20 74 68 65 | 20 63 6f 6d 6d 65 6e 74 |t in the| comment|
|00005c10| 20 66 69 65 6c 64 2e 0a | 58 54 68 65 79 20 61 72 | field..|XThey ar|
|00005c20| 65 0a 58 2e 49 50 20 22 | 22 20 2e 35 69 0a 58 70 |e.X.IP "|" .5i.Xp|
|00005c30| 72 69 3d 20 5c 2d 20 73 | 65 74 20 69 6e 69 74 69 |ri= \- s|et initi|
|00005c40| 61 6c 20 76 61 6c 75 65 | 20 6f 66 20 6e 69 63 65 |al value| of nice|
|00005c50| 0a 58 2e 49 50 20 22 22 | 20 2e 35 69 0a 58 75 6d |.X.IP ""| .5i.Xum|
|00005c60| 61 73 6b 3d 20 5c 2d 20 | 73 65 74 20 69 6e 69 74 |ask= \- |set init|
|00005c70| 69 61 6c 20 76 61 6c 75 | 65 20 6f 66 20 75 6d 61 |ial valu|e of uma|
|00005c80| 73 6b 0a 58 2e 49 50 20 | 22 22 20 2e 35 69 0a 58 |sk.X.IP |"" .5i.X|
|00005c90| 75 6c 69 6d 69 74 3d 20 | 5c 2d 20 73 65 74 20 69 |ulimit= |\- set i|
|00005ca0| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 20 6f 66 20 |nitial v|alue of |
|00005cb0| 75 6c 69 6d 69 74 0a 58 | 2e 50 50 0a 58 54 68 65 |ulimit.X|.PP.XThe|
|00005cc0| 73 65 20 66 69 65 6c 64 | 73 20 61 72 65 20 73 65 |se field|s are se|
|00005cd0| 70 61 72 61 74 65 64 20 | 66 72 6f 6d 20 65 61 63 |parated |from eac|
|00005ce0| 68 20 6f 74 68 65 72 20 | 61 6e 64 20 66 72 6f 6d |h other |and from|
|00005cf0| 20 61 6e 79 20 6f 74 68 | 65 72 0a 58 63 6f 6d 6d | any oth|er.Xcomm|
|00005d00| 65 6e 74 20 66 69 65 6c | 64 20 62 79 20 61 20 63 |ent fiel|d by a c|
|00005d10| 6f 6d 6d 61 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |omma..X.|PP.XThe |
|00005d20| 68 6f 6d 65 20 64 69 72 | 65 63 74 6f 72 79 20 66 |home dir|ectory f|
|00005d30| 69 65 6c 64 20 70 72 6f | 76 69 64 65 73 20 74 68 |ield pro|vides th|
|00005d40| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 69 6e |e name o|f the in|
|00005d50| 69 74 69 61 6c 0a 58 77 | 6f 72 6b 69 6e 67 20 64 |itial.Xw|orking d|
|00005d60| 69 72 65 63 74 6f 72 79 | 2e 0a 58 5c 66 49 4c 6f |irectory|..X\fILo|
|00005d70| 67 69 6e 5c 66 52 20 75 | 73 65 73 20 74 68 69 73 |gin\fR u|ses this|
|00005d80| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 74 6f 20 | informa|tion to |
|00005d90| 73 65 74 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |set the |value of|
|00005da0| 0a 58 74 68 65 20 5c 66 | 42 48 4f 4d 45 5c 66 52 |.Xthe \f|BHOME\fR|
|00005db0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 61 6c 20 76 | environ|mental v|
|00005dc0| 61 72 69 61 62 6c 65 2e | 0a 58 2e 50 50 0a 58 54 |ariable.|.X.PP.XT|
|00005dd0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 69 6e 74 65 72 |he comma|nd inter|
|00005de0| 70 72 65 74 65 72 20 66 | 69 65 6c 64 20 70 72 6f |preter f|ield pro|
|00005df0| 76 69 64 65 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |vides th|e name o|
|00005e00| 66 20 74 68 65 20 75 73 | 65 72 27 73 0a 58 63 6f |f the us|er's.Xco|
|00005e10| 6d 6d 61 6e 64 20 6c 61 | 6e 67 75 61 67 65 20 69 |mmand la|nguage i|
|00005e20| 6e 74 65 72 70 72 65 74 | 65 72 2c 20 6f 72 20 74 |nterpret|er, or t|
|00005e30| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 69 |he name |of the i|
|00005e40| 6e 69 74 69 61 6c 20 70 | 72 6f 67 72 61 6d 0a 58 |nitial p|rogram.X|
|00005e50| 74 6f 20 65 78 65 63 75 | 74 65 2e 0a 58 5c 66 49 |to execu|te..X\fI|
|00005e60| 4c 6f 67 69 6e 5c 66 52 | 20 75 73 65 73 20 74 68 |Login\fR| uses th|
|00005e70| 69 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |is infor|mation t|
|00005e80| 6f 20 73 65 74 20 74 68 | 65 20 76 61 6c 75 65 20 |o set th|e value |
|00005e90| 6f 66 20 74 68 65 0a 58 | 5c 66 42 53 48 45 4c 4c |of the.X|\fBSHELL|
|00005ea0| 5c 66 52 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 61 |\fR envi|ronmenta|
|00005eb0| 6c 20 76 61 72 69 61 62 | 6c 65 2e 0a 58 49 66 20 |l variab|le..XIf |
|00005ec0| 74 68 69 73 20 66 69 65 | 6c 64 20 69 73 20 65 6d |this fie|ld is em|
|00005ed0| 70 74 79 2c 20 69 74 20 | 64 65 66 61 75 6c 74 73 |pty, it |defaults|
|00005ee0| 20 74 6f 20 74 68 65 20 | 76 61 6c 75 65 20 5c 66 | to the |value \f|
|00005ef0| 42 2f 62 69 6e 2f 73 68 | 5c 66 52 2e 0a 58 2e 53 |B/bin/sh|\fR..X.S|
|00005f00| 48 20 46 69 6c 65 73 0a | 58 2f 65 74 63 2f 70 61 |H Files.|X/etc/pa|
|00005f10| 73 73 77 64 20 5c 2d 20 | 75 73 65 72 20 61 63 63 |sswd \- |user acc|
|00005f20| 6f 75 6e 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ount inf|ormation|
|00005f30| 0a 58 2e 53 48 20 53 65 | 65 20 41 6c 73 6f 0a 58 |.X.SH Se|e Also.X|
|00005f40| 6c 6f 67 69 6e 28 31 29 | 2c 0a 58 70 61 73 73 77 |login(1)|,.Xpassw|
|00005f50| 64 28 31 29 2c 0a 58 73 | 75 28 31 29 2c 0a 58 73 |d(1),.Xs|u(1),.Xs|
|00005f60| 75 6c 6f 67 69 6e 28 31 | 4d 29 2c 0a 58 73 68 61 |ulogin(1|M),.Xsha|
|00005f70| 64 6f 77 28 34 29 2c 0a | 58 70 77 63 6f 6e 76 28 |dow(4),.|Xpwconv(|
|00005f80| 38 29 2c 0a 58 70 77 75 | 6e 63 6f 6e 76 28 38 29 |8),.Xpwu|nconv(8)|
|00005f90| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00005fa0| 74 20 32 35 32 30 20 2d | 6e 65 20 22 60 77 63 20 |t 2520 -|ne "`wc |
|00005fb0| 2d 63 20 3c 20 27 70 61 | 73 73 77 64 2e 34 27 60 |-c < 'pa|sswd.4'`|
|00005fc0| 22 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |".then..|echo sha|
|00005fd0| 72 3a 20 22 65 72 72 6f | 72 20 74 72 61 6e 73 6d |r: "erro|r transm|
|00005fe0| 69 74 74 69 6e 67 20 27 | 70 61 73 73 77 64 2e 34 |itting '|passwd.4|
|00005ff0| 27 22 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |'" '(sho|uld have|
|00006000| 20 62 65 65 6e 20 32 35 | 32 30 20 63 68 61 72 61 | been 25|20 chara|
|00006010| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 0a 65 63 |cters)'.|fi.fi.ec|
|00006020| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00006030| 74 69 6e 67 20 27 70 6f | 72 74 74 69 6d 65 2e 34 |ting 'po|rttime.4|
|00006040| 27 22 20 27 28 31 38 37 | 32 20 63 68 61 72 61 63 |'" '(187|2 charac|
|00006050| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|00006060| 66 20 27 70 6f 72 74 74 | 69 6d 65 2e 34 27 0a 74 |f 'portt|ime.4'.t|
|00006070| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00006080| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|00006090| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000060a0| 6c 65 20 27 70 6f 72 74 | 74 69 6d 65 2e 34 27 22 |le 'port|time.4'"|
|000060b0| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|000060c0| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|000060d0| 3e 20 27 70 6f 72 74 74 | 69 6d 65 2e 34 27 0a 58 |> 'portt|ime.4'.X|
|000060e0| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|000060f0| 38 39 2c 20 31 39 39 30 | 2c 20 4a 6f 68 6e 20 46 |89, 1990|, John F|
|00006100| 2e 20 48 61 75 67 68 20 | 49 49 0a 58 2e 5c 22 20 |. Haugh |II.X.\" |
|00006110| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00006120| 76 65 64 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 20 55 |ved..X.\|".X.\" U|
|00006130| 73 65 2c 20 64 75 70 6c | 69 63 61 74 69 6f 6e 2c |se, dupl|ication,|
|00006140| 20 61 6e 64 20 64 69 73 | 63 6c 6f 73 75 72 65 20 | and dis|closure |
|00006150| 70 72 6f 68 69 62 69 74 | 65 64 20 77 69 74 68 6f |prohibit|ed witho|
|00006160| 75 74 0a 58 2e 5c 22 20 | 74 68 65 20 65 78 70 72 |ut.X.\" |the expr|
|00006170| 65 73 73 20 77 72 69 74 | 74 65 6e 20 70 65 72 6d |ess writ|ten perm|
|00006180| 69 73 73 69 6f 6e 20 6f | 66 20 74 68 65 20 61 75 |ission o|f the au|
|00006190| 74 68 6f 72 2e 0a 58 2e | 5c 22 0a 58 2e 5c 22 09 |thor..X.|\".X.\".|
|000061a0| 40 28 23 29 70 6f 72 74 | 74 69 6d 65 2e 34 09 33 |@(#)port|time.4.3|
|000061b0| 2e 32 09 30 38 3a 33 36 | 3a 30 37 09 32 2f 38 2f |.2.08:36|:07.2/8/|
|000061c0| 39 31 0a 58 2e 5c 22 0a | 58 2e 54 48 20 50 4f 52 |91.X.\".|X.TH POR|
|000061d0| 54 54 49 4d 45 20 34 0a | 58 2e 53 48 20 4e 41 4d |TTIME 4.|X.SH NAM|
|000061e0| 45 0a 58 70 6f 72 74 74 | 69 6d 65 20 5c 2d 20 70 |E.Xportt|ime \- p|
|000061f0| 6f 72 74 20 61 63 63 65 | 73 73 20 74 69 6d 65 20 |ort acce|ss time |
|00006200| 66 69 6c 65 0a 58 2e 53 | 48 20 44 45 53 43 52 49 |file.X.S|H DESCRI|
|00006210| 50 54 49 4f 4e 0a 58 2e | 49 20 70 6f 72 74 74 69 |PTION.X.|I portti|
|00006220| 6d 65 0a 58 63 6f 6e 74 | 61 69 6e 73 20 61 20 6c |me.Xcont|ains a l|
|00006230| 69 73 74 20 6f 66 20 74 | 74 79 20 64 65 76 69 63 |ist of t|ty devic|
|00006240| 65 73 2c 20 75 73 65 72 | 20 6e 61 6d 65 73 2c 20 |es, user| names, |
|00006250| 61 6e 64 20 70 65 72 6d | 69 74 74 65 64 20 6c 6f |and perm|itted lo|
|00006260| 67 69 6e 20 74 69 6d 65 | 73 2e 0a 58 2e 50 50 0a |gin time|s..X.PP.|
|00006270| 58 45 61 63 68 20 65 6e | 74 72 79 20 63 6f 6e 73 |XEach en|try cons|
|00006280| 69 73 74 73 20 6f 66 20 | 74 68 72 65 65 20 63 6f |ists of |three co|
|00006290| 6c 6f 6e 20 73 65 70 61 | 72 61 74 65 64 20 66 69 |lon sepa|rated fi|
|000062a0| 65 6c 64 73 2e 0a 58 54 | 68 65 20 66 69 72 73 74 |elds..XT|he first|
|000062b0| 20 66 69 65 6c 64 20 69 | 73 20 61 20 63 6f 6d 6d | field i|s a comm|
|000062c0| 61 20 73 65 70 61 72 61 | 74 65 64 20 6c 69 73 74 |a separa|ted list|
|000062d0| 20 6f 66 20 74 74 79 20 | 64 65 76 69 63 65 73 2c | of tty |devices,|
|000062e0| 0a 58 6f 72 20 61 6e 20 | 61 73 74 65 72 69 73 6b |.Xor an |asterisk|
|000062f0| 20 74 6f 20 69 6e 64 69 | 63 61 74 65 20 74 68 61 | to indi|cate tha|
|00006300| 74 20 61 6c 6c 20 74 74 | 79 20 64 65 76 69 63 65 |t all tt|y device|
|00006310| 73 20 61 72 65 20 6d 61 | 74 63 68 65 64 20 62 79 |s are ma|tched by|
|00006320| 20 74 68 69 73 20 65 6e | 74 72 79 2e 0a 58 54 68 | this en|try..XTh|
|00006330| 65 20 73 65 63 6f 6e 64 | 20 66 69 65 6c 64 20 69 |e second| field i|
|00006340| 73 20 61 20 63 6f 6d 6d | 61 20 73 65 70 61 72 61 |s a comm|a separa|
|00006350| 74 65 64 20 6c 69 73 74 | 20 6f 66 20 75 73 65 72 |ted list| of user|
|00006360| 20 6e 61 6d 65 73 2c 20 | 6f 72 20 61 6e 0a 58 61 | names, |or an.Xa|
|00006370| 73 74 65 72 69 73 6b 20 | 74 6f 20 69 6e 64 69 63 |sterisk |to indic|
|00006380| 61 74 65 64 20 74 68 61 | 74 20 61 6c 6c 20 75 73 |ated tha|t all us|
|00006390| 65 72 20 6e 61 6d 65 73 | 20 61 72 65 20 6d 61 74 |er names| are mat|
|000063a0| 63 68 65 64 20 62 79 20 | 74 68 69 73 20 65 6e 74 |ched by |this ent|
|000063b0| 72 79 2e 0a 58 54 68 65 | 20 74 68 69 72 64 20 66 |ry..XThe| third f|
|000063c0| 69 65 6c 64 20 69 73 20 | 61 20 63 6f 6d 6d 61 20 |ield is |a comma |
|000063d0| 73 65 70 61 72 61 74 65 | 64 20 6c 69 73 74 20 6f |separate|d list o|
|000063e0| 66 20 70 65 72 6d 69 74 | 74 65 64 20 61 63 63 65 |f permit|ted acce|
|000063f0| 73 73 20 74 69 6d 65 73 | 2e 0a 58 2e 50 50 0a 58 |ss times|..X.PP.X|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.