home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2289 < prev    next >
SHell self-extracting ARchive  |  1990-12-28  |  34.8 KB

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: 2289

ConfidenceProgramDetectionMatch TypeSupport
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 50 61 | 73 73 77 6f 72 64 20 53 |hadow Pa|ssword S|
|00000060| 75 69 74 65 20 28 70 61 | 72 74 20 35 20 6f 66 20 |uite (pa|rt 5 of |
|00000070| 35 29 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |5).Messa|ge-ID: <|
|00000080| 31 38 38 31 34 40 72 70 | 70 33 38 36 2e 63 61 63 |18814@rp|p386.cac|
|00000090| 74 75 73 2e 6f 72 67 3e | 0a 44 61 74 65 3a 20 31 |tus.org>|.Date: 1|
|000000a0| 32 20 44 65 63 20 39 30 | 20 31 38 3a 34 39 3a 33 |2 Dec 90| 18:49:3|
|000000b0| 35 20 47 4d 54 0a 0a 0a | 23 21 20 2f 62 69 6e 2f |5 GMT...|#! /bin/|
|000000c0| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|000000d0| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2c 20 6d 65 |hell arc|hive, me|
|000000e0| 61 6e 69 6e 67 3a 0a 23 | 20 31 2e 20 52 65 6d 6f |aning:.#| 1. Remo|
|000000f0| 76 65 20 65 76 65 72 79 | 74 68 69 6e 67 20 61 62 |ve every|thing ab|
|00000100| 6f 76 65 20 74 68 65 20 | 23 21 20 2f 62 69 6e 2f |ove the |#! /bin/|
|00000110| 73 68 20 6c 69 6e 65 2e | 0a 23 20 32 2e 20 53 61 |sh line.|.# 2. Sa|
|00000120| 76 65 20 74 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |ve the r|esulting|
|00000130| 20 74 65 78 74 20 69 6e | 20 61 20 66 69 6c 65 2e | text in| a file.|
|00000140| 0a 23 20 33 2e 20 45 78 | 65 63 75 74 65 20 74 68 |.# 3. Ex|ecute th|
|00000150| 65 20 66 69 6c 65 20 77 | 69 74 68 20 2f 62 69 6e |e file w|ith /bin|
|00000160| 2f 73 68 20 28 6e 6f 74 | 20 63 73 68 29 20 74 6f |/sh (not| csh) to|
|00000170| 20 63 72 65 61 74 65 3a | 0a 23 09 63 68 61 67 65 | create:|.#.chage|
|00000180| 2e 31 0a 23 09 63 68 66 | 6e 2e 31 0a 23 09 63 68 |.1.#.chf|n.1.#.ch|
|00000190| 73 68 2e 31 0a 23 09 6c | 6f 67 69 6e 2e 31 0a 23 |sh.1.#.l|ogin.1.#|
|000001a0| 09 70 61 73 73 77 64 2e | 31 0a 23 09 73 75 2e 31 |.passwd.|1.#.su.1|
|000001b0| 0a 23 09 73 68 61 64 6f | 77 2e 33 0a 23 09 66 61 |.#.shado|w.3.#.fa|
|000001c0| 69 6c 6c 6f 67 2e 34 0a | 23 09 70 61 73 73 77 64 |illog.4.|#.passwd|
|000001d0| 2e 34 0a 23 09 70 6f 72 | 74 74 69 6d 65 2e 34 0a |.4.#.por|ttime.4.|
|000001e0| 23 09 73 68 61 64 6f 77 | 2e 34 0a 23 09 66 61 69 |#.shadow|.4.#.fai|
|000001f0| 6c 6c 6f 67 2e 38 0a 23 | 09 70 77 63 6f 6e 76 2e |llog.8.#|.pwconv.|
|00000200| 38 0a 23 09 70 77 75 6e | 63 6f 6e 76 2e 38 0a 23 |8.#.pwun|conv.8.#|
|00000210| 09 73 75 6c 6f 67 69 6e | 2e 38 0a 23 20 54 68 69 |.sulogin|.8.# Thi|
|00000220| 73 20 61 72 63 68 69 76 | 65 20 63 72 65 61 74 65 |s archiv|e create|
|00000230| 64 3a 20 57 65 64 20 44 | 65 63 20 31 32 20 31 32 |d: Wed D|ec 12 12|
|00000240| 3a 33 37 3a 32 36 20 31 | 39 39 30 0a 23 20 42 79 |:37:26 1|990.# By|
|00000250| 3a 09 4a 6f 68 6e 20 46 | 20 48 61 75 67 68 20 49 |:.John F| Haugh I|
|00000260| 49 20 28 52 69 76 65 72 | 20 50 61 72 69 73 68 65 |I (River| Parishe|
|00000270| 73 20 50 72 6f 67 72 61 | 6d 6d 69 6e 67 2c 20 41 |s Progra|mming, A|
|00000280| 75 73 74 69 6e 20 54 58 | 29 0a 65 78 70 6f 72 74 |ustin TX|).export|
|00000290| 20 50 41 54 48 3b 20 50 | 41 54 48 3d 2f 62 69 6e | PATH; P|ATH=/bin|
|000002a0| 3a 2f 75 73 72 2f 62 69 | 6e 3a 24 50 41 54 48 0a |:/usr/bi|n:$PATH.|
|000002b0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|000002c0| 61 63 74 69 6e 67 20 27 | 63 68 61 67 65 2e 31 27 |acting '|chage.1'|
|000002d0| 22 20 27 28 31 38 37 39 | 20 63 68 61 72 61 63 74 |" '(1879| charact|
|000002e0| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|000002f0| 20 27 63 68 61 67 65 2e | 31 27 0a 74 68 65 6e 0a | 'chage.|1'.then.|
|00000300| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00000310| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00000320| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00000330| 63 68 61 67 65 2e 31 27 | 22 0a 65 6c 73 65 0a 73 |chage.1'|".else.s|
|00000340| 65 64 20 27 73 2f 5e 58 | 2f 2f 27 20 3c 3c 20 5c |ed 's/^X|//' << \|
|00000350| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 63 68 61 67 |SHAR_EOF| > 'chag|
|00000360| 65 2e 31 27 0a 58 2e 5c | 22 20 43 6f 70 79 72 69 |e.1'.X.\|" Copyri|
|00000370| 67 68 74 20 31 39 39 30 | 2c 20 4a 6f 68 6e 20 46 |ght 1990|, John F|
|00000380| 2e 20 48 61 75 67 68 20 | 49 49 0a 58 2e 5c 22 20 |. Haugh |II.X.\" |
|00000390| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000003a0| 76 65 64 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 20 55 |ved..X.\|".X.\" U|
|000003b0| 73 65 2c 20 64 75 70 6c | 69 63 61 74 69 6f 6e 2c |se, dupl|ication,|
|000003c0| 20 61 6e 64 20 64 69 73 | 63 6c 6f 73 75 72 65 20 | and dis|closure |
|000003d0| 70 72 6f 68 69 62 69 74 | 65 64 20 77 69 74 68 6f |prohibit|ed witho|
|000003e0| 75 74 0a 58 2e 5c 22 20 | 74 68 65 20 65 78 70 72 |ut.X.\" |the expr|
|000003f0| 65 73 73 20 77 72 69 74 | 74 65 6e 20 70 65 72 6d |ess writ|ten perm|
|00000400| 69 73 73 69 6f 6e 20 6f | 66 20 74 68 65 20 61 75 |ission o|f the au|
|00000410| 74 68 6f 72 2e 0a 58 2e | 5c 22 0a 58 2e 5c 22 09 |thor..X.|\".X.\".|
|00000420| 40 28 23 29 63 68 61 67 | 65 2e 31 09 32 2e 31 2e |@(#)chag|e.1.2.1.|
|00000430| 31 2e 31 09 30 39 3a 30 | 37 3a 30 35 09 31 31 2f |1.1.09:0|7:05.11/|
|00000440| 32 36 2f 39 30 0a 58 2e | 5c 22 0a 58 2e 54 48 20 |26/90.X.|\".X.TH |
|00000450| 43 48 41 47 45 20 31 0a | 58 2e 53 48 20 4e 41 4d |CHAGE 1.|X.SH NAM|
|00000460| 45 0a 58 63 68 61 67 65 | 20 5c 2d 20 63 68 61 6e |E.Xchage| \- chan|
|00000470| 67 65 20 75 73 65 72 20 | 70 61 73 73 77 6f 72 64 |ge user |password|
|00000480| 20 65 78 70 69 72 61 74 | 65 20 69 6e 66 6f 72 6d | expirat|e inform|
|00000490| 61 74 69 6f 6e 0a 58 2e | 53 48 20 53 59 4e 4f 50 |ation.X.|SH SYNOP|
|000004a0| 53 49 53 0a 58 5c 66 42 | 63 68 61 67 65 5c 66 52 |SIS.X\fB|chage\fR|
|000004b0| 20 5b 20 5c 66 42 2d 6d | 20 5c 66 49 6d 69 6e 64 | [ \fB-m| \fImind|
|000004c0| 61 79 73 5c 66 52 20 5d | 20 5b 20 5c 66 42 2d 4d |ays\fR ]| [ \fB-M|
|000004d0| 20 5c 66 49 6d 61 78 64 | 61 79 73 5c 66 52 20 5d | \fImaxd|ays\fR ]|
|000004e0| 20 5b 20 5c 66 42 2d 64 | 20 5c 66 49 6c 61 73 74 | [ \fB-d| \fIlast|
|000004f0| 64 61 79 5c 66 52 20 5d | 20 5c 66 49 75 73 65 72 |day\fR ]| \fIuser|
|00000500| 5c 66 52 0a 58 2e 53 48 | 20 44 45 53 43 52 49 50 |\fR.X.SH| DESCRIP|
|00000510| 54 49 4f 4e 0a 58 5c 66 | 49 63 68 61 67 65 5c 66 |TION.X\f|Ichage\f|
|00000520| 20 63 68 61 6e 67 65 73 | 20 74 68 65 20 6e 75 6d | changes| the num|
|00000530| 62 65 72 20 6f 66 20 64 | 61 79 73 20 62 65 74 77 |ber of d|ays betw|
|00000540| 65 65 6e 20 70 61 73 73 | 77 6f 72 64 20 63 68 61 |een pass|word cha|
|00000550| 6e 67 65 73 20 61 6e 64 | 20 74 68 65 0a 58 64 61 |nges and| the.Xda|
|00000560| 74 65 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 70 |te of th|e last p|
|00000570| 61 73 73 77 6f 72 64 20 | 63 68 61 6e 67 65 2e 0a |assword |change..|
|00000580| 58 54 68 69 73 20 69 6e | 66 6f 72 6d 61 74 69 6f |XThis in|formatio|
|00000590| 6e 20 69 73 20 75 73 65 | 64 20 62 79 20 74 68 65 |n is use|d by the|
|000005a0| 20 73 79 73 74 65 6d 20 | 74 6f 20 64 65 74 65 72 | system |to deter|
|000005b0| 6d 69 6e 65 20 77 68 65 | 6e 20 61 20 75 73 65 72 |mine whe|n a user|
|000005c0| 20 6d 75 73 74 0a 58 63 | 68 61 6e 67 65 20 74 68 | must.Xc|hange th|
|000005d0| 65 69 72 20 70 61 73 73 | 77 6f 72 64 2e 0a 58 54 |eir pass|word..XT|
|000005e0| 68 65 20 5c 66 49 63 68 | 61 67 65 5c 66 20 63 6f |he \fIch|age\f co|
|000005f0| 6d 6d 61 6e 64 20 69 73 | 20 72 65 73 74 72 69 63 |mmand is| restric|
|00000600| 74 65 64 20 74 6f 20 74 | 68 65 20 72 6f 6f 74 20 |ted to t|he root |
|00000610| 75 73 65 72 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |user..X.|PP.XThe |
|00000620| 76 61 6c 75 65 20 6f 66 | 20 5c 66 49 6d 69 6e 64 |value of| \fImind|
|00000630| 61 79 73 5c 66 20 69 73 | 20 74 68 65 20 6d 69 6e |ays\f is| the min|
|00000640| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 6f 66 20 64 |imum num|ber of d|
|00000650| 61 79 73 20 62 65 74 77 | 65 65 6e 0a 58 70 61 73 |ays betw|een.Xpas|
|00000660| 73 77 6f 72 64 20 63 68 | 61 6e 67 65 73 2e 0a 58 |sword ch|anges..X|
|00000670| 41 20 76 61 6c 75 65 20 | 6f 66 20 7a 65 72 6f 20 |A value |of zero |
|00000680| 66 6f 72 20 74 68 69 73 | 20 66 69 65 6c 64 20 69 |for this| field i|
|00000690| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 74 68 |ndicates| that th|
|000006a0| 65 20 75 73 65 72 20 6d | 61 79 20 63 68 61 6e 67 |e user m|ay chang|
|000006b0| 65 0a 58 68 65 72 20 70 | 61 73 73 77 6f 72 64 20 |e.Xher p|assword |
|000006c0| 61 74 20 61 6e 79 20 74 | 69 6d 65 2e 0a 58 2e 50 |at any t|ime..X.P|
|000006d0| 50 0a 58 54 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |P.XThe v|alue of |
|000006e0| 5c 66 49 6d 61 78 64 61 | 79 73 5c 66 20 69 73 20 |\fImaxda|ys\f is |
|000006f0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |the maxi|mum numb|
|00000700| 65 72 20 6f 66 20 64 61 | 79 73 20 64 75 72 69 6e |er of da|ys durin|
|00000710| 67 0a 58 77 68 69 63 68 | 20 61 20 70 61 73 73 77 |g.Xwhich| a passw|
|00000720| 6f 72 64 20 69 73 20 76 | 61 6c 69 64 2e 0a 58 57 |ord is v|alid..XW|
|00000730| 68 65 6e 20 5c 66 49 6d | 61 78 64 61 79 73 5c 66 |hen \fIm|axdays\f|
|00000740| 20 70 6c 75 73 20 5c 66 | 49 6c 61 73 74 64 61 79 | plus \f|Ilastday|
|00000750| 5c 66 20 69 73 20 6c 65 | 73 73 20 74 68 61 6e 20 |\f is le|ss than |
|00000760| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 61 79 2c |the curr|ent day,|
|00000770| 0a 58 74 68 65 20 75 73 | 65 72 20 77 69 6c 6c 20 |.Xthe us|er will |
|00000780| 62 65 20 72 65 71 75 69 | 72 65 64 20 74 6f 20 63 |be requi|red to c|
|00000790| 68 61 6e 67 65 20 68 65 | 72 20 70 61 73 73 77 6f |hange he|r passwo|
|000007a0| 72 64 20 62 65 66 6f 72 | 65 20 62 65 69 6e 67 0a |rd befor|e being.|
|000007b0| 58 61 62 6c 65 20 74 6f | 20 75 73 65 20 68 65 72 |Xable to| use her|
|000007c0| 20 61 63 63 6f 75 6e 74 | 2e 0a 58 2e 50 50 0a 58 | account|..X.PP.X|
|000007d0| 54 68 65 20 76 61 6c 75 | 65 20 6f 66 20 5c 66 49 |The valu|e of \fI|
|000007e0| 6c 61 73 74 64 61 79 5c | 66 20 69 73 20 74 68 65 |lastday\|f is the|
|000007f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 61 79 73 20 | number |of days |
|00000800| 73 69 6e 63 65 20 4a 61 | 6e 75 61 72 79 20 31 73 |since Ja|nuary 1s|
|00000810| 74 2c 0a 58 31 39 37 30 | 20 77 68 65 6e 20 74 68 |t,.X1970| when th|
|00000820| 65 20 70 61 73 73 77 6f | 72 64 20 77 61 73 20 6c |e passwo|rd was l|
|00000830| 61 73 74 20 63 68 61 6e | 67 65 64 2e 0a 58 2e 50 |ast chan|ged..X.P|
|00000840| 50 0a 58 41 6c 6c 20 6f | 66 20 74 68 65 20 61 62 |P.XAll o|f the ab|
|00000850| 6f 76 65 20 76 61 6c 75 | 65 73 20 61 72 65 20 73 |ove valu|es are s|
|00000860| 74 6f 72 65 64 20 65 78 | 61 63 74 6c 79 20 61 73 |tored ex|actly as|
|00000870| 20 64 61 79 73 20 77 68 | 65 6e 20 74 68 65 20 73 | days wh|en the s|
|00000880| 68 61 64 6f 77 0a 58 70 | 61 73 73 77 6f 72 64 20 |hadow.Xp|assword |
|00000890| 66 69 6c 65 20 69 73 20 | 75 73 65 64 2c 20 62 75 |file is |used, bu|
|000008a0| 74 20 61 72 65 20 63 6f | 6e 76 65 72 74 65 64 20 |t are co|nverted |
|000008b0| 74 6f 20 61 6e 64 20 66 | 72 6f 6d 20 77 65 65 6b |to and f|rom week|
|000008c0| 73 20 77 68 65 6e 20 74 | 68 65 0a 58 73 74 61 6e |s when t|he.Xstan|
|000008d0| 64 61 72 64 20 70 61 73 | 73 77 6f 72 64 20 66 69 |dard pas|sword fi|
|000008e0| 6c 65 20 69 73 20 75 73 | 65 64 2e 0a 58 42 65 63 |le is us|ed..XBec|
|000008f0| 61 75 73 65 20 6f 66 20 | 74 68 69 73 20 63 6f 6e |ause of |this con|
|00000900| 76 65 72 73 69 6f 6e 2c | 20 72 6f 75 6e 64 69 6e |version,| roundin|
|00000910| 67 20 65 72 72 6f 72 73 | 20 6d 61 79 20 72 65 73 |g errors| may res|
|00000920| 75 6c 74 2e 0a 58 2e 50 | 50 0a 58 49 66 20 6e 6f |ult..X.P|P.XIf no|
|00000930| 6e 65 20 6f 66 20 74 68 | 65 20 6f 70 74 69 6f 6e |ne of th|e option|
|00000940| 73 20 61 72 65 20 73 65 | 6c 65 63 74 65 64 2c 20 |s are se|lected, |
|00000950| 5c 66 49 63 68 61 67 65 | 5c 66 20 6f 70 65 72 61 |\fIchage|\f opera|
|00000960| 74 65 73 20 69 6e 20 61 | 6e 20 69 6e 74 65 72 61 |tes in a|n intera|
|00000970| 63 74 69 76 65 0a 58 66 | 61 73 68 69 6f 6e 2c 20 |ctive.Xf|ashion, |
|00000980| 70 72 6f 6d 70 74 69 6e | 67 20 74 68 65 20 75 73 |promptin|g the us|
|00000990| 65 72 20 77 69 74 68 20 | 74 68 65 20 63 75 72 72 |er with |the curr|
|000009a0| 65 6e 74 20 76 61 6c 75 | 65 73 20 66 6f 72 20 61 |ent valu|es for a|
|000009b0| 6c 6c 20 6f 66 20 74 68 | 65 20 66 69 65 6c 64 73 |ll of th|e fields|
|000009c0| 2e 0a 58 45 6e 74 65 72 | 20 74 68 65 20 6e 65 77 |..XEnter| the new|
|000009d0| 20 76 61 6c 75 65 20 74 | 6f 20 63 68 61 6e 67 65 | value t|o change|
|000009e0| 20 74 68 65 20 66 69 65 | 6c 64 2c 20 6f 72 20 6c | the fie|ld, or l|
|000009f0| 65 61 76 65 20 74 68 65 | 20 6c 69 6e 65 20 62 6c |eave the| line bl|
|00000a00| 61 6e 6b 20 74 6f 20 75 | 73 65 0a 58 74 68 65 20 |ank to u|se.Xthe |
|00000a10| 63 75 72 72 65 6e 74 20 | 76 61 6c 75 65 2e 0a 58 |current |value..X|
|00000a20| 54 68 65 20 63 75 72 72 | 65 6e 74 20 76 61 6c 75 |The curr|ent valu|
|00000a30| 65 20 69 73 20 64 69 73 | 70 6c 61 79 65 64 20 62 |e is dis|played b|
|00000a40| 65 74 77 65 65 6e 20 61 | 20 70 61 69 72 20 6f 66 |etween a| pair of|
|00000a50| 20 5c 66 42 5b 20 5d 5c | 66 20 6d 61 72 6b 73 2e | \fB[ ]\|f marks.|
|00000a60| 0a 58 2e 53 48 20 46 69 | 6c 65 73 0a 58 2f 65 74 |.X.SH Fi|les.X/et|
|00000a70| 63 2f 70 61 73 73 77 64 | 20 5c 2d 20 75 73 65 72 |c/passwd| \- user|
|00000a80| 20 61 63 63 6f 75 6e 74 | 20 69 6e 66 6f 72 6d 61 | account| informa|
|00000a90| 74 69 6f 6e 0a 58 2e 62 | 72 0a 58 2f 65 74 63 2f |tion.X.b|r.X/etc/|
|00000aa0| 73 68 61 64 6f 77 20 5c | 2d 20 73 68 61 64 6f 77 |shadow \|- shadow|
|00000ab0| 20 75 73 65 72 20 61 63 | 63 6f 75 6e 74 20 69 6e | user ac|count in|
|00000ac0| 66 6f 72 6d 61 74 69 6f | 6e 0a 58 2e 53 48 20 53 |formatio|n.X.SH S|
|00000ad0| 65 65 20 41 6c 73 6f 0a | 58 70 61 73 73 77 64 28 |ee Also.|Xpasswd(|
|00000ae0| 34 29 2c 0a 58 73 68 61 | 64 6f 77 28 34 29 0a 53 |4),.Xsha|dow(4).S|
|00000af0| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|00000b00| 31 38 37 39 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 |1879 -ne| "`wc -c|
|00000b10| 20 3c 20 27 63 68 61 67 | 65 2e 31 27 60 22 0a 74 | < 'chag|e.1'`".t|
|00000b20| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00000b30| 22 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 |"error t|ransmitt|
|00000b40| 69 6e 67 20 27 63 68 61 | 67 65 2e 31 27 22 20 27 |ing 'cha|ge.1'" '|
|00000b50| 28 73 68 6f 75 6c 64 20 | 68 61 76 65 20 62 65 65 |(should |have bee|
|00000b60| 6e 20 31 38 37 39 20 63 | 68 61 72 61 63 74 65 72 |n 1879 c|haracter|
|00000b70| 73 29 27 0a 66 69 0a 66 | 69 0a 65 63 68 6f 20 73 |s)'.fi.f|i.echo s|
|00000b80| 68 61 72 3a 20 22 65 78 | 74 72 61 63 74 69 6e 67 |har: "ex|tracting|
|00000b90| 20 27 63 68 66 6e 2e 31 | 27 22 20 27 28 31 36 30 | 'chfn.1|'" '(160|
|00000ba0| 32 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |2 charac|ters)'.i|
|00000bb0| 66 20 74 65 73 74 20 2d | 66 20 27 63 68 66 6e 2e |f test -|f 'chfn.|
|00000bc0| 31 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |1'.then.|.echo sh|
|00000bd0| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00000be0| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00000bf0| 67 20 66 69 6c 65 20 27 | 63 68 66 6e 2e 31 27 22 |g file '|chfn.1'"|
|00000c00| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|00000c10| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|00000c20| 3e 20 27 63 68 66 6e 2e | 31 27 0a 58 2e 5c 22 20 |> 'chfn.|1'.X.\" |
|00000c30| 43 6f 70 79 72 69 67 68 | 74 20 31 39 39 30 2c 20 |Copyrigh|t 1990, |
|00000c40| 4a 6f 68 6e 20 46 2e 20 | 48 61 75 67 68 20 49 49 |John F. |Haugh II|
|00000c50| 0a 58 2e 5c 22 20 41 6c | 6c 20 72 69 67 68 74 73 |.X.\" Al|l rights|
|00000c60| 20 72 65 73 65 72 76 65 | 64 2e 0a 58 2e 5c 22 0a | reserve|d..X.\".|
|00000c70| 58 2e 5c 22 20 55 73 65 | 2c 20 64 75 70 6c 69 63 |X.\" Use|, duplic|
|00000c80| 61 74 69 6f 6e 2c 20 61 | 6e 64 20 64 69 73 63 6c |ation, a|nd discl|
|00000c90| 6f 73 75 72 65 20 70 72 | 6f 68 69 62 69 74 65 64 |osure pr|ohibited|
|00000ca0| 20 77 69 74 68 6f 75 74 | 0a 58 2e 5c 22 20 74 68 | without|.X.\" th|
|00000cb0| 65 20 65 78 70 72 65 73 | 73 20 77 72 69 74 74 65 |e expres|s writte|
|00000cc0| 6e 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6f 66 20 |n permis|sion of |
|00000cd0| 74 68 65 20 61 75 74 68 | 6f 72 2e 0a 58 2e 5c 22 |the auth|or..X.\"|
|00000ce0| 0a 58 2e 5c 22 09 40 28 | 23 29 63 68 66 6e 2e 31 |.X.\".@(|#)chfn.1|
|00000cf0| 09 32 2e 31 2e 31 2e 31 | 09 30 39 3a 30 37 3a 30 |.2.1.1.1|.09:07:0|
|00000d00| 37 09 31 31 2f 32 36 2f | 39 30 0a 58 2e 5c 22 0a |7.11/26/|90.X.\".|
|00000d10| 58 2e 54 48 20 43 48 46 | 4e 20 31 0a 58 2e 53 48 |X.TH CHF|N 1.X.SH|
|00000d20| 20 4e 41 4d 45 0a 58 63 | 68 66 6e 20 5c 2d 20 63 | NAME.Xc|hfn \- c|
|00000d30| 68 61 6e 67 65 20 75 73 | 65 72 20 6e 61 6d 65 20 |hange us|er name |
|00000d40| 61 6e 64 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 0a |and info|rmation.|
|00000d50| 58 2e 53 48 20 53 59 4e | 4f 50 53 49 53 0a 58 5c |X.SH SYN|OPSIS.X\|
|00000d60| 66 42 63 68 66 6e 5c 66 | 52 20 5b 20 5c 66 42 2d |fBchfn\f|R [ \fB-|
|00000d70| 66 20 5c 66 49 66 75 6c | 6c 5f 6e 61 6d 65 5c 66 |f \fIful|l_name\f|
|00000d80| 52 20 5d 20 5b 20 5c 66 | 42 2d 72 20 5c 66 49 72 |R ] [ \f|B-r \fIr|
|00000d90| 6f 6f 6d 5f 6e 6f 5c 66 | 52 20 5d 0a 58 2e 62 72 |oom_no\f|R ].X.br|
|00000da0| 0a 58 5b 20 5c 66 42 2d | 77 20 5c 66 49 77 6f 72 |.X[ \fB-|w \fIwor|
|00000db0| 6b 5f 70 68 5c 66 52 20 | 5d 20 5b 20 5c 66 42 2d |k_ph\fR |] [ \fB-|
|00000dc0| 68 20 5c 66 49 68 6f 6d | 65 5f 70 68 5c 66 52 20 |h \fIhom|e_ph\fR |
|00000dd0| 5d 20 5b 20 5c 66 42 2d | 6f 20 5c 66 49 6f 74 68 |] [ \fB-|o \fIoth|
|00000de0| 65 72 5c 66 52 20 5d 0a | 58 5b 20 5c 66 49 75 73 |er\fR ].|X[ \fIus|
|00000df0| 65 72 5c 66 52 20 5d 0a | 58 2e 53 48 20 44 45 53 |er\fR ].|X.SH DES|
|00000e00| 43 52 49 50 54 49 4f 4e | 0a 58 5c 66 49 63 68 66 |CRIPTION|.X\fIchf|
|00000e10| 6e 5c 66 20 63 68 61 6e | 67 65 73 20 75 73 65 72 |n\f chan|ges user|
|00000e20| 20 66 75 6c 6c 6e 61 6d | 65 2c 20 6f 66 66 69 63 | fullnam|e, offic|
|00000e30| 65 20 6e 75 6d 62 65 72 | 2c 20 6f 66 66 69 63 65 |e number|, office|
|00000e40| 20 65 78 74 65 6e 73 69 | 6f 6e 2c 20 61 6e 64 20 | extensi|on, and |
|00000e50| 68 6f 6d 65 0a 58 70 68 | 6f 6e 65 20 6e 75 6d 62 |home.Xph|one numb|
|00000e60| 65 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |er infor|mation f|
|00000e70| 6f 72 20 61 20 75 73 65 | 72 27 73 20 61 63 63 6f |or a use|r's acco|
|00000e80| 75 6e 74 2e 20 0a 58 54 | 68 69 73 20 69 6e 66 6f |unt. .XT|his info|
|00000e90| 72 6d 61 74 69 6f 6e 20 | 69 73 20 74 79 70 69 63 |rmation |is typic|
|00000ea0| 61 6c 6c 79 20 70 72 69 | 6e 74 65 64 20 62 79 20 |ally pri|nted by |
|00000eb0| 5c 66 49 66 69 6e 67 65 | 72 28 31 29 5c 66 20 61 |\fIfinge|r(1)\f a|
|00000ec0| 6e 64 20 73 69 6d 69 6c | 69 61 72 0a 58 70 72 6f |nd simil|iar.Xpro|
|00000ed0| 67 72 61 6d 73 2e 0a 58 | 41 20 6e 6f 72 6d 61 6c |grams..X|A normal|
|00000ee0| 20 75 73 65 72 20 6d 61 | 79 20 6f 6e 6c 79 20 63 | user ma|y only c|
|00000ef0| 68 61 6e 67 65 20 74 68 | 65 20 66 69 65 6c 64 73 |hange th|e fields|
|00000f00| 20 66 6f 72 20 74 68 65 | 69 72 20 6f 77 6e 20 61 | for the|ir own a|
|00000f10| 63 63 6f 75 6e 74 2c 0a | 58 74 68 65 20 73 75 70 |ccount,.|Xthe sup|
|00000f20| 65 72 20 75 73 65 72 20 | 6d 61 79 20 63 68 61 6e |er user |may chan|
|00000f30| 67 65 20 74 68 65 20 66 | 69 65 6c 64 73 20 66 6f |ge the f|ields fo|
|00000f40| 72 20 61 6e 79 20 61 63 | 63 6f 75 6e 74 2e 0a 58 |r any ac|count..X|
|00000f50| 41 6c 73 6f 2c 20 6f 6e | 6c 79 20 74 68 65 20 73 |Also, on|ly the s|
|00000f60| 75 70 65 72 20 75 73 65 | 72 20 6d 61 79 20 75 73 |uper use|r may us|
|00000f70| 65 20 74 68 65 20 5c 66 | 42 2d 6f 5c 66 20 6f 70 |e the \f|B-o\f op|
|00000f80| 74 69 6f 6e 20 74 6f 20 | 63 68 61 6e 67 65 20 74 |tion to |change t|
|00000f90| 68 65 0a 58 75 6e 64 65 | 66 69 6e 65 64 20 70 6f |he.Xunde|fined po|
|00000fa0| 72 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 47 43 |rtions o|f the GC|
|00000fb0| 4f 53 20 66 69 65 6c 64 | 2e 0a 58 2e 50 50 0a 58 |OS field|..X.PP.X|
|00000fc0| 54 68 65 20 6f 6e 6c 79 | 20 72 65 73 74 72 69 63 |The only| restric|
|00000fd0| 74 69 6f 6e 73 20 70 6c | 61 63 65 64 20 6f 6e 20 |tions pl|aced on |
|00000fe0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00000ff0| 74 68 65 20 66 69 65 6c | 64 73 20 69 73 20 74 68 |the fiel|ds is th|
|00001000| 61 74 20 6e 6f 0a 58 63 | 6f 6e 74 72 6f 6c 20 63 |at no.Xc|ontrol c|
|00001010| 68 61 72 61 63 74 65 72 | 73 20 6d 61 79 20 62 65 |haracter|s may be|
|00001020| 20 70 72 65 73 65 6e 74 | 2c 20 6e 6f 72 20 61 6e | present|, nor an|
|00001030| 79 20 6f 66 20 63 6f 6d | 6d 61 2c 20 63 6f 6c 6f |y of com|ma, colo|
|00001040| 6e 2c 20 6f 72 20 65 71 | 75 61 6c 20 73 69 67 6e |n, or eq|ual sign|
|00001050| 2e 0a 58 54 68 65 20 5c | 66 49 6f 74 68 65 72 5c |..XThe \|fIother\|
|00001060| 66 20 66 69 65 6c 64 20 | 64 6f 65 73 20 6e 6f 74 |f field |does not|
|00001070| 20 68 61 76 65 20 74 68 | 69 73 20 72 65 73 74 72 | have th|is restr|
|00001080| 69 63 74 69 6f 6e 2c 20 | 61 6e 64 20 69 73 20 75 |iction, |and is u|
|00001090| 73 65 64 20 74 6f 0a 58 | 73 74 6f 72 65 20 61 63 |sed to.X|store ac|
|000010a0| 63 6f 75 6e 74 69 6e 67 | 20 69 6e 66 6f 72 6d 61 |counting| informa|
|000010b0| 74 69 6f 6e 20 75 73 65 | 64 20 62 79 20 6f 74 68 |tion use|d by oth|
|000010c0| 65 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 2e |er appli|cations.|
|000010d0| 0a 58 2e 50 50 0a 58 49 | 66 20 6e 6f 6e 65 20 6f |.X.PP.XI|f none o|
|000010e0| 66 20 74 68 65 20 6f 70 | 74 69 6f 6e 73 20 61 72 |f the op|tions ar|
|000010f0| 65 20 73 65 6c 65 63 74 | 65 64 2c 20 5c 66 49 63 |e select|ed, \fIc|
|00001100| 68 66 6e 5c 66 20 6f 70 | 65 72 61 74 65 73 20 69 |hfn\f op|erates i|
|00001110| 6e 20 61 6e 20 69 6e 74 | 65 72 61 63 74 69 76 65 |n an int|eractive|
|00001120| 0a 58 66 61 73 68 69 6f | 6e 2c 20 70 72 6f 6d 70 |.Xfashio|n, promp|
|00001130| 74 69 6e 67 20 74 68 65 | 20 75 73 65 72 20 77 69 |ting the| user wi|
|00001140| 74 68 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 76 |th the c|urrent v|
|00001150| 61 6c 75 65 73 20 66 6f | 72 20 61 6c 6c 20 6f 66 |alues fo|r all of|
|00001160| 20 74 68 65 20 66 69 65 | 6c 64 73 2e 0a 58 45 6e | the fie|lds..XEn|
|00001170| 74 65 72 20 74 68 65 20 | 6e 65 77 20 76 61 6c 75 |ter the |new valu|
|00001180| 65 20 74 6f 20 63 68 61 | 6e 67 65 20 74 68 65 20 |e to cha|nge the |
|00001190| 66 69 65 6c 64 2c 20 6f | 72 20 6c 65 61 76 65 20 |field, o|r leave |
|000011a0| 74 68 65 20 6c 69 6e 65 | 20 62 6c 61 6e 6b 20 74 |the line| blank t|
|000011b0| 6f 20 75 73 65 0a 58 74 | 68 65 20 63 75 72 72 65 |o use.Xt|he curre|
|000011c0| 6e 74 20 76 61 6c 75 65 | 2e 0a 58 54 68 65 20 63 |nt value|..XThe c|
|000011d0| 75 72 72 65 6e 74 20 76 | 61 6c 75 65 20 69 73 20 |urrent v|alue is |
|000011e0| 64 69 73 70 6c 61 79 65 | 64 20 62 65 74 77 65 65 |displaye|d betwee|
|000011f0| 6e 20 61 20 70 61 69 72 | 20 6f 66 20 5c 66 42 5b |n a pair| of \fB[|
|00001200| 20 5d 5c 66 20 6d 61 72 | 6b 73 2e 0a 58 57 69 74 | ]\f mar|ks..XWit|
|00001210| 68 6f 75 74 20 6f 70 74 | 69 6f 6e 73 2c 20 63 68 |hout opt|ions, ch|
|00001220| 66 6e 20 70 72 6f 6d 70 | 74 73 20 66 6f 72 20 74 |fn promp|ts for t|
|00001230| 68 65 20 63 75 72 72 65 | 6e 74 20 75 73 65 72 20 |he curre|nt user |
|00001240| 61 63 63 6f 75 6e 74 2e | 0a 58 2e 53 48 20 46 69 |account.|.X.SH Fi|
|00001250| 6c 65 73 0a 58 2f 65 74 | 63 2f 70 61 73 73 77 64 |les.X/et|c/passwd|
|00001260| 20 5c 2d 20 75 73 65 72 | 20 61 63 63 6f 75 6e 74 | \- user| account|
|00001270| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 58 2e 53 | informa|tion.X.S|
|00001280| 48 20 53 65 65 20 41 6c | 73 6f 0a 58 70 61 73 73 |H See Al|so.Xpass|
|00001290| 77 64 28 34 29 0a 53 48 | 41 52 5f 45 4f 46 0a 69 |wd(4).SH|AR_EOF.i|
|000012a0| 66 20 74 65 73 74 20 31 | 36 30 32 20 2d 6e 65 20 |f test 1|602 -ne |
|000012b0| 22 60 77 63 20 2d 63 20 | 3c 20 27 63 68 66 6e 2e |"`wc -c |< 'chfn.|
|000012c0| 31 27 60 22 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |1'`".the|n..echo |
|000012d0| 73 68 61 72 3a 20 22 65 | 72 72 6f 72 20 74 72 61 |shar: "e|rror tra|
|000012e0| 6e 73 6d 69 74 74 69 6e | 67 20 27 63 68 66 6e 2e |nsmittin|g 'chfn.|
|000012f0| 31 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |1'" '(sh|ould hav|
|00001300| 65 20 62 65 65 6e 20 31 | 36 30 32 20 63 68 61 72 |e been 1|602 char|
|00001310| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 0a 65 |acters)'|.fi.fi.e|
|00001320| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|00001330| 63 74 69 6e 67 20 27 63 | 68 73 68 2e 31 27 22 20 |cting 'c|hsh.1'" |
|00001340| 27 28 31 34 37 39 20 63 | 68 61 72 61 63 74 65 72 |'(1479 c|haracter|
|00001350| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00001360| 63 68 73 68 2e 31 27 0a | 74 68 65 6e 0a 09 65 63 |chsh.1'.|then..ec|
|00001370| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00001380| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00001390| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 63 68 73 |isting f|ile 'chs|
|000013a0| 68 2e 31 27 22 0a 65 6c | 73 65 0a 73 65 64 20 27 |h.1'".el|se.sed '|
|000013b0| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |s/^X//' |<< \SHAR|
|000013c0| 5f 45 4f 46 20 3e 20 27 | 63 68 73 68 2e 31 27 0a |_EOF > '|chsh.1'.|
|000013d0| 58 2e 5c 22 20 43 6f 70 | 79 72 69 67 68 74 20 31 |X.\" Cop|yright 1|
|000013e0| 39 39 30 2c 20 4a 6f 68 | 6e 20 46 2e 20 48 61 75 |990, Joh|n F. Hau|
|000013f0| 67 68 20 49 49 0a 58 2e | 5c 22 20 41 6c 6c 20 72 |gh II.X.|\" All r|
|00001400| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0a |ights re|served..|
|00001410| 58 2e 5c 22 0a 58 2e 5c | 22 20 55 73 65 2c 20 64 |X.\".X.\|" Use, d|
|00001420| 75 70 6c 69 63 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |uplicati|on, and |
|00001430| 64 69 73 63 6c 6f 73 75 | 72 65 20 70 72 6f 68 69 |disclosu|re prohi|
|00001440| 62 69 74 65 64 20 77 69 | 74 68 6f 75 74 0a 58 2e |bited wi|thout.X.|
|00001450| 5c 22 20 74 68 65 20 65 | 78 70 72 65 73 73 20 77 |\" the e|xpress w|
|00001460| 72 69 74 74 65 6e 20 70 | 65 72 6d 69 73 73 69 6f |ritten p|ermissio|
|00001470| 6e 20 6f 66 20 74 68 65 | 20 61 75 74 68 6f 72 2e |n of the| author.|
|00001480| 0a 58 2e 5c 22 0a 58 2e | 5c 22 09 40 28 23 29 63 |.X.\".X.|\".@(#)c|
|00001490| 68 73 68 2e 31 09 31 2e | 31 2e 31 2e 31 09 30 39 |hsh.1.1.|1.1.1.09|
|000014a0| 3a 30 37 3a 30 38 09 31 | 31 2f 32 36 2f 39 30 0a |:07:08.1|1/26/90.|
|000014b0| 58 2e 5c 22 0a 58 2e 54 | 48 20 43 48 53 48 20 31 |X.\".X.T|H CHSH 1|
|000014c0| 0a 58 2e 53 48 20 4e 41 | 4d 45 0a 58 63 68 73 68 |.X.SH NA|ME.Xchsh|
|000014d0| 20 5c 2d 20 63 68 61 6e | 67 65 20 6c 6f 67 69 6e | \- chan|ge login|
|000014e0| 20 73 68 65 6c 6c 0a 58 | 2e 53 48 20 53 59 4e 4f | shell.X|.SH SYNO|
|000014f0| 50 53 49 53 0a 58 5c 66 | 42 63 68 73 68 5c 66 52 |PSIS.X\f|Bchsh\fR|
|00001500| 20 5b 20 5c 66 42 2d 73 | 20 5c 66 49 6c 6f 67 69 | [ \fB-s| \fIlogi|
|00001510| 6e 5f 73 68 65 6c 6c 5c | 66 52 20 5d 20 5b 20 5c |n_shell\|fR ] [ \|
|00001520| 66 49 75 73 65 72 5c 66 | 52 20 5d 0a 58 2e 53 48 |fIuser\f|R ].X.SH|
|00001530| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 58 5c 66 | DESCRIP|TION.X\f|
|00001540| 49 63 68 73 68 5c 66 20 | 63 68 61 6e 67 65 73 20 |Ichsh\f |changes |
|00001550| 74 68 65 20 75 73 65 72 | 20 6c 6f 67 69 6e 20 73 |the user| login s|
|00001560| 68 65 6c 6c 2e 0a 58 54 | 68 69 73 20 64 65 74 65 |hell..XT|his dete|
|00001570| 72 6d 69 6e 65 73 20 74 | 68 65 20 6e 61 6d 65 20 |rmines t|he name |
|00001580| 6f 66 20 74 68 65 20 75 | 73 65 72 27 73 20 69 6e |of the u|ser's in|
|00001590| 69 74 69 61 6c 20 6c 6f | 67 69 6e 20 63 6f 6d 6d |itial lo|gin comm|
|000015a0| 61 6e 64 2e 0a 58 41 20 | 6e 6f 72 6d 61 6c 20 75 |and..XA |normal u|
|000015b0| 73 65 72 20 6d 61 79 20 | 6f 6e 6c 79 20 63 68 61 |ser may |only cha|
|000015c0| 6e 67 65 20 74 68 65 20 | 6c 6f 67 69 6e 20 73 68 |nge the |login sh|
|000015d0| 65 6c 6c 20 66 6f 72 20 | 74 68 65 69 72 20 6f 77 |ell for |their ow|
|000015e0| 6e 20 61 63 63 6f 75 6e | 74 2c 0a 58 74 68 65 20 |n accoun|t,.Xthe |
|000015f0| 73 75 70 65 72 20 75 73 | 65 72 20 6d 61 79 20 63 |super us|er may c|
|00001600| 68 61 6e 67 65 20 74 68 | 65 20 6c 6f 67 69 6e 20 |hange th|e login |
|00001610| 73 68 65 6c 6c 20 66 6f | 72 20 61 6e 79 20 61 63 |shell fo|r any ac|
|00001620| 63 6f 75 6e 74 2e 0a 58 | 2e 50 50 0a 58 54 68 65 |count..X|.PP.XThe|
|00001630| 20 6f 6e 6c 79 20 72 65 | 73 74 72 69 63 74 69 6f | only re|strictio|
|00001640| 6e 73 20 70 6c 61 63 65 | 64 20 6f 6e 20 74 68 65 |ns place|d on the|
|00001650| 20 6c 6f 67 69 6e 20 73 | 68 65 6c 6c 20 69 73 20 | login s|hell is |
|00001660| 74 68 61 74 20 74 68 65 | 0a 58 63 6f 6d 6d 61 6e |that the|.Xcomman|
|00001670| 64 20 6e 61 6d 65 20 6d | 75 73 74 20 62 65 20 6c |d name m|ust be l|
|00001680| 69 73 74 65 64 20 69 6e | 20 5c 66 42 2f 65 74 63 |isted in| \fB/etc|
|00001690| 2f 73 68 65 6c 6c 73 5c | 66 52 2c 20 75 6e 6c 65 |/shells\|fR, unle|
|000016a0| 73 73 20 74 68 65 0a 58 | 69 6e 76 6f 6b 65 72 20 |ss the.X|invoker |
|000016b0| 69 73 20 74 68 65 20 73 | 75 70 65 72 2d 75 73 65 |is the s|uper-use|
|000016c0| 72 2c 20 61 6e 64 20 74 | 68 65 6e 20 61 6e 79 20 |r, and t|hen any |
|000016d0| 76 61 6c 75 65 20 6d 61 | 79 20 62 65 20 61 64 64 |value ma|y be add|
|000016e0| 65 64 2e 0a 58 41 6e 20 | 61 63 63 6f 75 6e 74 20 |ed..XAn |account |
|000016f0| 77 69 74 68 20 61 20 72 | 65 73 74 72 69 63 74 65 |with a r|estricte|
|00001700| 64 20 6c 6f 67 69 6e 20 | 73 68 65 6c 6c 20 6d 61 |d login |shell ma|
|00001710| 79 20 6e 6f 74 20 63 68 | 61 6e 67 65 0a 58 74 68 |y not ch|ange.Xth|
|00001720| 65 69 72 20 6c 6f 67 69 | 6e 20 73 68 65 6c 6c 2e |eir logi|n shell.|
|00001730| 0a 58 46 6f 72 20 74 68 | 69 73 20 72 65 61 73 6f |.XFor th|is reaso|
|00001740| 6e 2c 20 70 6c 61 63 69 | 6e 67 20 5c 66 42 2f 62 |n, placi|ng \fB/b|
|00001750| 69 6e 2f 72 73 68 5c 66 | 52 20 69 6e 20 5c 66 42 |in/rsh\f|R in \fB|
|00001760| 2f 65 74 63 2f 73 68 65 | 6c 6c 73 5c 66 52 0a 58 |/etc/she|lls\fR.X|
|00001770| 69 73 20 64 69 73 63 6f | 75 72 61 67 65 64 20 73 |is disco|uraged s|
|00001780| 69 6e 63 65 20 61 63 63 | 69 64 65 6e 74 61 6c 6c |ince acc|identall|
|00001790| 79 20 63 68 61 6e 67 69 | 6e 67 20 74 6f 20 61 20 |y changi|ng to a |
|000017a0| 72 65 73 74 72 69 63 74 | 65 64 0a 58 73 68 65 6c |restrict|ed.Xshel|
|000017b0| 6c 20 77 6f 75 6c 64 20 | 70 72 65 76 65 6e 74 20 |l would |prevent |
|000017c0| 74 68 65 20 75 73 65 72 | 20 66 72 6f 6d 20 65 76 |the user| from ev|
|000017d0| 65 72 79 20 63 68 61 6e | 67 69 6e 67 20 74 68 65 |ery chan|ging the|
|000017e0| 69 72 20 6c 6f 67 69 6e | 0a 58 73 68 65 6c 6c 20 |ir login|.Xshell |
|000017f0| 62 61 63 6b 20 74 6f 20 | 69 74 73 20 6f 72 69 67 |back to |its orig|
|00001800| 69 6e 61 6c 20 76 61 6c | 75 65 2e 0a 58 2e 50 50 |inal val|ue..X.PP|
|00001810| 0a 58 49 66 20 74 68 65 | 20 5c 66 42 2d 73 5c 66 |.XIf the| \fB-s\f|
|00001820| 52 20 6f 70 74 69 6f 6e | 20 69 73 20 6e 6f 74 20 |R option| is not |
|00001830| 73 65 6c 65 63 74 65 64 | 2c 20 5c 66 49 63 68 73 |selected|, \fIchs|
|00001840| 68 5c 66 20 6f 70 65 72 | 61 74 65 73 20 69 6e 20 |h\f oper|ates in |
|00001850| 61 6e 20 69 6e 74 65 72 | 61 63 74 69 76 65 0a 58 |an inter|active.X|
|00001860| 66 61 73 68 69 6f 6e 2c | 20 70 72 6f 6d 70 74 69 |fashion,| prompti|
|00001870| 6e 67 20 74 68 65 20 75 | 73 65 72 20 77 69 74 68 |ng the u|ser with|
|00001880| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 6f 67 | the cur|rent log|
|00001890| 69 6e 20 73 68 65 6c 6c | 2e 0a 58 45 6e 74 65 72 |in shell|..XEnter|
|000018a0| 20 74 68 65 20 6e 65 77 | 20 76 61 6c 75 65 20 74 | the new| value t|
|000018b0| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 66 69 65 |o change| the fie|
|000018c0| 6c 64 2c 20 6f 72 20 6c | 65 61 76 65 20 74 68 65 |ld, or l|eave the|
|000018d0| 20 6c 69 6e 65 20 62 6c | 61 6e 6b 20 74 6f 20 75 | line bl|ank to u|
|000018e0| 73 65 0a 58 74 68 65 20 | 63 75 72 72 65 6e 74 20 |se.Xthe |current |
|000018f0| 76 61 6c 75 65 2e 0a 58 | 54 68 65 20 63 75 72 72 |value..X|The curr|
|00001900| 65 6e 74 20 76 61 6c 75 | 65 20 69 73 20 64 69 73 |ent valu|e is dis|
|00001910| 70 6c 61 79 65 64 20 62 | 65 74 77 65 65 6e 20 61 |played b|etween a|
|00001920| 20 70 61 69 72 20 6f 66 | 20 5c 66 42 5b 20 5d 5c | pair of| \fB[ ]\|
|00001930| 66 20 6d 61 72 6b 73 2e | 0a 58 2e 53 48 20 46 69 |f marks.|.X.SH Fi|
|00001940| 6c 65 73 0a 58 2f 65 74 | 63 2f 70 61 73 73 77 64 |les.X/et|c/passwd|
|00001950| 20 5c 2d 20 75 73 65 72 | 20 61 63 63 6f 75 6e 74 | \- user| account|
|00001960| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 58 2e 62 | informa|tion.X.b|
|00001970| 72 0a 58 2f 65 74 63 2f | 73 68 65 6c 6c 73 20 5c |r.X/etc/|shells \|
|00001980| 2d 20 6c 69 73 74 20 6f | 66 20 76 61 6c 69 64 20 |- list o|f valid |
|00001990| 6c 6f 67 69 6e 20 73 68 | 65 6c 6c 73 0a 58 2e 53 |login sh|ells.X.S|
|000019a0| 48 20 53 65 65 20 41 6c | 73 6f 0a 58 63 68 66 6e |H See Al|so.Xchfn|
|000019b0| 28 31 29 2c 0a 58 70 61 | 73 73 77 64 28 34 29 0a |(1),.Xpa|sswd(4).|
|000019c0| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|000019d0| 20 31 34 37 39 20 2d 6e | 65 20 22 60 77 63 20 2d | 1479 -n|e "`wc -|
|000019e0| 63 20 3c 20 27 63 68 73 | 68 2e 31 27 60 22 0a 74 |c < 'chs|h.1'`".t|
|000019f0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00001a00| 22 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 |"error t|ransmitt|
|00001a10| 69 6e 67 20 27 63 68 73 | 68 2e 31 27 22 20 27 28 |ing 'chs|h.1'" '(|
|00001a20| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|00001a30| 20 31 34 37 39 20 63 68 | 61 72 61 63 74 65 72 73 | 1479 ch|aracters|
|00001a40| 29 27 0a 66 69 0a 66 69 | 0a 65 63 68 6f 20 73 68 |)'.fi.fi|.echo sh|
|00001a50| 61 72 3a 20 22 65 78 74 | 72 61 63 74 69 6e 67 20 |ar: "ext|racting |
|00001a60| 27 6c 6f 67 69 6e 2e 31 | 27 22 20 27 28 33 33 34 |'login.1|'" '(334|
|00001a70| 38 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |8 charac|ters)'.i|
|00001a80| 66 20 74 65 73 74 20 2d | 66 20 27 6c 6f 67 69 6e |f test -|f 'login|
|00001a90| 2e 31 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.1'.then|..echo s|
|00001aa0| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00001ab0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00001ac0| 6e 67 20 66 69 6c 65 20 | 27 6c 6f 67 69 6e 2e 31 |ng file |'login.1|
|00001ad0| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|00001ae0| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|00001af0| 46 20 3e 20 27 6c 6f 67 | 69 6e 2e 31 27 0a 58 2e |F > 'log|in.1'.X.|
|00001b00| 5c 22 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |\" Copyr|ight 198|
|00001b10| 39 2c 20 31 39 39 30 2c | 20 4a 6f 68 6e 20 46 2e |9, 1990,| John F.|
|00001b20| 20 48 61 75 67 68 20 49 | 49 0a 58 2e 5c 22 20 41 | Haugh I|I.X.\" A|
|00001b30| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00001b40| 65 64 2e 0a 58 2e 5c 22 | 0a 58 2e 5c 22 20 55 73 |ed..X.\"|.X.\" Us|
|00001b50| 65 2c 20 64 75 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |e, dupli|cation, |
|00001b60| 61 6e 64 20 64 69 73 63 | 6c 6f 73 75 72 65 20 70 |and disc|losure p|
|00001b70| 72 6f 68 69 62 69 74 65 | 64 20 77 69 74 68 6f 75 |rohibite|d withou|
|00001b80| 74 0a 58 2e 5c 22 20 74 | 68 65 20 65 78 70 72 65 |t.X.\" t|he expre|
|00001b90| 73 73 20 77 72 69 74 74 | 65 6e 20 70 65 72 6d 69 |ss writt|en permi|
|00001ba0| 73 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 61 75 74 |ssion of| the aut|
|00001bb0| 68 6f 72 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 09 40 |hor..X.\|".X.\".@|
|00001bc0| 28 23 29 6c 6f 67 69 6e | 2e 31 09 32 2e 31 2e 31 |(#)login|.1.2.1.1|
|00001bd0| 2e 31 09 30 39 3a 30 37 | 3a 31 30 09 31 31 2f 32 |.1.09:07|:10.11/2|
|00001be0| 36 2f 39 30 0a 58 2e 5c | 22 0a 58 2e 54 48 20 4c |6/90.X.\|".X.TH L|
|00001bf0| 4f 47 49 4e 20 31 0a 58 | 2e 53 48 20 4e 41 4d 45 |OGIN 1.X|.SH NAME|
|00001c00| 0a 58 6c 6f 67 69 6e 20 | 5c 2d 20 42 65 67 69 6e |.Xlogin |\- Begin|
|00001c10| 20 73 65 73 73 69 6f 6e | 20 6f 6e 20 74 68 65 20 | session| on the |
|00001c20| 73 79 73 74 65 6d 0a 58 | 2e 53 48 20 53 59 4e 4f |system.X|.SH SYNO|
|00001c30| 50 53 49 53 0a 58 2e 42 | 20 6c 6f 67 69 6e 0a 58 |PSIS.X.B| login.X|
|00001c40| 5b 20 75 73 65 72 6e 61 | 6d 65 20 5b 20 65 6e 76 |[ userna|me [ env|
|00001c50| 69 72 6f 6e 6d 65 6e 74 | 61 6c 2d 76 61 72 69 61 |ironment|al-varia|
|00001c60| 62 6c 65 73 20 5d 20 5d | 0a 58 2e 53 48 20 44 45 |bles ] ]|.X.SH DE|
|00001c70| 53 43 52 49 50 54 49 4f | 4e 0a 58 2e 49 20 6c 6f |SCRIPTIO|N.X.I lo|
|00001c80| 67 69 6e 0a 58 69 73 20 | 75 73 65 64 20 74 6f 20 |gin.Xis |used to |
|00001c90| 65 73 74 61 62 6c 69 73 | 68 20 61 20 6e 65 77 20 |establis|h a new |
|00001ca0| 73 65 73 73 69 6f 6e 20 | 77 69 74 68 20 74 68 65 |session |with the|
|00001cb0| 20 73 79 73 74 65 6d 2e | 0a 58 49 74 20 69 73 20 | system.|.XIt is |
|00001cc0| 6e 6f 72 6d 61 6c 6c 79 | 20 69 6e 76 6f 6b 65 64 |normally| invoked|
|00001cd0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 62 | automat|ically b|
|00001ce0| 79 20 72 65 73 70 6f 6e | 64 69 6e 67 20 74 6f 20 |y respon|ding to |
|00001cf0| 74 68 65 0a 58 2e 42 20 | 6c 6f 67 69 6e 3a 0a 58 |the.X.B |login:.X|
|00001d00| 70 72 6f 6d 70 74 20 6f | 6e 20 74 68 65 20 75 73 |prompt o|n the us|
|00001d10| 65 72 5c 27 73 20 74 65 | 72 6d 69 6e 61 6c 2e 0a |er\'s te|rminal..|
|00001d20| 58 2e 49 20 6c 6f 67 69 | 6e 0a 58 6d 61 79 20 62 |X.I logi|n.Xmay b|
|00001d30| 65 20 73 70 65 63 69 61 | 6c 20 74 6f 20 74 68 65 |e specia|l to the|
|00001d40| 20 73 68 65 6c 6c 20 61 | 6e 64 20 6d 61 79 20 6e | shell a|nd may n|
|00001d50| 6f 74 20 62 65 20 69 6e | 76 6f 6b 65 64 20 61 73 |ot be in|voked as|
|00001d60| 20 61 20 73 75 62 2d 70 | 72 6f 63 65 73 73 2e 0a | a sub-p|rocess..|
|00001d70| 58 54 79 70 69 63 61 6c | 6c 79 2c 0a 58 2e 49 20 |XTypical|ly,.X.I |
|00001d80| 6c 6f 67 69 6e 0a 58 69 | 73 20 74 72 65 61 74 65 |login.Xi|s treate|
|00001d90| 64 20 62 79 20 74 68 65 | 20 73 68 65 6c 6c 20 61 |d by the| shell a|
|00001da0| 73 20 5c 66 42 65 78 65 | 63 20 6c 6f 67 69 6e 5c |s \fBexe|c login\|
|00001db0| 66 52 20 77 68 69 63 68 | 20 63 61 75 73 65 73 20 |fR which| causes |
|00001dc0| 74 68 65 20 75 73 65 72 | 0a 58 74 6f 20 65 78 69 |the user|.Xto exi|
|00001dd0| 74 20 66 72 6f 6d 20 74 | 68 65 20 63 75 72 72 65 |t from t|he curre|
|00001de0| 6e 74 20 73 68 65 6c 6c | 2e 0a 58 41 74 74 65 6d |nt shell|..XAttem|
|00001df0| 70 74 69 6e 67 20 74 6f | 20 65 78 65 63 75 74 65 |pting to| execute|
|00001e00| 20 5c 66 49 6c 6f 67 69 | 6e 5c 66 52 20 66 72 6f | \fIlogi|n\fR fro|
|00001e10| 6d 20 61 6e 79 20 73 68 | 65 6c 6c 20 62 75 74 20 |m any sh|ell but |
|00001e20| 74 68 65 20 6c 6f 67 69 | 6e 20 73 68 65 6c 6c 0a |the logi|n shell.|
|00001e30| 58 77 69 6c 6c 20 70 72 | 6f 64 75 63 65 20 61 6e |Xwill pr|oduce an|
|00001e40| 20 65 72 72 6f 72 20 6d | 65 73 73 61 67 65 2e 0a | error m|essage..|
|00001e50| 58 2e 50 50 0a 58 57 68 | 65 6e 20 69 6e 76 6f 6b |X.PP.XWh|en invok|
|00001e60| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 5c 66 42 6c |ed from |the \fBl|
|00001e70| 6f 67 69 6e 3a 5c 66 52 | 20 70 72 6f 6d 70 74 2c |ogin:\fR| prompt,|
|00001e80| 20 74 68 65 20 75 73 65 | 72 20 6d 61 79 20 65 6e | the use|r may en|
|00001e90| 74 65 72 0a 58 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ter.Xenv|ironment|
|00001ea0| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 20 61 66 74 |al varia|bles aft|
|00001eb0| 65 72 20 74 68 65 20 75 | 73 65 72 6e 61 6d 65 2e |er the u|sername.|
|00001ec0| 0a 58 54 68 65 73 65 20 | 76 61 72 69 61 62 6c 65 |.XThese |variable|
|00001ed0| 73 20 61 72 65 20 65 6e | 74 65 72 65 64 20 69 6e |s are en|tered in|
|00001ee0| 20 74 68 65 20 66 6f 72 | 6d 20 5c 66 42 4e 41 4d | the for|m \fBNAM|
|00001ef0| 45 3d 56 41 4c 55 45 5c | 66 52 2e 0a 58 4e 6f 74 |E=VALUE\|fR..XNot|
|00001f00| 20 61 6c 6c 20 76 61 72 | 69 61 62 6c 65 73 20 6d | all var|iables m|
|00001f10| 61 79 20 62 65 20 73 65 | 74 20 69 6e 20 74 68 65 |ay be se|t in the|
|00001f20| 20 66 61 73 68 69 6f 6e | 2c 20 6e 6f 74 61 62 6c | fashion|, notabl|
|00001f30| 79 20 5c 66 42 50 41 54 | 48 5c 66 52 2c 0a 58 5c |y \fBPAT|H\fR,.X\|
|00001f40| 66 42 48 4f 4d 45 5c 66 | 52 20 61 6e 64 20 5c 66 |fBHOME\f|R and \f|
|00001f50| 42 53 48 45 4c 4c 5c 66 | 52 2e 0a 58 41 64 64 69 |BSHELL\f|R..XAddi|
|00001f60| 74 69 6f 6e 61 6c 6c 79 | 2c 20 5c 66 42 49 46 53 |tionally|, \fBIFS|
|00001f70| 5c 66 52 20 6d 61 79 20 | 62 65 20 69 6e 68 69 62 |\fR may |be inhib|
|00001f80| 69 74 65 64 20 69 66 20 | 74 68 65 20 75 73 65 72 |ited if |the user|
|00001f90| 5c 27 73 20 6c 6f 67 69 | 6e 0a 58 73 68 65 6c 6c |\'s logi|n.Xshell|
|00001fa0| 20 69 73 20 5c 66 42 2f | 62 69 6e 2f 73 68 5c 66 | is \fB/|bin/sh\f|
|00001fb0| 52 2e 0a 58 2e 50 50 0a | 58 54 68 65 20 75 73 65 |R..X.PP.|XThe use|
|00001fc0| 72 20 69 73 20 74 68 65 | 6e 20 70 72 6f 6d 70 74 |r is the|n prompt|
|00001fd0| 65 64 20 66 6f 72 20 61 | 20 70 61 73 73 77 6f 72 |ed for a| passwor|
|00001fe0| 64 2c 20 77 68 65 72 65 | 20 61 70 70 72 6f 70 72 |d, where| appropr|
|00001ff0| 69 61 74 65 2e 0a 58 45 | 63 68 6f 69 6e 67 20 69 |iate..XE|choing i|
|00002000| 73 20 64 69 73 61 62 6c | 65 64 20 74 6f 20 70 72 |s disabl|ed to pr|
|00002010| 65 76 65 6e 74 20 72 65 | 76 65 61 6c 69 6e 67 20 |event re|vealing |
|00002020| 74 68 65 20 70 61 73 73 | 77 6f 72 64 2e 0a 58 4f |the pass|word..XO|
|00002030| 6e 6c 79 20 61 20 73 6d | 61 6c 6c 20 6e 75 6d 62 |nly a sm|all numb|
|00002040| 65 72 20 6f 66 20 70 61 | 73 73 77 6f 72 64 20 66 |er of pa|ssword f|
|00002050| 61 69 6c 75 72 65 73 20 | 61 72 65 20 70 65 72 6d |ailures |are perm|
|00002060| 69 74 74 65 64 20 62 65 | 66 6f 72 65 0a 58 5c 66 |itted be|fore.X\f|
|00002070| 49 6c 6f 67 69 6e 5c 66 | 52 20 65 78 69 74 73 20 |Ilogin\f|R exits |
|00002080| 61 6e 64 20 74 68 65 20 | 63 6f 6d 6d 75 6e 69 63 |and the |communic|
|00002090| 61 74 69 6f 6e 73 20 6c | 69 6e 6b 20 69 73 20 73 |ations l|ink is s|
|000020a0| 65 76 65 72 65 64 2e 0a | 58 2e 50 50 0a 58 49 66 |evered..|X.PP.XIf|
|000020b0| 20 70 61 73 73 77 6f 72 | 64 20 61 67 69 6e 67 20 | passwor|d aging |
|000020c0| 68 61 73 20 62 65 65 6e | 20 65 6e 61 62 6c 65 64 |has been| enabled|
|000020d0| 20 66 6f 72 20 79 6f 75 | 72 20 61 63 63 6f 75 6e | for you|r accoun|
|000020e0| 74 2c 20 79 6f 75 20 6d | 61 79 20 62 65 0a 58 70 |t, you m|ay be.Xp|
|000020f0| 72 6f 6d 70 74 65 64 20 | 66 6f 72 20 61 20 6e 65 |rompted |for a ne|
|00002100| 77 20 70 61 73 73 77 6f | 72 64 20 62 65 66 6f 72 |w passwo|rd befor|
|00002110| 65 20 70 72 6f 63 65 65 | 64 69 6e 67 2e 0a 58 59 |e procee|ding..XY|
|00002120| 6f 75 20 77 69 6c 6c 20 | 62 65 20 66 6f 72 63 65 |ou will |be force|
|00002130| 64 20 74 6f 20 70 72 6f | 76 69 64 65 20 79 6f 75 |d to pro|vide you|
|00002140| 72 20 6f 6c 64 20 70 61 | 73 73 77 6f 72 64 20 61 |r old pa|ssword a|
|00002150| 6e 64 20 74 68 65 20 6e | 65 77 0a 58 70 61 73 73 |nd the n|ew.Xpass|
|00002160| 77 6f 72 64 20 62 65 66 | 6f 72 65 20 63 6f 6e 74 |word bef|ore cont|
|00002170| 69 6e 75 69 6e 67 2e 0a | 58 50 6c 65 61 73 65 20 |inuing..|XPlease |
|00002180| 72 65 66 65 72 20 74 6f | 20 5c 66 49 70 61 73 73 |refer to| \fIpass|
|00002190| 77 64 28 31 29 5c 66 52 | 20 66 6f 72 20 6d 6f 72 |wd(1)\fR| for mor|
|000021a0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 0a 58 |e inform|ation..X|
|000021b0| 2e 50 50 0a 58 41 66 74 | 65 72 20 61 20 73 75 63 |.PP.XAft|er a suc|
|000021c0| 63 65 73 73 66 75 6c 20 | 6c 6f 67 69 6e 2c 0a 58 |cessful |login,.X|
|000021d0| 79 6f 75 20 77 69 6c 6c | 20 62 65 20 69 6e 66 6f |you will| be info|
|000021e0| 72 6d 65 64 20 6f 66 20 | 61 6e 79 20 73 79 73 74 |rmed of |any syst|
|000021f0| 65 6d 20 6d 65 73 73 61 | 67 65 73 20 61 6e 64 20 |em messa|ges and |
|00002200| 74 68 65 20 70 72 65 73 | 65 6e 63 65 0a 58 6f 66 |the pres|ence.Xof|
|00002210| 20 6d 61 69 6c 2e 0a 58 | 59 6f 75 20 6d 61 79 20 | mail..X|You may |
|00002220| 74 75 72 6e 20 6f 66 66 | 20 74 68 65 20 70 72 69 |turn off| the pri|
|00002230| 6e 74 69 6e 67 20 6f 66 | 20 74 68 65 20 73 79 73 |nting of| the sys|
|00002240| 74 65 6d 20 6d 65 73 73 | 61 67 65 20 66 69 6c 65 |tem mess|age file|
|00002250| 2c 0a 58 5c 66 49 2f 65 | 74 63 2f 6d 6f 74 64 5c |,.X\fI/e|tc/motd\|
|00002260| 66 52 2c 20 62 79 20 63 | 72 65 61 74 69 6e 67 20 |fR, by c|reating |
|00002270| 61 20 7a 65 72 6f 2d 6c | 65 6e 67 74 68 20 66 69 |a zero-l|ength fi|
|00002280| 6c 65 20 5c 66 49 2e 68 | 75 73 68 6c 6f 67 69 6e |le \fI.h|ushlogin|
|00002290| 5c 66 52 0a 58 69 6e 20 | 79 6f 75 72 20 6c 6f 67 |\fR.Xin |your log|
|000022a0| 69 6e 20 64 69 72 65 63 | 74 6f 72 79 2e 0a 58 54 |in direc|tory..XT|
|000022b0| 68 65 20 6d 61 69 6c 20 | 6d 65 73 73 61 67 65 20 |he mail |message |
|000022c0| 77 69 6c 6c 20 62 65 20 | 6f 6e 65 20 6f 66 20 22 |will be |one of "|
|000022d0| 5c 66 49 59 6f 75 20 68 | 61 76 65 20 6e 65 77 20 |\fIYou h|ave new |
|000022e0| 6d 61 69 6c 2e 5c 66 52 | 22 2c 0a 58 22 5c 66 49 |mail.\fR|",.X"\fI|
|000022f0| 59 6f 75 20 68 61 76 65 | 20 6d 61 69 6c 2e 5c 66 |You have| mail.\f|
|00002300| 52 22 2c 20 6f 72 20 22 | 5c 66 49 4e 6f 20 4d 61 |R", or "|\fINo Ma|
|00002310| 69 6c 2e 5c 66 52 22 20 | 61 63 63 6f 72 64 69 6e |il.\fR" |accordin|
|00002320| 67 20 74 6f 0a 58 74 68 | 65 20 63 6f 6e 64 69 74 |g to.Xth|e condit|
|00002330| 69 6f 6e 20 6f 66 20 79 | 6f 75 72 20 6d 61 69 6c |ion of y|our mail|
|00002340| 62 6f 78 2e 0a 58 2e 50 | 50 0a 58 59 6f 75 72 20 |box..X.P|P.XYour |
|00002350| 75 73 65 72 20 61 6e 64 | 20 67 72 6f 75 70 20 49 |user and| group I|
|00002360| 44 20 77 69 6c 6c 20 62 | 65 20 73 65 74 20 61 63 |D will b|e set ac|
|00002370| 63 6f 72 64 69 6e 67 20 | 74 6f 20 74 68 65 69 72 |cording |to their|
|00002380| 20 76 61 6c 75 65 73 20 | 69 6e 0a 58 74 68 65 20 | values |in.Xthe |
|00002390| 5c 66 49 2f 65 74 63 2f | 70 61 73 73 77 64 5c 66 |\fI/etc/|passwd\f|
|000023a0| 52 20 66 69 6c 65 2e 0a | 58 54 68 65 20 76 61 6c |R file..|XThe val|
|000023b0| 75 65 20 66 6f 72 20 5c | 66 42 24 48 4f 4d 45 5c |ue for \|fB$HOME\|
|000023c0| 66 52 2c 20 5c 66 42 24 | 53 48 45 4c 4c 5c 66 52 |fR, \fB$|SHELL\fR|
|000023d0| 2c 20 5c 66 42 24 50 41 | 54 48 5c 66 52 2c 20 5c |, \fB$PA|TH\fR, \|
|000023e0| 66 42 24 4c 4f 47 4e 41 | 4d 45 5c 66 52 2c 0a 58 |fB$LOGNA|ME\fR,.X|
|000023f0| 61 6e 64 20 5c 66 42 24 | 4d 41 49 4c 5c 66 52 20 |and \fB$|MAIL\fR |
|00002400| 61 72 65 20 73 65 74 20 | 61 63 63 6f 72 64 69 6e |are set |accordin|
|00002410| 67 20 74 6f 20 74 68 65 | 20 61 70 70 72 6f 70 72 |g to the| appropr|
|00002420| 69 61 74 65 20 66 69 65 | 6c 64 73 20 69 6e 20 74 |iate fie|lds in t|
|00002430| 68 65 0a 58 70 61 73 73 | 77 6f 72 64 20 65 6e 74 |he.Xpass|word ent|
|00002440| 72 79 2e 0a 58 55 6c 69 | 6d 69 74 2c 20 75 6d 61 |ry..XUli|mit, uma|
|00002450| 73 6b 20 61 6e 64 20 6e | 69 63 65 20 76 61 6c 75 |sk and n|ice valu|
|00002460| 65 73 20 6d 61 79 20 61 | 6c 73 6f 20 62 65 20 73 |es may a|lso be s|
|00002470| 65 74 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 0a |et accor|ding to.|
|00002480| 58 65 6e 74 72 69 65 73 | 20 69 6e 20 74 68 65 20 |Xentries| in the |
|00002490| 47 45 43 4f 53 20 66 69 | 65 6c 64 2e 0a 58 2e 50 |GECOS fi|eld..X.P|
|000024a0| 50 0a 58 4f 6e 20 73 6f | 6d 65 20 69 6e 73 74 61 |P.XOn so|me insta|
|000024b0| 6c 6c 61 74 69 6f 6e 73 | 2c 20 74 68 65 20 65 6e |llations|, the en|
|000024c0| 76 69 72 6f 6e 6d 65 6e | 74 61 6c 20 76 61 72 69 |vironmen|tal vari|
|000024d0| 61 62 6c 65 20 5c 66 42 | 24 54 45 52 4d 5c 66 52 |able \fB|$TERM\fR|
|000024e0| 20 77 69 6c 6c 20 62 65 | 0a 58 69 6e 69 74 69 61 | will be|.Xinitia|
|000024f0| 6c 69 7a 65 20 74 6f 20 | 74 68 65 20 74 65 72 6d |lize to |the term|
|00002500| 69 6e 61 6c 20 74 79 70 | 65 20 6f 6e 20 79 6f 75 |inal typ|e on you|
|00002510| 72 20 74 74 79 20 6c 69 | 6e 65 2c 20 61 73 20 73 |r tty li|ne, as s|
|00002520| 70 65 63 69 66 69 65 64 | 20 69 6e 0a 58 5c 66 49 |pecified| in.X\fI|
|00002530| 2f 65 74 63 2f 74 74 79 | 74 79 70 65 5c 66 52 2e |/etc/tty|type\fR.|
|00002540| 0a 58 2e 50 50 0a 58 41 | 6e 20 69 6e 69 74 69 61 |.X.PP.XA|n initia|
|00002550| 6c 69 7a 61 74 69 6f 6e | 20 73 63 72 69 70 74 20 |lization| script |
|00002560| 66 6f 72 20 79 6f 75 72 | 20 63 6f 6d 6d 61 6e 64 |for your| command|
|00002570| 20 69 6e 74 65 72 70 72 | 65 74 65 72 20 6d 61 79 | interpr|eter may|
|00002580| 20 61 6c 73 6f 20 62 65 | 0a 58 65 78 65 63 75 74 | also be|.Xexecut|
|00002590| 65 64 2e 0a 58 50 6c 65 | 61 73 65 20 73 65 65 20 |ed..XPle|ase see |
|000025a0| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|000025b0| 6d 61 6e 75 61 6c 20 73 | 65 63 74 69 6f 6e 20 66 |manual s|ection f|
|000025c0| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|000025d0| 69 6f 6e 20 6f 6e 0a 58 | 74 68 69 73 20 66 75 6e |ion on.X|this fun|
|000025e0| 63 74 69 6f 6e 2e 0a 58 | 2e 53 48 20 43 41 56 45 |ction..X|.SH CAVE|
|000025f0| 41 54 53 0a 58 2e 50 50 | 0a 58 54 68 69 73 20 76 |ATS.X.PP|.XThis v|
|00002600| 65 72 73 69 6f 6e 20 6f | 66 20 5c 66 49 6c 6f 67 |ersion o|f \fIlog|
|00002610| 69 6e 5c 66 52 20 68 61 | 73 20 6d 61 6e 79 20 63 |in\fR ha|s many c|
|00002620| 6f 6d 70 69 6c 61 74 69 | 6f 6e 20 6f 70 74 69 6f |ompilati|on optio|
|00002630| 6e 73 2c 20 6f 6e 6c 79 | 20 73 6f 6d 65 20 6f 66 |ns, only| some of|
|00002640| 20 77 68 69 63 68 0a 58 | 6d 61 79 20 62 65 20 69 | which.X|may be i|
|00002650| 6e 20 75 73 65 20 61 74 | 20 61 6e 79 20 70 61 72 |n use at| any par|
|00002660| 74 69 63 75 6c 61 72 20 | 73 69 74 65 2e 0a 58 2e |ticular |site..X.|
|00002670| 53 48 20 46 69 6c 65 73 | 0a 58 2f 65 74 63 2f 75 |SH Files|.X/etc/u|
|00002680| 74 6d 70 20 5c 2d 20 6c | 69 73 74 20 6f 66 20 63 |tmp \- l|ist of c|
|00002690| 75 72 72 65 6e 74 20 6c | 6f 67 69 6e 20 73 65 73 |urrent l|ogin ses|
|000026a0| 73 69 6f 6e 73 0a 58 2e | 62 72 0a 58 2f 65 74 63 |sions.X.|br.X/etc|
|000026b0| 2f 77 74 6d 70 20 5c 2d | 20 6c 69 73 74 20 6f 66 |/wtmp \-| list of|
|000026c0| 20 70 72 65 76 69 6f 75 | 73 20 6c 6f 67 69 6e 20 | previou|s login |
|000026d0| 73 65 73 73 69 6f 6e 73 | 0a 58 2e 62 72 0a 58 2f |sessions|.X.br.X/|
|000026e0| 65 74 63 2f 70 61 73 73 | 77 64 20 5c 2d 20 75 73 |etc/pass|wd \- us|
|000026f0| 65 72 20 61 63 63 6f 75 | 6e 74 20 69 6e 66 6f 72 |er accou|nt infor|
|00002700| 6d 61 74 69 6f 6e 0a 58 | 2e 62 72 0a 58 2f 65 74 |mation.X|.br.X/et|
|00002710| 63 2f 73 68 61 64 6f 77 | 20 5c 2d 20 65 6e 63 72 |c/shadow| \- encr|
|00002720| 79 70 74 65 64 20 70 61 | 73 73 77 6f 72 64 73 20 |ypted pa|sswords |
|00002730| 61 6e 64 20 61 67 65 20 | 69 6e 66 6f 72 6d 61 74 |and age |informat|
|00002740| 69 6f 6e 0a 58 2e 62 72 | 0a 58 2f 65 74 63 2f 6d |ion.X.br|.X/etc/m|
|00002750| 6f 74 64 20 5c 2d 20 73 | 79 73 74 65 6d 20 6d 65 |otd \- s|ystem me|
|00002760| 73 73 61 67 65 20 66 69 | 6c 65 0a 58 2e 62 72 0a |ssage fi|le.X.br.|
|00002770| 58 2f 65 74 63 2f 74 74 | 79 74 79 70 65 20 5c 2d |X/etc/tt|ytype \-|
|00002780| 20 6c 69 73 74 20 6f 66 | 20 74 65 72 6d 69 6e 61 | list of| termina|
|00002790| 6c 20 74 79 70 65 73 0a | 58 2e 62 72 0a 58 24 48 |l types.|X.br.X$H|
|000027a0| 4f 4d 45 2f 2e 70 72 6f | 66 69 6c 65 20 5c 2d 20 |OME/.pro|file \- |
|000027b0| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 73 |initiali|zation s|
|000027c0| 63 72 69 70 74 20 66 6f | 72 20 64 65 66 61 75 6c |cript fo|r defaul|
|000027d0| 74 20 73 68 65 6c 6c 0a | 58 2e 62 72 0a 58 24 48 |t shell.|X.br.X$H|
|000027e0| 4f 4d 45 2f 2e 68 75 73 | 68 6c 6f 67 69 6e 20 5c |OME/.hus|hlogin \|
|000027f0| 2d 20 73 75 70 70 72 65 | 73 73 20 70 72 69 6e 74 |- suppre|ss print|
|00002800| 69 6e 67 20 6f 66 20 73 | 79 73 74 65 6d 20 6d 65 |ing of s|ystem me|
|00002810| 73 73 61 67 65 73 0a 58 | 2e 62 72 0a 58 2e 53 48 |ssages.X|.br.X.SH|
|00002820| 20 53 65 65 20 41 6c 73 | 6f 0a 58 2e 50 50 0a 58 | See Als|o.X.PP.X|
|00002830| 67 65 74 74 79 28 31 4d | 29 2c 0a 58 6d 61 69 6c |getty(1M|),.Xmail|
|00002840| 28 31 29 2c 0a 58 70 61 | 73 73 77 64 28 31 29 2c |(1),.Xpa|sswd(1),|
|00002850| 0a 58 73 68 28 31 29 2c | 0a 58 73 75 28 31 29 2c |.Xsh(1),|.Xsu(1),|
|00002860| 0a 58 64 5f 70 61 73 73 | 77 64 28 34 29 2c 0a 58 |.Xd_pass|wd(4),.X|
|00002870| 70 61 73 73 77 64 28 34 | 29 0a 53 48 41 52 5f 45 |passwd(4|).SHAR_E|
|00002880| 4f 46 0a 69 66 20 74 65 | 73 74 20 33 33 34 38 20 |OF.if te|st 3348 |
|00002890| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 6c |-ne "`wc| -c < 'l|
|000028a0| 6f 67 69 6e 2e 31 27 60 | 22 0a 74 68 65 6e 0a 09 |ogin.1'`|".then..|
|000028b0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 72 72 6f |echo sha|r: "erro|
|000028c0| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 27 |r transm|itting '|
|000028d0| 6c 6f 67 69 6e 2e 31 27 | 22 20 27 28 73 68 6f 75 |login.1'|" '(shou|
|000028e0| 6c 64 20 68 61 76 65 20 | 62 65 65 6e 20 33 33 34 |ld have |been 334|
|000028f0| 38 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |8 charac|ters)'.f|
|00002900| 69 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |i.fi.ech|o shar: |
|00002910| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 70 61 73 |"extract|ing 'pas|
|00002920| 73 77 64 2e 31 27 22 20 | 27 28 34 31 32 30 20 63 |swd.1'" |'(4120 c|
|00002930| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00002940| 65 73 74 20 2d 66 20 27 | 70 61 73 73 77 64 2e 31 |est -f '|passwd.1|
|00002950| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00002960| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00002970| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002980| 20 66 69 6c 65 20 27 70 | 61 73 73 77 64 2e 31 27 | file 'p|asswd.1'|
|00002990| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|000029a0| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|000029b0| 20 3e 20 27 70 61 73 73 | 77 64 2e 31 27 0a 58 2e | > 'pass|wd.1'.X.|
|000029c0| 5c 22 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |\" Copyr|ight 198|
|000029d0| 39 2c 20 31 39 39 30 2c | 20 4a 6f 68 6e 20 46 2e |9, 1990,| John F.|
|000029e0| 20 48 61 75 67 68 20 49 | 49 0a 58 2e 5c 22 20 41 | Haugh I|I.X.\" A|
|000029f0| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00002a00| 65 64 2e 0a 58 2e 5c 22 | 0a 58 2e 5c 22 20 55 73 |ed..X.\"|.X.\" Us|
|00002a10| 65 2c 20 64 75 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |e, dupli|cation, |
|00002a20| 61 6e 64 20 64 69 73 63 | 6c 6f 73 75 72 65 20 70 |and disc|losure p|
|00002a30| 72 6f 68 69 62 69 74 65 | 64 20 77 69 74 68 6f 75 |rohibite|d withou|
|00002a40| 74 0a 58 2e 5c 22 20 74 | 68 65 20 65 78 70 72 65 |t.X.\" t|he expre|
|00002a50| 73 73 20 77 72 69 74 74 | 65 6e 20 70 65 72 6d 69 |ss writt|en permi|
|00002a60| 73 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 61 75 74 |ssion of| the aut|
|00002a70| 68 6f 72 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 09 40 |hor..X.\|".X.\".@|
|00002a80| 28 23 29 70 61 73 73 77 | 64 2e 31 09 32 2e 32 2e |(#)passw|d.1.2.2.|
|00002a90| 31 2e 31 09 30 39 3a 30 | 37 3a 31 31 09 31 31 2f |1.1.09:0|7:11.11/|
|00002aa0| 32 36 2f 39 30 0a 58 2e | 5c 22 0a 58 2e 54 48 20 |26/90.X.|\".X.TH |
|00002ab0| 50 41 53 53 57 44 20 31 | 0a 58 2e 53 48 20 4e 41 |PASSWD 1|.X.SH NA|
|00002ac0| 4d 45 0a 58 70 61 73 73 | 77 64 20 5c 2d 20 63 68 |ME.Xpass|wd \- ch|
|00002ad0| 61 6e 67 65 20 75 73 65 | 72 20 70 61 73 73 77 6f |ange use|r passwo|
|00002ae0| 72 64 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |rd.X.SH |SYNOPSIS|
|00002af0| 0a 58 5c 66 42 70 61 73 | 73 77 64 5c 66 52 20 5b |.X\fBpas|swd\fR [|
|00002b00| 20 5c 66 42 2d 66 5c 66 | 52 20 5d 20 5b 20 5c 66 | \fB-f\f|R ] [ \f|
|00002b10| 49 6e 61 6d 65 5c 66 52 | 20 5d 0a 58 2e 62 72 0a |Iname\fR| ].X.br.|
|00002b20| 58 5c 66 42 70 61 73 73 | 77 64 5c 66 52 20 5b 20 |X\fBpass|wd\fR [ |
|00002b30| 5c 66 42 2d 67 5c 66 52 | 20 5d 20 5b 20 5c 66 42 |\fB-g\fR| ] [ \fB|
|00002b40| 2d 72 5c 66 52 20 5d 20 | 5c 66 49 67 72 6f 75 70 |-r\fR ] |\fIgroup|
|00002b50| 5c 66 52 0a 58 2e 53 48 | 20 44 45 53 43 52 49 50 |\fR.X.SH| DESCRIP|
|00002b60| 54 49 4f 4e 0a 58 5c 66 | 49 70 61 73 73 77 64 5c |TION.X\f|Ipasswd\|
|00002b70| 66 20 63 68 61 6e 67 65 | 73 20 70 61 73 73 77 6f |f change|s passwo|
|00002b80| 72 64 73 20 66 6f 72 20 | 75 73 65 72 20 61 63 63 |rds for |user acc|
|00002b90| 6f 75 6e 74 73 2e 0a 58 | 41 20 6e 6f 72 6d 61 6c |ounts..X|A normal|
|00002ba0| 20 75 73 65 72 20 6d 61 | 79 20 6f 6e 6c 79 20 63 | user ma|y only c|
|00002bb0| 68 61 6e 67 65 20 74 68 | 65 20 70 61 73 73 77 6f |hange th|e passwo|
|00002bc0| 72 64 20 66 6f 72 20 74 | 68 65 69 72 20 6f 77 6e |rd for t|heir own|
|00002bd0| 20 61 63 63 6f 75 6e 74 | 2c 0a 58 74 68 65 20 73 | account|,.Xthe s|
|00002be0| 75 70 65 72 20 75 73 65 | 72 20 6d 61 79 20 63 68 |uper use|r may ch|
|00002bf0| 61 6e 67 65 20 74 68 65 | 20 70 61 73 73 77 6f 72 |ange the| passwor|
|00002c00| 64 20 66 6f 72 20 61 6e | 79 20 61 63 63 6f 75 6e |d for an|y accoun|
|00002c10| 74 2e 0a 58 2e 50 50 0a | 58 54 68 65 20 75 73 65 |t..X.PP.|XThe use|
|00002c20| 72 20 69 73 20 66 69 72 | 73 74 20 70 72 6f 6d 70 |r is fir|st promp|
|00002c30| 74 65 64 20 66 6f 72 20 | 74 68 65 69 72 20 6f 6c |ted for |their ol|
|00002c40| 64 20 70 61 73 73 77 6f | 72 64 2c 0a 58 69 66 20 |d passwo|rd,.Xif |
|00002c50| 6f 6e 65 20 69 73 20 70 | 72 65 73 65 6e 74 2e 0a |one is p|resent..|
|00002c60| 58 54 68 69 73 20 70 61 | 73 73 77 6f 72 64 20 69 |XThis pa|ssword i|
|00002c70| 73 20 74 68 65 6e 20 65 | 6e 63 72 79 70 74 65 64 |s then e|ncrypted|
|00002c80| 20 61 6e 64 20 63 6f 6d | 70 61 72 65 64 20 61 67 | and com|pared ag|
|00002c90| 61 69 6e 73 74 20 74 68 | 65 0a 58 73 74 6f 72 65 |ainst th|e.Xstore|
|00002ca0| 64 20 70 61 73 73 77 6f | 72 64 2e 0a 58 54 68 65 |d passwo|rd..XThe|
|00002cb0| 20 75 73 65 72 20 68 61 | 73 20 6f 6e 6c 79 20 6f | user ha|s only o|
|00002cc0| 6e 65 20 63 68 61 6e 63 | 65 20 74 6f 20 65 6e 74 |ne chanc|e to ent|
|00002cd0| 65 72 20 74 68 65 20 63 | 6f 72 72 65 63 74 20 70 |er the c|orrect p|
|00002ce0| 61 73 73 77 6f 72 64 2e | 0a 58 54 68 65 20 73 75 |assword.|.XThe su|
|00002cf0| 70 65 72 20 75 73 65 72 | 20 69 73 20 70 65 72 6d |per user| is perm|
|00002d00| 69 74 74 65 64 20 74 6f | 20 62 79 70 61 73 73 20 |itted to| bypass |
|00002d10| 74 68 69 73 20 73 74 65 | 70 20 73 6f 20 74 68 61 |this ste|p so tha|
|00002d20| 74 20 66 6f 72 67 6f 74 | 74 65 6e 0a 58 70 61 73 |t forgot|ten.Xpas|
|00002d30| 73 77 6f 72 64 73 20 6d | 61 79 20 62 65 20 63 68 |swords m|ay be ch|
|00002d40| 61 6e 67 65 64 2e 0a 58 | 2e 50 50 0a 58 41 66 74 |anged..X|.PP.XAft|
|00002d50| 65 72 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |er the p|assword |
|00002d60| 68 61 73 20 62 65 65 6e | 20 65 6e 74 65 72 65 64 |has been| entered|
|00002d70| 20 70 61 73 73 77 6f 72 | 64 20 61 67 69 6e 67 20 | passwor|d aging |
|00002d80| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 58 69 73 20 |informat|ion.Xis |
|00002d90| 63 68 65 63 6b 65 64 20 | 74 6f 20 73 65 65 20 69 |checked |to see i|
|00002da0| 66 20 74 68 65 20 75 73 | 65 72 20 69 73 20 70 65 |f the us|er is pe|
|00002db0| 72 6d 69 74 74 65 64 20 | 74 6f 20 63 68 61 6e 67 |rmitted |to chang|
|00002dc0| 65 20 74 68 65 69 72 20 | 70 61 73 73 77 6f 72 64 |e their |password|
|00002dd0| 0a 58 61 74 20 74 68 69 | 73 20 74 69 6d 65 2e 0a |.Xat thi|s time..|
|00002de0| 58 49 66 20 6e 6f 74 2c | 20 5c 66 49 70 61 73 73 |XIf not,| \fIpass|
|00002df0| 77 64 5c 66 52 20 72 65 | 66 75 73 65 73 20 74 6f |wd\fR re|fuses to|
|00002e00| 20 63 68 61 6e 67 65 20 | 74 68 65 20 70 61 73 73 | change |the pass|
|00002e10| 77 6f 72 64 20 61 6e 64 | 20 65 78 69 74 73 2e 0a |word and| exits..|
|00002e20| 58 2e 50 50 0a 58 54 68 | 65 20 75 73 65 72 20 69 |X.PP.XTh|e user i|
|00002e30| 73 20 74 68 65 6e 20 70 | 72 6f 6d 70 74 65 64 20 |s then p|rompted |
|00002e40| 66 6f 72 20 61 20 72 65 | 70 6c 61 63 65 6d 65 6e |for a re|placemen|
|00002e50| 74 20 70 61 73 73 77 6f | 72 64 2e 0a 58 54 68 69 |t passwo|rd..XThi|
|00002e60| 73 20 70 61 73 73 77 6f | 72 64 20 69 73 20 74 65 |s passwo|rd is te|
|00002e70| 73 74 65 64 20 66 6f 72 | 20 63 6f 6d 70 6c 65 78 |sted for| complex|
|00002e80| 69 74 79 2e 0a 58 41 73 | 20 61 20 67 65 6e 65 72 |ity..XAs| a gener|
|00002e90| 61 6c 20 67 75 69 64 65 | 6c 69 6e 65 2c 0a 58 70 |al guide|line,.Xp|
|00002ea0| 61 73 73 77 6f 72 64 73 | 20 73 68 6f 75 6c 64 20 |asswords| should |
|00002eb0| 63 6f 6e 73 69 73 74 20 | 6f 66 20 36 20 74 6f 20 |consist |of 6 to |
|00002ec0| 38 20 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 63 |8 charac|ters inc|
|00002ed0| 6c 75 64 69 6e 67 0a 58 | 6f 6e 65 20 6f 72 20 6d |luding.X|one or m|
|00002ee0| 6f 72 65 20 66 72 6f 6d | 20 65 61 63 68 20 6f 66 |ore from| each of|
|00002ef0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 73 65 74 73 3a | followi|ng sets:|
|00002f00| 0a 58 2e 49 50 20 22 22 | 20 2e 35 69 0a 58 4c 6f |.X.IP ""| .5i.XLo|
|00002f10| 77 65 72 20 63 61 73 65 | 20 61 6c 70 68 61 62 65 |wer case| alphabe|
|00002f20| 74 69 63 73 0a 58 2e 49 | 50 20 22 22 20 2e 35 69 |tics.X.I|P "" .5i|
|00002f30| 0a 58 55 70 70 65 72 20 | 63 61 73 65 20 61 6c 70 |.XUpper |case alp|
|00002f40| 68 61 62 65 74 69 63 73 | 0a 58 2e 49 50 20 22 22 |habetics|.X.IP ""|
|00002f50| 20 2e 35 69 0a 58 44 69 | 67 69 74 73 20 30 20 74 | .5i.XDi|gits 0 t|
|00002f60| 68 72 75 20 39 0a 58 2e | 49 50 20 22 22 20 2e 35 |hru 9.X.|IP "" .5|
|00002f70| 69 0a 58 50 75 6e 63 74 | 75 61 74 69 6f 6e 20 6d |i.XPunct|uation m|
|00002f80| 61 72 6b 73 0a 58 2e 50 | 50 0a 58 43 61 72 65 20 |arks.X.P|P.XCare |
|00002f90| 6d 75 73 74 20 62 65 20 | 74 61 6b 65 6e 20 6e 6f |must be |taken no|
|00002fa0| 74 20 74 6f 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |t to inc|lude the|
|00002fb0| 20 73 79 73 74 65 6d 20 | 64 65 66 61 75 6c 74 20 | system |default |
|00002fc0| 65 72 61 73 65 0a 58 6f | 72 20 6b 69 6c 6c 20 63 |erase.Xo|r kill c|
|00002fd0| 68 61 72 61 63 74 65 72 | 73 2e 0a 58 5c 66 49 70 |haracter|s..X\fIp|
|00002fe0| 61 73 73 77 64 5c 66 52 | 20 77 69 6c 6c 20 72 65 |asswd\fR| will re|
|00002ff0| 6a 65 63 74 20 61 6e 79 | 20 70 61 73 73 77 6f 72 |ject any| passwor|
|00003000| 64 20 77 68 69 63 68 20 | 69 73 20 6e 6f 74 20 73 |d which |is not s|
|00003010| 75 69 74 61 62 6c 79 0a | 58 63 6f 6d 70 6c 65 78 |uitably.|Xcomplex|
|00003020| 2e 0a 58 2e 50 50 0a 58 | 49 66 20 74 68 65 20 70 |..X.PP.X|If the p|
|00003030| 61 73 73 77 6f 72 64 20 | 69 73 20 61 63 63 65 70 |assword |is accep|
|00003040| 74 65 64 2c 0a 58 5c 66 | 49 70 61 73 73 77 64 5c |ted,.X\f|Ipasswd\|
|00003050| 66 52 20 77 69 6c 6c 20 | 70 72 6f 6d 70 74 20 61 |fR will |prompt a|
|00003060| 67 61 69 6e 20 61 6e 64 | 20 63 6f 6d 70 61 72 65 |gain and| compare|
|00003070| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 65 6e 74 72 | the sec|ond entr|
|00003080| 79 0a 58 61 67 61 69 6e | 73 74 20 74 68 65 20 66 |y.Xagain|st the f|
|00003090| 69 72 73 74 2e 0a 58 42 | 6f 74 68 20 65 6e 74 72 |irst..XB|oth entr|
|000030a0| 69 65 73 20 61 72 65 20 | 72 65 71 75 69 72 65 20 |ies are |require |
|000030b0| 74 6f 20 6d 61 74 63 68 | 20 69 6e 20 6f 72 64 65 |to match| in orde|
|000030c0| 72 20 66 6f 72 20 74 68 | 65 20 70 61 73 73 77 6f |r for th|e passwo|
|000030d0| 72 64 0a 58 74 6f 20 62 | 65 20 63 68 61 6e 67 65 |rd.Xto b|e change|
|000030e0| 64 2e 0a 58 2e 50 50 0a | 58 57 68 65 6e 20 74 68 |d..X.PP.|XWhen th|
|000030f0| 65 20 5c 66 42 2d 67 5c | 66 20 6f 70 74 69 6f 6e |e \fB-g\|f option|
|00003100| 20 69 73 20 75 73 65 64 | 2c 20 74 68 65 20 70 61 | is used|, the pa|
|00003110| 73 73 77 6f 72 64 20 66 | 6f 72 20 74 68 65 20 6e |ssword f|or the n|
|00003120| 61 6d 65 64 0a 58 67 72 | 6f 75 70 20 69 73 20 63 |amed.Xgr|oup is c|
|00003130| 68 61 6e 67 65 64 2e 0a | 58 54 68 65 20 75 73 65 |hanged..|XThe use|
|00003140| 72 20 6d 75 73 74 20 65 | 69 74 68 65 72 20 62 65 |r must e|ither be|
|00003150| 20 74 68 65 20 73 75 70 | 65 72 20 75 73 65 72 2c | the sup|er user,|
|00003160| 20 6f 72 20 74 68 65 20 | 66 69 72 73 74 20 67 72 | or the |first gr|
|00003170| 6f 75 70 0a 58 6d 65 6d | 62 65 72 20 6c 69 73 74 |oup.Xmem|ber list|
|00003180| 65 64 20 66 6f 72 20 74 | 68 65 20 6e 61 6d 65 64 |ed for t|he named|
|00003190| 20 67 72 6f 75 70 2e 0a | 58 54 68 65 20 63 75 72 | group..|XThe cur|
|000031a0| 72 65 6e 74 20 67 72 6f | 75 70 20 70 61 73 73 77 |rent gro|up passw|
|000031b0| 6f 72 64 20 69 73 20 6e | 6f 74 20 70 72 6f 6d 70 |ord is n|ot promp|
|000031c0| 74 65 64 20 66 6f 72 2e | 0a 58 54 68 65 20 5c 66 |ted for.|.XThe \f|
|000031d0| 42 2d 72 5c 66 20 6f 70 | 74 69 6f 6e 20 69 73 20 |B-r\f op|tion is |
|000031e0| 75 73 65 64 20 77 69 74 | 68 20 74 68 65 20 5c 66 |used wit|h the \f|
|000031f0| 42 2d 67 5c 66 20 6f 70 | 74 69 6f 6e 20 74 6f 20 |B-g\f op|tion to |
|00003200| 72 65 6d 6f 76 65 0a 58 | 74 68 65 20 63 75 72 72 |remove.X|the curr|
|00003210| 65 6e 74 20 70 61 73 73 | 77 6f 72 64 20 66 72 6f |ent pass|word fro|
|00003220| 6d 20 74 68 65 20 6e 61 | 6d 65 64 20 67 72 6f 75 |m the na|med grou|
|00003230| 70 2e 0a 58 2e 53 48 20 | 48 69 6e 74 73 20 66 6f |p..X.SH |Hints fo|
|00003240| 72 20 75 73 65 72 20 70 | 61 73 73 77 6f 72 64 73 |r user p|asswords|
|00003250| 0a 58 54 68 65 20 73 65 | 63 75 72 69 74 79 20 6f |.XThe se|curity o|
|00003260| 66 20 61 20 70 61 73 73 | 77 6f 72 64 20 64 65 70 |f a pass|word dep|
|00003270| 65 6e 64 73 20 75 70 6f | 6e 20 74 68 65 20 73 74 |ends upo|n the st|
|00003280| 72 65 6e 67 74 68 20 6f | 66 20 74 68 65 0a 58 65 |rength o|f the.Xe|
|00003290| 6e 63 72 79 70 74 69 6f | 6e 20 61 6c 67 6f 72 69 |ncryptio|n algori|
|000032a0| 74 68 6d 20 61 6e 64 20 | 74 68 65 20 73 69 7a 65 |thm and |the size|
|000032b0| 20 6f 66 20 74 68 65 20 | 6b 65 79 20 73 70 61 63 | of the |key spac|
|000032c0| 65 2e 0a 58 54 68 65 20 | 5c 66 42 5c 73 2d 32 55 |e..XThe |\fB\s-2U|
|000032d0| 4e 49 58 5c 73 2b 32 5c | 66 52 20 53 79 73 74 65 |NIX\s+2\|fR Syste|
|000032e0| 6d 20 65 6e 63 72 79 70 | 74 69 6f 6e 20 6d 65 74 |m encryp|tion met|
|000032f0| 68 6f 64 20 69 73 20 62 | 61 73 65 64 20 6f 6e 0a |hod is b|ased on.|
|00003300| 58 74 68 65 20 4e 42 53 | 20 44 45 53 20 61 6c 67 |Xthe NBS| DES alg|
|00003310| 6f 72 69 74 68 6d 20 61 | 6e 64 20 69 73 20 76 65 |orithm a|nd is ve|
|00003320| 72 79 20 73 65 63 75 72 | 65 2e 0a 58 54 68 65 20 |ry secur|e..XThe |
|00003330| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 6b 65 79 20 |size of |the key |
|00003340| 73 70 61 63 65 20 64 65 | 70 65 6e 64 73 20 75 70 |space de|pends up|
|00003350| 6f 6e 20 74 68 65 20 72 | 61 6e 64 6f 6d 6e 65 73 |on the r|andomnes|
|00003360| 73 20 6f 66 20 74 68 65 | 0a 58 70 61 73 73 77 6f |s of the|.Xpasswo|
|00003370| 72 64 20 77 68 69 63 68 | 20 69 73 20 73 65 6c 65 |rd which| is sele|
|00003380| 63 74 65 64 2e 0a 58 2e | 50 50 0a 58 43 6f 6d 70 |cted..X.|PP.XComp|
|00003390| 72 6f 6d 69 73 65 73 20 | 69 6e 20 70 61 73 73 77 |romises |in passw|
|000033a0| 6f 72 64 20 73 65 63 75 | 72 69 74 79 20 6e 6f 72 |ord secu|rity nor|
|000033b0| 6d 61 6c 6c 79 20 72 65 | 73 75 6c 74 20 66 72 6f |mally re|sult fro|
|000033c0| 6d 20 63 61 72 65 6c 65 | 73 73 0a 58 70 61 73 73 |m carele|ss.Xpass|
|000033d0| 77 6f 72 64 20 73 65 6c | 65 63 74 69 6f 6e 20 6f |word sel|ection o|
|000033e0| 72 20 68 61 6e 64 6c 69 | 6e 67 2e 0a 58 46 6f 72 |r handli|ng..XFor|
|000033f0| 20 74 68 69 73 20 72 65 | 61 73 6f 6e 2c 20 79 6f | this re|ason, yo|
|00003400| 75 20 73 68 6f 75 6c 64 | 20 73 65 6c 65 63 74 20 |u should| select |
|00003410| 61 20 70 61 73 73 77 6f | 72 64 20 77 68 69 63 68 |a passwo|rd which|
|00003420| 20 64 6f 65 73 20 6e 6f | 74 0a 58 61 70 70 65 61 | does no|t.Xappea|
|00003430| 72 20 69 6e 20 61 20 64 | 69 63 74 69 6f 6e 61 72 |r in a d|ictionar|
|00003440| 79 20 6f 72 20 77 68 69 | 63 68 20 6d 75 73 74 20 |y or whi|ch must |
|00003450| 62 65 20 77 72 69 74 74 | 65 6e 20 64 6f 77 6e 2e |be writt|en down.|
|00003460| 0a 58 54 68 65 20 70 61 | 73 73 77 6f 72 64 20 73 |.XThe pa|ssword s|
|00003470| 68 6f 75 6c 64 20 61 6c | 73 6f 20 6e 6f 74 20 62 |hould al|so not b|
|00003480| 65 20 61 20 70 72 6f 70 | 65 72 20 6e 61 6d 65 2c |e a prop|er name,|
|00003490| 20 79 6f 75 72 20 6c 69 | 63 65 6e 73 65 0a 58 6e | your li|cense.Xn|
|000034a0| 75 6d 62 65 72 2c 20 62 | 69 72 74 68 20 64 61 74 |umber, b|irth dat|
|000034b0| 65 2c 20 6f 72 20 73 74 | 72 65 65 74 20 61 64 64 |e, or st|reet add|
|000034c0| 72 65 73 73 2e 0a 58 41 | 6e 79 20 6f 66 20 74 68 |ress..XA|ny of th|
|000034d0| 65 73 65 20 6d 61 79 20 | 62 65 20 75 73 65 64 20 |ese may |be used |
|000034e0| 61 73 20 67 75 65 73 73 | 65 73 20 74 6f 20 76 69 |as guess|es to vi|
|000034f0| 6f 6c 61 74 65 20 73 79 | 73 74 65 6d 20 73 65 63 |olate sy|stem sec|
|00003500| 75 72 69 74 79 2e 0a 58 | 2e 50 50 0a 58 59 6f 75 |urity..X|.PP.XYou|
|00003510| 72 20 70 61 73 73 77 6f | 72 64 20 6d 75 73 74 20 |r passwo|rd must |
|00003520| 65 61 73 69 6c 79 20 72 | 65 6d 65 6d 62 65 72 65 |easily r|emembere|
|00003530| 64 20 73 6f 20 74 68 61 | 74 20 79 6f 75 20 77 69 |d so tha|t you wi|
|00003540| 6c 6c 20 6e 6f 74 0a 58 | 62 65 20 66 6f 72 63 65 |ll not.X|be force|
|00003550| 64 20 74 6f 20 77 72 69 | 74 65 20 69 74 20 6f 6e |d to wri|te it on|
|00003560| 20 61 20 70 69 65 63 65 | 20 6f 66 20 70 61 70 65 | a piece| of pape|
|00003570| 72 2e 0a 58 54 68 69 73 | 20 63 61 6e 20 62 65 20 |r..XThis| can be |
|00003580| 61 63 63 6f 6d 70 6c 69 | 73 68 65 64 20 62 79 20 |accompli|shed by |
|00003590| 61 70 70 65 6e 64 69 6e | 67 20 74 77 6f 20 73 6d |appendin|g two sm|
|000035a0| 61 6c 6c 20 77 6f 72 64 | 73 20 74 6f 67 65 74 68 |all word|s togeth|
|000035b0| 65 72 0a 58 61 6e 64 20 | 73 65 70 61 72 61 74 69 |er.Xand |separati|
|000035c0| 6e 67 20 65 61 63 68 20 | 77 69 74 68 20 61 20 73 |ng each |with a s|
|000035d0| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|000035e0| 20 6f 72 20 64 69 67 69 | 74 2e 0a 58 46 6f 72 20 | or digi|t..XFor |
|000035f0| 65 78 61 6d 70 6c 65 2c | 20 50 61 73 73 25 77 6f |example,| Pass%wo|
|00003600| 72 64 2e 0a 58 2e 50 50 | 0a 58 4f 74 68 65 72 20 |rd..X.PP|.XOther |
|00003610| 6d 65 74 68 6f 64 73 20 | 6f 66 20 63 6f 6e 73 74 |methods |of const|
|00003620| 72 75 63 74 69 6f 6e 20 | 69 6e 76 6f 6c 76 65 20 |ruction |involve |
|00003630| 73 65 6c 65 63 74 69 6e | 67 20 61 6e 20 65 61 73 |selectin|g an eas|
|00003640| 69 6c 79 0a 58 72 65 6d | 65 6d 62 65 72 65 64 20 |ily.Xrem|embered |
|00003650| 70 68 72 61 73 65 20 66 | 72 6f 6d 20 6c 69 74 65 |phrase f|rom lite|
|00003660| 72 61 74 75 72 65 20 61 | 6e 64 20 73 65 6c 65 63 |rature a|nd selec|
|00003670| 74 69 6e 67 20 74 68 65 | 20 66 69 72 73 74 0a 58 |ting the| first.X|
|00003680| 6f 72 20 6c 61 73 74 20 | 6c 65 74 74 65 72 20 66 |or last |letter f|
|00003690| 72 6f 6d 20 65 61 63 68 | 2e 0a 58 41 6e 20 65 78 |rom each|..XAn ex|
|000036a0| 61 6d 70 6c 65 20 6f 66 | 20 74 68 69 73 20 69 73 |ample of| this is|
|000036b0| 0a 58 2e 49 50 20 22 22 | 20 2e 35 69 0a 58 41 73 |.X.IP ""| .5i.XAs|
|000036c0| 6b 20 6e 6f 74 20 66 6f | 72 20 77 68 6f 6d 20 74 |k not fo|r whom t|
|000036d0| 68 65 20 62 65 6c 6c 20 | 74 6f 6c 6c 73 2e 0a 58 |he bell |tolls..X|
|000036e0| 2e 50 50 0a 58 77 68 69 | 63 68 20 70 72 6f 64 75 |.PP.Xwhi|ch produ|
|000036f0| 63 65 73 0a 58 2e 49 50 | 20 22 22 20 2e 35 69 0a |ces.X.IP| "" .5i.|
|00003700| 58 41 6e 34 77 74 62 74 | 2e 0a 58 2e 50 50 0a 58 |XAn4wtbt|..X.PP.X|
|00003710| 59 6f 75 20 6d 61 79 20 | 62 65 20 72 65 61 73 6f |You may |be reaso|
|00003720| 6e 61 62 6c 79 20 73 75 | 72 65 20 66 65 77 20 63 |nably su|re few c|
|00003730| 72 61 63 6b 65 72 73 20 | 77 69 6c 6c 20 68 61 76 |rackers |will hav|
|00003740| 65 0a 58 69 6e 63 6c 75 | 64 65 64 20 74 68 69 73 |e.Xinclu|ded this|
|00003750| 20 69 6e 20 74 68 65 69 | 72 20 64 69 63 74 69 6f | in thei|r dictio|
|00003760| 6e 61 72 79 2e 0a 58 2e | 53 48 20 4e 6f 74 65 73 |nary..X.|SH Notes|
|00003770| 20 61 62 6f 75 74 20 67 | 72 6f 75 70 20 70 61 73 | about g|roup pas|
|00003780| 73 77 6f 72 64 73 0a 58 | 47 72 6f 75 70 20 70 61 |swords.X|Group pa|
|00003790| 73 73 77 6f 72 64 73 20 | 61 72 65 20 61 6e 20 69 |sswords |are an i|
|000037a0| 6e 68 65 72 65 6e 74 20 | 73 65 63 75 72 69 74 79 |nherent |security|
|000037b0| 20 70 72 6f 62 6c 65 6d | 20 73 69 6e 63 65 20 6d | problem| since m|
|000037c0| 6f 72 65 0a 58 74 68 61 | 6e 20 6f 6e 65 20 70 65 |ore.Xtha|n one pe|
|000037d0| 72 73 6f 6e 20 69 73 20 | 70 65 72 6d 69 74 74 65 |rson is |permitte|
|000037e0| 64 20 74 6f 20 6b 6e 6f | 77 20 74 68 65 20 70 61 |d to kno|w the pa|
|000037f0| 73 73 77 6f 72 64 2e 0a | 58 48 6f 77 65 76 65 72 |ssword..|XHowever|
|00003800| 2c 20 67 72 6f 75 70 73 | 20 61 72 65 20 61 20 75 |, groups| are a u|
|00003810| 73 65 66 75 6c 20 74 6f | 6f 6c 20 66 6f 72 20 70 |seful to|ol for p|
|00003820| 65 72 6d 69 74 74 69 6e | 67 20 63 6f 2d 6f 70 65 |ermittin|g co-ope|
|00003830| 72 61 74 69 6f 6e 0a 58 | 62 65 74 77 65 65 6e 20 |ration.X|between |
|00003840| 64 69 66 66 65 72 65 6e | 74 20 75 73 65 72 73 2e |differen|t users.|
|00003850| 0a 58 2e 53 48 20 43 41 | 56 45 41 54 53 0a 58 4e |.X.SH CA|VEATS.XN|
|00003860| 6f 74 20 61 6c 6c 20 6f | 70 74 69 6f 6e 73 20 6d |ot all o|ptions m|
|00003870| 61 79 20 62 65 20 73 75 | 70 70 6f 72 74 65 64 2e |ay be su|pported.|
|00003880| 0a 58 50 61 73 73 77 6f | 72 64 20 63 6f 6d 70 6c |.XPasswo|rd compl|
|00003890| 65 78 69 74 79 20 63 68 | 65 63 6b 69 6e 67 20 6d |exity ch|ecking m|
|000038a0| 61 79 20 76 61 72 79 20 | 66 72 6f 6d 20 73 69 74 |ay vary |from sit|
|000038b0| 65 20 74 6f 20 73 69 74 | 65 2e 0a 58 54 68 65 20 |e to sit|e..XThe |
|000038c0| 75 73 65 72 20 69 73 20 | 75 72 67 65 64 20 74 6f |user is |urged to|
|000038d0| 20 73 65 6c 65 63 74 20 | 61 73 20 63 6f 6d 70 6c | select |as compl|
|000038e0| 65 78 20 61 20 70 61 73 | 73 77 6f 72 64 20 61 73 |ex a pas|sword as|
|000038f0| 20 74 68 65 79 0a 58 66 | 65 65 6c 20 63 6f 6d 66 | they.Xf|eel comf|
|00003900| 6f 72 74 61 62 6c 65 20 | 77 69 74 68 2e 0a 58 41 |ortable |with..XA|
|00003910| 20 5c 66 42 2d 66 5c 66 | 52 20 6f 70 74 69 6f 6e | \fB-f\f|R option|
|00003920| 20 65 78 69 73 74 73 20 | 74 6f 20 70 65 72 6d 69 | exists |to permi|
|00003930| 74 20 74 68 65 20 73 75 | 70 65 72 75 73 65 72 20 |t the su|peruser |
|00003940| 74 6f 20 6f 76 65 72 72 | 69 64 65 0a 58 61 6e 79 |to overr|ide.Xany|
|00003950| 20 70 61 73 73 77 6f 72 | 64 20 63 6f 6d 70 6c 65 | passwor|d comple|
|00003960| 78 69 74 79 20 74 65 73 | 74 69 6e 67 3b 0a 58 6e |xity tes|ting;.Xn|
|00003970| 6f 72 6d 61 6c 20 75 73 | 65 72 73 20 6d 75 73 74 |ormal us|ers must|
|00003980| 20 63 72 65 61 74 65 20 | 70 61 73 73 77 6f 72 64 | create |password|
|00003990| 73 20 77 68 69 63 68 20 | 70 61 73 73 20 74 68 65 |s which |pass the|
|000039a0| 20 63 6f 6d 70 6c 65 78 | 69 74 79 0a 58 74 65 73 | complex|ity.Xtes|
|000039b0| 74 2e 0a 58 2e 53 48 20 | 46 69 6c 65 73 0a 58 2f |t..X.SH |Files.X/|
|000039c0| 65 74 63 2f 70 61 73 73 | 77 64 20 5c 2d 20 75 73 |etc/pass|wd \- us|
|000039d0| 65 72 20 61 63 63 6f 75 | 6e 74 20 69 6e 66 6f 72 |er accou|nt infor|
|000039e0| 6d 61 74 69 6f 6e 0a 58 | 2e 62 72 0a 58 2f 65 74 |mation.X|.br.X/et|
|000039f0| 63 2f 73 68 61 64 6f 77 | 20 5c 2d 20 65 6e 63 72 |c/shadow| \- encr|
|00003a00| 79 70 74 65 64 20 75 73 | 65 72 20 70 61 73 73 77 |ypted us|er passw|
|00003a10| 6f 72 64 73 0a 58 2e 53 | 48 20 53 65 65 20 41 6c |ords.X.S|H See Al|
|00003a20| 73 6f 0a 58 70 61 73 73 | 77 64 28 33 29 2c 0a 58 |so.Xpass|wd(3),.X|
|00003a30| 73 68 61 64 6f 77 28 33 | 29 2c 0a 58 67 72 6f 75 |shadow(3|),.Xgrou|
|00003a40| 70 28 34 29 2c 0a 58 70 | 61 73 73 77 64 28 34 29 |p(4),.Xp|asswd(4)|
|00003a50| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00003a60| 74 20 34 31 32 30 20 2d | 6e 65 20 22 60 77 63 20 |t 4120 -|ne "`wc |
|00003a70| 2d 63 20 3c 20 27 70 61 | 73 73 77 64 2e 31 27 60 |-c < 'pa|sswd.1'`|
|00003a80| 22 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |".then..|echo sha|
|00003a90| 72 3a 20 22 65 72 72 6f | 72 20 74 72 61 6e 73 6d |r: "erro|r transm|
|00003aa0| 69 74 74 69 6e 67 20 27 | 70 61 73 73 77 64 2e 31 |itting '|passwd.1|
|00003ab0| 27 22 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |'" '(sho|uld have|
|00003ac0| 20 62 65 65 6e 20 34 31 | 32 30 20 63 68 61 72 61 | been 41|20 chara|
|00003ad0| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 0a 65 63 |cters)'.|fi.fi.ec|
|00003ae0| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00003af0| 74 69 6e 67 20 27 73 75 | 2e 31 27 22 20 27 28 31 |ting 'su|.1'" '(1|
|00003b00| 37 30 31 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |701 char|acters)'|
|00003b10| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 73 75 2e |.if test| -f 'su.|
|00003b20| 31 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |1'.then.|.echo sh|
|00003b30| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00003b40| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00003b50| 67 20 66 69 6c 65 20 27 | 73 75 2e 31 27 22 0a 65 |g file '|su.1'".e|
|00003b60| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|00003b70| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00003b80| 27 73 75 2e 31 27 0a 58 | 2e 5c 22 20 43 6f 70 79 |'su.1'.X|.\" Copy|
|00003b90| 72 69 67 68 74 20 31 39 | 38 39 2c 20 31 39 39 30 |right 19|89, 1990|
|00003ba0| 2c 20 4a 6f 68 6e 20 46 | 2e 20 48 61 75 67 68 20 |, John F|. Haugh |
|00003bb0| 49 49 0a 58 2e 5c 22 20 | 41 6c 6c 20 72 69 67 68 |II.X.\" |All righ|
|00003bc0| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 58 2e 5c |ts reser|ved..X.\|
|00003bd0| 22 0a 58 2e 5c 22 20 55 | 73 65 2c 20 64 75 70 6c |".X.\" U|se, dupl|
|00003be0| 69 63 61 74 69 6f 6e 2c | 20 61 6e 64 20 64 69 73 |ication,| and dis|
|00003bf0| 63 6c 6f 73 75 72 65 20 | 70 72 6f 68 69 62 69 74 |closure |prohibit|
|00003c00| 65 64 20 77 69 74 68 6f | 75 74 0a 58 2e 5c 22 20 |ed witho|ut.X.\" |
|00003c10| 74 68 65 20 65 78 70 72 | 65 73 73 20 77 72 69 74 |the expr|ess writ|
|00003c20| 74 65 6e 20 70 65 72 6d | 69 73 73 69 6f 6e 20 6f |ten perm|ission o|
|00003c30| 66 20 74 68 65 20 61 75 | 74 68 6f 72 2e 0a 58 2e |f the au|thor..X.|
|00003c40| 5c 22 0a 58 2e 5c 22 09 | 40 28 23 29 73 75 2e 31 |\".X.\".|@(#)su.1|
|00003c50| 09 32 2e 31 2e 31 2e 31 | 09 30 39 3a 30 37 3a 31 |.2.1.1.1|.09:07:1|
|00003c60| 33 09 31 31 2f 32 36 2f | 39 30 0a 58 2e 5c 22 0a |3.11/26/|90.X.\".|
|00003c70| 58 2e 54 48 20 53 55 20 | 31 0a 58 2e 53 48 20 4e |X.TH SU |1.X.SH N|
|00003c80| 41 4d 45 0a 58 73 75 20 | 5c 2d 20 43 68 61 6e 67 |AME.Xsu |\- Chang|
|00003c90| 65 20 75 73 65 72 20 49 | 44 20 6f 72 20 62 65 63 |e user I|D or bec|
|00003ca0| 6f 6d 65 20 73 75 70 65 | 72 2d 75 73 65 72 0a 58 |ome supe|r-user.X|
|00003cb0| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 58 2e 42 |.SH SYNO|PSIS.X.B|
|00003cc0| 20 73 75 0a 58 5b 20 2d | 20 5d 20 5b 20 75 73 65 | su.X[ -| ] [ use|
|00003cd0| 72 6e 61 6d 65 20 5b 20 | 61 72 67 73 20 5d 20 5d |rname [ |args ] ]|
|00003ce0| 0a 58 2e 53 48 20 44 45 | 53 43 52 49 50 54 49 4f |.X.SH DE|SCRIPTIO|
|00003cf0| 4e 0a 58 2e 49 20 73 75 | 0a 58 69 73 20 75 73 65 |N.X.I su|.Xis use|
|00003d00| 64 20 74 6f 20 62 65 63 | 6f 6d 65 20 61 6e 6f 74 |d to bec|ome anot|
|00003d10| 68 65 72 20 75 73 65 72 | 20 64 75 72 69 6e 67 20 |her user| during |
|00003d20| 61 20 6c 6f 67 69 6e 20 | 73 65 73 73 69 6f 6e 2e |a login |session.|
|00003d30| 0a 58 49 6e 76 6f 6b 65 | 64 20 77 69 74 68 6f 75 |.XInvoke|d withou|
|00003d40| 74 20 61 20 75 73 65 72 | 6e 61 6d 65 2c 20 5c 66 |t a user|name, \f|
|00003d50| 49 73 75 5c 66 52 20 64 | 65 66 61 75 6c 74 73 20 |Isu\fR d|efaults |
|00003d60| 74 6f 20 62 65 63 6f 6d | 69 6e 67 0a 58 74 68 65 |to becom|ing.Xthe|
|00003d70| 20 73 75 70 65 72 20 75 | 73 65 72 2e 0a 58 54 68 | super u|ser..XTh|
|00003d80| 65 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |e option|al argum|
|00003d90| 65 6e 74 20 5c 66 42 5c | 2d 5c 66 52 20 6d 61 79 |ent \fB\|-\fR may|
|00003da0| 20 62 65 20 75 73 65 64 | 20 74 6f 20 70 72 6f 76 | be used| to prov|
|00003db0| 69 64 65 20 61 6e 0a 58 | 65 6e 76 69 72 6f 6e 6d |ide an.X|environm|
|00003dc0| 65 6e 74 20 73 69 6d 69 | 6c 69 61 72 20 74 6f 20 |ent simi|liar to |
|00003dd0| 77 68 61 74 20 74 68 65 | 20 75 73 65 72 20 77 6f |what the| user wo|
|00003de0| 75 6c 64 20 65 78 70 65 | 63 74 20 68 61 64 0a 58 |uld expe|ct had.X|
|00003df0| 74 68 65 20 75 73 65 72 | 20 6c 6f 67 67 65 64 20 |the user| logged |
|00003e00| 69 6e 20 64 69 72 65 63 | 74 6c 79 2e 0a 58 2e 50 |in direc|tly..X.P|
|00003e10| 50 0a 58 41 64 64 69 74 | 69 6f 6e 61 6c 20 61 72 |P.XAddit|ional ar|
|00003e20| 67 75 6d 65 6e 74 73 20 | 6d 61 79 20 62 65 20 70 |guments |may be p|
|00003e30| 72 6f 76 69 64 65 64 20 | 61 66 74 65 72 20 74 68 |rovided |after th|
|00003e40| 65 20 75 73 65 72 6e 61 | 6d 65 2c 0a 58 69 6e 20 |e userna|me,.Xin |
|00003e50| 77 68 69 63 68 20 63 61 | 73 65 20 74 68 65 79 20 |which ca|se they |
|00003e60| 61 72 65 20 73 75 70 70 | 6c 69 65 64 20 74 6f 20 |are supp|lied to |
|00003e70| 74 68 65 20 75 73 65 72 | 5c 27 73 20 6c 6f 67 69 |the user|\'s logi|
|00003e80| 6e 20 73 68 65 6c 6c 2e | 0a 58 49 6e 20 70 61 72 |n shell.|.XIn par|
|00003e90| 74 69 63 75 6c 61 72 2c | 20 61 6e 20 61 72 67 75 |ticular,| an argu|
|00003ea0| 6d 65 6e 74 20 6f 66 20 | 5c 66 42 2d 63 5c 66 52 |ment of |\fB-c\fR|
|00003eb0| 20 77 69 6c 6c 20 63 61 | 75 73 65 20 74 68 65 0a | will ca|use the.|
|00003ec0| 58 6e 65 78 74 20 61 72 | 67 75 6d 65 6e 74 20 74 |Xnext ar|gument t|
|00003ed0| 6f 20 62 65 20 74 72 65 | 61 74 65 64 20 61 73 20 |o be tre|ated as |
|00003ee0| 61 20 63 6f 6d 6d 61 6e | 64 20 62 79 20 6d 6f 73 |a comman|d by mos|
|00003ef0| 74 20 63 6f 6d 6d 61 6e | 64 0a 58 69 6e 74 65 72 |t comman|d.Xinter|
|00003f00| 70 72 65 74 65 72 73 2e | 0a 58 54 68 65 20 63 6f |preters.|.XThe co|
|00003f10| 6d 6d 61 6e 64 20 77 69 | 6c 6c 20 62 65 20 65 78 |mmand wi|ll be ex|
|00003f20| 65 63 75 74 65 64 20 75 | 6e 64 65 72 20 74 68 65 |ecuted u|nder the|
|00003f30| 20 73 68 65 6c 6c 20 73 | 70 65 63 69 66 69 65 64 | shell s|pecified|
|00003f40| 20 62 79 0a 58 5c 66 42 | 24 53 48 45 4c 4c 5c 66 | by.X\fB|$SHELL\f|
|00003f50| 52 2c 20 6f 72 20 69 66 | 20 75 6e 64 65 66 69 6e |R, or if| undefin|
|00003f60| 65 64 2c 20 62 79 20 74 | 68 65 20 6f 6e 65 20 73 |ed, by t|he one s|
|00003f70| 70 65 63 69 66 69 65 64 | 20 69 6e 0a 58 5c 66 49 |pecified| in.X\fI|
|00003f80| 2f 65 74 63 2f 70 61 73 | 73 77 64 5c 66 52 2e 0a |/etc/pas|swd\fR..|
|00003f90| 58 2e 50 50 0a 58 54 68 | 65 20 75 73 65 72 20 77 |X.PP.XTh|e user w|
|00003fa0| 69 6c 6c 20 62 65 20 70 | 72 6f 6d 70 74 65 64 20 |ill be p|rompted |
|00003fb0| 66 6f 72 20 61 20 70 61 | 73 73 77 6f 72 64 2c 20 |for a pa|ssword, |
|00003fc0| 69 66 20 61 70 70 72 6f | 70 72 69 61 74 65 2e 0a |if appro|priate..|
|00003fd0| 58 49 6e 76 61 6c 69 64 | 20 70 61 73 73 77 6f 72 |XInvalid| passwor|
|00003fe0| 64 73 20 77 69 6c 6c 20 | 70 72 6f 64 75 63 65 20 |ds will |produce |
|00003ff0| 61 6e 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |an error| message|
|00004000| 2e 0a 58 41 6c 6c 20 61 | 74 74 65 6d 70 74 73 2c |..XAll a|ttempts,|
|00004010| 20 62 6f 74 68 20 76 61 | 6c 69 64 20 61 6e 64 20 | both va|lid and |
|00004020| 69 6e 76 61 6c 69 64 2c | 20 61 72 65 20 6c 6f 67 |invalid,| are log|
|00004030| 67 65 64 20 74 6f 20 64 | 65 74 65 63 74 0a 58 61 |ged to d|etect.Xa|
|00004040| 62 75 73 65 73 20 6f 66 | 20 74 68 65 20 73 79 73 |buses of| the sys|
|00004050| 74 65 6d 2e 0a 58 2e 50 | 50 0a 58 54 68 65 20 63 |tem..X.P|P.XThe c|
|00004060| 75 72 72 65 6e 74 20 65 | 6e 76 69 72 6f 6e 6d 65 |urrent e|nvironme|
|00004070| 6e 74 20 69 73 20 70 61 | 73 73 65 64 20 74 6f 20 |nt is pa|ssed to |
|00004080| 74 68 65 20 6e 65 77 20 | 73 68 65 6c 6c 2e 0a 58 |the new |shell..X|
|00004090| 54 68 65 20 76 61 6c 75 | 65 20 6f 66 20 5c 66 42 |The valu|e of \fB|
|000040a0| 24 50 41 54 48 5c 66 52 | 20 69 73 20 72 65 73 65 |$PATH\fR| is rese|
|000040b0| 74 20 74 6f 20 5c 66 42 | 2f 62 69 6e 3a 2f 75 73 |t to \fB|/bin:/us|
|000040c0| 72 2f 62 69 6e 5c 66 52 | 0a 58 66 6f 72 20 6e 6f |r/bin\fR|.Xfor no|
|000040d0| 72 6d 61 6c 20 75 73 65 | 72 73 2c 20 6f 72 20 5c |rmal use|rs, or \|
|000040e0| 66 42 2f 62 69 6e 3a 2f | 75 73 72 2f 62 69 6e 3a |fB/bin:/|usr/bin:|
|000040f0| 2f 65 74 63 5c 66 52 20 | 66 6f 72 20 74 68 65 20 |/etc\fR |for the |
|00004100| 73 75 70 65 72 20 75 73 | 65 72 2e 0a 58 2e 53 48 |super us|er..X.SH|
|00004110| 20 43 41 56 45 41 54 53 | 0a 58 2e 50 50 0a 58 54 | CAVEATS|.X.PP.XT|
|00004120| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 5c |his vers|ion of \|
|00004130| 66 49 73 75 5c 66 52 20 | 68 61 73 20 6d 61 6e 79 |fIsu\fR |has many|
|00004140| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 6f 70 74 | compila|tion opt|
|00004150| 69 6f 6e 73 2c 20 6f 6e | 6c 79 20 73 6f 6d 65 20 |ions, on|ly some |
|00004160| 6f 66 20 77 68 69 63 68 | 0a 58 6d 61 79 20 62 65 |of which|.Xmay be|
|00004170| 20 69 6e 20 75 73 65 20 | 61 74 20 61 6e 79 20 70 | in use |at any p|
|00004180| 61 72 74 69 63 75 6c 61 | 72 20 73 69 74 65 2e 0a |articula|r site..|
|00004190| 58 2e 53 48 20 46 69 6c | 65 73 0a 58 2f 65 74 63 |X.SH Fil|es.X/etc|
|000041a0| 2f 70 61 73 73 77 64 20 | 5c 2d 20 75 73 65 72 20 |/passwd |\- user |
|000041b0| 61 63 63 6f 75 6e 74 20 | 69 6e 66 6f 72 6d 61 74 |account |informat|
|000041c0| 69 6f 6e 0a 58 2e 62 72 | 0a 58 2f 65 74 63 2f 73 |ion.X.br|.X/etc/s|
|000041d0| 68 61 64 6f 77 20 5c 2d | 20 65 6e 63 72 79 70 74 |hadow \-| encrypt|
|000041e0| 65 64 20 70 61 73 73 77 | 6f 72 64 73 20 61 6e 64 |ed passw|ords and|
|000041f0| 20 61 67 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | age inf|ormation|
|00004200| 0a 58 2e 62 72 0a 58 24 | 48 4f 4d 45 2f 2e 70 72 |.X.br.X$|HOME/.pr|
|00004210| 6f 66 69 6c 65 20 5c 2d | 20 69 6e 69 74 69 61 6c |ofile \-| initial|
|00004220| 69 7a 61 74 69 6f 6e 20 | 73 63 72 69 70 74 20 66 |ization |script f|
|00004230| 6f 72 20 64 65 66 61 75 | 6c 74 20 73 68 65 6c 6c |or defau|lt shell|
|00004240| 0a 58 2e 53 48 20 53 65 | 65 20 41 6c 73 6f 0a 58 |.X.SH Se|e Also.X|
|00004250| 6c 6f 67 69 6e 28 31 29 | 2c 0a 58 73 68 28 31 29 |login(1)|,.Xsh(1)|
|00004260| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00004270| 74 20 31 37 30 31 20 2d | 6e 65 20 22 60 77 63 20 |t 1701 -|ne "`wc |
|00004280| 2d 63 20 3c 20 27 73 75 | 2e 31 27 60 22 0a 74 68 |-c < 'su|.1'`".th|
|00004290| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|000042a0| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|000042b0| 6e 67 20 27 73 75 2e 31 | 27 22 20 27 28 73 68 6f |ng 'su.1|'" '(sho|
|000042c0| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 31 37 |uld have| been 17|
|000042d0| 30 31 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |01 chara|cters)'.|
|000042e0| 66 69 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |fi.fi.ec|ho shar:|
|000042f0| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 73 68 | "extrac|ting 'sh|
|00004300| 61 64 6f 77 2e 33 27 22 | 20 27 28 32 31 31 37 20 |adow.3'"| '(2117 |
|00004310| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00004320| 74 65 73 74 20 2d 66 20 | 27 73 68 61 64 6f 77 2e |test -f |'shadow.|
|00004330| 33 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |3'.then.|.echo sh|
|00004340| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00004350| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00004360| 67 20 66 69 6c 65 20 27 | 73 68 61 64 6f 77 2e 33 |g file '|shadow.3|
|00004370| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|00004380| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|00004390| 46 20 3e 20 27 73 68 61 | 64 6f 77 2e 33 27 0a 58 |F > 'sha|dow.3'.X|
|000043a0| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|000043b0| 38 39 2c 20 31 39 39 30 | 2c 20 4a 6f 68 6e 20 46 |89, 1990|, John F|
|000043c0| 2e 20 48 61 75 67 68 20 | 49 49 0a 58 2e 5c 22 20 |. Haugh |II.X.\" |
|000043d0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000043e0| 76 65 64 2e 0a 58 2e 5c | 22 0a 58 2e 5c 22 20 55 |ved..X.\|".X.\" U|
|000043f0| 73 65 2c 20 64 75 70 6c | 69 63 61 74 69 6f 6e 2c |se, dupl|ication,|
|00004400| 20 61 6e 64 20 64 69 73 | 63 6c 6f 73 75 72 65 20 | and dis|closure |
|00004410| 70 72 6f 68 69 62 69 74 | 65 64 20 77 69 74 68 6f |prohibit|ed witho|
|00004420| 75 74 0a 58 2e 5c 22 20 | 74 68 65 20 65 78 70 72 |ut.X.\" |the expr|
|00004430| 65 73 73 20 77 72 69 74 | 74 65 6e 20 70 65 72 6d |ess writ|ten perm|
|00004440| 69 73 73 69 6f 6e 20 6f | 66 20 74 68 65 20 61 75 |ission o|f the au|
|00004450| 74 68 6f 72 2e 0a 58 2e | 5c 22 0a 58 2e 5c 22 09 |thor..X.|\".X.\".|
|00004460| 40 28 23 29 73 68 61 64 | 6f 77 2e 33 09 32 2e 31 |@(#)shad|ow.3.2.1|
|00004470| 2e 31 2e 31 09 30 39 3a | 30 37 3a 31 35 09 31 31 |.1.1.09:|07:15.11|
|00004480| 2f 32 36 2f 39 30 0a 58 | 2e 5c 22 0a 58 2e 54 48 |/26/90.X|.\".X.TH|
|00004490| 20 53 48 41 44 4f 57 20 | 33 0a 58 2e 53 48 20 4e | SHADOW |3.X.SH N|
|000044a0| 41 4d 45 0a 58 73 68 61 | 64 6f 77 20 5c 2d 20 65 |AME.Xsha|dow \- e|
|000044b0| 6e 63 72 79 70 74 65 64 | 20 70 61 73 73 77 6f 72 |ncrypted| passwor|
|000044c0| 64 20 66 69 6c 65 20 72 | 6f 75 74 69 6e 65 73 0a |d file r|outines.|
|000044d0| 58 2e 53 48 20 53 79 6e | 74 61 78 0a 58 2e 49 50 |X.SH Syn|tax.X.IP|
|000044e0| 20 22 22 20 2e 35 69 0a | 58 23 69 6e 63 6c 75 64 | "" .5i.|X#includ|
|000044f0| 65 20 3c 73 68 61 64 6f | 77 2e 68 3e 0a 58 2e 49 |e <shado|w.h>.X.I|
|00004500| 50 20 22 22 20 2e 35 69 | 0a 58 73 74 72 75 63 74 |P "" .5i|.Xstruct|
|00004510| 20 73 70 77 64 20 2a 67 | 65 74 73 70 65 6e 74 28 | spwd *g|etspent(|
|00004520| 29 3b 0a 58 2e 62 72 0a | 58 73 74 72 75 63 74 20 |);.X.br.|Xstruct |
|00004530| 73 70 77 64 20 2a 67 65 | 74 73 70 6e 61 6d 28 63 |spwd *ge|tspnam(c|
|00004540| 68 61 72 20 2a 20 6e 61 | 6d 65 29 3b 0a 58 2e 62 |har * na|me);.X.b|
|00004550| 72 0a 58 76 6f 69 64 20 | 73 65 74 73 70 65 6e 74 |r.Xvoid |setspent|
|00004560| 28 29 3b 0a 58 2e 62 72 | 0a 58 76 6f 69 64 20 65 |();.X.br|.Xvoid e|
|00004570| 6e 64 73 70 65 6e 74 28 | 29 3b 0a 58 2e 62 72 0a |ndspent(|);.X.br.|
|00004580| 58 73 74 72 75 63 74 20 | 73 70 77 64 20 2a 66 67 |Xstruct |spwd *fg|
|00004590| 65 74 73 70 65 6e 74 28 | 46 49 4c 45 20 2a 66 70 |etspent(|FILE *fp|
|000045a0| 29 3b 0a 58 2e 62 72 0a | 58 69 6e 74 20 70 75 74 |);.X.br.|Xint put|
|000045b0| 73 70 65 6e 74 28 73 74 | 72 75 63 74 20 73 70 77 |spent(st|ruct spw|
|000045c0| 64 20 2a 70 2c 46 49 4c | 45 20 2a 66 70 29 3b 0a |d *p,FIL|E *fp);.|
|000045d0| 58 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |X.SH DES|CRIPTION|
|000045e0| 0a 58 2e 49 20 73 68 61 | 64 6f 77 0a 58 6d 61 6e |.X.I sha|dow.Xman|
|000045f0| 69 70 75 6c 61 74 65 73 | 20 74 68 65 20 63 6f 6e |ipulates| the con|
|00004600| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 73 68 61 |tents of| the sha|
|00004610| 64 6f 77 20 70 61 73 73 | 77 6f 72 64 20 66 69 6c |dow pass|word fil|
|00004620| 65 2c 0a 58 5c 66 42 2f | 65 74 63 2f 73 68 61 64 |e,.X\fB/|etc/shad|
|00004630| 6f 77 5c 66 52 2e 0a 58 | 54 68 65 20 73 74 72 75 |ow\fR..X|The stru|
|00004640| 63 74 75 72 65 20 69 6e | 20 74 68 65 20 5c 66 49 |cture in| the \fI|
|00004650| 23 69 6e 63 6c 75 64 65 | 5c 66 52 20 66 69 6c 65 |#include|\fR file|
|00004660| 20 69 73 0a 58 2e 49 50 | 20 22 22 20 2e 35 69 0a | is.X.IP| "" .5i.|
|00004670| 58 73 74 72 75 63 74 20 | 73 70 77 64 20 7b 0a 58 |Xstruct |spwd {.X|
|00004680| 2e 62 72 0a 58 09 63 68 | 61 72 09 2a 73 70 5f 6e |.br.X.ch|ar.*sp_n|
|00004690| 61 6d 70 3b 20 2f 2a 20 | 75 73 65 72 20 6c 6f 67 |amp; /* |user log|
|000046a0| 69 6e 20 6e 61 6d 65 20 | 2a 2f 0a 58 2e 62 72 0a |in name |*/.X.br.|
|000046b0| 58 09 63 68 61 72 09 2a | 73 70 5f 70 77 64 70 3b |X.char.*|sp_pwdp;|
|000046c0| 20 2f 2a 20 65 6e 63 72 | 79 70 74 65 64 20 70 61 | /* encr|ypted pa|
|000046d0| 73 73 77 6f 72 64 20 2a | 2f 0a 58 2e 62 72 0a 58 |ssword *|/.X.br.X|
|000046e0| 09 6c 6f 6e 67 09 73 70 | 5f 6c 73 74 63 68 67 3b |.long.sp|_lstchg;|
|000046f0| 20 2f 2a 20 6c 61 73 74 | 20 70 61 73 73 77 6f 72 | /* last| passwor|
|00004700| 64 20 63 68 61 6e 67 65 | 20 2a 2f 0a 58 2e 62 72 |d change| */.X.br|
|00004710| 0a 58 09 69 6e 74 09 73 | 70 5f 6d 61 78 3b 20 2f |.X.int.s|p_max; /|
|00004720| 2a 20 64 61 79 73 20 62 | 65 66 6f 72 65 20 63 68 |* days b|efore ch|
|00004730| 61 6e 67 65 20 72 65 71 | 75 69 72 65 64 20 2a 2f |ange req|uired */|
|00004740| 0a 58 2e 62 72 0a 58 09 | 69 6e 74 09 73 70 5f 6d |.X.br.X.|int.sp_m|
|00004750| 69 6e 3b 20 2f 2a 20 64 | 61 79 73 20 75 6e 74 69 |in; /* d|ays unti|
|00004760| 6c 20 63 68 61 6e 67 65 | 20 61 6c 6c 6f 77 65 64 |l change| allowed|
|00004770| 2e 20 2a 2f 0a 58 2e 62 | 72 0a 58 7d 0a 58 2e 50 |. */.X.b|r.X}.X.P|
|00004780| 50 0a 58 54 68 65 20 6d | 65 61 6e 69 6e 67 73 20 |P.XThe m|eanings |
|00004790| 6f 66 20 65 61 63 68 20 | 66 69 65 6c 64 20 61 72 |of each |field ar|
|000047a0| 65 0a 58 2e 49 50 20 22 | 22 20 2e 35 69 0a 58 73 |e.X.IP "|" .5i.Xs|
|000047b0| 70 5f 6e 61 6d 70 20 5c | 2d 20 70 6f 69 6e 74 65 |p_namp \|- pointe|
|000047c0| 72 20 74 6f 20 6e 75 6c | 6c 2d 74 65 72 6d 69 6e |r to nul|l-termin|
|000047d0| 61 74 65 64 20 75 73 65 | 72 20 6e 61 6d 65 2e 0a |ated use|r name..|
|000047e0| 58 2e 49 50 20 22 22 20 | 2e 35 69 0a 58 73 70 5f |X.IP "" |.5i.Xsp_|
|000047f0| 70 77 64 70 20 5c 2d 20 | 70 6f 69 6e 74 65 72 20 |pwdp \- |pointer |
|00004800| 74 6f 20 6e 75 6c 6c 2d | 74 65 72 6d 69 6e 61 74 |to null-|terminat|
|00004810| 65 64 20 70 61 73 73 77 | 6f 72 64 2e 0a 58 2e 49 |ed passw|ord..X.I|
|00004820| 50 20 22 22 20 2e 35 69 | 0a 58 73 70 5f 6c 73 74 |P "" .5i|.Xsp_lst|
|00004830| 63 68 67 20 5c 2d 20 64 | 61 79 73 20 73 69 6e 63 |chg \- d|ays sinc|
|00004840| 65 20 4a 61 6e 20 31 2c | 20 31 39 37 30 20 70 61 |e Jan 1,| 1970 pa|
|00004850| 73 73 77 6f 72 64 20 77 | 61 73 20 6c 61 73 74 20 |ssword w|as last |
|00004860| 63 68 61 6e 67 65 64 2e | 0a 58 2e 49 50 20 22 22 |changed.|.X.IP ""|
|00004870| 20 2e 35 69 0a 58 73 70 | 5f 6d 61 78 20 5c 2d 20 | .5i.Xsp|_max \- |
|00004880| 64 61 79 73 20 61 66 74 | 65 72 20 77 68 69 63 68 |days aft|er which|
|00004890| 20 70 61 73 73 77 6f 72 | 64 20 6d 75 73 74 20 62 | passwor|d must b|
|000048a0| 65 20 63 68 61 6e 67 65 | 64 0a 58 2e 49 50 20 22 |e change|d.X.IP "|
|000048b0| 22 20 2e 35 69 0a 58 73 | 70 5f 6d 69 6e 20 5c 2d |" .5i.Xs|p_min \-|
|000048c0| 20 64 61 79 73 20 62 65 | 66 6f 72 65 20 77 68 69 | days be|fore whi|
|000048d0| 63 68 20 70 61 73 73 77 | 6f 72 64 20 6d 61 79 20 |ch passw|ord may |
|000048e0| 6e 6f 74 20 62 65 20 63 | 68 61 6e 67 65 64 2e 0a |not be c|hanged..|
|000048f0| 58 2e 53 48 20 44 65 73 | 63 72 69 70 74 69 6f 6e |X.SH Des|cription|
|00004900| 0a 58 5c 66 49 67 65 74 | 73 70 65 6e 74 5c 66 52 |.X\fIget|spent\fR|
|00004910| 2c 20 5c 66 49 67 65 74 | 73 70 6e 61 6d 65 5c 66 |, \fIget|spname\f|
|00004920| 52 2c 20 61 6e 64 20 5c | 66 49 66 67 65 74 73 70 |R, and \|fIfgetsp|
|00004930| 65 6e 74 5c 66 52 20 65 | 61 63 68 20 72 65 74 75 |ent\fR e|ach retu|
|00004940| 72 6e 0a 58 61 20 70 6f | 69 6e 74 65 72 20 74 6f |rn.Xa po|inter to|
|00004950| 20 61 20 5c 66 42 73 74 | 72 75 63 74 20 73 70 65 | a \fBst|ruct spe|
|00004960| 6e 74 5c 66 52 2e 0a 58 | 5c 66 49 67 65 74 73 70 |nt\fR..X|\fIgetsp|
|00004970| 65 6e 74 5c 66 52 20 72 | 65 74 75 72 6e 73 20 74 |ent\fR r|eturns t|
|00004980| 68 65 0a 58 6e 65 78 74 | 20 65 6e 74 72 79 20 66 |he.Xnext| entry f|
|00004990| 72 6f 6d 20 74 68 65 20 | 66 69 6c 65 2c 20 61 6e |rom the |file, an|
|000049a0| 64 20 5c 66 49 66 67 65 | 74 73 70 65 6e 74 5c 66 |d \fIfge|tspent\f|
|000049b0| 52 20 72 65 74 75 72 6e | 73 20 74 68 65 20 6e 65 |R return|s the ne|
|000049c0| 78 74 0a 58 65 6e 74 72 | 79 20 66 72 6f 6d 20 74 |xt.Xentr|y from t|
|000049d0| 68 65 20 67 69 76 65 6e | 20 73 74 72 65 61 6d 2c |he given| stream,|
|000049e0| 20 77 68 69 63 68 20 69 | 73 20 61 73 73 75 6d 65 | which i|s assume|
|000049f0| 64 20 74 6f 20 62 65 20 | 61 20 66 69 6c 65 20 6f |d to be |a file o|
|00004a00| 66 0a 58 74 68 65 20 70 | 72 6f 70 65 72 20 66 6f |f.Xthe p|roper fo|
|00004a10| 72 6d 61 74 2e 0a 58 5c | 66 49 67 65 74 73 70 6e |rmat..X\|fIgetspn|
|00004a20| 61 6d 5c 66 52 20 73 65 | 61 72 63 68 65 73 20 66 |am\fR se|arches f|
|00004a30| 72 6f 6d 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |rom the |current |
|00004a40| 70 6f 73 69 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |position| in the |
|00004a50| 66 69 6c 65 20 66 6f 72 | 0a 58 61 6e 20 65 6e 74 |file for|.Xan ent|
|00004a60| 72 79 20 6d 61 74 63 68 | 69 6e 67 20 5c 66 49 6e |ry match|ing \fIn|
|00004a70| 61 6d 65 5c 66 52 2e 0a | 58 2e 50 50 0a 58 5c 66 |ame\fR..|X.PP.X\f|
|00004a80| 49 73 65 74 73 70 65 6e | 74 5c 66 52 20 61 6e 64 |Isetspen|t\fR and|
|00004a90| 20 5c 66 49 65 6e 64 73 | 70 65 6e 74 5c 66 52 20 | \fIends|pent\fR |
|00004aa0| 6d 61 79 20 62 65 20 75 | 73 65 64 20 74 6f 20 62 |may be u|sed to b|
|00004ab0| 65 67 69 6e 20 61 6e 64 | 20 65 6e 64 2c 0a 58 72 |egin and| end,.Xr|
|00004ac0| 65 73 70 65 63 74 69 76 | 65 6c 79 2c 20 61 63 63 |espectiv|ely, acc|
|00004ad0| 65 73 73 20 74 6f 20 74 | 68 65 20 73 68 61 64 6f |ess to t|he shado|
|00004ae0| 77 20 70 61 73 73 77 6f | 72 64 20 66 69 6c 65 2e |w passwo|rd file.|
|00004af0| 0a 58 2e 53 48 20 44 69 | 61 67 6e 6f 73 74 69 63 |.X.SH Di|agnostic|
|00004b00| 73 0a 58 52 6f 75 74 69 | 6e 65 73 20 72 65 74 75 |s.XRouti|nes retu|
|00004b10| 72 6e 20 4e 55 4c 4c 20 | 69 66 20 6e 6f 20 6d 6f |rn NULL |if no mo|
|00004b20| 72 65 20 65 6e 74 72 69 | 65 73 20 61 72 65 20 61 |re entri|es are a|
|00004b30| 76 61 69 6c 61 62 6c 65 | 20 6f 72 20 69 66 20 61 |vailable| or if a|
|00004b40| 6e 0a 58 65 72 72 6f 72 | 20 6f 63 63 75 72 73 20 |n.Xerror| occurs |
|00004b50| 64 75 72 69 6e 67 20 70 | 72 6f 63 65 73 73 69 6e |during p|rocessin|
|00004b60| 67 2e 0a 58 2e 53 48 20 | 43 61 76 65 61 74 73 0a |g..X.SH |Caveats.|
|00004b70| 58 54 68 65 73 65 20 72 | 6f 75 74 69 6e 65 73 20 |XThese r|outines |
|00004b80| 6d 61 79 20 6f 6e 6c 79 | 20 62 65 20 75 73 65 64 |may only| be used|
|00004b90| 20 62 79 20 74 68 65 20 | 73 75 70 65 72 20 75 73 | by the |super us|
|00004ba0| 65 72 20 61 73 20 61 63 | 63 65 73 73 20 74 6f 0a |er as ac|cess to.|
|00004bb0| 58 74 68 65 20 73 68 61 | 64 6f 77 20 70 61 73 73 |Xthe sha|dow pass|
|00004bc0| 77 6f 72 64 20 66 69 6c | 65 20 69 73 20 72 65 73 |word fil|e is res|
|00004bd0| 74 72 69 63 74 65 64 2e | 0a 58 2e 53 48 20 46 69 |tricted.|.X.SH Fi|
|00004be0| 6c 65 73 0a 58 2f 65 74 | 63 2f 73 68 61 64 6f 77 |les.X/et|c/shadow|
|00004bf0| 20 5c 2d 20 65 6e 63 72 | 79 70 74 65 64 20 75 73 | \- encr|ypted us|
|00004c00| 65 72 20 70 61 73 73 77 | 6f 72 64 73 0a 58 2e 53 |er passw|ords.X.S|
|00004c10| 48 20 53 65 65 20 41 6c | 73 6f 0a 58 67 65 74 70 |H See Al|so.Xgetp|
|00004c20| 77 65 6e 74 28 33 29 2c | 0a 58 73 68 61 64 6f 77 |went(3),|.Xshadow|
|00004c30| 28 34 29 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |(4).SHAR|_EOF.if |
|00004c40| 74 65 73 74 20 32 31 31 | 37 20 2d 6e 65 20 22 60 |test 211|7 -ne "`|
|00004c50| 77 63 20 2d 63 20 3c 20 | 27 73 68 61 64 6f 77 2e |wc -c < |'shadow.|
|00004c60| 33 27 60 22 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |3'`".the|n..echo |
|00004c70| 73 68 61 72 3a 20 22 65 | 72 72 6f 72 20 74 72 61 |shar: "e|rror tra|
|00004c80| 6e 73 6d 69 74 74 69 6e | 67 20 27 73 68 61 64 6f |nsmittin|g 'shado|
|00004c90| 77 2e 33 27 22 20 27 28 | 73 68 6f 75 6c 64 20 68 |w.3'" '(|should h|
|00004ca0| 61 76 65 20 62 65 65 6e | 20 32 31 31 37 20 63 68 |ave been| 2117 ch|
|00004cb0| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 66 69 |aracters|)'.fi.fi|
|00004cc0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 22 65 78 74 |.echo sh|ar: "ext|
|00004cd0| 72 61 63 74 69 6e 67 20 | 27 66 61 69 6c 6c 6f 67 |racting |'faillog|
|00004ce0| 2e 34 27 22 20 27 28 39 | 37 33 20 63 68 61 72 61 |.4'" '(9|73 chara|
|00004cf0| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00004d00| 2d 66 20 27 66 61 69 6c | 6c 6f 67 2e 34 27 0a 74 |-f 'fail|log.4'.t|
|00004d10| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00004d20| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|00004d30| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00004d40| 6c 65 20 27 66 61 69 6c | 6c 6f 67 2e 34 27 22 0a |le 'fail|log.4'".|
|00004d50| 65 6c 73 65 0a 73 65 64 | 20 27 73 2f 5e 58 2f 2f |else.sed| 's/^X//|
|00004d60| 27 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |' << \SH|AR_EOF >|
|00004d70| 20 27 66 61 69 6c 6c 6f | 67 2e 34 27 0a 58 2e 5c | 'faillo|g.4'.X.\|
|00004d80| 22 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 38 39 |" Copyri|ght 1989|
|00004d90| 2c 20 31 39 39 30 2c 20 | 4a 6f 68 6e 20 46 2e 20 |, 1990, |John F. |
|00004da0| 48 61 75 67 68 20 49 49 | 0a 58 2e 5c 22 20 41 6c |Haugh II|.X.\" Al|
|00004db0| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00004dc0| 64 2e 0a 58 2e 5c 22 0a | 58 2e 5c 22 20 55 73 65 |d..X.\".|X.\" Use|
|00004dd0| 2c 20 64 75 70 6c 69 63 | 61 74 69 6f 6e 2c 20 61 |, duplic|ation, a|
|00004de0| 6e 64 20 64 69 73 63 6c | 6f 73 75 72 65 20 70 72 |nd discl|osure pr|
|00004df0| 6f 68 69 62 69 74 65 64 | 20 77 69 74 68 6f 75 74 |ohibited| without|
|00004e00| 0a 58 2e 5c 22 20 74 68 | 65 20 65 78 70 72 65 73 |.X.\" th|e expres|
|00004e10| 73 20 77 72 69 74 74 65 | 6e 20 70 65 72 6d 69 73 |s writte|n permis|
|00004e20| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 61 75 74 68 |sion of |the auth|
|00004e30| 6f 72 2e 0a 58 2e 5c 22 | 0a 58 2e 5c 22 09 40 28 |or..X.\"|.X.\".@(|
|00004e40| 23 29 66 61 69 6c 6c 6f | 67 2e 34 09 32 2e 31 2e |#)faillo|g.4.2.1.|
|00004e50| 31 2e 31 09 30 39 3a 30 | 37 3a 31 36 09 31 31 2f |1.1.09:0|7:16.11/|
|00004e60| 32 36 2f 39 30 0a 58 2e | 5c 22 0a 58 2e 54 48 20 |26/90.X.|\".X.TH |
|00004e70| 46 41 49 4c 4c 4f 47 20 | 34 0a 58 2e 53 48 20 4e |FAILLOG |4.X.SH N|
|00004e80| 41 4d 45 0a 58 66 61 69 | 6c 6c 6f 67 20 5c 2d 20 |AME.Xfai|llog \- |
|00004e90| 4c 6f 67 69 6e 20 66 61 | 69 6c 75 72 65 20 6c 6f |Login fa|ilure lo|
|00004ea0| 67 67 69 6e 67 20 66 69 | 6c 65 0a 58 2e 53 48 20 |gging fi|le.X.SH |
|00004eb0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 2e 49 20 |DESCRIPT|ION.X.I |
|00004ec0| 66 61 69 6c 6c 6f 67 0a | 58 6d 61 69 6e 74 61 69 |faillog.|Xmaintai|
|00004ed0| 6e 73 20 61 20 63 6f 75 | 6e 74 20 6f 66 20 6c 6f |ns a cou|nt of lo|
|00004ee0| 67 69 6e 20 66 61 69 6c | 75 72 65 73 20 61 6e 64 |gin fail|ures and|
|00004ef0| 20 74 68 65 20 6c 69 6d | 69 74 73 20 66 6f 72 20 | the lim|its for |
|00004f00| 65 61 63 68 20 61 63 63 | 6f 75 6e 74 2e 0a 58 54 |each acc|ount..XT|
|00004f10| 68 65 20 66 69 6c 65 20 | 69 73 20 66 69 78 65 64 |he file |is fixed|
|00004f20| 20 6c 65 6e 67 74 68 20 | 72 65 63 6f 72 64 2c 20 | length |record, |
|00004f30| 69 6e 64 65 78 65 64 20 | 62 79 20 6e 75 6d 65 72 |indexed |by numer|
|00004f40| 69 63 61 6c 20 55 49 44 | 2e 0a 58 45 61 63 68 20 |ical UID|..XEach |
|00004f50| 72 65 63 6f 72 64 20 63 | 6f 6e 74 61 69 6e 73 20 |record c|ontains |
|00004f60| 74 68 65 20 63 6f 75 6e | 74 20 6f 66 20 6c 6f 67 |the coun|t of log|
|00004f70| 69 6e 20 66 61 69 6c 75 | 72 65 73 20 73 69 6e 63 |in failu|res sinc|
|00004f80| 65 20 74 68 65 20 6c 61 | 73 74 0a 58 73 75 63 63 |e the la|st.Xsucc|
|00004f90| 65 73 73 66 75 6c 20 6c | 6f 67 69 6e 3b 0a 58 74 |essful l|ogin;.Xt|
|00004fa0| 68 65 20 6d 61 78 69 6d | 75 6d 20 6e 75 6d 62 65 |he maxim|um numbe|
|00004fb0| 72 20 6f 66 20 66 61 69 | 6c 75 72 65 73 20 62 65 |r of fai|lures be|
|00004fc0| 66 6f 72 65 20 74 68 65 | 20 61 63 63 6f 75 6e 74 |fore the| account|
|00004fd0| 20 69 73 20 64 69 73 61 | 62 6c 65 64 3b 0a 58 74 | is disa|bled;.Xt|
|00004fe0| 68 65 20 6c 69 6e 65 20 | 74 68 65 20 6c 61 73 74 |he line |the last|
|00004ff0| 20 6c 6f 67 69 6e 20 66 | 61 69 6c 75 72 65 20 6f | login f|ailure o|
|00005000| 63 63 75 72 65 64 20 6f | 6e 3b 0a 58 61 6e 64 20 |ccured o|n;.Xand |
|00005010| 74 68 65 20 64 61 74 65 | 20 74 68 65 20 6c 61 73 |the date| the las|
|00005020| 74 20 6c 6f 67 69 6e 20 | 66 61 69 6c 75 72 65 20 |t login |failure |
|00005030| 6f 63 63 75 72 65 64 2e | 0a 58 2e 50 50 0a 58 54 |occured.|.X.PP.XT|
|00005040| 68 65 20 73 74 72 75 63 | 74 75 72 65 20 6f 66 20 |he struc|ture of |
|00005050| 74 68 65 20 66 69 6c 65 | 20 69 73 0a 58 2e 44 53 |the file| is.X.DS|
|00005060| 0a 58 0a 58 20 20 20 20 | 20 20 20 20 73 74 72 75 |.X.X | stru|
|00005070| 63 74 09 66 61 69 6c 6c | 6f 67 20 7b 0a 58 20 20 |ct.faill|og {.X |
|00005080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 68 | | sh|
|00005090| 6f 72 74 20 20 20 66 61 | 69 6c 5f 63 6e 74 3b 0a |ort fa|il_cnt;.|
|000050a0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|000050b0| 20 73 68 6f 72 74 20 20 | 20 66 61 69 6c 5f 6d 61 | short | fail_ma|
|000050c0| 78 3b 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |x;.X | |
|000050d0| 20 20 20 20 63 68 61 72 | 20 20 20 20 66 61 69 6c | char| fail|
|000050e0| 5f 6c 69 6e 65 5b 31 32 | 5d 3b 0a 58 20 20 20 20 |_line[12|];.X |
|000050f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 69 6d 65 | | time|
|00005100| 5f 74 20 20 66 61 69 6c | 5f 74 69 6d 65 3b 0a 58 |_t fail|_time;.X|
|00005110| 20 20 20 20 20 20 20 20 | 7d 3b 0a 58 0a 58 2e 44 | |};.X.X.D|
|00005120| 45 0a 58 2e 53 48 20 46 | 69 6c 65 73 0a 58 2f 75 |E.X.SH F|iles.X/u|
|00005130| 73 72 2f 61 64 6d 2f 66 | 61 69 6c 6c 6f 67 20 5c |sr/adm/f|aillog \|
|00005140| 2d 20 6c 6f 67 69 6e 20 | 66 61 69 6c 75 72 65 20 |- login |failure |
|00005150| 6c 6f 67 0a 58 2e 53 48 | 20 53 65 65 20 41 6c 73 |log.X.SH| See Als|
|00005160| 6f 0a 58 66 61 69 6c 6c | 6f 67 28 38 29 0a 53 48 |o.Xfaill|og(8).SH|
|00005170| 41 52 5f 45 4f 46 0a 69 | 66 20 74 65 73 74 20 39 |AR_EOF.i|f test 9|
|00005180| 37 33 20 2d 6e 65 20 22 | 60 77 63 20 2d 63 20 3c |73 -ne "|`wc -c <|
|00005190| 20 27 66 61 69 6c 6c 6f | 67 2e 34 27 60 22 0a 74 | 'faillo|g.4'`".t|
|000051a0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000051b0| 22 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 |"error t|ransmitt|
|000051c0| 69 6e 67 20 27 66 61 69 | 6c 6c 6f 67 2e 34 27 22 |ing 'fai|llog.4'"|
|000051d0| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|000051e0| 65 65 6e 20 39 37 33 20 | 63 68 61 72 61 63 74 65 |een 973 |characte|
|000051f0| 72 73 29 27 0a 66 69 0a | 66 69 0a 65 63 68 6f 20 |rs)'.fi.|fi.echo |
|00005200| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|00005210| 67 20 27 70 61 73 73 77 | 64 2e 34 27 22 20 27 28 |g 'passw|d.4'" '(|
|00005220| 32 35 32 34 20 63 68 61 | 72 61 63 74 65 72 73 29 |2524 cha|racters)|
|00005230| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 70 61 |'.if tes|t -f 'pa|
|00005240| 73 73 77 64 2e 34 27 0a | 74 68 65 6e 0a 09 65 63 |sswd.4'.|then..ec|
|00005250| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00005260| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00005270| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 70 61 73 |isting f|ile 'pas|
|00005280| 73 77 64 2e 34 27 22 0a | 65 6c 73 65 0a 73 65 64 |swd.4'".|else.sed|
|00005290| 20 27 73 2f 5e 58 2f 2f | 27 20 3c 3c 20 5c 53 48 | 's/^X//|' << \SH|
|000052a0| 41 52 5f 45 4f 46 20 3e | 20 27 70 61 73 73 77 64 |AR_EOF >| 'passwd|
|000052b0| 2e 34 27 0a 58 2e 5c 22 | 20 43 6f 70 79 72 69 67 |.4'.X.\"| Copyrig|
|000052c0| 68 74 20 31 39 38 39 2c | 20 31 39 39 30 2c 20 4a |ht 1989,| 1990, J|
|000052d0| 6f 68 6e 20 46 2e 20 48 | 61 75 67 68 20 49 49 0a |ohn F. H|augh II.|
|000052e0| 58 2e 5c 22 20 41 6c 6c | 20 72 69 67 68 74 73 20 |X.\" All| rights |
|000052f0| 72 65 73 65 72 76 65 64 | 2e 0a 58 2e 5c 22 0a 58 |reserved|..X.\".X|
|00005300| 2e 5c 22 20 55 73 65 2c | 20 64 75 70 6c 69 63 61 |.\" Use,| duplica|
|00005310| 74 69 6f 6e 2c 20 61 6e | 64 20 64 69 73 63 6c 6f |tion, an|d disclo|
|00005320| 73 75 72 65 20 70 72 6f | 68 69 62 69 74 65 64 20 |sure pro|hibited |
|00005330| 77 69 74 68 6f 75 74 0a | 58 2e 5c 22 20 74 68 65 |without.|X.\" the|
|00005340| 20 65 78 70 72 65 73 73 | 20 77 72 69 74 74 65 6e | express| written|
|00005350| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 6f 66 20 74 | permiss|ion of t|
|00005360| 68 65 20 61 75 74 68 6f | 72 2e 0a 58 2e 5c 22 0a |he autho|r..X.\".|
|00005370| 58 2e 5c 22 09 40 28 23 | 29 70 61 73 73 77 64 2e |X.\".@(#|)passwd.|
|00005380| 34 09 32 2e 31 2e 31 2e | 31 09 30 39 3a 30 37 3a |4.2.1.1.|1.09:07:|
|00005390| 31 37 09 31 31 2f 32 36 | 2f 39 30 0a 58 2e 5c 22 |17.11/26|/90.X.\"|
|000053a0| 0a 58 2e 54 48 20 50 41 | 53 53 57 44 20 34 0a 58 |.X.TH PA|SSWD 4.X|
|000053b0| 2e 53 48 20 4e 41 4d 45 | 0a 58 70 61 73 73 77 64 |.SH NAME|.Xpasswd|
|000053c0| 20 5c 2d 20 54 68 65 20 | 70 61 73 73 77 6f 72 64 | \- The |password|
|000053d0| 20 66 69 6c 65 0a 58 2e | 53 48 20 44 45 53 43 52 | file.X.|SH DESCR|
|000053e0| 49 50 54 49 4f 4e 0a 58 | 2e 49 20 70 61 73 73 77 |IPTION.X|.I passw|
|000053f0| 64 0a 58 63 6f 6e 74 61 | 69 6e 73 20 76 61 72 69 |d.Xconta|ins vari|
|00005400| 6f 75 73 20 70 69 65 63 | 65 73 20 6f 66 20 69 6e |ous piec|es of in|
|00005410| 66 6f 72 6d 61 74 69 6f | 6e 20 66 6f 72 20 65 61 |formatio|n for ea|
|00005420| 63 68 20 75 73 65 72 20 | 61 63 63 6f 75 6e 74 2e |ch user |account.|
|00005430| 0a 58 49 6e 63 6c 75 64 | 65 64 20 69 73 0a 58 2e |.XInclud|ed is.X.|
|00005440| 49 50 20 22 22 20 2e 35 | 69 0a 58 4c 6f 67 69 6e |IP "" .5|i.XLogin|
|00005450| 20 6e 61 6d 65 0a 58 2e | 49 50 20 22 22 20 2e 35 | name.X.|IP "" .5|
|00005460| 69 0a 58 4f 70 74 69 6f | 6e 61 6c 20 65 6e 63 72 |i.XOptio|nal encr|
|00005470| 79 70 74 65 64 20 70 61 | 73 73 77 6f 72 64 0a 58 |ypted pa|ssword.X|
|00005480| 2e 49 50 20 22 22 20 2e | 35 69 0a 58 4e 75 6d 65 |.IP "" .|5i.XNume|
|00005490| 72 69 63 61 6c 20 75 73 | 65 72 20 49 44 0a 58 2e |rical us|er ID.X.|
|000054a0| 49 50 20 22 22 20 2e 35 | 69 0a 58 4e 75 6d 65 72 |IP "" .5|i.XNumer|
|000054b0| 69 63 61 6c 20 67 72 6f | 75 70 20 49 44 0a 58 2e |ical gro|up ID.X.|
|000054c0| 49 50 20 22 22 20 2e 35 | 69 0a 58 55 73 65 72 20 |IP "" .5|i.XUser |
|000054d0| 6e 61 6d 65 20 6f 72 20 | 63 6f 6d 6d 65 6e 74 20 |name or |comment |
|000054e0| 66 69 65 6c 64 0a 58 2e | 49 50 20 22 22 20 2e 35 |field.X.|IP "" .5|
|000054f0| 69 0a 58 55 73 65 72 20 | 68 6f 6d 65 20 64 69 72 |i.XUser |home dir|
|00005500| 65 63 74 6f 72 79 0a 58 | 2e 49 50 20 22 22 20 2e |ectory.X|.IP "" .|
|00005510| 35 69 0a 58 55 73 65 72 | 20 63 6f 6d 6d 61 6e 64 |5i.XUser| command|
|00005520| 20 69 6e 74 65 72 70 72 | 65 74 65 72 0a 58 2e 50 | interpr|eter.X.P|
|00005530| 50 0a 58 54 68 65 20 70 | 61 73 73 77 6f 72 64 20 |P.XThe p|assword |
|00005540| 66 69 65 6c 64 20 6d 61 | 79 20 6e 6f 74 20 62 65 |field ma|y not be|
|00005550| 20 66 69 6c 6c 65 64 20 | 69 66 20 73 68 61 64 6f | filled |if shado|
|00005560| 77 20 70 61 73 73 77 6f | 72 64 73 0a 58 68 61 76 |w passwo|rds.Xhav|
|00005570| 65 20 62 65 65 6e 20 65 | 6e 61 62 6c 65 64 2e 0a |e been e|nabled..|
|00005580| 58 49 66 20 73 68 61 64 | 6f 77 20 70 61 73 73 77 |XIf shad|ow passw|
|00005590| 6f 72 64 73 20 61 72 65 | 20 62 65 69 6e 67 20 75 |ords are| being u|
|000055a0| 73 65 64 2c 20 74 68 65 | 20 65 6e 63 72 79 70 74 |sed, the| encrypt|
|000055b0| 65 64 20 70 61 73 73 77 | 6f 72 64 20 77 69 6c 6c |ed passw|ord will|
|000055c0| 0a 58 62 65 20 66 6f 75 | 6e 64 20 69 6e 20 5c 66 |.Xbe fou|nd in \f|
|000055d0| 42 2f 65 74 63 2f 73 68 | 61 64 6f 77 5c 66 52 2e |B/etc/sh|adow\fR.|
|000055e0| 0a 58 54 68 65 20 65 6e | 63 72 79 70 65 64 20 70 |.XThe en|cryped p|
|000055f0| 61 73 73 77 6f 72 64 20 | 63 6f 6e 73 69 73 74 73 |assword |consists|
|00005600| 20 6f 66 20 31 33 20 63 | 68 61 72 61 63 74 65 72 | of 13 c|haracter|
|00005610| 73 20 66 72 6f 6d 20 74 | 68 65 0a 58 36 34 20 63 |s from t|he.X64 c|
|00005620| 68 61 72 61 63 74 65 72 | 20 61 6c 70 68 61 62 65 |haracter| alphabe|
|00005630| 74 0a 58 61 20 74 68 72 | 75 20 7a 2c 20 41 20 74 |t.Xa thr|u z, A t|
|00005640| 68 72 75 20 5a 2c 20 30 | 20 74 68 72 75 20 39 2c |hru Z, 0| thru 9,|
|00005650| 20 5c 2e 20 61 6e 64 20 | 2f 2e 0a 58 52 65 66 65 | \. and |/..XRefe|
|00005660| 72 20 74 6f 20 5c 66 49 | 63 72 79 70 74 28 33 29 |r to \fI|crypt(3)|
|00005670| 5c 66 52 20 66 6f 72 20 | 64 65 74 61 69 6c 73 20 |\fR for |details |
|00005680| 6f 6e 20 68 6f 77 20 74 | 68 69 73 20 73 74 72 69 |on how t|his stri|
|00005690| 6e 67 20 69 73 0a 58 69 | 6e 74 65 72 70 72 65 74 |ng is.Xi|nterpret|
|000056a0| 65 64 2e 0a 58 2e 50 50 | 0a 58 41 6e 20 6f 70 74 |ed..X.PP|.XAn opt|
|000056b0| 69 6f 6e 61 6c 20 70 61 | 73 73 77 6f 72 64 20 61 |ional pa|ssword a|
|000056c0| 67 65 20 73 74 72 69 6e | 67 20 6d 61 79 20 66 6f |ge strin|g may fo|
|000056d0| 6c 6c 6f 77 20 74 68 65 | 20 65 6e 63 72 79 70 74 |llow the| encrypt|
|000056e0| 65 64 0a 58 70 61 73 73 | 77 6f 72 64 2c 20 73 65 |ed.Xpass|word, se|
|000056f0| 70 61 72 61 74 65 64 20 | 62 79 20 61 20 63 6f 6d |parated |by a com|
|00005700| 6d 61 2c 20 66 72 6f 6d | 20 74 68 65 20 73 61 6d |ma, from| the sam|
|00005710| 65 20 61 6c 70 68 61 62 | 65 74 0a 58 61 73 20 74 |e alphab|et.Xas t|
|00005720| 68 65 20 70 61 73 73 77 | 6f 72 64 20 69 74 73 65 |he passw|ord itse|
|00005730| 6c 66 2e 0a 58 54 68 65 | 20 66 69 72 73 74 20 63 |lf..XThe| first c|
|00005740| 68 61 72 61 63 74 65 72 | 20 67 69 76 65 73 20 74 |haracter| gives t|
|00005750| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 77 65 65 |he numbe|r of wee|
|00005760| 6b 73 20 64 75 72 69 6e | 67 20 77 68 69 63 68 20 |ks durin|g which |
|00005770| 74 68 65 0a 58 70 61 73 | 73 77 6f 72 64 20 69 73 |the.Xpas|sword is|
|00005780| 20 76 61 6c 69 64 2e 0a | 58 54 68 65 20 73 65 63 | valid..|XThe sec|
|00005790| 6f 6e 64 20 63 68 61 72 | 61 63 74 65 72 20 67 69 |ond char|acter gi|
|000057a0| 76 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ves the |number o|
|000057b0| 66 20 77 65 65 6b 73 20 | 77 68 69 63 68 20 6d 75 |f weeks |which mu|
|000057c0| 73 74 20 70 61 73 73 0a | 58 62 65 66 6f 72 65 20 |st pass.|Xbefore |
|000057d0| 74 68 65 20 75 73 65 72 | 20 69 73 20 70 65 72 6d |the user| is perm|
|000057e0| 69 74 74 65 64 20 74 6f | 20 63 68 61 6e 67 65 20 |itted to| change |
|000057f0| 74 68 65 20 70 61 73 73 | 77 6f 72 64 2e 0a 58 54 |the pass|word..XT|
|00005800| 68 65 20 6c 61 73 74 20 | 74 77 6f 20 63 68 61 72 |he last |two char|
|00005810| 61 63 74 65 72 73 20 67 | 69 76 65 20 74 68 65 20 |acters g|ive the |
|00005820| 77 65 65 6b 20 73 69 6e | 63 65 20 4a 61 6e 20 31 |week sin|ce Jan 1|
|00005830| 39 37 30 20 77 68 65 6e | 20 74 68 65 0a 58 70 61 |970 when| the.Xpa|
|00005840| 73 73 77 6f 72 64 20 77 | 61 73 20 6c 61 73 74 20 |ssword w|as last |
|00005850| 63 68 61 6e 67 65 64 2e | 0a 58 57 68 65 6e 20 74 |changed.|.XWhen t|
|00005860| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 77 65 65 |he numbe|r of wee|
|00005870| 6b 73 20 64 75 72 69 6e | 67 20 77 68 69 63 68 20 |ks durin|g which |
|00005880| 74 68 65 20 70 61 73 73 | 77 6f 72 64 20 69 73 20 |the pass|word is |
|00005890| 76 61 6c 69 64 0a 58 68 | 61 76 65 20 70 61 73 73 |valid.Xh|ave pass|
|000058a0| 65 64 2c 20 74 68 65 20 | 75 73 65 72 20 77 69 6c |ed, the |user wil|
|000058b0| 6c 20 62 65 20 72 65 71 | 75 69 72 65 64 20 74 6f |l be req|uired to|
|000058c0| 20 70 72 6f 76 69 64 65 | 20 61 20 6e 65 77 0a 58 | provide| a new.X|
|000058d0| 70 61 73 73 77 6f 72 64 | 2e 0a 58 2e 50 50 0a 58 |password|..X.PP.X|
|000058e0| 54 68 65 20 63 6f 6d 6d | 65 6e 74 20 66 69 65 6c |The comm|ent fiel|
|000058f0| 64 20 69 73 20 75 73 65 | 64 20 62 79 20 76 61 72 |d is use|d by var|
|00005900| 69 6f 75 73 20 73 79 73 | 74 65 6d 20 75 74 69 6c |ious sys|tem util|
|00005910| 69 74 69 65 73 2c 20 73 | 75 63 68 20 61 73 0a 58 |ities, s|uch as.X|
|00005920| 5c 66 49 66 69 6e 67 65 | 72 28 31 29 5c 66 52 2e |\fIfinge|r(1)\fR.|
|00005930| 0a 58 54 68 72 65 65 20 | 61 64 64 69 74 69 6f 6e |.XThree |addition|
|00005940| 61 6c 20 76 61 6c 75 65 | 73 20 6d 61 79 20 62 65 |al value|s may be|
|00005950| 20 70 72 65 73 65 6e 74 | 20 69 6e 20 74 68 65 20 | present| in the |
|00005960| 63 6f 6d 6d 65 6e 74 20 | 66 69 65 6c 64 2e 0a 58 |comment |field..X|
|00005970| 54 68 65 79 20 61 72 65 | 0a 58 2e 49 50 20 22 22 |They are|.X.IP ""|
|00005980| 20 2e 35 69 0a 58 70 72 | 69 3d 20 5c 2d 20 73 65 | .5i.Xpr|i= \- se|
|00005990| 74 20 69 6e 69 74 69 61 | 6c 20 76 61 6c 75 65 20 |t initia|l value |
|000059a0| 6f 66 20 6e 69 63 65 0a | 58 2e 49 50 20 22 22 20 |of nice.|X.IP "" |
|000059b0| 2e 35 69 0a 58 75 6d 61 | 73 6b 3d 20 5c 2d 20 73 |.5i.Xuma|sk= \- s|
|000059c0| 65 74 20 69 6e 69 74 69 | 61 6c 20 76 61 6c 75 65 |et initi|al value|
|000059d0| 20 6f 66 20 75 6d 61 73 | 6b 0a 58 2e 49 50 20 22 | of umas|k.X.IP "|
|000059e0| 22 20 2e 35 69 0a 58 75 | 6c 69 6d 69 74 3d 20 5c |" .5i.Xu|limit= \|
|000059f0| 2d 20 73 65 74 20 69 6e | 69 74 69 61 6c 20 76 61 |- set in|itial va|
|00005a00| 6c 75 65 20 6f 66 20 75 | 6c 69 6d 69 74 0a 58 2e |lue of u|limit.X.|
|00005a10| 50 50 0a 58 54 68 65 73 | 65 20 66 69 65 6c 64 73 |PP.XThes|e fields|
|00005a20| 20 61 72 65 20 73 65 70 | 61 72 61 74 65 64 20 66 | are sep|arated f|
|00005a30| 72 6f 6d 20 65 61 63 68 | 20 6f 74 68 65 72 20 61 |rom each| other a|
|00005a40| 6e 64 20 66 72 6f 6d 20 | 61 6e 79 20 6f 74 68 65 |nd from |any othe|
|00005a50| 72 0a 58 63 6f 6d 6d 65 | 6e 74 20 66 69 65 6c 64 |r.Xcomme|nt field|
|00005a60| 20 62 79 20 61 20 63 6f | 6d 6d 61 2e 0a 58 2e 50 | by a co|mma..X.P|
|00005a70| 50 0a 58 54 68 65 20 68 | 6f 6d 65 20 64 69 72 65 |P.XThe h|ome dire|
|00005a80| 63 74 6f 72 79 20 66 69 | 65 6c 64 20 70 72 6f 76 |ctory fi|eld prov|
|00005a90| 69 64 65 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ides the| name of|
|00005aa0| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 0a 58 77 6f | the ini|tial.Xwo|
|00005ab0| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |rking di|rectory.|
|00005ac0| 0a 58 5c 66 49 4c 6f 67 | 69 6e 5c 66 52 20 75 73 |.X\fILog|in\fR us|
|00005ad0| 65 73 20 74 68 69 73 20 | 69 6e 66 6f 72 6d 61 74 |es this |informat|
|00005ae0| 69 6f 6e 20 74 6f 20 73 | 65 74 20 74 68 65 20 76 |ion to s|et the v|
|00005af0| 61 6c 75 65 20 6f 66 0a | 58 74 68 65 20 5c 66 42 |alue of.|Xthe \fB|
|00005b00| 48 4f 4d 45 5c 66 52 20 | 65 6e 76 69 72 6f 6e 6d |HOME\fR |environm|
|00005b10| 65 6e 74 61 6c 20 76 61 | 72 69 61 62 6c 65 2e 0a |ental va|riable..|
|00005b20| 58 2e 50 50 0a 58 54 68 | 65 20 63 6f 6d 6d 61 6e |X.PP.XTh|e comman|
|00005b30| 64 20 69 6e 74 65 72 70 | 72 65 74 65 72 20 66 69 |d interp|reter fi|
|00005b40| 65 6c 64 20 70 72 6f 76 | 69 64 65 73 20 74 68 65 |eld prov|ides the|
|00005b50| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 75 73 65 | name of| the use|
|00005b60| 72 27 73 0a 58 63 6f 6d | 6d 61 6e 64 20 6c 61 6e |r's.Xcom|mand lan|
|00005b70| 67 75 61 67 65 20 69 6e | 74 65 72 70 72 65 74 65 |guage in|terprete|
|00005b80| 72 2c 20 6f 72 20 74 68 | 65 20 6e 61 6d 65 20 6f |r, or th|e name o|
|00005b90| 66 20 74 68 65 20 69 6e | 69 74 69 61 6c 20 70 72 |f the in|itial pr|
|00005ba0| 6f 67 72 61 6d 0a 58 74 | 6f 20 65 78 65 63 75 74 |ogram.Xt|o execut|
|00005bb0| 65 2e 0a 58 5c 66 49 4c | 6f 67 69 6e 5c 66 52 20 |e..X\fIL|ogin\fR |
|00005bc0| 75 73 65 73 20 74 68 69 | 73 20 69 6e 66 6f 72 6d |uses thi|s inform|
|00005bd0| 61 74 69 6f 6e 20 74 6f | 20 73 65 74 20 74 68 65 |ation to| set the|
|00005be0| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 0a 58 5c | value o|f the.X\|
|00005bf0| 66 42 53 48 45 4c 4c 5c | 66 52 20 65 6e 76 69 72 |fBSHELL\|fR envir|
|00005c00| 6f 6e 6d 65 6e 74 61 6c | 20 76 61 72 69 61 62 6c |onmental| variabl|
|00005c10| 65 2e 0a 58 49 66 20 74 | 68 69 73 20 66 69 65 6c |e..XIf t|his fiel|
|00005c20| 64 20 69 73 20 65 6d 70 | 74 79 2c 20 69 74 20 64 |d is emp|ty, it d|
|00005c30| 65 66 61 75 6c 74 73 20 | 74 6f 20 74 68 65 20 76 |efaults |to the v|
|00005c40| 61 6c 75 65 20 5c 66 42 | 2f 62 69 6e 2f 73 68 5c |alue \fB|/bin/sh\|
|00005c50| 66 52 2e 0a 58 2e 53 48 | 20 46 69 6c 65 73 0a 58 |fR..X.SH| Files.X|
|00005c60| 2f 65 74 63 2f 70 61 73 | 73 77 64 20 5c 2d 20 75 |/etc/pas|swd \- u|
|00005c70| 73 65 72 20 61 63 63 6f | 75 6e 74 20 69 6e 66 6f |ser acco|unt info|
|00005c80| 72 6d 61 74 69 6f 6e 0a | 58 2e 53 48 20 53 65 65 |rmation.|X.SH See|
|00005c90| 20 41 6c 73 6f 0a 58 6c | 6f 67 69 6e 28 31 29 2c | Also.Xl|ogin(1),|
|00005ca0| 0a 58 70 61 73 73 77 64 | 28 31 29 2c 0a 58 73 75 |.Xpasswd|(1),.Xsu|
|00005cb0| 28 31 29 2c 0a 58 73 75 | 6c 6f 67 69 6e 28 31 4d |(1),.Xsu|login(1M|
|00005cc0| 29 2c 0a 58 73 68 61 64 | 6f 77 28 34 29 2c 0a 58 |),.Xshad|ow(4),.X|
|00005cd0| 70 77 63 6f 6e 76 28 38 | 29 2c 0a 58 70 77 75 6e |pwconv(8|),.Xpwun|
|00005ce0| 63 6f 6e 76 28 38 29 0a | 53 48 41 52 5f 45 4f 46 |conv(8).|SHAR_EOF|
|00005cf0| 0a 69 66 20 74 65 73 74 | 20 32 35 32 34 20 2d 6e |.if test| 2524 -n|
|00005d00| 65 20 22 60 77 63 20 2d | 63 20 3c 20 27 70 61 73 |e "`wc -|c < 'pas|
|00005d10| 73 77 64 2e 34 27 60 22 | 0a 74 68 65 6e 0a 09 65 |swd.4'`"|.then..e|
|00005d20| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 72 72 6f 72 |cho shar|: "error|
|00005d30| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 27 70 | transmi|tting 'p|
|00005d40| 61 73 73 77 64 2e 34 27 | 22 20 27 28 73 68 6f 75 |asswd.4'|" '(shou|
|00005d50| 6c 64 20 68 61 76 65 20 | 62 65 65 6e 20 32 35 32 |ld have |been 252|
|00005d60| 34 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |4 charac|ters)'.f|
|00005d70| 69 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |i.fi.ech|o shar: |
|00005d80| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 70 6f 72 |"extract|ing 'por|
|00005d90| 74 74 69 6d 65 2e 34 27 | 22 20 27 28 31 38 36 37 |ttime.4'|" '(1867|
|00005da0| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|00005db0| 20 74 65 73 74 20 2d 66 | 20 27 70 6f 72 74 74 69 | test -f| 'portti|
|00005dc0| 6d 65 2e 34 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |me.4'.th|en..echo|
|00005dd0| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00005de0| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00005df0| 74 69 6e 67 20 66 69 6c | 65 20 27 70 6f 72 74 74 |ting fil|e 'portt|
|00005e00| 69 6d 65 2e 34 27 22 0a | 65 6c 73 65 0a 73 65 64 |ime.4'".|else.sed|
|00005e10| 20 27 73 2f 5e 58 2f 2f | 27 20 3c 3c 20 5c 53 48 | 's/^X//|' << \SH|
|00005e20| 41 52 5f 45 4f 46 20 3e | 20 27 70 6f 72 74 74 69 |AR_EOF >| 'portti|
|00005e30| 6d 65 2e 34 27 0a 58 2e | 5c 22 20 43 6f 70 79 72 |me.4'.X.|\" Copyr|
|00005e40| 69 67 68 74 20 31 39 38 | 39 2c 20 31 39 39 30 2c |ight 198|9, 1990,|
|00005e50| 20 4a 6f 68 6e 20 46 2e | 20 48 61 75 67 68 20 49 | John F.| Haugh I|
|00005e60| 49 0a 58 2e 5c 22 20 41 | 6c 6c 20 72 69 67 68 74 |I.X.\" A|ll right|
|00005e70| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 58 2e 5c 22 |s reserv|ed..X.\"|
|00005e80| 0a 58 2e 5c 22 20 55 73 | 65 2c 20 64 75 70 6c 69 |.X.\" Us|e, dupli|
|00005e90| 63 61 74 69 6f 6e 2c 20 | 61 6e 64 20 64 69 73 63 |cation, |and disc|
|00005ea0| 6c 6f 73 75 72 65 20 70 | 72 6f 68 69 62 69 74 65 |losure p|rohibite|
|00005eb0| 64 20 77 69 74 68 6f 75 | 74 0a 58 2e 5c 22 20 74 |d withou|t.X.\" t|
|00005ec0| 68 65 20 65 78 70 72 65 | 73 73 20 77 72 69 74 74 |he expre|ss writt|
|00005ed0| 65 6e 20 70 65 72 6d 69 | 73 73 69 6f 6e 20 6f 66 |en permi|ssion of|
|00005ee0| 20 74 68 65 20 61 75 74 | 68 6f 72 2e 0a 58 2e 5c | the aut|hor..X.\|
|00005ef0| 22 0a 58 2e 5c 22 09 40 | 28 23 29 70 6f 72 74 74 |".X.\".@|(#)portt|
|00005f00| 69 6d 65 2e 34 09 32 2e | 31 2e 31 2e 31 09 30 39 |ime.4.2.|1.1.1.09|
|00005f10| 3a 30 37 3a 31 39 09 31 | 31 2f 32 36 2f 39 30 0a |:07:19.1|1/26/90.|
|00005f20| 58 2e 5c 22 0a 58 2e 54 | 48 20 50 4f 52 54 54 49 |X.\".X.T|H PORTTI|
|00005f30| 4d 45 20 34 0a 58 2e 53 | 48 20 4e 41 4d 45 0a 58 |ME 4.X.S|H NAME.X|
|00005f40| 70 6f 72 74 74 69 6d 65 | 20 5c 2d 20 70 6f 72 74 |porttime| \- port|
|00005f50| 20 61 63 63 65 73 73 20 | 74 69 6d 65 20 66 69 6c | access |time fil|
|00005f60| 65 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |e.X.SH D|ESCRIPTI|
|00005f70| 4f 4e 0a 58 2e 49 20 70 | 6f 72 74 74 69 6d 65 0a |ON.X.I p|orttime.|
|00005f80| 58 63 6f 6e 74 61 69 6e | 73 20 61 20 6c 69 73 74 |Xcontain|s a list|
|00005f90| 20 6f 66 20 74 74 79 20 | 64 65 76 69 63 65 2c 20 | of tty |device, |
|00005fa0| 75 73 65 72 20 6e 61 6d | 65 2c 20 61 6e 64 20 70 |user nam|e, and p|
|00005fb0| 65 72 6d 69 74 74 65 64 | 20 6c 6f 67 69 6e 20 74 |ermitted| login t|
|00005fc0| 69 6d 65 73 2e 0a 58 2e | 50 50 0a 58 45 61 63 68 |imes..X.|PP.XEach|
|00005fd0| 20 65 6e 74 72 79 20 63 | 6f 6e 73 69 73 74 73 20 | entry c|onsists |
|00005fe0| 6f 66 20 74 68 72 65 65 | 20 63 6f 6c 6f 6e 20 73 |of three| colon s|
|00005ff0| 65 70 61 72 61 74 65 64 | 20 66 69 65 6c 64 73 2e |eparated| fields.|
|00006000| 0a 58 54 68 65 20 66 69 | 72 73 74 20 66 69 65 6c |.XThe fi|rst fiel|
|00006010| 64 20 69 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |d is the| name of|
|00006020| 20 74 68 65 20 74 74 79 | 20 64 65 76 69 63 65 2c | the tty| device,|
|00006030| 20 6f 72 20 61 6e 20 61 | 73 74 65 72 69 73 6b 20 | or an a|sterisk |
|00006040| 74 6f 0a 58 69 6e 64 69 | 63 61 74 65 20 74 68 61 |to.Xindi|cate tha|
|00006050| 74 20 61 6c 6c 20 74 74 | 79 20 64 65 76 69 63 65 |t all tt|y device|
|00006060| 73 20 61 72 65 20 6d 61 | 74 63 68 65 64 20 62 79 |s are ma|tched by|
|00006070| 20 74 68 69 73 20 65 6e | 74 72 79 2e 0a 58 54 68 | this en|try..XTh|
|00006080| 65 20 73 65 63 6f 6e 64 | 20 66 69 65 6c 64 20 69 |e second| field i|
|00006090| 73 20 61 20 63 6f 6d 6d | 61 20 73 65 70 61 72 61 |s a comm|a separa|
|000060a0| 74 65 64 20 6c 69 73 74 | 20 6f 66 20 75 73 65 72 |ted list| of user|
|000060b0| 20 6e 61 6d 65 73 2c 20 | 6f 72 20 61 6e 0a 58 61 | names, |or an.Xa|
|000060c0| 73 74 65 72 69 73 6b 20 | 74 6f 20 69 6e 64 69 63 |sterisk |to indic|
|000060d0| 61 74 65 64 20 74 68 61 | 74 20 61 6c 6c 20 75 73 |ated tha|t all us|
|000060e0| 65 72 20 6e 61 6d 65 73 | 20 61 72 65 20 6d 61 74 |er names| are mat|
|000060f0| 63 68 65 64 20 62 79 20 | 74 68 69 73 20 65 6e 74 |ched by |this ent|
|00006100| 72 79 2e 0a 58 54 68 65 | 20 74 68 69 72 64 20 66 |ry..XThe| third f|
|00006110| 69 65 6c 64 20 69 73 20 | 61 20 63 6f 6d 6d 61 20 |ield is |a comma |
|00006120| 73 65 70 61 72 61 74 65 | 64 20 6c 69 73 74 20 6f |separate|d list o|
|00006130| 66 20 70 65 72 6d 69 74 | 74 65 64 20 61 63 63 65 |f permit|ted acce|
|00006140| 73 73 20 74 69 6d 65 73 | 2e 0a 58 2e 50 50 0a 58 |ss times|..X.PP.X|
|00006150| 45 61 63 68 20 61 63 63 | 65 73 73 20 74 69 6d 65 |Each acc|ess time|
|00006160| 20 65 6e 74 72 79 20 63 | 6f 6e 73 69 73 74 73 20 | entry c|onsists |
|00006170| 6f 66 20 7a 65 72 6f 20 | 6f 72 20 6d 6f 72 65 20 |of zero |or more |
|00006180| 64 61 79 73 20 6f 66 20 | 74 68 65 20 77 65 65 6b |days of |the week|
|00006190| 2c 0a 58 61 62 62 72 65 | 76 69 61 74 65 64 20 5c |,.Xabbre|viated \|
|000061a0| 66 42 53 75 5c 66 52 2c | 20 5c 66 42 4d 6f 5c 66 |fBSu\fR,| \fBMo\f|
|000061b0| 52 2c 20 5c 66 42 54 75 | 5c 66 52 2c 20 5c 66 42 |R, \fBTu|\fR, \fB|
|000061c0| 57 65 5c 66 52 2c 20 5c | 66 42 54 68 5c 66 52 2c |We\fR, \|fBTh\fR,|
|000061d0| 0a 58 5c 66 42 46 72 5c | 66 52 2c 20 61 6e 64 20 |.X\fBFr\|fR, and |
|000061e0| 5c 66 42 53 61 5c 66 52 | 2c 20 66 6f 6c 6c 6f 77 |\fBSa\fR|, follow|
|000061f0| 65 64 20 62 79 20 61 20 | 70 61 69 72 20 6f 66 20 |ed by a |pair of |
|00006200| 74 69 6d 65 73 20 73 65 | 70 61 72 61 74 65 64 20 |times se|parated |
|00006210| 62 79 0a 58 61 20 68 79 | 70 68 65 6e 2e 0a 58 54 |by.Xa hy|phen..XT|
|00006220| 68 65 20 61 62 62 72 65 | 76 69 61 74 69 6f 6e 20 |he abbre|viation |
|00006230| 5c 66 42 57 6b 5c 66 52 | 20 6d 61 79 20 62 65 20 |\fBWk\fR| may be |
|00006240| 75 73 65 64 20 74 6f 20 | 72 65 70 72 65 73 65 6e |used to |represen|
|00006250| 74 20 4d 6f 6e 64 61 79 | 20 74 68 72 75 20 46 72 |t Monday| thru Fr|
|00006260| 69 64 61 79 2c 0a 58 61 | 6e 64 20 5c 66 42 41 6c |iday,.Xa|nd \fBAl|
|00006270| 5c 66 52 20 6d 61 79 20 | 62 65 20 75 73 65 64 20 |\fR may |be used |
|00006280| 74 6f 20 69 6e 64 69 63 | 61 74 65 20 65 76 65 72 |to indic|ate ever|
|00006290| 79 20 64 61 79 2e 0a 58 | 49 66 20 6e 6f 20 64 61 |y day..X|If no da|
|000062a0| 79 73 20 61 72 65 20 67 | 69 76 65 6e 2c 20 5c 66 |ys are g|iven, \f|
|000062b0| 42 41 6c 5c 66 52 20 69 | 73 20 61 73 73 75 6d 65 |BAl\fR i|s assume|
|000062c0| 64 2e 0a 58 2e 53 48 20 | 45 78 61 6d 70 6c 65 73 |d..X.SH |Examples|
|000062d0| 0a 58 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |.XThe fo|llowing |
|000062e0| 65 6e 74 72 79 20 61 6c | 6c 6f 77 73 20 61 63 63 |entry al|lows acc|
|000062f0| 65 73 73 20 74 6f 20 75 | 73 65 72 20 5c 66 42 6a |ess to u|ser \fBj|
|00006300| 66 68 5c 66 52 20 6f 6e | 20 65 76 65 72 79 20 70 |fh\fR on| every p|
|00006310| 6f 72 74 0a 58 64 75 72 | 69 6e 67 20 77 65 65 6b |ort.Xdur|ing week|
|00006320| 64 61 79 73 20 66 72 6f | 6d 20 39 61 6d 20 74 6f |days fro|m 9am to|
|00006330| 20 35 70 6d 2e 0a 58 2e | 62 72 0a 58 2e 73 70 20 | 5pm..X.|br.X.sp |
|00006340| 31 0a 58 2a 3a 6a 66 68 | 3a 57 6b 30 39 30 30 2d |1.X*:jfh|:Wk0900-|
|00006350| 31 37 30 30 0a 58 2e 62 | 72 0a 58 2e 73 70 20 31 |1700.X.b|r.X.sp 1|
|00006360| 0a 58 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |.XThe fo|llowing |
|00006370| 65 6e 74 72 69 65 73 20 | 61 6c 6c 6f 77 20 61 63 |entries |allow ac|
|00006380| 63 65 73 73 20 6f 6e 6c | 79 20 74 6f 20 74 68 65 |cess onl|y to the|
|00006390| 20 75 73 65 72 73 20 5c | 66 42 72 6f 6f 74 5c 66 | users \|fBroot\f|
|000063a0| 52 20 61 6e 64 0a 58 5c | 66 42 6f 70 65 72 5c 66 |R and.X\|fBoper\f|
|000063b0| 52 20 6f 6e 20 2f 64 65 | 76 2f 63 6f 6e 73 6f 6c |R on /de|v/consol|
|000063c0| 65 20 61 74 20 61 6e 79 | 20 74 69 6d 65 2e 20 20 |e at any| time. |
|000063d0| 54 68 69 73 20 69 6c 6c | 75 73 74 72 61 74 65 73 |This ill|ustrates|
|000063e0| 20 68 6f 77 20 74 68 65 | 0a 58 5c 66 42 2f 65 74 | how the|.X\fB/et|
|000063f0| 63 2f 70 6f 72 74 74 69 | 6d 65 5c 66 52 20 66 69 |c/portti|me\fR fi|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.