home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| 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, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| 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/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 78 61 | 6e 74 68 21 6e 69 63 2e |Path: xa|nth!nic.|
|00000010| 4d 52 2e 4e 45 54 21 63 | 73 64 34 2e 6d 69 6c 77 |MR.NET!c|sd4.milw|
|00000020| 2e 77 69 73 63 2e 65 64 | 75 21 6c 65 61 68 21 69 |.wisc.ed|u!leah!i|
|00000030| 74 73 67 77 21 73 74 65 | 69 6e 6d 65 74 7a 21 75 |tsgw!ste|inmetz!u|
|00000040| 75 6e 65 74 21 61 6c 6c | 62 65 72 79 0a 46 72 6f |unet!all|bery.Fro|
|00000050| 6d 3a 20 61 6c 6c 62 65 | 72 79 40 75 75 6e 65 74 |m: allbe|ry@uunet|
|00000060| 2e 55 55 2e 4e 45 54 20 | 28 42 72 61 6e 64 6f 6e |.UU.NET |(Brandon|
|00000070| 20 53 2e 20 41 6c 6c 62 | 65 72 79 20 2d 20 63 6f | S. Allb|ery - co|
|00000080| 6d 70 2e 73 6f 75 72 63 | 65 73 2e 6d 69 73 63 29 |mp.sourc|es.misc)|
|00000090| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|000000a0| 70 2e 73 6f 75 72 63 65 | 73 2e 6d 69 73 63 0a 53 |p.source|s.misc.S|
|000000b0| 75 62 6a 65 63 74 3a 20 | 76 30 36 69 30 32 32 3a |ubject: |v06i022:|
|000000c0| 20 73 68 61 64 6f 77 20 | 70 61 73 73 77 6f 72 64 | shadow |password|
|000000d0| 20 66 69 6c 65 73 2c 20 | 72 65 70 6c 61 63 65 6d | files, |replacem|
|000000e0| 65 6e 74 20 6c 6f 67 69 | 6e 28 31 29 20 61 6e 64 |ent logi|n(1) and|
|000000f0| 20 70 61 73 73 77 64 28 | 31 29 0a 4d 65 73 73 61 | passwd(|1).Messa|
|00000100| 67 65 2d 49 44 3a 20 3c | 34 37 37 35 34 40 75 75 |ge-ID: <|47754@uu|
|00000110| 6e 65 74 2e 55 55 2e 4e | 45 54 3e 0a 44 61 74 65 |net.UU.N|ET>.Date|
|00000120| 3a 20 32 39 20 4a 61 6e | 20 38 39 20 32 31 3a 31 |: 29 Jan| 89 21:1|
|00000130| 30 3a 35 33 20 47 4d 54 | 0a 53 65 6e 64 65 72 3a |0:53 GMT|.Sender:|
|00000140| 20 61 6c 6c 62 65 72 79 | 40 75 75 6e 65 74 2e 55 | allbery|@uunet.U|
|00000150| 55 2e 4e 45 54 0a 52 65 | 70 6c 79 2d 54 6f 3a 20 |U.NET.Re|ply-To: |
|00000160| 6a 66 68 40 63 6f 6e 76 | 65 78 2e 55 55 43 50 20 |jfh@conv|ex.UUCP |
|00000170| 28 4a 6f 68 6e 20 46 2e | 20 48 61 75 67 68 20 49 |(John F.| Haugh I|
|00000180| 49 29 0a 4c 69 6e 65 73 | 3a 20 36 32 32 0a 41 70 |I).Lines|: 622.Ap|
|00000190| 70 72 6f 76 65 64 3a 20 | 61 6c 6c 62 65 72 79 40 |proved: |allbery@|
|000001a0| 75 75 6e 65 74 2e 55 55 | 2e 4e 45 54 20 28 42 72 |uunet.UU|.NET (Br|
|000001b0| 61 6e 64 6f 6e 20 53 2e | 20 41 6c 6c 62 65 72 79 |andon S.| Allbery|
|000001c0| 20 2d 20 63 6f 6d 70 2e | 73 6f 75 72 63 65 73 2e | - comp.|sources.|
|000001d0| 6d 69 73 63 29 0a 58 2d | 41 72 63 68 2d 4b 65 79 |misc).X-|Arch-Key|
|000001e0| 77 6f 72 64 73 3a 20 70 | 6f 72 74 61 62 6c 65 2c |words: p|ortable,|
|000001f0| 20 63 2c 20 6c 6f 67 69 | 6e 2c 20 70 61 73 73 77 | c, logi|n, passw|
|00000200| 64 2c 20 73 75 2c 20 73 | 75 6c 6f 67 69 6e 2c 20 |d, su, s|ulogin, |
|00000210| 73 68 61 64 6f 77 0a 0a | 50 6f 73 74 69 6e 67 2d |shadow..|Posting-|
|00000220| 6e 75 6d 62 65 72 3a 20 | 56 6f 6c 75 6d 65 20 36 |number: |Volume 6|
|00000230| 2c 20 49 73 73 75 65 20 | 32 32 0a 53 75 62 6d 69 |, Issue |22.Submi|
|00000240| 74 74 65 64 2d 62 79 3a | 20 6a 66 68 40 63 6f 6e |tted-by:| jfh@con|
|00000250| 76 65 78 2e 55 55 43 50 | 20 28 4a 6f 68 6e 20 46 |vex.UUCP| (John F|
|00000260| 2e 20 48 61 75 67 68 20 | 49 49 29 0a 41 72 63 68 |. Haugh |II).Arch|
|00000270| 69 76 65 2d 6e 61 6d 65 | 3a 20 73 68 61 64 6f 77 |ive-name|: shadow|
|00000280| 2d 32 0a 0a 5b 49 20 68 | 61 76 65 6e 27 74 20 74 |-2..[I h|aven't t|
|00000290| 68 65 20 66 61 69 6e 74 | 65 73 74 20 69 64 65 61 |he faint|est idea|
|000002a0| 20 77 68 61 74 20 74 68 | 65 20 72 65 70 6c 79 20 | what th|e reply |
|000002b0| 61 64 64 72 65 73 73 65 | 73 20 74 6f 20 74 68 65 |addresse|s to the|
|000002c0| 73 65 20 74 68 69 6e 67 | 73 20 77 69 6c 6c 0a 6c |se thing|s will.l|
|000002d0| 6f 6f 6b 20 6c 69 6b 65 | 2e 20 20 42 61 63 6b 20 |ook like|. Back |
|000002e0| 74 6f 20 74 68 65 20 64 | 72 61 77 69 6e 67 20 62 |to the d|rawing b|
|000002f0| 6f 61 72 64 21 20 20 2b | 2b 62 73 61 5d 0a 0a 23 |oard! +|+bsa]..#|
|00000300| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|00000310| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|00000320| 69 76 65 2c 20 6d 65 61 | 6e 69 6e 67 3a 0a 23 20 |ive, mea|ning:.# |
|00000330| 31 2e 20 52 65 6d 6f 76 | 65 20 65 76 65 72 79 74 |1. Remov|e everyt|
|00000340| 68 69 6e 67 20 61 62 6f | 76 65 20 74 68 65 20 23 |hing abo|ve the #|
|00000350| 21 20 2f 62 69 6e 2f 73 | 68 20 6c 69 6e 65 2e 0a |! /bin/s|h line..|
|00000360| 23 20 32 2e 20 53 61 76 | 65 20 74 68 65 20 72 65 |# 2. Sav|e the re|
|00000370| 73 75 6c 74 69 6e 67 20 | 74 65 78 74 20 69 6e 20 |sulting |text in |
|00000380| 61 20 66 69 6c 65 2e 0a | 23 20 33 2e 20 45 78 65 |a file..|# 3. Exe|
|00000390| 63 75 74 65 20 74 68 65 | 20 66 69 6c 65 20 77 69 |cute the| file wi|
|000003a0| 74 68 20 2f 62 69 6e 2f | 73 68 20 28 6e 6f 74 20 |th /bin/|sh (not |
|000003b0| 63 73 68 29 20 74 6f 20 | 63 72 65 61 74 65 3a 0a |csh) to |create:.|
|000003c0| 23 09 6c 6f 67 69 6e 2e | 31 0a 23 09 70 61 73 73 |#.login.|1.#.pass|
|000003d0| 77 64 2e 31 0a 23 09 70 | 61 73 73 77 64 2e 34 0a |wd.1.#.p|asswd.4.|
|000003e0| 23 09 73 68 61 64 6f 77 | 2e 33 0a 23 09 73 68 61 |#.shadow|.3.#.sha|
|000003f0| 64 6f 77 2e 34 0a 23 09 | 73 75 2e 31 0a 23 09 73 |dow.4.#.|su.1.#.s|
|00000400| 75 6c 6f 67 69 6e 2e 38 | 0a 23 09 70 77 63 6f 6e |ulogin.8|.#.pwcon|
|00000410| 76 2e 38 0a 23 09 70 77 | 75 6e 63 6f 6e 76 2e 38 |v.8.#.pw|unconv.8|
|00000420| 0a 23 20 54 68 69 73 20 | 61 72 63 68 69 76 65 20 |.# This |archive |
|00000430| 63 72 65 61 74 65 64 3a | 20 54 75 65 20 4a 61 6e |created:| Tue Jan|
|00000440| 20 31 37 20 31 39 3a 33 | 31 3a 35 32 20 31 39 38 | 17 19:3|1:52 198|
|00000450| 39 0a 23 20 42 79 3a 09 | 4a 6f 68 6e 20 46 2e 20 |9.# By:.|John F. |
|00000460| 48 61 75 67 68 20 49 49 | 20 28 52 69 76 65 72 20 |Haugh II| (River |
|00000470| 50 61 72 69 73 68 65 73 | 20 50 72 6f 67 72 61 6d |Parishes| Program|
|00000480| 6d 69 6e 67 2c 20 44 61 | 6c 6c 61 73 20 54 58 29 |ming, Da|llas TX)|
|00000490| 0a 65 78 70 6f 72 74 20 | 50 41 54 48 3b 20 50 41 |.export |PATH; PA|
|000004a0| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|000004b0| 3a 24 50 41 54 48 0a 69 | 66 20 74 65 73 74 20 2d |:$PATH.i|f test -|
|000004c0| 66 20 27 6c 6f 67 69 6e | 2e 31 27 0a 74 68 65 6e |f 'login|.1'.then|
|000004d0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|000004e0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000004f0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00000500| 27 6c 6f 67 69 6e 2e 31 | 27 22 0a 65 6c 73 65 0a |'login.1|'".else.|
|00000510| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00000520| 20 3e 20 27 6c 6f 67 69 | 6e 2e 31 27 0a 2e 54 48 | > 'logi|n.1'..TH|
|00000530| 20 4c 4f 47 49 4e 20 31 | 0a 2e 53 48 20 4e 41 4d | LOGIN 1|..SH NAM|
|00000540| 45 0a 6c 6f 67 69 6e 20 | 5c 2d 20 42 65 67 69 6e |E.login |\- Begin|
|00000550| 20 73 65 73 73 69 6f 6e | 20 6f 6e 20 74 68 65 20 | session| on the |
|00000560| 73 79 73 74 65 6d 0a 2e | 53 48 20 53 59 4e 4f 50 |system..|SH SYNOP|
|00000570| 53 49 53 0a 2e 42 20 6c | 6f 67 69 6e 0a 5b 20 75 |SIS..B l|ogin.[ u|
|00000580| 73 65 72 6e 61 6d 65 20 | 5b 20 65 6e 76 69 72 6f |sername |[ enviro|
|00000590| 6e 6d 65 6e 74 61 6c 2d | 76 61 72 69 61 62 6c 65 |nmental-|variable|
|000005a0| 73 20 5d 20 5d 0a 2e 53 | 48 20 44 45 53 43 52 49 |s ] ]..S|H DESCRI|
|000005b0| 50 54 49 4f 4e 0a 2e 49 | 20 6c 6f 67 69 6e 0a 69 |PTION..I| login.i|
|000005c0| 73 20 75 73 65 64 20 74 | 6f 20 65 73 74 61 62 6c |s used t|o establ|
|000005d0| 69 73 68 20 61 20 6e 65 | 77 20 73 65 73 73 69 6f |ish a ne|w sessio|
|000005e0| 6e 20 77 69 74 68 20 74 | 68 65 20 73 79 73 74 65 |n with t|he syste|
|000005f0| 6d 2e 0a 49 74 20 69 73 | 20 6e 6f 72 6d 61 6c 6c |m..It is| normall|
|00000600| 79 20 69 6e 76 6f 6b 65 | 64 20 61 75 74 6f 6d 61 |y invoke|d automa|
|00000610| 74 69 63 61 6c 6c 79 20 | 62 79 20 72 65 73 70 6f |tically |by respo|
|00000620| 6e 64 69 6e 67 20 74 6f | 20 74 68 65 0a 2e 42 20 |nding to| the..B |
|00000630| 6c 6f 67 69 6e 3a 0a 70 | 72 6f 6d 70 74 20 6f 6e |login:.p|rompt on|
|00000640| 20 74 68 65 20 75 73 65 | 72 5c 27 73 20 74 65 72 | the use|r\'s ter|
|00000650| 6d 69 6e 61 6c 2e 0a 2e | 49 20 6c 6f 67 69 6e 0a |minal...|I login.|
|00000660| 6d 61 79 20 62 65 20 73 | 70 65 63 69 61 6c 20 74 |may be s|pecial t|
|00000670| 6f 20 74 68 65 20 73 68 | 65 6c 6c 20 61 6e 64 20 |o the sh|ell and |
|00000680| 6d 61 79 20 6e 6f 74 20 | 62 65 20 69 6e 76 6f 6b |may not |be invok|
|00000690| 65 64 20 61 73 20 61 20 | 73 75 62 2d 70 72 6f 63 |ed as a |sub-proc|
|000006a0| 65 73 73 2e 0a 54 79 70 | 69 63 61 6c 6c 79 2c 0a |ess..Typ|ically,.|
|000006b0| 2e 49 20 6c 6f 67 69 6e | 0a 69 73 20 74 72 65 61 |.I login|.is trea|
|000006c0| 74 65 64 20 62 79 20 74 | 68 65 20 73 68 65 6c 6c |ted by t|he shell|
|000006d0| 20 61 73 20 5c 66 42 65 | 78 65 63 20 6c 6f 67 69 | as \fBe|xec logi|
|000006e0| 6e 5c 66 52 20 77 68 69 | 63 68 20 63 61 75 73 65 |n\fR whi|ch cause|
|000006f0| 73 20 74 68 65 20 75 73 | 65 72 0a 74 6f 20 65 78 |s the us|er.to ex|
|00000700| 69 74 20 66 72 6f 6d 20 | 74 68 65 20 63 75 72 72 |it from |the curr|
|00000710| 65 6e 74 20 73 68 65 6c | 6c 2e 0a 41 74 74 65 6d |ent shel|l..Attem|
|00000720| 70 74 69 6e 67 20 74 6f | 20 65 78 65 63 75 74 65 |pting to| execute|
|00000730| 20 5c 66 49 6c 6f 67 69 | 6e 5c 66 52 20 66 72 6f | \fIlogi|n\fR fro|
|00000740| 6d 20 61 6e 79 20 73 68 | 65 6c 6c 20 62 75 74 20 |m any sh|ell but |
|00000750| 74 68 65 20 6c 6f 67 69 | 6e 20 73 68 65 6c 6c 0a |the logi|n shell.|
|00000760| 77 69 6c 6c 20 70 72 6f | 64 75 63 65 20 61 6e 20 |will pro|duce an |
|00000770| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 2e 0a 2e |error me|ssage...|
|00000780| 50 50 0a 57 68 65 6e 20 | 69 6e 76 6f 6b 65 64 20 |PP.When |invoked |
|00000790| 66 72 6f 6d 20 74 68 65 | 20 5c 66 42 6c 6f 67 69 |from the| \fBlogi|
|000007a0| 6e 3a 5c 66 52 20 70 72 | 6f 6d 70 74 2c 20 74 68 |n:\fR pr|ompt, th|
|000007b0| 65 20 75 73 65 72 20 6d | 61 79 20 65 6e 74 65 72 |e user m|ay enter|
|000007c0| 0a 65 6e 76 69 72 6f 6e | 6d 65 6e 74 61 6c 20 76 |.environ|mental v|
|000007d0| 61 72 69 61 62 6c 65 73 | 20 61 66 74 65 72 20 74 |ariables| after t|
|000007e0| 68 65 20 75 73 65 72 6e | 61 6d 65 2e 0a 54 68 65 |he usern|ame..The|
|000007f0| 73 65 20 76 61 72 69 61 | 62 6c 65 73 20 61 72 65 |se varia|bles are|
|00000800| 20 65 6e 74 65 72 65 64 | 20 69 6e 20 74 68 65 20 | entered| in the |
|00000810| 66 6f 72 6d 20 5c 66 42 | 4e 41 4d 45 3d 56 41 4c |form \fB|NAME=VAL|
|00000820| 55 45 5c 66 52 2e 0a 4e | 6f 74 20 61 6c 6c 20 76 |UE\fR..N|ot all v|
|00000830| 61 72 69 61 62 6c 65 73 | 20 6d 61 79 20 62 65 20 |ariables| may be |
|00000840| 73 65 74 20 69 6e 20 74 | 68 65 20 66 61 73 68 69 |set in t|he fashi|
|00000850| 6f 6e 2c 20 6e 6f 74 61 | 62 6c 79 20 5c 66 42 50 |on, nota|bly \fBP|
|00000860| 41 54 48 5c 66 52 2c 0a | 5c 66 42 48 4f 4d 45 5c |ATH\fR,.|\fBHOME\|
|00000870| 66 52 20 61 6e 64 20 5c | 66 42 53 48 45 4c 4c 5c |fR and \|fBSHELL\|
|00000880| 66 52 2e 0a 41 64 64 69 | 74 69 6f 6e 61 6c 6c 79 |fR..Addi|tionally|
|00000890| 2c 20 5c 66 42 49 46 53 | 5c 66 52 20 6d 61 79 20 |, \fBIFS|\fR may |
|000008a0| 62 65 20 69 6e 68 69 62 | 69 74 65 64 20 69 66 20 |be inhib|ited if |
|000008b0| 74 68 65 20 75 73 65 72 | 5c 27 73 20 6c 6f 67 69 |the user|\'s logi|
|000008c0| 6e 0a 73 68 65 6c 6c 20 | 69 73 20 5c 66 42 2f 62 |n.shell |is \fB/b|
|000008d0| 69 6e 2f 73 68 5c 66 52 | 2e 0a 2e 50 50 0a 54 68 |in/sh\fR|...PP.Th|
|000008e0| 65 20 75 73 65 72 20 69 | 73 20 74 68 65 6e 20 70 |e user i|s then p|
|000008f0| 72 6f 6d 70 74 65 64 20 | 66 6f 72 20 61 20 70 61 |rompted |for a pa|
|00000900| 73 73 77 6f 72 64 2c 20 | 77 68 65 72 65 20 61 70 |ssword, |where ap|
|00000910| 70 72 6f 70 72 69 61 74 | 65 2e 0a 45 63 68 6f 69 |propriat|e..Echoi|
|00000920| 6e 67 20 69 73 20 64 69 | 73 61 62 6c 65 64 20 74 |ng is di|sabled t|
|00000930| 6f 20 70 72 65 76 65 6e | 74 20 72 65 76 65 61 6c |o preven|t reveal|
|00000940| 69 6e 67 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 |ing the |password|
|00000950| 2e 0a 4f 6e 6c 79 20 61 | 20 73 6d 61 6c 6c 20 6e |..Only a| small n|
|00000960| 75 6d 62 65 72 20 6f 66 | 20 70 61 73 73 77 6f 72 |umber of| passwor|
|00000970| 64 20 66 61 69 6c 75 72 | 65 73 20 61 72 65 20 70 |d failur|es are p|
|00000980| 65 72 6d 69 74 74 65 64 | 20 62 65 66 6f 72 65 0a |ermitted| before.|
|00000990| 5c 66 49 6c 6f 67 69 6e | 5c 66 52 20 65 78 69 74 |\fIlogin|\fR exit|
|000009a0| 73 20 61 6e 64 20 74 68 | 65 20 63 6f 6d 6d 75 6e |s and th|e commun|
|000009b0| 69 63 61 74 69 6f 6e 73 | 20 6c 69 6e 6b 20 69 73 |ications| link is|
|000009c0| 20 73 65 76 65 72 65 64 | 2e 0a 2e 50 50 0a 49 66 | severed|...PP.If|
|000009d0| 20 70 61 73 73 77 6f 72 | 64 20 61 67 69 6e 67 20 | passwor|d aging |
|000009e0| 68 61 73 20 62 65 65 6e | 20 65 6e 61 62 6c 65 64 |has been| enabled|
|000009f0| 20 66 6f 72 20 79 6f 75 | 72 20 61 63 63 6f 75 6e | for you|r accoun|
|00000a00| 74 2c 20 79 6f 75 20 6d | 61 79 20 62 65 0a 70 72 |t, you m|ay be.pr|
|00000a10| 6f 6d 70 74 65 64 20 66 | 6f 72 20 61 20 6e 65 77 |ompted f|or a new|
|00000a20| 20 70 61 73 73 77 6f 72 | 64 20 62 65 66 6f 72 65 | passwor|d before|
|00000a30| 20 70 72 6f 63 65 65 64 | 69 6e 67 2e 0a 59 6f 75 | proceed|ing..You|
|00000a40| 20 77 69 6c 6c 20 62 65 | 20 66 6f 72 63 65 64 20 | will be| forced |
|00000a50| 74 6f 20 70 72 6f 76 69 | 64 65 20 79 6f 75 72 20 |to provi|de your |
|00000a60| 6f 6c 64 20 70 61 73 73 | 77 6f 72 64 20 61 6e 64 |old pass|word and|
|00000a70| 20 74 68 65 20 6e 65 77 | 0a 70 61 73 73 77 6f 72 | the new|.passwor|
|00000a80| 64 20 62 65 66 6f 72 65 | 20 63 6f 6e 74 69 6e 75 |d before| continu|
|00000a90| 69 6e 67 2e 0a 50 6c 65 | 61 73 65 20 72 65 66 65 |ing..Ple|ase refe|
|00000aa0| 72 20 74 6f 20 5c 66 49 | 70 61 73 73 77 64 28 31 |r to \fI|passwd(1|
|00000ab0| 29 5c 66 52 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |)\fR for| more in|
|00000ac0| 66 6f 72 6d 61 74 69 6f | 6e 2e 0a 2e 50 50 0a 41 |formatio|n...PP.A|
|00000ad0| 66 74 65 72 20 61 20 73 | 75 63 63 65 73 73 66 75 |fter a s|uccessfu|
|00000ae0| 6c 20 6c 6f 67 69 6e 2c | 0a 79 6f 75 20 77 69 6c |l login,|.you wil|
|00000af0| 6c 20 62 65 20 69 6e 66 | 6f 72 6d 65 64 20 6f 66 |l be inf|ormed of|
|00000b00| 20 61 6e 79 20 73 79 73 | 74 65 6d 20 6d 65 73 73 | any sys|tem mess|
|00000b10| 61 67 65 73 20 61 6e 64 | 20 74 68 65 20 70 72 65 |ages and| the pre|
|00000b20| 73 65 6e 63 65 0a 6f 66 | 20 6d 61 69 6c 2e 0a 59 |sence.of| mail..Y|
|00000b30| 6f 75 20 6d 61 79 20 74 | 75 72 6e 20 6f 66 66 20 |ou may t|urn off |
|00000b40| 74 68 65 20 70 72 69 6e | 74 69 6e 67 20 6f 66 20 |the prin|ting of |
|00000b50| 74 68 65 20 73 79 73 74 | 65 6d 20 6d 65 73 73 61 |the syst|em messa|
|00000b60| 67 65 20 66 69 6c 65 2c | 0a 5c 66 49 2f 65 74 63 |ge file,|.\fI/etc|
|00000b70| 2f 6d 6f 74 64 5c 66 52 | 2c 20 62 79 20 63 72 65 |/motd\fR|, by cre|
|00000b80| 61 74 69 6e 67 20 61 20 | 7a 65 72 6f 2d 6c 65 6e |ating a |zero-len|
|00000b90| 67 74 68 20 66 69 6c 65 | 20 5c 66 49 2e 68 75 73 |gth file| \fI.hus|
|00000ba0| 68 6c 6f 67 69 6e 5c 66 | 52 0a 69 6e 20 79 6f 75 |hlogin\f|R.in you|
|00000bb0| 72 20 6c 6f 67 69 6e 20 | 64 69 72 65 63 74 6f 72 |r login |director|
|00000bc0| 79 2e 0a 54 68 65 20 6d | 61 69 6c 20 6d 65 73 73 |y..The m|ail mess|
|00000bd0| 61 67 65 20 77 69 6c 6c | 20 62 65 20 6f 6e 65 20 |age will| be one |
|00000be0| 6f 66 20 22 5c 66 49 59 | 6f 75 20 68 61 76 65 20 |of "\fIY|ou have |
|00000bf0| 6e 65 77 20 6d 61 69 6c | 2e 5c 66 52 22 2c 0a 22 |new mail|.\fR",."|
|00000c00| 5c 66 49 59 6f 75 20 68 | 61 76 65 20 6d 61 69 6c |\fIYou h|ave mail|
|00000c10| 2e 5c 66 52 22 2c 20 6f | 72 20 22 5c 66 49 4e 6f |.\fR", o|r "\fINo|
|00000c20| 20 4d 61 69 6c 2e 5c 66 | 52 22 20 61 63 63 6f 72 | Mail.\f|R" accor|
|00000c30| 64 69 6e 67 20 74 6f 0a | 74 68 65 20 63 6f 6e 64 |ding to.|the cond|
|00000c40| 69 74 69 6f 6e 20 6f 66 | 20 79 6f 75 72 20 6d 61 |ition of| your ma|
|00000c50| 69 6c 62 6f 78 2e 0a 2e | 50 50 0a 59 6f 75 72 20 |ilbox...|PP.Your |
|00000c60| 75 73 65 72 20 61 6e 64 | 20 67 72 6f 75 70 20 49 |user and| group I|
|00000c70| 44 20 77 69 6c 6c 20 62 | 65 20 73 65 74 20 61 63 |D will b|e set ac|
|00000c80| 63 6f 72 64 69 6e 67 20 | 74 6f 20 74 68 65 69 72 |cording |to their|
|00000c90| 20 76 61 6c 75 65 73 20 | 69 6e 0a 74 68 65 20 5c | values |in.the \|
|00000ca0| 66 49 2f 65 74 63 2f 70 | 61 73 73 77 64 5c 66 52 |fI/etc/p|asswd\fR|
|00000cb0| 20 66 69 6c 65 2e 0a 54 | 68 65 20 76 61 6c 75 65 | file..T|he value|
|00000cc0| 20 66 6f 72 20 5c 66 42 | 24 48 4f 4d 45 5c 66 52 | for \fB|$HOME\fR|
|00000cd0| 2c 20 5c 66 42 24 53 48 | 45 4c 4c 5c 66 52 2c 20 |, \fB$SH|ELL\fR, |
|00000ce0| 5c 66 42 24 50 41 54 48 | 5c 66 52 2c 20 5c 66 42 |\fB$PATH|\fR, \fB|
|00000cf0| 24 4c 4f 47 4e 41 4d 45 | 5c 66 52 2c 0a 61 6e 64 |$LOGNAME|\fR,.and|
|00000d00| 20 5c 66 42 24 4d 41 49 | 4c 5c 66 52 20 61 72 65 | \fB$MAI|L\fR are|
|00000d10| 20 73 65 74 20 61 63 63 | 6f 72 64 69 6e 67 20 74 | set acc|ording t|
|00000d20| 6f 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |o the ap|propriat|
|00000d30| 65 20 66 69 65 6c 64 73 | 20 69 6e 20 74 68 65 0a |e fields| in the.|
|00000d40| 70 61 73 73 77 6f 72 64 | 20 65 6e 74 72 79 2e 0a |password| entry..|
|00000d50| 55 6c 69 6d 69 74 2c 20 | 75 6d 61 73 6b 20 61 6e |Ulimit, |umask an|
|00000d60| 64 20 6e 69 63 65 20 76 | 61 6c 75 65 73 20 6d 61 |d nice v|alues ma|
|00000d70| 79 20 61 6c 73 6f 20 62 | 65 20 73 65 74 20 61 63 |y also b|e set ac|
|00000d80| 63 6f 72 64 69 6e 67 20 | 74 6f 0a 65 6e 74 72 69 |cording |to.entri|
|00000d90| 65 73 20 69 6e 20 74 68 | 65 20 47 45 43 4f 53 20 |es in th|e GECOS |
|00000da0| 66 69 65 6c 64 2e 0a 2e | 50 50 0a 41 6e 20 69 6e |field...|PP.An in|
|00000db0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 73 63 72 |itializa|tion scr|
|00000dc0| 69 70 74 20 66 6f 72 20 | 79 6f 75 72 20 63 6f 6d |ipt for |your com|
|00000dd0| 6d 61 6e 64 20 69 6e 74 | 65 72 70 72 65 74 65 72 |mand int|erpreter|
|00000de0| 20 6d 61 79 20 61 6c 73 | 6f 20 62 65 0a 65 78 65 | may als|o be.exe|
|00000df0| 63 75 74 65 64 2e 0a 50 | 6c 65 61 73 65 20 73 65 |cuted..P|lease se|
|00000e00| 65 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |e the ap|propriat|
|00000e10| 65 20 6d 61 6e 75 61 6c | 20 73 65 63 74 69 6f 6e |e manual| section|
|00000e20| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|00000e30| 61 74 69 6f 6e 20 6f 6e | 0a 74 68 69 73 20 66 75 |ation on|.this fu|
|00000e40| 6e 63 74 69 6f 6e 2e 0a | 2e 53 48 20 43 41 56 45 |nction..|.SH CAVE|
|00000e50| 41 54 53 0a 2e 50 50 0a | 54 68 69 73 20 76 65 72 |ATS..PP.|This ver|
|00000e60| 73 69 6f 6e 20 6f 66 20 | 5c 66 49 6c 6f 67 69 6e |sion of |\fIlogin|
|00000e70| 5c 66 52 20 68 61 73 20 | 6d 61 6e 79 20 63 6f 6d |\fR has |many com|
|00000e80| 70 69 6c 61 74 69 6f 6e | 20 6f 70 74 69 6f 6e 73 |pilation| options|
|00000e90| 2c 20 6f 6e 6c 79 20 73 | 6f 6d 65 20 6f 66 20 77 |, only s|ome of w|
|00000ea0| 68 69 63 68 0a 6d 61 79 | 20 62 65 20 69 6e 20 75 |hich.may| be in u|
|00000eb0| 73 65 20 61 74 20 61 6e | 79 20 70 61 72 74 69 63 |se at an|y partic|
|00000ec0| 75 6c 61 72 20 73 69 74 | 65 2e 0a 2e 53 48 20 46 |ular sit|e...SH F|
|00000ed0| 69 6c 65 73 0a 2f 65 74 | 63 2f 75 74 6d 70 20 5c |iles./et|c/utmp \|
|00000ee0| 2d 20 6c 69 73 74 20 6f | 66 20 63 75 72 72 65 6e |- list o|f curren|
|00000ef0| 74 20 6c 6f 67 69 6e 20 | 73 65 73 73 69 6f 6e 73 |t login |sessions|
|00000f00| 0a 2e 62 72 0a 2f 65 74 | 63 2f 77 74 6d 70 20 5c |..br./et|c/wtmp \|
|00000f10| 2d 20 6c 69 73 74 20 6f | 66 20 70 72 65 76 69 6f |- list o|f previo|
|00000f20| 75 73 20 6c 6f 67 69 6e | 20 73 65 73 73 69 6f 6e |us login| session|
|00000f30| 73 0a 2e 62 72 0a 2f 65 | 74 63 2f 70 61 73 73 77 |s..br./e|tc/passw|
|00000f40| 64 20 5c 2d 20 75 73 65 | 72 20 61 63 63 6f 75 6e |d \- use|r accoun|
|00000f50| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0a 2e 62 |t inform|ation..b|
|00000f60| 72 0a 2f 65 74 63 2f 73 | 68 61 64 6f 77 20 5c 2d |r./etc/s|hadow \-|
|00000f70| 20 65 6e 63 72 79 70 74 | 65 64 20 70 61 73 73 77 | encrypt|ed passw|
|00000f80| 6f 72 64 73 20 61 6e 64 | 20 61 67 65 20 69 6e 66 |ords and| age inf|
|00000f90| 6f 72 6d 61 74 69 6f 6e | 0a 2e 62 72 0a 2f 65 74 |ormation|..br./et|
|00000fa0| 63 2f 6d 6f 74 64 20 5c | 2d 20 73 79 73 74 65 6d |c/motd \|- system|
|00000fb0| 20 6d 65 73 73 61 67 65 | 20 66 69 6c 65 0a 2e 62 | message| file..b|
|00000fc0| 72 0a 24 48 4f 4d 45 2f | 2e 70 72 6f 66 69 6c 65 |r.$HOME/|.profile|
|00000fd0| 20 5c 2d 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 | \- init|ializati|
|00000fe0| 6f 6e 20 73 63 72 69 70 | 74 20 66 6f 72 20 64 65 |on scrip|t for de|
|00000ff0| 66 61 75 6c 74 20 73 68 | 65 6c 6c 0a 2e 62 72 0a |fault sh|ell..br.|
|00001000| 24 48 4f 4d 45 2f 2e 68 | 75 73 68 6c 6f 67 69 6e |$HOME/.h|ushlogin|
|00001010| 20 5c 2d 20 73 75 70 70 | 72 65 73 73 20 70 72 69 | \- supp|ress pri|
|00001020| 6e 74 69 6e 67 20 6f 66 | 20 73 79 73 74 65 6d 20 |nting of| system |
|00001030| 6d 65 73 73 61 67 65 73 | 0a 2e 62 72 0a 2e 53 48 |messages|..br..SH|
|00001040| 20 53 65 65 20 41 6c 73 | 6f 0a 2e 50 50 0a 67 65 | See Als|o..PP.ge|
|00001050| 74 74 79 28 31 4d 29 2c | 0a 6d 61 69 6c 28 31 29 |tty(1M),|.mail(1)|
|00001060| 2c 0a 70 61 73 73 77 64 | 28 31 29 2c 0a 73 68 28 |,.passwd|(1),.sh(|
|00001070| 31 29 2c 0a 73 75 28 31 | 29 2c 0a 64 5f 70 61 73 |1),.su(1|),.d_pas|
|00001080| 73 77 64 28 34 29 2c 0a | 70 61 73 73 77 64 28 34 |swd(4),.|passwd(4|
|00001090| 29 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 69 66 |).SHAR_E|OF.fi.if|
|000010a0| 20 74 65 73 74 20 2d 66 | 20 27 70 61 73 73 77 64 | test -f| 'passwd|
|000010b0| 2e 31 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.1'.then|..echo s|
|000010c0| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|000010d0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|000010e0| 6e 67 20 66 69 6c 65 20 | 27 70 61 73 73 77 64 2e |ng file |'passwd.|
|000010f0| 31 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |1'".else|.cat << |
|00001100| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 70 61 73 |\SHAR_EO|F > 'pas|
|00001110| 73 77 64 2e 31 27 0a 2e | 54 48 20 50 41 53 53 57 |swd.1'..|TH PASSW|
|00001120| 44 20 31 0a 2e 53 48 20 | 4e 41 4d 45 0a 70 61 73 |D 1..SH |NAME.pas|
|00001130| 73 77 64 20 5c 2d 20 63 | 68 61 6e 67 65 20 75 73 |swd \- c|hange us|
|00001140| 65 72 20 70 61 73 73 77 | 6f 72 64 0a 2e 53 48 20 |er passw|ord..SH |
|00001150| 53 59 4e 4f 50 53 49 53 | 0a 5c 66 42 70 61 73 73 |SYNOPSIS|.\fBpass|
|00001160| 77 64 5c 66 52 20 5b 20 | 5c 66 42 2d 66 5c 66 52 |wd\fR [ |\fB-f\fR|
|00001170| 20 5d 20 5b 20 5c 66 49 | 6e 61 6d 65 5c 66 52 20 | ] [ \fI|name\fR |
|00001180| 5d 0a 2e 53 48 20 44 45 | 53 43 52 49 50 54 49 4f |]..SH DE|SCRIPTIO|
|00001190| 4e 0a 5c 66 49 70 61 73 | 73 77 64 5c 66 20 63 68 |N.\fIpas|swd\f ch|
|000011a0| 61 6e 67 65 73 20 70 61 | 73 73 77 6f 72 64 73 20 |anges pa|sswords |
|000011b0| 66 6f 72 20 75 73 65 72 | 20 61 63 63 6f 75 6e 74 |for user| account|
|000011c0| 73 2e 0a 41 20 6e 6f 72 | 6d 61 6c 20 75 73 65 72 |s..A nor|mal user|
|000011d0| 20 6d 61 79 20 6f 6e 6c | 79 20 63 68 61 6e 67 65 | may onl|y change|
|000011e0| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 20 66 6f | the pas|sword fo|
|000011f0| 72 20 74 68 65 69 72 20 | 6f 77 6e 20 61 63 63 6f |r their |own acco|
|00001200| 75 6e 74 2c 0a 74 68 65 | 20 73 75 70 65 72 20 75 |unt,.the| super u|
|00001210| 73 65 72 20 6d 61 79 20 | 63 68 61 6e 67 65 20 74 |ser may |change t|
|00001220| 68 65 20 70 61 73 73 77 | 6f 72 64 20 66 6f 72 20 |he passw|ord for |
|00001230| 61 6e 79 20 61 63 63 6f | 75 6e 74 2e 0a 2e 50 50 |any acco|unt...PP|
|00001240| 0a 54 68 65 20 75 73 65 | 72 20 69 73 20 66 69 72 |.The use|r is fir|
|00001250| 73 74 20 70 72 6f 6d 70 | 74 65 64 20 66 6f 72 20 |st promp|ted for |
|00001260| 74 68 65 69 72 20 6f 6c | 64 20 70 61 73 73 77 6f |their ol|d passwo|
|00001270| 72 64 2c 0a 69 66 20 6f | 6e 65 20 69 73 20 70 72 |rd,.if o|ne is pr|
|00001280| 65 73 65 6e 74 2e 0a 54 | 68 69 73 20 70 61 73 73 |esent..T|his pass|
|00001290| 77 6f 72 64 20 69 73 20 | 74 68 65 6e 20 65 6e 63 |word is |then enc|
|000012a0| 72 79 70 74 65 64 20 61 | 6e 64 20 63 6f 6d 70 61 |rypted a|nd compa|
|000012b0| 72 65 64 20 61 67 61 69 | 6e 73 74 20 74 68 65 0a |red agai|nst the.|
|000012c0| 73 74 6f 72 65 64 20 70 | 61 73 73 77 6f 72 64 2e |stored p|assword.|
|000012d0| 0a 54 68 65 20 75 73 65 | 72 20 68 61 73 20 6f 6e |.The use|r has on|
|000012e0| 6c 79 20 6f 6e 65 20 63 | 68 61 6e 63 65 20 74 6f |ly one c|hance to|
|000012f0| 20 65 6e 74 65 72 20 74 | 68 65 20 63 6f 72 72 65 | enter t|he corre|
|00001300| 63 74 20 70 61 73 73 77 | 6f 72 64 2e 0a 54 68 65 |ct passw|ord..The|
|00001310| 20 73 75 70 65 72 20 75 | 73 65 72 20 69 73 20 70 | super u|ser is p|
|00001320| 65 72 6d 69 74 74 65 64 | 20 74 6f 20 62 79 70 61 |ermitted| to bypa|
|00001330| 73 73 20 74 68 69 73 20 | 73 74 65 70 20 73 6f 20 |ss this |step so |
|00001340| 74 68 61 74 20 66 6f 72 | 67 6f 74 74 65 6e 0a 70 |that for|gotten.p|
|00001350| 61 73 73 77 6f 72 64 73 | 20 6d 61 79 20 62 65 20 |asswords| may be |
|00001360| 63 68 61 6e 67 65 64 2e | 0a 2e 50 50 0a 41 66 74 |changed.|..PP.Aft|
|00001370| 65 72 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |er the p|assword |
|00001380| 68 61 73 20 62 65 65 6e | 20 65 6e 74 65 72 65 64 |has been| entered|
|00001390| 20 70 61 73 73 77 6f 72 | 64 20 61 67 69 6e 67 20 | passwor|d aging |
|000013a0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 69 73 20 63 |informat|ion.is c|
|000013b0| 68 65 63 6b 65 64 20 74 | 6f 20 73 65 65 20 69 66 |hecked t|o see if|
|000013c0| 20 74 68 65 20 75 73 65 | 72 20 69 73 20 70 65 72 | the use|r is per|
|000013d0| 6d 69 74 74 65 64 20 74 | 6f 20 63 68 61 6e 67 65 |mitted t|o change|
|000013e0| 20 74 68 65 69 72 20 70 | 61 73 73 77 6f 72 64 0a | their p|assword.|
|000013f0| 61 74 20 74 68 69 73 20 | 74 69 6d 65 2e 0a 49 66 |at this |time..If|
|00001400| 20 6e 6f 74 2c 20 5c 66 | 49 70 61 73 73 77 64 5c | not, \f|Ipasswd\|
|00001410| 66 52 20 72 65 66 75 73 | 65 73 20 74 6f 20 63 68 |fR refus|es to ch|
|00001420| 61 6e 67 65 20 74 68 65 | 20 70 61 73 73 77 6f 72 |ange the| passwor|
|00001430| 64 20 61 6e 64 20 65 78 | 69 74 73 2e 0a 2e 50 50 |d and ex|its...PP|
|00001440| 0a 54 68 65 20 75 73 65 | 72 20 69 73 20 74 68 65 |.The use|r is the|
|00001450| 6e 20 70 72 6f 6d 70 74 | 65 64 20 66 6f 72 20 61 |n prompt|ed for a|
|00001460| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 20 70 61 73 | replace|ment pas|
|00001470| 73 77 6f 72 64 2e 0a 54 | 68 69 73 20 70 61 73 73 |sword..T|his pass|
|00001480| 77 6f 72 64 20 69 73 20 | 74 65 73 74 65 64 20 66 |word is |tested f|
|00001490| 6f 72 20 63 6f 6d 70 6c | 65 78 69 74 79 2e 0a 41 |or compl|exity..A|
|000014a0| 73 20 61 20 67 65 6e 65 | 72 61 6c 20 67 75 69 64 |s a gene|ral guid|
|000014b0| 65 6c 69 6e 65 2c 0a 70 | 61 73 73 77 6f 72 64 73 |eline,.p|asswords|
|000014c0| 20 73 68 6f 75 6c 64 20 | 63 6f 6e 73 69 73 74 20 | should |consist |
|000014d0| 6f 66 20 36 20 74 6f 20 | 38 20 63 68 61 72 61 63 |of 6 to |8 charac|
|000014e0| 74 65 72 73 20 69 6e 63 | 6c 75 64 69 6e 67 0a 6f |ters inc|luding.o|
|000014f0| 6e 65 20 6f 72 20 6d 6f | 72 65 20 66 72 6f 6d 20 |ne or mo|re from |
|00001500| 65 61 63 68 20 6f 66 20 | 66 6f 6c 6c 6f 77 69 6e |each of |followin|
|00001510| 67 20 73 65 74 73 3a 0a | 2e 49 50 20 22 22 20 2e |g sets:.|.IP "" .|
|00001520| 35 69 0a 4c 6f 77 65 72 | 20 63 61 73 65 20 61 6c |5i.Lower| case al|
|00001530| 70 68 61 62 65 74 69 63 | 73 0a 2e 49 50 20 22 22 |phabetic|s..IP ""|
|00001540| 20 2e 35 69 0a 55 70 70 | 65 72 20 63 61 73 65 20 | .5i.Upp|er case |
|00001550| 61 6c 70 68 61 62 65 74 | 69 63 73 0a 2e 49 50 20 |alphabet|ics..IP |
|00001560| 22 22 20 2e 35 69 0a 44 | 69 67 69 74 73 20 30 20 |"" .5i.D|igits 0 |
|00001570| 74 68 72 75 20 39 0a 2e | 49 50 20 22 22 20 2e 35 |thru 9..|IP "" .5|
|00001580| 69 0a 50 75 6e 63 74 75 | 61 74 69 6f 6e 20 6d 61 |i.Punctu|ation ma|
|00001590| 72 6b 73 0a 2e 50 50 0a | 43 61 72 65 20 6d 75 73 |rks..PP.|Care mus|
|000015a0| 74 20 62 65 20 74 61 6b | 65 6e 20 6e 6f 74 20 74 |t be tak|en not t|
|000015b0| 6f 20 69 6e 63 6c 75 64 | 65 20 74 68 65 20 73 79 |o includ|e the sy|
|000015c0| 73 74 65 6d 20 64 65 66 | 61 75 6c 74 20 65 72 61 |stem def|ault era|
|000015d0| 73 65 0a 6f 72 20 6b 69 | 6c 6c 20 63 68 61 72 61 |se.or ki|ll chara|
|000015e0| 63 74 65 72 73 2e 0a 5c | 66 49 70 61 73 73 77 64 |cters..\|fIpasswd|
|000015f0| 5c 66 52 20 77 69 6c 6c | 20 72 65 6a 65 63 74 20 |\fR will| reject |
|00001600| 61 6e 79 20 70 61 73 73 | 77 6f 72 64 20 77 68 69 |any pass|word whi|
|00001610| 63 68 20 69 73 20 6e 6f | 74 20 73 75 69 74 61 62 |ch is no|t suitab|
|00001620| 6c 79 0a 63 6f 6d 70 6c | 65 78 2e 0a 2e 50 50 0a |ly.compl|ex...PP.|
|00001630| 49 66 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |If the p|assword |
|00001640| 69 73 20 61 63 63 65 70 | 74 65 64 2c 0a 5c 66 49 |is accep|ted,.\fI|
|00001650| 70 61 73 73 77 64 5c 66 | 52 20 77 69 6c 6c 20 70 |passwd\f|R will p|
|00001660| 72 6f 6d 70 74 20 61 67 | 61 69 6e 20 61 6e 64 20 |rompt ag|ain and |
|00001670| 63 6f 6d 70 61 72 65 20 | 74 68 65 20 73 65 63 6f |compare |the seco|
|00001680| 6e 64 20 65 6e 74 72 79 | 0a 61 67 61 69 6e 73 74 |nd entry|.against|
|00001690| 20 74 68 65 20 66 69 72 | 73 74 2e 0a 42 6f 74 68 | the fir|st..Both|
|000016a0| 20 65 6e 74 72 69 65 73 | 20 61 72 65 20 72 65 71 | entries| are req|
|000016b0| 75 69 72 65 20 74 6f 20 | 6d 61 74 63 68 20 69 6e |uire to |match in|
|000016c0| 20 6f 72 64 65 72 20 66 | 6f 72 20 74 68 65 20 70 | order f|or the p|
|000016d0| 61 73 73 77 6f 72 64 0a | 74 6f 20 62 65 20 63 68 |assword.|to be ch|
|000016e0| 61 6e 67 65 64 2e 0a 2e | 53 48 20 48 69 6e 74 73 |anged...|SH Hints|
|000016f0| 0a 54 68 65 20 73 65 63 | 75 72 69 74 79 20 6f 66 |.The sec|urity of|
|00001700| 20 61 20 70 61 73 73 77 | 6f 72 64 20 64 65 70 65 | a passw|ord depe|
|00001710| 6e 64 73 20 75 70 6f 6e | 20 74 68 65 20 73 74 72 |nds upon| the str|
|00001720| 65 6e 67 74 68 20 6f 66 | 20 74 68 65 0a 65 6e 63 |ength of| the.enc|
|00001730| 72 79 70 74 69 6f 6e 20 | 61 6c 67 6f 72 69 74 68 |ryption |algorith|
|00001740| 6d 20 61 6e 64 20 74 68 | 65 20 73 69 7a 65 20 6f |m and th|e size o|
|00001750| 66 20 74 68 65 20 6b 65 | 79 20 73 70 61 63 65 2e |f the ke|y space.|
|00001760| 0a 54 68 65 20 5c 66 42 | 5c 73 2d 32 55 4e 49 58 |.The \fB|\s-2UNIX|
|00001770| 5c 73 2b 32 5c 66 52 20 | 53 79 73 74 65 6d 20 65 |\s+2\fR |System e|
|00001780| 6e 63 72 79 70 74 69 6f | 6e 20 6d 65 74 68 6f 64 |ncryptio|n method|
|00001790| 20 69 73 20 62 61 73 65 | 64 20 6f 6e 0a 74 68 65 | is base|d on.the|
|000017a0| 20 4e 42 53 20 44 45 53 | 20 61 6c 67 6f 72 69 74 | NBS DES| algorit|
|000017b0| 68 6d 20 61 6e 64 20 69 | 73 20 76 65 72 79 20 73 |hm and i|s very s|
|000017c0| 65 63 75 72 65 2e 0a 2e | 50 50 0a 43 6f 6d 70 72 |ecure...|PP.Compr|
|000017d0| 6f 6d 69 73 65 73 20 69 | 6e 20 70 61 73 73 77 6f |omises i|n passwo|
|000017e0| 72 64 20 73 65 63 75 72 | 69 74 79 20 6e 6f 72 6d |rd secur|ity norm|
|000017f0| 61 6c 6c 79 20 72 65 73 | 75 6c 74 20 66 72 6f 6d |ally res|ult from|
|00001800| 20 63 61 72 65 6c 65 73 | 73 0a 70 61 73 73 77 6f | careles|s.passwo|
|00001810| 72 64 20 73 65 6c 65 63 | 74 69 6f 6e 20 6f 72 20 |rd selec|tion or |
|00001820| 68 61 6e 64 6c 69 6e 67 | 2e 0a 46 6f 72 20 74 68 |handling|..For th|
|00001830| 69 73 20 72 65 61 73 6f | 6e 2c 20 79 6f 75 20 73 |is reaso|n, you s|
|00001840| 68 6f 75 6c 64 20 73 65 | 6c 65 63 74 20 61 20 70 |hould se|lect a p|
|00001850| 61 73 73 77 6f 72 64 20 | 77 68 69 63 68 20 64 6f |assword |which do|
|00001860| 65 73 20 6e 6f 74 0a 61 | 70 70 65 61 72 20 69 6e |es not.a|ppear in|
|00001870| 20 61 20 64 69 63 74 69 | 6f 6e 61 72 79 20 6f 72 | a dicti|onary or|
|00001880| 20 77 68 69 63 68 20 6d | 75 73 74 20 62 65 20 77 | which m|ust be w|
|00001890| 72 69 74 74 65 6e 20 64 | 6f 77 6e 2e 0a 54 68 65 |ritten d|own..The|
|000018a0| 20 70 61 73 73 77 6f 72 | 64 20 73 68 6f 75 6c 64 | passwor|d should|
|000018b0| 20 61 6c 73 6f 20 6e 6f | 74 20 62 65 20 61 20 70 | also no|t be a p|
|000018c0| 72 6f 70 65 72 20 6e 61 | 6d 65 2c 20 79 6f 75 72 |roper na|me, your|
|000018d0| 20 6c 69 63 65 6e 73 65 | 0a 6e 75 6d 62 65 72 2c | license|.number,|
|000018e0| 20 62 69 72 74 68 20 64 | 61 74 65 2c 20 6f 72 20 | birth d|ate, or |
|000018f0| 73 74 72 65 65 74 20 61 | 64 64 72 65 73 73 2e 0a |street a|ddress..|
|00001900| 41 6e 79 20 6f 66 20 74 | 68 65 73 65 20 6d 61 79 |Any of t|hese may|
|00001910| 20 62 65 20 75 73 65 64 | 20 61 73 20 67 75 65 73 | be used| as gues|
|00001920| 73 65 73 20 74 6f 20 76 | 69 6f 6c 61 74 65 20 73 |ses to v|iolate s|
|00001930| 79 73 74 65 6d 20 73 65 | 63 75 72 69 74 79 2e 0a |ystem se|curity..|
|00001940| 2e 50 50 0a 59 6f 75 72 | 20 70 61 73 73 77 6f 72 |.PP.Your| passwor|
|00001950| 64 20 6d 75 73 74 20 65 | 61 73 69 6c 79 20 72 65 |d must e|asily re|
|00001960| 6d 65 6d 62 65 72 65 64 | 20 73 6f 20 74 68 61 74 |membered| so that|
|00001970| 20 79 6f 75 20 77 69 6c | 6c 20 6e 6f 74 0a 62 65 | you wil|l not.be|
|00001980| 20 66 6f 72 63 65 64 20 | 74 6f 20 77 72 69 74 65 | forced |to write|
|00001990| 20 69 74 20 6f 6e 20 61 | 20 70 69 65 63 65 20 6f | it on a| piece o|
|000019a0| 66 20 70 61 70 65 72 2e | 0a 54 68 69 73 20 63 61 |f paper.|.This ca|
|000019b0| 6e 20 62 65 20 61 63 63 | 6f 6d 70 6c 69 73 68 65 |n be acc|omplishe|
|000019c0| 64 20 62 79 20 61 70 70 | 65 6e 64 69 6e 67 20 74 |d by app|ending t|
|000019d0| 77 6f 20 73 6d 61 6c 6c | 20 77 6f 72 64 73 20 74 |wo small| words t|
|000019e0| 6f 67 65 74 68 65 72 0a | 61 6e 64 20 73 65 70 61 |ogether.|and sepa|
|000019f0| 72 61 74 69 6e 67 20 65 | 61 63 68 20 77 69 74 68 |rating e|ach with|
|00001a00| 20 61 20 73 70 65 63 69 | 61 6c 20 63 68 61 72 61 | a speci|al chara|
|00001a10| 63 74 65 72 20 6f 72 20 | 64 69 67 69 74 2e 0a 46 |cter or |digit..F|
|00001a20| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 50 61 73 73 |or examp|le, Pass|
|00001a30| 25 77 6f 72 64 2e 0a 2e | 50 50 0a 4f 74 68 65 72 |%word...|PP.Other|
|00001a40| 20 6d 65 74 68 6f 64 73 | 20 6f 66 20 63 6f 6e 73 | methods| of cons|
|00001a50| 74 72 75 63 74 69 6f 6e | 20 69 6e 76 6f 6c 76 65 |truction| involve|
|00001a60| 20 73 65 6c 65 63 74 69 | 6e 67 20 61 6e 20 65 61 | selecti|ng an ea|
|00001a70| 73 69 6c 79 0a 72 65 6d | 65 6d 62 65 72 65 64 20 |sily.rem|embered |
|00001a80| 70 68 72 61 73 65 20 66 | 72 6f 6d 20 6c 69 74 65 |phrase f|rom lite|
|00001a90| 72 61 74 75 72 65 20 61 | 6e 64 20 73 65 6c 65 63 |rature a|nd selec|
|00001aa0| 74 69 6e 67 20 74 68 65 | 20 66 69 72 73 74 0a 6f |ting the| first.o|
|00001ab0| 72 20 6c 61 73 74 20 6c | 65 74 74 65 72 20 66 72 |r last l|etter fr|
|00001ac0| 6f 6d 20 65 61 63 68 2e | 0a 41 6e 20 65 78 61 6d |om each.|.An exam|
|00001ad0| 70 6c 65 20 6f 66 20 74 | 68 69 73 20 69 73 0a 2e |ple of t|his is..|
|00001ae0| 49 50 20 22 22 20 2e 35 | 69 0a 41 73 6b 20 6e 6f |IP "" .5|i.Ask no|
|00001af0| 74 20 66 6f 72 20 77 68 | 6f 6d 20 74 68 65 20 62 |t for wh|om the b|
|00001b00| 65 6c 6c 20 74 6f 6c 6c | 73 2e 0a 2e 50 50 0a 77 |ell toll|s...PP.w|
|00001b10| 68 69 63 68 20 70 72 6f | 64 75 63 65 73 0a 2e 49 |hich pro|duces..I|
|00001b20| 50 20 22 22 20 2e 35 69 | 0a 41 6e 34 77 74 62 74 |P "" .5i|.An4wtbt|
|00001b30| 2e 0a 2e 50 50 0a 59 6f | 75 20 6d 61 79 20 62 65 |...PP.Yo|u may be|
|00001b40| 20 72 65 61 73 6f 6e 61 | 62 6c 79 20 73 75 72 65 | reasona|bly sure|
|00001b50| 20 66 65 77 20 63 72 61 | 63 6b 65 72 73 20 77 69 | few cra|ckers wi|
|00001b60| 6c 6c 20 68 61 76 65 0a | 69 6e 63 6c 75 64 65 64 |ll have.|included|
|00001b70| 20 74 68 69 73 20 69 6e | 20 74 68 65 69 72 20 64 | this in| their d|
|00001b80| 69 63 74 69 6f 6e 61 72 | 79 2e 0a 2e 53 48 20 43 |ictionar|y...SH C|
|00001b90| 41 56 45 41 54 53 0a 4e | 6f 74 20 61 6c 6c 20 6f |AVEATS.N|ot all o|
|00001ba0| 70 74 69 6f 6e 73 20 6d | 61 79 20 62 65 20 73 75 |ptions m|ay be su|
|00001bb0| 70 70 6f 72 74 65 64 2e | 0a 50 61 73 73 77 6f 72 |pported.|.Passwor|
|00001bc0| 64 20 63 6f 6d 70 6c 65 | 78 69 74 79 20 63 68 65 |d comple|xity che|
|00001bd0| 63 6b 69 6e 67 20 6d 61 | 79 20 76 61 72 79 20 66 |cking ma|y vary f|
|00001be0| 72 6f 6d 20 73 69 74 65 | 20 74 6f 20 73 69 74 65 |rom site| to site|
|00001bf0| 2e 0a 54 68 65 20 75 73 | 65 72 20 69 73 20 75 72 |..The us|er is ur|
|00001c00| 67 65 64 20 74 6f 20 73 | 65 6c 65 63 74 20 61 73 |ged to s|elect as|
|00001c10| 20 63 6f 6d 70 6c 65 78 | 20 61 20 70 61 73 73 77 | complex| a passw|
|00001c20| 6f 72 64 20 61 73 20 74 | 68 65 79 0a 66 65 65 6c |ord as t|hey.feel|
|00001c30| 20 63 6f 6d 66 6f 72 74 | 61 62 6c 65 20 77 69 74 | comfort|able wit|
|00001c40| 68 2e 0a 41 20 5c 66 42 | 2d 66 5c 66 52 20 6f 70 |h..A \fB|-f\fR op|
|00001c50| 74 69 6f 6e 20 65 78 69 | 73 74 73 20 74 6f 20 70 |tion exi|sts to p|
|00001c60| 65 72 6d 69 74 20 74 68 | 65 20 73 75 70 65 72 75 |ermit th|e superu|
|00001c70| 73 65 72 20 74 6f 20 6f | 76 65 72 72 69 64 65 0a |ser to o|verride.|
|00001c80| 61 6e 79 20 70 61 73 73 | 77 6f 72 64 20 63 6f 6d |any pass|word com|
|00001c90| 70 6c 65 78 69 74 79 20 | 74 65 73 74 69 6e 67 2c |plexity |testing,|
|00001ca0| 0a 6e 6f 72 6d 61 6c 20 | 75 73 65 72 73 20 6d 75 |.normal |users mu|
|00001cb0| 73 74 20 63 72 65 61 74 | 65 20 70 61 73 73 77 6f |st creat|e passwo|
|00001cc0| 72 64 73 20 77 68 69 63 | 68 20 70 61 73 73 20 74 |rds whic|h pass t|
|00001cd0| 68 65 20 63 6f 6d 70 6c | 65 78 69 74 79 0a 74 65 |he compl|exity.te|
|00001ce0| 73 74 2e 0a 2e 53 48 20 | 46 69 6c 65 73 0a 2f 65 |st...SH |Files./e|
|00001cf0| 74 63 2f 70 61 73 73 77 | 64 20 5c 2d 20 75 73 65 |tc/passw|d \- use|
|00001d00| 72 20 61 63 63 6f 75 6e | 74 20 69 6e 66 6f 72 6d |r accoun|t inform|
|00001d10| 61 74 69 6f 6e 0a 2e 62 | 72 0a 2f 65 74 63 2f 73 |ation..b|r./etc/s|
|00001d20| 68 61 64 6f 77 20 5c 2d | 20 65 6e 63 72 79 70 74 |hadow \-| encrypt|
|00001d30| 65 64 20 75 73 65 72 20 | 70 61 73 73 77 6f 72 64 |ed user |password|
|00001d40| 73 0a 2e 53 48 20 53 65 | 65 20 41 6c 73 6f 0a 70 |s..SH Se|e Also.p|
|00001d50| 61 73 73 77 64 28 33 29 | 2c 0a 70 61 73 73 77 64 |asswd(3)|,.passwd|
|00001d60| 28 34 29 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |(4).SHAR|_EOF.fi.|
|00001d70| 69 66 20 74 65 73 74 20 | 2d 66 20 27 70 61 73 73 |if test |-f 'pass|
|00001d80| 77 64 2e 34 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |wd.4'.th|en..echo|
|00001d90| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00001da0| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00001db0| 74 69 6e 67 20 66 69 6c | 65 20 27 70 61 73 73 77 |ting fil|e 'passw|
|00001dc0| 64 2e 34 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |d.4'".el|se.cat <|
|00001dd0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 70 |< \SHAR_|EOF > 'p|
|00001de0| 61 73 73 77 64 2e 34 27 | 0a 2e 54 48 20 50 41 53 |asswd.4'|..TH PAS|
|00001df0| 53 57 44 20 34 0a 2e 53 | 48 20 4e 41 4d 45 0a 70 |SWD 4..S|H NAME.p|
|00001e00| 61 73 73 77 64 20 5c 2d | 20 54 68 65 20 70 61 73 |asswd \-| The pas|
|00001e10| 73 77 6f 72 64 20 66 69 | 6c 65 0a 2e 53 48 20 44 |sword fi|le..SH D|
|00001e20| 45 53 43 52 49 50 54 49 | 4f 4e 0a 2e 49 20 70 61 |ESCRIPTI|ON..I pa|
|00001e30| 73 73 77 64 0a 63 6f 6e | 74 61 69 6e 73 20 76 61 |sswd.con|tains va|
|00001e40| 72 69 6f 75 73 20 70 69 | 65 63 65 73 20 6f 66 20 |rious pi|eces of |
|00001e50| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 6f 72 20 |informat|ion for |
|00001e60| 65 61 63 68 20 75 73 65 | 72 20 61 63 63 6f 75 6e |each use|r accoun|
|00001e70| 74 2e 0a 49 6e 63 6c 75 | 64 65 64 20 69 73 0a 2e |t..Inclu|ded is..|
|00001e80| 49 50 20 22 22 20 2e 35 | 69 0a 4c 6f 67 69 6e 20 |IP "" .5|i.Login |
|00001e90| 6e 61 6d 65 0a 2e 49 50 | 20 22 22 20 2e 35 69 0a |name..IP| "" .5i.|
|00001ea0| 4f 70 74 69 6f 6e 61 6c | 20 65 6e 63 72 79 70 74 |Optional| encrypt|
|00001eb0| 65 64 20 70 61 73 73 77 | 6f 72 64 0a 2e 49 50 20 |ed passw|ord..IP |
|00001ec0| 22 22 20 2e 35 69 0a 4e | 75 6d 65 72 69 63 61 6c |"" .5i.N|umerical|
|00001ed0| 20 75 73 65 72 20 49 44 | 0a 2e 49 50 20 22 22 20 | user ID|..IP "" |
|00001ee0| 2e 35 69 0a 4e 75 6d 65 | 72 69 63 61 6c 20 67 72 |.5i.Nume|rical gr|
|00001ef0| 6f 75 70 20 49 44 0a 2e | 49 50 20 22 22 20 2e 35 |oup ID..|IP "" .5|
|00001f00| 69 0a 55 73 65 72 20 6e | 61 6d 65 20 6f 72 20 63 |i.User n|ame or c|
|00001f10| 6f 6d 6d 65 6e 74 20 66 | 69 65 6c 64 0a 2e 49 50 |omment f|ield..IP|
|00001f20| 20 22 22 20 2e 35 69 0a | 55 73 65 72 20 68 6f 6d | "" .5i.|User hom|
|00001f30| 65 20 64 69 72 65 63 74 | 6f 72 79 0a 2e 49 50 20 |e direct|ory..IP |
|00001f40| 22 22 20 2e 35 69 0a 55 | 73 65 72 20 63 6f 6d 6d |"" .5i.U|ser comm|
|00001f50| 61 6e 64 20 69 6e 74 65 | 72 70 72 65 74 65 72 0a |and inte|rpreter.|
|00001f60| 2e 50 50 0a 54 68 65 20 | 70 61 73 73 77 6f 72 64 |.PP.The |password|
|00001f70| 20 66 69 65 6c 64 20 6d | 61 79 20 6e 6f 74 20 62 | field m|ay not b|
|00001f80| 65 20 66 69 6c 6c 65 64 | 20 69 66 20 73 68 61 64 |e filled| if shad|
|00001f90| 6f 77 20 70 61 73 73 77 | 6f 72 64 73 0a 68 61 76 |ow passw|ords.hav|
|00001fa0| 65 20 62 65 65 6e 20 65 | 6e 61 62 6c 65 64 2e 0a |e been e|nabled..|
|00001fb0| 49 66 20 73 68 61 64 6f | 77 20 70 61 73 73 77 6f |If shado|w passwo|
|00001fc0| 72 64 73 20 61 72 65 20 | 62 65 69 6e 67 20 75 73 |rds are |being us|
|00001fd0| 65 64 2c 20 74 68 65 20 | 65 6e 63 72 79 70 74 65 |ed, the |encrypte|
|00001fe0| 64 20 70 61 73 73 77 6f | 72 64 20 77 69 6c 6c 0a |d passwo|rd will.|
|00001ff0| 62 65 20 66 6f 75 6e 64 | 20 69 6e 20 5c 66 42 2f |be found| in \fB/|
|00002000| 65 74 63 2f 73 68 61 64 | 6f 77 5c 66 52 2e 0a 54 |etc/shad|ow\fR..T|
|00002010| 68 65 20 65 6e 63 72 79 | 70 65 64 20 70 61 73 73 |he encry|ped pass|
|00002020| 77 6f 72 64 20 63 6f 6e | 73 69 73 74 73 20 6f 66 |word con|sists of|
|00002030| 20 31 33 20 63 68 61 72 | 61 63 74 65 72 73 20 66 | 13 char|acters f|
|00002040| 72 6f 6d 20 74 68 65 0a | 36 34 20 63 68 61 72 61 |rom the.|64 chara|
|00002050| 63 74 65 72 20 61 6c 70 | 68 61 62 65 74 0a 61 20 |cter alp|habet.a |
|00002060| 74 68 72 75 20 7a 2c 20 | 41 20 74 68 72 75 20 5a |thru z, |A thru Z|
|00002070| 2c 20 30 20 74 68 72 75 | 20 39 2c 20 5c 2e 20 61 |, 0 thru| 9, \. a|
|00002080| 6e 64 20 2f 2e 0a 52 65 | 66 65 72 20 74 6f 20 5c |nd /..Re|fer to \|
|00002090| 66 49 63 72 79 70 74 28 | 33 29 5c 66 52 20 66 6f |fIcrypt(|3)\fR fo|
|000020a0| 72 20 64 65 74 61 69 6c | 73 20 6f 6e 20 68 6f 77 |r detail|s on how|
|000020b0| 20 74 68 69 73 20 73 74 | 72 69 6e 67 20 69 73 0a | this st|ring is.|
|000020c0| 69 6e 74 65 72 70 72 65 | 74 65 64 2e 0a 2e 50 50 |interpre|ted...PP|
|000020d0| 0a 41 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 70 61 73 |.An opti|onal pas|
|000020e0| 73 77 6f 72 64 20 61 67 | 65 20 73 74 72 69 6e 67 |sword ag|e string|
|000020f0| 20 6d 61 79 20 66 6f 6c | 6c 6f 77 20 74 68 65 20 | may fol|low the |
|00002100| 65 6e 63 72 79 70 74 65 | 64 0a 70 61 73 73 77 6f |encrypte|d.passwo|
|00002110| 72 64 2c 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |rd, sepa|rated by|
|00002120| 20 61 20 63 6f 6d 6d 61 | 2c 20 66 72 6f 6d 20 74 | a comma|, from t|
|00002130| 68 65 20 73 61 6d 65 20 | 61 6c 70 68 61 62 65 74 |he same |alphabet|
|00002140| 0a 61 73 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 |.as the |password|
|00002150| 20 69 74 73 65 6c 66 2e | 0a 54 68 65 20 66 69 72 | itself.|.The fir|
|00002160| 73 74 20 63 68 61 72 61 | 63 74 65 72 20 67 69 76 |st chara|cter giv|
|00002170| 65 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |es the n|umber of|
|00002180| 20 77 65 65 6b 73 20 64 | 75 72 69 6e 67 20 77 68 | weeks d|uring wh|
|00002190| 69 63 68 20 74 68 65 0a | 70 61 73 73 77 6f 72 64 |ich the.|password|
|000021a0| 20 69 73 20 76 61 6c 69 | 64 2e 0a 54 68 65 20 73 | is vali|d..The s|
|000021b0| 65 63 6f 6e 64 20 63 68 | 61 72 61 63 74 65 72 20 |econd ch|aracter |
|000021c0| 67 69 76 65 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |gives th|e number|
|000021d0| 20 6f 66 20 77 65 65 6b | 73 20 77 68 69 63 68 20 | of week|s which |
|000021e0| 6d 75 73 74 20 70 61 73 | 73 0a 62 65 66 6f 72 65 |must pas|s.before|
|000021f0| 20 74 68 65 20 75 73 65 | 72 20 69 73 20 70 65 72 | the use|r is per|
|00002200| 6d 69 74 74 65 64 20 74 | 6f 20 63 68 61 6e 67 65 |mitted t|o change|
|00002210| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 2e 0a 54 | the pas|sword..T|
|00002220| 68 65 20 6c 61 73 74 20 | 74 77 6f 20 63 68 61 72 |he last |two char|
|00002230| 61 63 74 65 72 73 20 67 | 69 76 65 20 74 68 65 20 |acters g|ive the |
|00002240| 77 65 65 6b 20 73 69 6e | 63 65 20 4a 61 6e 20 31 |week sin|ce Jan 1|
|00002250| 39 37 30 20 77 68 65 6e | 20 74 68 65 0a 70 61 73 |970 when| the.pas|
|00002260| 73 77 6f 72 64 20 77 61 | 73 20 6c 61 73 74 20 63 |sword wa|s last c|
|00002270| 68 61 6e 67 65 64 2e 0a | 57 68 65 6e 20 74 68 65 |hanged..|When the|
|00002280| 20 6e 75 6d 62 65 72 20 | 6f 66 20 77 65 65 6b 73 | number |of weeks|
|00002290| 20 64 75 72 69 6e 67 20 | 77 68 69 63 68 20 74 68 | during |which th|
|000022a0| 65 20 70 61 73 73 77 6f | 72 64 20 69 73 20 76 61 |e passwo|rd is va|
|000022b0| 6c 69 64 0a 68 61 76 65 | 20 70 61 73 73 65 64 2c |lid.have| passed,|
|000022c0| 20 74 68 65 20 75 73 65 | 72 20 77 69 6c 6c 20 62 | the use|r will b|
|000022d0| 65 20 72 65 71 75 69 72 | 65 64 20 74 6f 20 70 72 |e requir|ed to pr|
|000022e0| 6f 76 69 64 65 20 61 20 | 6e 65 77 0a 70 61 73 73 |ovide a |new.pass|
|000022f0| 77 6f 72 64 2e 0a 2e 50 | 50 0a 54 68 65 20 63 6f |word...P|P.The co|
|00002300| 6d 6d 65 6e 74 20 66 69 | 65 6c 64 20 69 73 20 75 |mment fi|eld is u|
|00002310| 73 65 64 20 62 79 20 76 | 61 72 69 6f 75 73 20 73 |sed by v|arious s|
|00002320| 79 73 74 65 6d 20 75 74 | 69 6c 69 74 69 65 73 2c |ystem ut|ilities,|
|00002330| 20 73 75 63 68 20 61 73 | 0a 5c 66 49 66 69 6e 67 | such as|.\fIfing|
|00002340| 65 72 28 31 29 5c 66 52 | 2e 0a 54 68 72 65 65 20 |er(1)\fR|..Three |
|00002350| 61 64 64 69 74 69 6f 6e | 61 6c 20 76 61 6c 75 65 |addition|al value|
|00002360| 73 20 6d 61 79 20 62 65 | 20 70 72 65 73 65 6e 74 |s may be| present|
|00002370| 20 69 6e 20 74 68 65 20 | 63 6f 6d 6d 65 6e 74 20 | in the |comment |
|00002380| 66 69 65 6c 64 2e 0a 54 | 68 65 79 20 61 72 65 0a |field..T|hey are.|
|00002390| 2e 49 50 20 22 22 20 2e | 35 69 0a 70 72 69 3d 20 |.IP "" .|5i.pri= |
|000023a0| 5c 2d 20 73 65 74 20 69 | 6e 69 74 69 61 6c 20 76 |\- set i|nitial v|
|000023b0| 61 6c 75 65 20 6f 66 20 | 6e 69 63 65 0a 2e 49 50 |alue of |nice..IP|
|000023c0| 20 22 22 20 2e 35 69 0a | 75 6d 61 73 6b 3d 20 5c | "" .5i.|umask= \|
|000023d0| 2d 20 73 65 74 20 69 6e | 69 74 69 61 6c 20 76 61 |- set in|itial va|
|000023e0| 6c 75 65 20 6f 66 20 75 | 6d 61 73 6b 0a 2e 49 50 |lue of u|mask..IP|
|000023f0| 20 22 22 20 2e 35 69 0a | 75 6c 69 6d 69 74 3d 20 | "" .5i.|ulimit= |
|00002400| 5c 2d 20 73 65 74 20 69 | 6e 69 74 69 61 6c 20 76 |\- set i|nitial v|
|00002410| 61 6c 75 65 20 6f 66 20 | 75 6c 69 6d 69 74 0a 2e |alue of |ulimit..|
|00002420| 50 50 0a 54 68 65 73 65 | 20 66 69 65 6c 64 73 20 |PP.These| fields |
|00002430| 61 72 65 20 73 65 70 61 | 72 61 74 65 64 20 66 72 |are sepa|rated fr|
|00002440| 6f 6d 20 65 61 63 68 20 | 6f 74 68 65 72 20 61 6e |om each |other an|
|00002450| 64 20 66 72 6f 6d 20 61 | 6e 79 20 6f 74 68 65 72 |d from a|ny other|
|00002460| 0a 63 6f 6d 6d 65 6e 74 | 20 66 69 65 6c 64 20 62 |.comment| field b|
|00002470| 79 20 61 20 63 6f 6d 6d | 61 2e 0a 2e 50 50 0a 54 |y a comm|a...PP.T|
|00002480| 68 65 20 68 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |he home |director|
|00002490| 79 20 66 69 65 6c 64 20 | 70 72 6f 76 69 64 65 73 |y field |provides|
|000024a0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000024b0| 20 69 6e 69 74 69 61 6c | 0a 77 6f 72 6b 69 6e 67 | initial|.working|
|000024c0| 20 64 69 72 65 63 74 6f | 72 79 2e 0a 5c 66 49 4c | directo|ry..\fIL|
|000024d0| 6f 67 69 6e 5c 66 52 20 | 75 73 65 73 20 74 68 69 |ogin\fR |uses thi|
|000024e0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 74 6f |s inform|ation to|
|000024f0| 20 73 65 74 20 74 68 65 | 20 76 61 6c 75 65 20 6f | set the| value o|
|00002500| 66 0a 74 68 65 20 5c 66 | 42 48 4f 4d 45 5c 66 52 |f.the \f|BHOME\fR|
|00002510| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 61 6c 20 76 | environ|mental v|
|00002520| 61 72 69 61 62 6c 65 2e | 0a 2e 50 50 0a 54 68 65 |ariable.|..PP.The|
|00002530| 20 63 6f 6d 6d 61 6e 64 | 20 69 6e 74 65 72 70 72 | command| interpr|
|00002540| 65 74 65 72 20 66 69 65 | 6c 64 20 70 72 6f 76 69 |eter fie|ld provi|
|00002550| 64 65 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |des the |name of |
|00002560| 74 68 65 20 75 73 65 72 | 27 73 0a 63 6f 6d 6d 61 |the user|'s.comma|
|00002570| 6e 64 20 6c 61 6e 67 75 | 61 67 65 20 69 6e 74 65 |nd langu|age inte|
|00002580| 72 70 72 65 74 65 72 2c | 20 6f 72 20 74 68 65 20 |rpreter,| or the |
|00002590| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 69 6e 69 74 |name of |the init|
|000025a0| 69 61 6c 20 70 72 6f 67 | 72 61 6d 0a 74 6f 20 65 |ial prog|ram.to e|
|000025b0| 78 65 63 75 74 65 2e 0a | 5c 66 49 4c 6f 67 69 6e |xecute..|\fILogin|
|000025c0| 5c 66 52 20 75 73 65 73 | 20 74 68 69 73 20 69 6e |\fR uses| this in|
|000025d0| 66 6f 72 6d 61 74 69 6f | 6e 20 74 6f 20 73 65 74 |formatio|n to set|
|000025e0| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | the val|ue of th|
|000025f0| 65 0a 5c 66 42 53 48 45 | 4c 4c 5c 66 52 20 65 6e |e.\fBSHE|LL\fR en|
|00002600| 76 69 72 6f 6e 6d 65 6e | 74 61 6c 20 76 61 72 69 |vironmen|tal vari|
|00002610| 61 62 6c 65 2e 0a 49 66 | 20 74 68 69 73 20 66 69 |able..If| this fi|
|00002620| 65 6c 64 20 69 73 20 65 | 6d 70 74 79 2c 20 69 74 |eld is e|mpty, it|
|00002630| 20 64 65 66 61 75 6c 74 | 73 20 74 6f 20 74 68 65 | default|s to the|
|00002640| 20 76 61 6c 75 65 20 5c | 66 42 2f 62 69 6e 2f 73 | value \|fB/bin/s|
|00002650| 68 5c 66 52 2e 0a 2e 53 | 48 20 46 69 6c 65 73 0a |h\fR...S|H Files.|
|00002660| 2f 65 74 63 2f 70 61 73 | 73 77 64 20 5c 2d 20 75 |/etc/pas|swd \- u|
|00002670| 73 65 72 20 61 63 63 6f | 75 6e 74 20 69 6e 66 6f |ser acco|unt info|
|00002680| 72 6d 61 74 69 6f 6e 0a | 2e 53 48 20 53 65 65 20 |rmation.|.SH See |
|00002690| 41 6c 73 6f 0a 6c 6f 67 | 69 6e 28 31 29 2c 0a 70 |Also.log|in(1),.p|
|000026a0| 61 73 73 77 64 28 31 29 | 2c 0a 73 75 28 31 29 2c |asswd(1)|,.su(1),|
|000026b0| 0a 73 75 6c 6f 67 69 6e | 28 31 4d 29 2c 0a 73 68 |.sulogin|(1M),.sh|
|000026c0| 61 64 6f 77 28 34 29 2c | 0a 70 77 63 6f 6e 76 28 |adow(4),|.pwconv(|
|000026d0| 38 29 2c 0a 70 77 75 6e | 63 6f 6e 76 28 38 29 0a |8),.pwun|conv(8).|
|000026e0| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 69 66 20 74 |SHAR_EOF|.fi.if t|
|000026f0| 65 73 74 20 2d 66 20 27 | 73 68 61 64 6f 77 2e 33 |est -f '|shadow.3|
|00002700| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00002710| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00002720| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002730| 20 66 69 6c 65 20 27 73 | 68 61 64 6f 77 2e 33 27 | file 's|hadow.3'|
|00002740| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00002750| 48 41 52 5f 45 4f 46 20 | 3e 20 27 73 68 61 64 6f |HAR_EOF |> 'shado|
|00002760| 77 2e 33 27 0a 2e 54 48 | 20 53 48 41 44 4f 57 20 |w.3'..TH| SHADOW |
|00002770| 33 0a 2e 53 48 20 4e 41 | 4d 45 0a 73 68 61 64 6f |3..SH NA|ME.shado|
|00002780| 77 20 5c 2d 20 65 6e 63 | 72 79 70 74 65 64 20 70 |w \- enc|rypted p|
|00002790| 61 73 73 77 6f 72 64 20 | 66 69 6c 65 20 72 6f 75 |assword |file rou|
|000027a0| 74 69 6e 65 73 0a 2e 53 | 48 20 53 79 6e 74 61 78 |tines..S|H Syntax|
|000027b0| 0a 2e 49 50 20 22 22 20 | 2e 35 69 0a 23 69 6e 63 |..IP "" |.5i.#inc|
|000027c0| 6c 75 64 65 20 3c 73 68 | 61 64 6f 77 2e 68 3e 0a |lude <sh|adow.h>.|
|000027d0| 2e 49 50 20 22 22 20 2e | 35 69 0a 73 74 72 75 63 |.IP "" .|5i.struc|
|000027e0| 74 20 73 70 77 64 20 2a | 67 65 74 73 70 65 6e 74 |t spwd *|getspent|
|000027f0| 28 29 3b 0a 2e 62 72 0a | 73 74 72 75 63 74 20 73 |();..br.|struct s|
|00002800| 70 77 64 20 2a 67 65 74 | 73 70 6e 61 6d 28 63 68 |pwd *get|spnam(ch|
|00002810| 61 72 20 2a 20 6e 61 6d | 65 29 3b 0a 2e 62 72 0a |ar * nam|e);..br.|
|00002820| 76 6f 69 64 20 73 65 74 | 73 70 65 6e 74 28 29 3b |void set|spent();|
|00002830| 0a 2e 62 72 0a 76 6f 69 | 64 20 65 6e 64 73 70 65 |..br.voi|d endspe|
|00002840| 6e 74 28 29 3b 0a 2e 62 | 72 0a 73 74 72 75 63 74 |nt();..b|r.struct|
|00002850| 20 73 70 77 64 20 2a 66 | 67 65 74 73 70 65 6e 74 | spwd *f|getspent|
|00002860| 28 46 49 4c 45 20 2a 66 | 70 29 3b 0a 2e 62 72 0a |(FILE *f|p);..br.|
|00002870| 69 6e 74 20 70 75 74 73 | 70 65 6e 74 28 73 74 72 |int puts|pent(str|
|00002880| 75 63 74 20 73 70 77 64 | 20 2a 70 2c 46 49 4c 45 |uct spwd| *p,FILE|
|00002890| 20 2a 66 70 29 3b 0a 2e | 53 48 20 44 45 53 43 52 | *fp);..|SH DESCR|
|000028a0| 49 50 54 49 4f 4e 0a 2e | 49 20 73 68 61 64 6f 77 |IPTION..|I shadow|
|000028b0| 0a 6d 61 6e 69 70 75 6c | 61 74 65 73 20 74 68 65 |.manipul|ates the|
|000028c0| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the|
|000028d0| 20 73 68 61 64 6f 77 20 | 70 61 73 73 77 6f 72 64 | shadow |password|
|000028e0| 20 66 69 6c 65 2c 0a 5c | 66 42 2f 65 74 63 2f 73 | file,.\|fB/etc/s|
|000028f0| 68 61 64 6f 77 5c 66 52 | 2e 0a 54 68 65 20 73 74 |hadow\fR|..The st|
|00002900| 72 75 63 74 75 72 65 20 | 69 6e 20 74 68 65 20 5c |ructure |in the \|
|00002910| 66 49 23 69 6e 63 6c 75 | 64 65 5c 66 52 20 66 69 |fI#inclu|de\fR fi|
|00002920| 6c 65 20 69 73 0a 2e 49 | 50 20 22 22 20 2e 35 69 |le is..I|P "" .5i|
|00002930| 0a 73 74 72 75 63 74 20 | 73 70 77 64 20 7b 0a 2e |.struct |spwd {..|
|00002940| 62 72 0a 09 63 68 61 72 | 09 2a 73 70 5f 6e 61 6d |br..char|.*sp_nam|
|00002950| 70 3b 20 2f 2a 20 75 73 | 65 72 20 6c 6f 67 69 6e |p; /* us|er login|
|00002960| 20 6e 61 6d 65 20 2a 2f | 0a 2e 62 72 0a 09 63 68 | name */|..br..ch|
|00002970| 61 72 09 2a 73 70 5f 70 | 77 64 70 3b 20 2f 2a 20 |ar.*sp_p|wdp; /* |
|00002980| 65 6e 63 72 79 70 74 65 | 64 20 70 61 73 73 77 6f |encrypte|d passwo|
|00002990| 72 64 20 2a 2f 0a 2e 62 | 72 0a 09 6c 6f 6e 67 09 |rd */..b|r..long.|
|000029a0| 73 70 5f 6c 73 74 63 68 | 67 3b 20 2f 2a 20 6c 61 |sp_lstch|g; /* la|
|000029b0| 73 74 20 70 61 73 73 77 | 6f 72 64 20 63 68 61 6e |st passw|ord chan|
|000029c0| 67 65 20 2a 2f 0a 2e 62 | 72 0a 09 69 6e 74 09 73 |ge */..b|r..int.s|
|000029d0| 70 5f 6d 61 78 3b 20 2f | 2a 20 64 61 79 73 20 62 |p_max; /|* days b|
|000029e0| 65 66 6f 72 65 20 63 68 | 61 6e 67 65 20 72 65 71 |efore ch|ange req|
|000029f0| 75 69 72 65 64 20 2a 2f | 0a 2e 62 72 0a 09 69 6e |uired */|..br..in|
|00002a00| 74 09 73 70 5f 6d 69 6e | 3b 20 2f 2a 20 64 61 79 |t.sp_min|; /* day|
|00002a10| 73 20 75 6e 74 69 6c 20 | 63 68 61 6e 67 65 20 61 |s until |change a|
|00002a20| 6c 6c 6f 77 65 64 2e 20 | 2a 2f 0a 2e 62 72 0a 7d |llowed. |*/..br.}|
|00002a30| 0a 2e 50 50 0a 54 68 65 | 20 6d 65 61 6e 69 6e 67 |..PP.The| meaning|
|00002a40| 73 20 6f 66 20 65 61 63 | 68 20 66 69 65 6c 64 20 |s of eac|h field |
|00002a50| 61 72 65 0a 2e 49 50 20 | 22 22 20 2e 35 69 0a 73 |are..IP |"" .5i.s|
|00002a60| 70 5f 6e 61 6d 70 20 5c | 2d 20 70 6f 69 6e 74 65 |p_namp \|- pointe|
|00002a70| 72 20 74 6f 20 6e 75 6c | 6c 2d 74 65 72 6d 69 6e |r to nul|l-termin|
|00002a80| 61 74 65 64 20 75 73 65 | 72 20 6e 61 6d 65 2e 0a |ated use|r name..|
|00002a90| 2e 49 50 20 22 22 20 2e | 35 69 0a 73 70 5f 70 77 |.IP "" .|5i.sp_pw|
|00002aa0| 64 70 20 5c 2d 20 70 6f | 69 6e 74 65 72 20 74 6f |dp \- po|inter to|
|00002ab0| 20 6e 75 6c 6c 2d 74 65 | 72 6d 69 6e 61 74 65 64 | null-te|rminated|
|00002ac0| 20 70 61 73 73 77 6f 72 | 64 2e 0a 2e 49 50 20 22 | passwor|d...IP "|
|00002ad0| 22 20 2e 35 69 0a 73 70 | 5f 6c 73 74 63 68 67 20 |" .5i.sp|_lstchg |
|00002ae0| 5c 2d 20 64 61 79 73 20 | 73 69 6e 63 65 20 4a 61 |\- days |since Ja|
|00002af0| 6e 20 31 2c 20 31 39 37 | 30 20 70 61 73 73 77 6f |n 1, 197|0 passwo|
|00002b00| 72 64 20 77 61 73 20 6c | 61 73 74 20 63 68 61 6e |rd was l|ast chan|
|00002b10| 67 65 64 2e 0a 2e 49 50 | 20 22 22 20 2e 35 69 0a |ged...IP| "" .5i.|
|00002b20| 73 70 5f 6d 61 78 20 5c | 2d 20 64 61 79 73 20 61 |sp_max \|- days a|
|00002b30| 66 74 65 72 20 77 68 69 | 63 68 20 70 61 73 73 77 |fter whi|ch passw|
|00002b40| 6f 72 64 20 6d 75 73 74 | 20 62 65 20 63 68 61 6e |ord must| be chan|
|00002b50| 67 65 64 0a 2e 49 50 20 | 22 22 20 2e 35 69 0a 73 |ged..IP |"" .5i.s|
|00002b60| 70 5f 6d 69 6e 20 5c 2d | 20 64 61 79 73 20 62 65 |p_min \-| days be|
|00002b70| 66 6f 72 65 20 77 68 69 | 63 68 20 70 61 73 73 77 |fore whi|ch passw|
|00002b80| 6f 72 64 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 63 |ord may |not be c|
|00002b90| 68 61 6e 67 65 64 2e 0a | 2e 53 48 20 44 65 73 63 |hanged..|.SH Desc|
|00002ba0| 72 69 70 74 69 6f 6e 0a | 5c 66 49 67 65 74 73 70 |ription.|\fIgetsp|
|00002bb0| 65 6e 74 5c 66 52 2c 20 | 5c 66 49 67 65 74 73 70 |ent\fR, |\fIgetsp|
|00002bc0| 6e 61 6d 65 5c 66 52 2c | 20 61 6e 64 20 5c 66 49 |name\fR,| and \fI|
|00002bd0| 66 67 65 74 73 70 65 6e | 74 5c 66 52 20 65 61 63 |fgetspen|t\fR eac|
|00002be0| 68 20 72 65 74 75 72 6e | 0a 61 20 70 6f 69 6e 74 |h return|.a point|
|00002bf0| 65 72 20 74 6f 20 61 20 | 5c 66 42 73 74 72 75 63 |er to a |\fBstruc|
|00002c00| 74 20 73 70 65 6e 74 5c | 66 52 2e 0a 5c 66 49 67 |t spent\|fR..\fIg|
|00002c10| 65 74 73 70 65 6e 74 5c | 66 52 20 72 65 74 75 72 |etspent\|fR retur|
|00002c20| 6e 73 20 74 68 65 0a 6e | 65 78 74 20 65 6e 74 72 |ns the.n|ext entr|
|00002c30| 79 20 66 72 6f 6d 20 74 | 68 65 20 66 69 6c 65 2c |y from t|he file,|
|00002c40| 20 61 6e 64 20 5c 66 49 | 66 67 65 74 73 70 65 6e | and \fI|fgetspen|
|00002c50| 74 5c 66 52 20 72 65 74 | 75 72 6e 73 20 74 68 65 |t\fR ret|urns the|
|00002c60| 20 6e 65 78 74 0a 65 6e | 74 72 79 20 66 72 6f 6d | next.en|try from|
|00002c70| 20 74 68 65 20 67 69 76 | 65 6e 20 73 74 72 65 61 | the giv|en strea|
|00002c80| 6d 2c 20 77 68 69 63 68 | 20 69 73 20 61 73 73 75 |m, which| is assu|
|00002c90| 6d 65 64 20 74 6f 20 62 | 65 20 61 20 66 69 6c 65 |med to b|e a file|
|00002ca0| 20 6f 66 0a 74 68 65 20 | 70 72 6f 70 65 72 20 66 | of.the |proper f|
|00002cb0| 6f 72 6d 61 74 2e 0a 5c | 66 49 67 65 74 73 70 6e |ormat..\|fIgetspn|
|00002cc0| 61 6d 5c 66 52 20 73 65 | 61 72 63 68 65 73 20 66 |am\fR se|arches f|
|00002cd0| 72 6f 6d 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |rom the |current |
|00002ce0| 70 6f 73 69 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |position| in the |
|00002cf0| 66 69 6c 65 20 66 6f 72 | 0a 61 6e 20 65 6e 74 72 |file for|.an entr|
|00002d00| 79 20 6d 61 74 63 68 69 | 6e 67 20 5c 66 49 6e 61 |y matchi|ng \fIna|
|00002d10| 6d 65 5c 66 52 2e 0a 2e | 50 50 0a 5c 66 49 73 65 |me\fR...|PP.\fIse|
|00002d20| 74 73 70 65 6e 74 5c 66 | 52 20 61 6e 64 20 5c 66 |tspent\f|R and \f|
|00002d30| 49 65 6e 64 73 70 65 6e | 74 5c 66 52 20 6d 61 79 |Iendspen|t\fR may|
|00002d40| 20 62 65 20 75 73 65 64 | 20 74 6f 20 62 65 67 69 | be used| to begi|
|00002d50| 6e 20 61 6e 64 20 65 6e | 64 2c 0a 72 65 73 70 65 |n and en|d,.respe|
|00002d60| 63 74 69 76 65 6c 79 2c | 20 61 63 63 65 73 73 20 |ctively,| access |
|00002d70| 74 6f 20 74 68 65 20 73 | 68 61 64 6f 77 20 70 61 |to the s|hadow pa|
|00002d80| 73 73 77 6f 72 64 20 66 | 69 6c 65 2e 0a 2e 53 48 |ssword f|ile...SH|
|00002d90| 20 44 69 61 67 6e 6f 73 | 74 69 63 73 0a 52 6f 75 | Diagnos|tics.Rou|
|00002da0| 74 69 6e 65 73 20 72 65 | 74 75 72 6e 20 4e 55 4c |tines re|turn NUL|
|00002db0| 4c 20 69 66 20 6e 6f 20 | 6d 6f 72 65 20 65 6e 74 |L if no |more ent|
|00002dc0| 72 69 65 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |ries are| availab|
|00002dd0| 6c 65 20 6f 72 20 69 66 | 20 61 6e 0a 65 72 72 6f |le or if| an.erro|
|00002de0| 72 20 6f 63 63 75 72 73 | 20 64 75 72 69 6e 67 20 |r occurs| during |
|00002df0| 70 72 6f 63 65 73 73 69 | 6e 67 2e 0a 2e 53 48 20 |processi|ng...SH |
|00002e00| 43 61 76 65 61 74 73 0a | 54 68 65 73 65 20 72 6f |Caveats.|These ro|
|00002e10| 75 74 69 6e 65 73 20 6d | 61 79 20 6f 6e 6c 79 20 |utines m|ay only |
|00002e20| 62 65 20 75 73 65 64 20 | 62 79 20 74 68 65 20 73 |be used |by the s|
|00002e30| 75 70 65 72 20 75 73 65 | 72 20 61 73 20 61 63 63 |uper use|r as acc|
|00002e40| 65 73 73 20 74 6f 0a 74 | 68 65 20 73 68 61 64 6f |ess to.t|he shado|
|00002e50| 77 20 70 61 73 73 77 6f | 72 64 20 66 69 6c 65 20 |w passwo|rd file |
|00002e60| 69 73 20 72 65 73 74 72 | 69 63 74 65 64 2e 0a 2e |is restr|icted...|
|00002e70| 53 48 20 46 69 6c 65 73 | 0a 2f 65 74 63 2f 73 68 |SH Files|./etc/sh|
|00002e80| 61 64 6f 77 20 5c 2d 20 | 65 6e 63 72 79 70 74 65 |adow \- |encrypte|
|00002e90| 64 20 75 73 65 72 20 70 | 61 73 73 77 6f 72 64 73 |d user p|asswords|
|00002ea0| 0a 2e 53 48 20 53 65 65 | 20 41 6c 73 6f 0a 67 65 |..SH See| Also.ge|
|00002eb0| 74 70 77 65 6e 74 28 33 | 29 2c 0a 73 68 61 64 6f |tpwent(3|),.shado|
|00002ec0| 77 28 34 29 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 |w(4).SHA|R_EOF.fi|
|00002ed0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 73 68 61 |.if test| -f 'sha|
|00002ee0| 64 6f 77 2e 34 27 0a 74 | 68 65 6e 0a 09 65 63 68 |dow.4'.t|hen..ech|
|00002ef0| 6f 20 73 68 61 72 3a 20 | 22 77 69 6c 6c 20 6e 6f |o shar: |"will no|
|00002f00| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00002f10| 73 74 69 6e 67 20 66 69 | 6c 65 20 27 73 68 61 64 |sting fi|le 'shad|
|00002f20| 6f 77 2e 34 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |ow.4'".e|lse.cat |
|00002f30| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00002f40| 73 68 61 64 6f 77 2e 34 | 27 0a 2e 54 48 20 53 48 |shadow.4|'..TH SH|
|00002f50| 41 44 4f 57 20 34 0a 2e | 53 48 20 4e 41 4d 45 0a |ADOW 4..|SH NAME.|
|00002f60| 73 68 61 64 6f 77 20 5c | 2d 20 65 6e 63 72 79 70 |shadow \|- encryp|
|00002f70| 74 65 64 20 70 61 73 73 | 77 6f 72 64 20 66 69 6c |ted pass|word fil|
|00002f80| 65 0a 2e 53 48 20 44 45 | 53 43 52 49 50 54 49 4f |e..SH DE|SCRIPTIO|
|00002f90| 4e 0a 2e 49 20 73 68 61 | 64 6f 77 0a 63 6f 6e 74 |N..I sha|dow.cont|
|00002fa0| 61 69 6e 73 20 74 68 65 | 20 65 6e 63 72 79 70 74 |ains the| encrypt|
|00002fb0| 65 64 20 70 61 73 73 77 | 6f 72 64 20 69 6e 66 6f |ed passw|ord info|
|00002fc0| 72 6d 61 74 69 6f 6e 20 | 66 6f 72 20 75 73 65 72 |rmation |for user|
|00002fd0| 27 73 20 61 63 63 6f 75 | 6e 74 73 0a 61 6e 64 20 |'s accou|nts.and |
|00002fe0| 6f 70 74 69 6f 6e 61 6c | 20 74 68 65 20 70 61 73 |optional| the pas|
|00002ff0| 73 77 6f 72 64 20 61 67 | 69 6e 67 20 69 6e 66 6f |sword ag|ing info|
|00003000| 72 6d 61 74 69 6f 6e 2e | 0a 49 6e 63 6c 75 64 65 |rmation.|.Include|
|00003010| 64 20 69 73 0a 2e 49 50 | 20 22 22 20 2e 35 69 0a |d is..IP| "" .5i.|
|00003020| 4c 6f 67 69 6e 20 6e 61 | 6d 65 0a 2e 49 50 20 22 |Login na|me..IP "|
|00003030| 22 20 2e 35 69 0a 45 6e | 63 72 79 70 74 65 64 20 |" .5i.En|crypted |
|00003040| 70 61 73 73 77 6f 72 64 | 0a 2e 49 50 20 22 22 20 |password|..IP "" |
|00003050| 2e 35 69 0a 44 61 74 65 | 20 70 61 73 73 77 6f 72 |.5i.Date| passwor|
|00003060| 64 20 6c 61 73 74 20 63 | 68 61 6e 67 65 64 0a 2e |d last c|hanged..|
|00003070| 49 50 20 22 22 20 2e 35 | 69 0a 44 61 79 73 20 62 |IP "" .5|i.Days b|
|00003080| 65 66 6f 72 65 20 70 61 | 73 73 77 6f 72 64 20 6d |efore pa|ssword m|
|00003090| 61 79 20 62 65 20 63 68 | 61 6e 67 65 64 0a 2e 49 |ay be ch|anged..I|
|000030a0| 50 20 22 22 20 2e 35 69 | 0a 44 61 79 73 20 61 66 |P "" .5i|.Days af|
|000030b0| 74 65 72 20 77 68 69 63 | 68 20 70 61 73 73 77 6f |ter whic|h passwo|
|000030c0| 72 64 20 6d 75 73 74 20 | 62 65 20 63 68 61 6e 67 |rd must |be chang|
|000030d0| 65 64 0a 2e 50 50 0a 54 | 68 65 20 70 61 73 73 77 |ed..PP.T|he passw|
|000030e0| 6f 72 64 20 66 69 65 6c | 64 20 6d 75 73 74 20 62 |ord fiel|d must b|
|000030f0| 65 20 66 69 6c 6c 65 64 | 2e 0a 54 68 65 20 65 6e |e filled|..The en|
|00003100| 63 72 79 70 65 64 20 70 | 61 73 73 77 6f 72 64 20 |cryped p|assword |
|00003110| 63 6f 6e 73 69 73 74 73 | 20 6f 66 20 31 33 20 63 |consists| of 13 c|
|00003120| 68 61 72 61 63 74 65 72 | 73 20 66 72 6f 6d 20 74 |haracter|s from t|
|00003130| 68 65 0a 36 34 20 63 68 | 61 72 61 63 74 65 72 20 |he.64 ch|aracter |
|00003140| 61 6c 70 68 61 62 65 74 | 0a 61 20 74 68 72 75 20 |alphabet|.a thru |
|00003150| 7a 2c 20 41 20 74 68 72 | 75 20 5a 2c 20 30 20 74 |z, A thr|u Z, 0 t|
|00003160| 68 72 75 20 39 2c 20 5c | 2e 20 61 6e 64 20 2f 2e |hru 9, \|. and /.|
|00003170| 0a 52 65 66 65 72 20 74 | 6f 20 5c 66 49 63 72 79 |.Refer t|o \fIcry|
|00003180| 70 74 28 33 29 5c 66 52 | 20 66 6f 72 20 64 65 74 |pt(3)\fR| for det|
|00003190| 61 69 6c 73 20 6f 6e 20 | 68 6f 77 20 74 68 69 73 |ails on |how this|
|000031a0| 20 73 74 72 69 6e 67 20 | 69 73 0a 69 6e 74 65 72 | string |is.inter|
|000031b0| 70 72 65 74 65 64 2e 0a | 2e 50 50 0a 54 68 65 20 |preted..|.PP.The |
|000031c0| 64 61 74 65 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |date of |the last|
|000031d0| 20 70 61 73 73 77 6f 72 | 64 20 63 68 61 6e 67 65 | passwor|d change|
|000031e0| 20 69 73 20 67 69 76 65 | 6e 20 61 73 20 74 68 65 | is give|n as the|
|000031f0| 20 6e 75 6d 62 65 72 0a | 6f 66 20 64 61 79 73 20 | number.|of days |
|00003200| 73 69 6e 63 65 20 4a 61 | 6e 20 31 2c 20 31 39 37 |since Ja|n 1, 197|
|00003210| 30 2e 0a 54 68 65 20 70 | 61 73 73 77 6f 72 64 20 |0..The p|assword |
|00003220| 6d 61 79 20 6e 6f 74 20 | 62 65 20 63 68 61 6e 67 |may not |be chang|
|00003230| 65 64 20 61 67 61 69 6e | 20 75 6e 74 69 6c 20 74 |ed again| until t|
|00003240| 68 65 20 70 72 6f 70 65 | 72 20 6e 75 6d 62 65 72 |he prope|r number|
|00003250| 0a 6f 66 20 64 61 79 73 | 20 68 61 76 65 20 70 61 |.of days| have pa|
|00003260| 73 73 65 64 2c 20 61 6e | 64 20 6d 75 73 74 20 62 |ssed, an|d must b|
|00003270| 65 20 63 68 61 6e 67 65 | 64 20 61 66 74 65 72 20 |e change|d after |
|00003280| 74 68 65 20 6d 61 78 69 | 6d 75 6d 0a 6e 75 6d 62 |the maxi|mum.numb|
|00003290| 65 72 20 6f 66 20 64 61 | 79 73 2e 0a 49 66 20 74 |er of da|ys..If t|
|000032a0| 68 65 20 6d 69 6e 69 6d | 75 6d 20 6e 75 6d 62 65 |he minim|um numbe|
|000032b0| 72 20 6f 66 20 64 61 79 | 73 20 72 65 71 75 69 72 |r of day|s requir|
|000032c0| 65 64 20 69 73 20 67 72 | 65 61 74 65 72 20 74 68 |ed is gr|eater th|
|000032d0| 61 6e 20 74 68 65 0a 6d | 61 78 69 6d 75 6d 20 6e |an the.m|aximum n|
|000032e0| 75 6d 62 65 72 20 6f 66 | 20 64 61 79 20 61 6c 6c |umber of| day all|
|000032f0| 6f 77 65 64 2c 20 74 68 | 69 73 20 70 61 73 73 77 |owed, th|is passw|
|00003300| 6f 72 64 20 6d 61 79 20 | 6e 6f 74 20 62 65 0a 63 |ord may |not be.c|
|00003310| 68 61 6e 67 65 64 20 62 | 79 20 74 68 65 20 75 73 |hanged b|y the us|
|00003320| 65 72 2e 0a 2e 50 50 0a | 54 68 69 73 20 69 6e 66 |er...PP.|This inf|
|00003330| 6f 72 6d 61 74 69 6f 6e | 20 73 75 70 65 72 63 65 |ormation| superce|
|00003340| 64 65 73 20 61 6e 79 20 | 70 61 73 73 77 6f 72 64 |des any |password|
|00003350| 20 6f 72 20 70 61 73 73 | 77 6f 72 64 20 61 67 65 | or pass|word age|
|00003360| 0a 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 70 72 65 |.informa|tion pre|
|00003370| 73 65 6e 74 20 69 6e 20 | 5c 66 42 2f 65 74 63 2f |sent in |\fB/etc/|
|00003380| 70 61 73 73 77 64 5c 66 | 52 2e 0a 2e 50 50 0a 54 |passwd\f|R...PP.T|
|00003390| 68 69 73 20 66 69 6c 65 | 20 6d 75 73 74 20 6e 6f |his file| must no|
|000033a0| 74 20 62 65 20 72 65 61 | 64 61 62 6c 65 20 62 79 |t be rea|dable by|
|000033b0| 20 72 65 67 75 6c 61 72 | 20 75 73 65 72 73 20 69 | regular| users i|
|000033c0| 66 20 70 61 73 73 77 6f | 72 64 0a 73 65 63 75 72 |f passwo|rd.secur|
|000033d0| 69 74 79 20 69 73 20 74 | 6f 20 62 65 20 6d 61 69 |ity is t|o be mai|
|000033e0| 6e 74 61 69 6e 65 64 2e | 0a 2e 53 48 20 46 69 6c |ntained.|..SH Fil|
|000033f0| 65 73 0a 2f 65 74 63 2f | 70 61 73 73 77 64 20 5c |es./etc/|passwd \|
|00003400| 2d 20 75 73 65 72 20 61 | 63 63 6f 75 6e 74 20 69 |- user a|ccount i|
|00003410| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0a 2e 62 72 0a 2f |nformati|on..br./|
|00003420| 65 74 63 2f 73 68 61 64 | 6f 77 20 5c 2d 20 65 6e |etc/shad|ow \- en|
|00003430| 63 72 79 70 74 65 64 20 | 75 73 65 72 20 70 61 73 |crypted |user pas|
|00003440| 73 77 6f 72 64 73 0a 2e | 53 48 20 53 65 65 20 41 |swords..|SH See A|
|00003450| 6c 73 6f 0a 6c 6f 67 69 | 6e 28 31 29 2c 0a 70 61 |lso.logi|n(1),.pa|
|00003460| 73 73 77 64 28 31 29 2c | 0a 73 75 28 31 29 2c 0a |sswd(1),|.su(1),.|
|00003470| 73 75 6c 6f 67 69 6e 28 | 31 4d 29 2c 0a 70 61 73 |sulogin(|1M),.pas|
|00003480| 73 77 64 28 34 29 2c 0a | 70 77 63 6f 6e 76 28 38 |swd(4),.|pwconv(8|
|00003490| 29 2c 0a 70 77 75 6e 63 | 6f 6e 76 28 38 29 0a 53 |),.pwunc|onv(8).S|
|000034a0| 48 41 52 5f 45 4f 46 0a | 66 69 0a 69 66 20 74 65 |HAR_EOF.|fi.if te|
|000034b0| 73 74 20 2d 66 20 27 73 | 75 2e 31 27 0a 74 68 65 |st -f 's|u.1'.the|
|000034c0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|000034d0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|000034e0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|000034f0| 20 27 73 75 2e 31 27 22 | 0a 65 6c 73 65 0a 63 61 | 'su.1'"|.else.ca|
|00003500| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00003510| 20 27 73 75 2e 31 27 0a | 2e 54 48 20 53 55 20 31 | 'su.1'.|.TH SU 1|
|00003520| 0a 2e 53 48 20 4e 41 4d | 45 0a 73 75 20 5c 2d 20 |..SH NAM|E.su \- |
|00003530| 43 68 61 6e 67 65 20 75 | 73 65 72 20 49 44 20 6f |Change u|ser ID o|
|00003540| 72 20 62 65 63 6f 6d 65 | 20 73 75 70 65 72 2d 75 |r become| super-u|
|00003550| 73 65 72 0a 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |ser..SH |SYNOPSIS|
|00003560| 0a 2e 42 20 73 75 0a 5b | 20 2d 20 5d 20 5b 20 75 |..B su.[| - ] [ u|
|00003570| 73 65 72 6e 61 6d 65 20 | 5b 20 61 72 67 73 20 5d |sername |[ args ]|
|00003580| 20 5d 0a 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 | ]..SH D|ESCRIPTI|
|00003590| 4f 4e 0a 2e 49 20 73 75 | 0a 69 73 20 75 73 65 64 |ON..I su|.is used|
|000035a0| 20 74 6f 20 62 65 63 6f | 6d 65 20 61 6e 6f 74 68 | to beco|me anoth|
|000035b0| 65 72 20 75 73 65 72 20 | 64 75 72 69 6e 67 20 61 |er user |during a|
|000035c0| 20 6c 6f 67 69 6e 20 73 | 65 73 73 69 6f 6e 2e 0a | login s|ession..|
|000035d0| 49 6e 76 6f 6b 65 64 20 | 77 69 74 68 6f 75 74 20 |Invoked |without |
|000035e0| 61 20 75 73 65 72 6e 61 | 6d 65 2c 20 5c 66 49 73 |a userna|me, \fIs|
|000035f0| 75 5c 66 52 20 64 65 66 | 61 75 6c 74 73 20 74 6f |u\fR def|aults to|
|00003600| 20 62 65 63 6f 6d 69 6e | 67 0a 74 68 65 20 73 75 | becomin|g.the su|
|00003610| 70 65 72 20 75 73 65 72 | 2e 0a 54 68 65 20 6f 70 |per user|..The op|
|00003620| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 20 |tional a|rgument |
|00003630| 5c 66 42 5c 2d 5c 66 52 | 20 6d 61 79 20 62 65 20 |\fB\-\fR| may be |
|00003640| 75 73 65 64 20 74 6f 20 | 70 72 6f 76 69 64 65 20 |used to |provide |
|00003650| 61 6e 0a 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 73 |an.envir|onment s|
|00003660| 69 6d 69 6c 69 61 72 20 | 74 6f 20 77 68 61 74 20 |imiliar |to what |
|00003670| 74 68 65 20 75 73 65 72 | 20 77 6f 75 6c 64 20 65 |the user| would e|
|00003680| 78 70 65 63 74 20 68 61 | 64 0a 74 68 65 20 75 73 |xpect ha|d.the us|
|00003690| 65 72 20 6c 6f 67 67 65 | 64 20 69 6e 20 64 69 72 |er logge|d in dir|
|000036a0| 65 63 74 6c 79 2e 0a 2e | 50 50 0a 41 64 64 69 74 |ectly...|PP.Addit|
|000036b0| 69 6f 6e 61 6c 20 61 72 | 67 75 6d 65 6e 74 73 20 |ional ar|guments |
|000036c0| 6d 61 79 20 62 65 20 70 | 72 6f 76 69 64 65 64 20 |may be p|rovided |
|000036d0| 61 66 74 65 72 20 74 68 | 65 20 75 73 65 72 6e 61 |after th|e userna|
|000036e0| 6d 65 2c 0a 69 6e 20 77 | 68 69 63 68 20 63 61 73 |me,.in w|hich cas|
|000036f0| 65 20 74 68 65 79 20 61 | 72 65 20 73 75 70 70 6c |e they a|re suppl|
|00003700| 69 65 64 20 74 6f 20 74 | 68 65 20 75 73 65 72 5c |ied to t|he user\|
|00003710| 27 73 20 6c 6f 67 69 6e | 20 73 68 65 6c 6c 2e 0a |'s login| shell..|
|00003720| 49 6e 20 70 61 72 74 69 | 63 75 6c 61 72 2c 20 61 |In parti|cular, a|
|00003730| 6e 20 61 72 67 75 6d 65 | 6e 74 20 6f 66 20 5c 66 |n argume|nt of \f|
|00003740| 42 2d 63 5c 66 52 20 77 | 69 6c 6c 20 63 61 75 73 |B-c\fR w|ill caus|
|00003750| 65 20 74 68 65 0a 6e 65 | 78 74 20 61 72 67 75 6d |e the.ne|xt argum|
|00003760| 65 6e 74 20 74 6f 20 62 | 65 20 74 72 65 61 74 65 |ent to b|e treate|
|00003770| 64 20 61 73 20 61 20 63 | 6f 6d 6d 61 6e 64 20 62 |d as a c|ommand b|
|00003780| 79 20 6d 6f 73 74 20 63 | 6f 6d 6d 61 6e 64 0a 69 |y most c|ommand.i|
|00003790| 6e 74 65 72 70 72 65 74 | 65 72 73 2e 0a 2e 50 50 |nterpret|ers...PP|
|000037a0| 0a 54 68 65 20 75 73 65 | 72 20 77 69 6c 6c 20 62 |.The use|r will b|
|000037b0| 65 20 70 72 6f 6d 70 74 | 65 64 20 66 6f 72 20 61 |e prompt|ed for a|
|000037c0| 20 70 61 73 73 77 6f 72 | 64 2c 20 69 66 20 61 70 | passwor|d, if ap|
|000037d0| 70 72 6f 70 72 69 61 74 | 65 2e 0a 49 6e 76 61 6c |propriat|e..Inval|
|000037e0| 69 64 20 70 61 73 73 77 | 6f 72 64 73 20 77 69 6c |id passw|ords wil|
|000037f0| 6c 20 70 72 6f 64 75 63 | 65 20 61 6e 20 65 72 72 |l produc|e an err|
|00003800| 6f 72 20 6d 65 73 73 61 | 67 65 2e 0a 41 6c 6c 20 |or messa|ge..All |
|00003810| 61 74 74 65 6d 70 74 73 | 2c 20 62 6f 74 68 20 76 |attempts|, both v|
|00003820| 61 6c 69 64 20 61 6e 64 | 20 69 6e 76 61 6c 69 64 |alid and| invalid|
|00003830| 2c 20 61 72 65 20 6c 6f | 67 67 65 64 20 74 6f 20 |, are lo|gged to |
|00003840| 64 65 74 65 63 74 0a 61 | 62 75 73 65 73 20 6f 66 |detect.a|buses of|
|00003850| 20 74 68 65 20 73 79 73 | 74 65 6d 2e 0a 2e 50 50 | the sys|tem...PP|
|00003860| 0a 54 68 65 20 63 75 72 | 72 65 6e 74 20 65 6e 76 |.The cur|rent env|
|00003870| 69 72 6f 6e 6d 65 6e 74 | 20 69 73 20 70 61 73 73 |ironment| is pass|
|00003880| 65 64 20 74 6f 20 74 68 | 65 20 6e 65 77 20 73 68 |ed to th|e new sh|
|00003890| 65 6c 6c 2e 0a 54 68 65 | 20 76 61 6c 75 65 20 6f |ell..The| value o|
|000038a0| 66 20 5c 66 42 24 50 41 | 54 48 5c 66 52 20 69 73 |f \fB$PA|TH\fR is|
|000038b0| 20 72 65 73 65 74 20 74 | 6f 20 5c 66 42 2f 62 69 | reset t|o \fB/bi|
|000038c0| 6e 3a 2f 75 73 72 2f 62 | 69 6e 5c 66 52 0a 66 6f |n:/usr/b|in\fR.fo|
|000038d0| 72 20 6e 6f 72 6d 61 6c | 20 75 73 65 72 73 2c 20 |r normal| users, |
|000038e0| 6f 72 20 5c 66 42 2f 62 | 69 6e 3a 2f 75 73 72 2f |or \fB/b|in:/usr/|
|000038f0| 62 69 6e 3a 2f 65 74 63 | 5c 66 52 20 66 6f 72 20 |bin:/etc|\fR for |
|00003900| 74 68 65 20 73 75 70 65 | 72 20 75 73 65 72 2e 0a |the supe|r user..|
|00003910| 2e 53 48 20 43 41 56 45 | 41 54 53 0a 2e 50 50 0a |.SH CAVE|ATS..PP.|
|00003920| 54 68 69 73 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |This ver|sion of |
|00003930| 5c 66 49 73 75 5c 66 52 | 20 68 61 73 20 6d 61 6e |\fIsu\fR| has man|
|00003940| 79 20 63 6f 6d 70 69 6c | 61 74 69 6f 6e 20 6f 70 |y compil|ation op|
|00003950| 74 69 6f 6e 73 2c 20 6f | 6e 6c 79 20 73 6f 6d 65 |tions, o|nly some|
|00003960| 20 6f 66 20 77 68 69 63 | 68 0a 6d 61 79 20 62 65 | of whic|h.may be|
|00003970| 20 69 6e 20 75 73 65 20 | 61 74 20 61 6e 79 20 70 | in use |at any p|
|00003980| 61 72 74 69 63 75 6c 61 | 72 20 73 69 74 65 2e 0a |articula|r site..|
|00003990| 2e 53 48 20 46 69 6c 65 | 73 0a 2f 65 74 63 2f 70 |.SH File|s./etc/p|
|000039a0| 61 73 73 77 64 20 5c 2d | 20 75 73 65 72 20 61 63 |asswd \-| user ac|
|000039b0| 63 6f 75 6e 74 20 69 6e | 66 6f 72 6d 61 74 69 6f |count in|formatio|
|000039c0| 6e 0a 2e 62 72 0a 2f 65 | 74 63 2f 73 68 61 64 6f |n..br./e|tc/shado|
|000039d0| 77 20 5c 2d 20 65 6e 63 | 72 79 70 74 65 64 20 70 |w \- enc|rypted p|
|000039e0| 61 73 73 77 6f 72 64 73 | 20 61 6e 64 20 61 67 65 |asswords| and age|
|000039f0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 2e 62 72 | informa|tion..br|
|00003a00| 0a 24 48 4f 4d 45 2f 2e | 70 72 6f 66 69 6c 65 20 |.$HOME/.|profile |
|00003a10| 5c 2d 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |\- initi|alizatio|
|00003a20| 6e 20 73 63 72 69 70 74 | 20 66 6f 72 20 64 65 66 |n script| for def|
|00003a30| 61 75 6c 74 20 73 68 65 | 6c 6c 0a 2e 53 48 20 53 |ault she|ll..SH S|
|00003a40| 65 65 20 41 6c 73 6f 0a | 6c 6f 67 69 6e 28 31 29 |ee Also.|login(1)|
|00003a50| 2c 0a 73 68 28 31 29 0a | 53 48 41 52 5f 45 4f 46 |,.sh(1).|SHAR_EOF|
|00003a60| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00003a70| 73 75 6c 6f 67 69 6e 2e | 38 27 0a 74 68 65 6e 0a |sulogin.|8'.then.|
|00003a80| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00003a90| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00003aa0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00003ab0| 73 75 6c 6f 67 69 6e 2e | 38 27 22 0a 65 6c 73 65 |sulogin.|8'".else|
|00003ac0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00003ad0| 46 20 3e 20 27 73 75 6c | 6f 67 69 6e 2e 38 27 0a |F > 'sul|ogin.8'.|
|00003ae0| 2e 54 48 20 53 55 4c 4f | 47 49 4e 20 38 0a 2e 53 |.TH SULO|GIN 8..S|
|00003af0| 48 20 4e 41 4d 45 0a 73 | 75 6c 6f 67 69 6e 20 5c |H NAME.s|ulogin \|
|00003b00| 2d 20 53 69 6e 67 6c 65 | 2d 75 73 65 72 20 6c 6f |- Single|-user lo|
|00003b10| 67 69 6e 0a 2e 53 48 20 | 44 45 53 43 52 49 50 54 |gin..SH |DESCRIPT|
|00003b20| 49 4f 4e 0a 2e 49 20 73 | 75 6c 6f 67 69 6e 0a 69 |ION..I s|ulogin.i|
|00003b30| 73 20 69 6e 76 6f 6b 65 | 64 20 62 79 20 5c 66 42 |s invoke|d by \fB|
|00003b40| 2f 65 74 63 2f 69 6e 69 | 74 5c 66 52 20 70 72 69 |/etc/ini|t\fR pri|
|00003b50| 6f 72 20 74 6f 20 61 6c | 6c 6f 77 69 6e 67 20 74 |or to al|lowing t|
|00003b60| 68 65 20 75 73 65 72 0a | 61 63 63 65 73 73 20 74 |he user.|access t|
|00003b70| 6f 20 74 68 65 20 73 79 | 73 74 65 6d 20 77 68 65 |o the sy|stem whe|
|00003b80| 6e 20 69 6e 20 73 69 6e | 67 6c 65 20 75 73 65 72 |n in sin|gle user|
|00003b90| 20 6d 6f 64 65 2e 0a 54 | 68 69 73 20 66 65 61 74 | mode..T|his feat|
|00003ba0| 75 72 65 20 6d 61 79 20 | 6f 6e 6c 79 20 62 65 20 |ure may |only be |
|00003bb0| 61 76 61 69 6c 61 62 6c | 65 20 6f 6e 20 63 65 72 |availabl|e on cer|
|00003bc0| 74 61 69 6e 20 73 79 73 | 74 65 6d 73 20 77 68 65 |tain sys|tems whe|
|00003bd0| 72 65 0a 5c 66 49 69 6e | 69 74 5c 66 52 20 68 61 |re.\fIin|it\fR ha|
|00003be0| 73 20 62 65 65 6e 20 6d | 6f 64 69 66 69 65 64 20 |s been m|odified |
|00003bf0| 61 63 63 6f 72 64 69 6e | 67 6c 79 2c 20 6f 72 20 |accordin|gly, or |
|00003c00| 77 68 65 72 65 20 74 68 | 65 0a 5c 66 42 2f 65 74 |where th|e.\fB/et|
|00003c10| 63 2f 69 6e 69 74 74 61 | 62 5c 66 52 20 68 61 73 |c/initta|b\fR has|
|00003c20| 20 61 6e 20 65 6e 74 72 | 79 20 66 6f 72 20 61 20 | an entr|y for a |
|00003c30| 73 69 6e 67 6c 65 20 75 | 73 65 72 20 6c 6f 67 69 |single u|ser logi|
|00003c40| 6e 2e 0a 2e 50 50 0a 54 | 68 65 20 75 73 65 72 20 |n...PP.T|he user |
|00003c50| 69 73 20 70 72 6f 6d 70 | 74 65 64 0a 2e 49 50 20 |is promp|ted..IP |
|00003c60| 22 22 20 2e 35 69 0a 54 | 79 70 65 20 63 6f 6e 74 |"" .5i.T|ype cont|
|00003c70| 72 6f 6c 2d 64 20 66 6f | 72 20 6e 6f 72 6d 61 6c |rol-d fo|r normal|
|00003c80| 20 73 74 61 72 74 75 70 | 2c 0a 2e 62 72 0a 28 6f | startup|,..br.(o|
|00003c90| 72 20 67 69 76 65 20 72 | 6f 6f 74 20 70 61 73 73 |r give r|oot pass|
|00003ca0| 77 6f 72 64 20 66 6f 72 | 20 73 79 73 74 65 6d 20 |word for| system |
|00003cb0| 6d 61 69 6e 74 65 6e 61 | 6e 63 65 29 3a 0a 2e 50 |maintena|nce):..P|
|00003cc0| 50 0a 49 66 20 74 68 65 | 20 75 73 65 72 20 65 6e |P.If the| user en|
|00003cd0| 74 65 72 73 20 74 68 65 | 20 63 6f 72 72 65 63 74 |ters the| correct|
|00003ce0| 20 72 6f 6f 74 20 70 61 | 73 73 77 6f 72 64 2c 20 | root pa|ssword, |
|00003cf0| 61 20 6c 6f 67 69 6e 20 | 73 65 73 73 69 6f 6e 0a |a login |session.|
|00003d00| 69 73 20 69 6e 69 74 69 | 61 74 65 64 2e 0a 57 68 |is initi|ated..Wh|
|00003d10| 65 6e 20 5c 66 42 45 4f | 46 5c 66 52 20 69 73 20 |en \fBEO|F\fR is |
|00003d20| 70 72 65 73 73 65 64 20 | 69 6e 73 74 65 61 64 2c |pressed |instead,|
|00003d30| 20 74 68 65 20 73 79 73 | 74 65 6d 20 65 6e 74 65 | the sys|tem ente|
|00003d40| 72 73 20 6d 75 6c 74 69 | 2d 75 73 65 72 0a 6d 6f |rs multi|-user.mo|
|00003d50| 64 65 2e 0a 2e 50 50 0a | 41 66 74 65 72 20 74 68 |de...PP.|After th|
|00003d60| 65 20 75 73 65 72 20 65 | 78 69 74 73 20 74 68 65 |e user e|xits the|
|00003d70| 20 73 69 6e 67 6c 65 2d | 75 73 65 72 20 73 68 65 | single-|user she|
|00003d80| 6c 6c 2c 20 6f 72 20 70 | 72 65 73 73 65 73 20 5c |ll, or p|resses \|
|00003d90| 66 42 45 4f 46 5c 66 52 | 2c 0a 74 68 65 20 73 79 |fBEOF\fR|,.the sy|
|00003da0| 73 74 65 6d 20 62 65 67 | 69 6e 73 20 74 68 65 20 |stem beg|ins the |
|00003db0| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 70 |initiali|zation p|
|00003dc0| 72 6f 63 65 73 73 20 72 | 65 71 75 69 72 65 64 20 |rocess r|equired |
|00003dd0| 74 6f 20 65 6e 74 65 72 | 0a 6d 75 6c 74 69 2d 75 |to enter|.multi-u|
|00003de0| 73 65 72 20 6d 6f 64 65 | 2e 0a 2e 53 48 20 43 41 |ser mode|...SH CA|
|00003df0| 56 45 41 54 53 0a 2e 50 | 50 0a 54 68 69 73 20 63 |VEATS..P|P.This c|
|00003e00| 6f 6d 6d 61 6e 64 20 63 | 61 6e 20 6f 6e 6c 79 20 |ommand c|an only |
|00003e10| 62 65 20 75 73 65 64 20 | 69 66 20 5c 66 49 69 6e |be used |if \fIin|
|00003e20| 69 74 5c 66 52 20 68 61 | 73 20 62 65 65 6e 20 6d |it\fR ha|s been m|
|00003e30| 6f 64 69 66 69 65 64 20 | 74 6f 20 63 61 6c 6c 0a |odified |to call.|
|00003e40| 5c 66 42 2f 65 74 63 2f | 73 75 6c 6f 67 69 6e 5c |\fB/etc/|sulogin\|
|00003e50| 66 52 20 69 6e 73 74 65 | 61 64 20 6f 66 20 5c 66 |fR inste|ad of \f|
|00003e60| 42 2f 62 69 6e 2f 73 68 | 5c 66 52 2c 0a 6f 72 20 |B/bin/sh|\fR,.or |
|00003e70| 69 66 20 74 68 65 20 75 | 73 65 72 20 68 61 73 20 |if the u|ser has |
|00003e80| 73 65 74 20 74 68 65 20 | 5c 66 49 69 6e 69 74 74 |set the |\fIinitt|
|00003e90| 61 62 5c 66 52 20 74 6f | 20 73 75 70 70 6f 72 74 |ab\fR to| support|
|00003ea0| 20 61 20 73 69 6e 67 6c | 65 20 75 73 65 72 0a 6c | a singl|e user.l|
|00003eb0| 6f 67 69 6e 2e 0a 2e 50 | 50 0a 41 73 20 63 6f 6d |ogin...P|P.As com|
|00003ec0| 70 6c 65 74 65 20 61 6e | 20 65 6e 76 69 72 6f 6e |plete an| environ|
|00003ed0| 6d 65 6e 74 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |ment as |possible|
|00003ee0| 20 69 73 20 63 72 65 61 | 74 65 64 2e 0a 48 6f 77 | is crea|ted..How|
|00003ef0| 65 76 65 72 2c 20 76 61 | 72 69 6f 75 73 20 64 65 |ever, va|rious de|
|00003f00| 76 69 63 65 73 20 6d 61 | 79 20 62 65 20 75 6e 6d |vices ma|y be unm|
|00003f10| 6f 75 6e 74 65 64 20 6f | 72 20 75 6e 69 6e 69 74 |ounted o|r uninit|
|00003f20| 69 61 6c 69 7a 65 64 20 | 61 6e 64 20 6d 61 6e 79 |ialized |and many|
|00003f30| 20 0a 6f 66 20 74 68 65 | 20 75 73 65 72 20 63 6f | .of the| user co|
|00003f40| 6d 6d 61 6e 64 73 20 6d | 61 79 20 62 65 20 75 6e |mmands m|ay be un|
|00003f50| 61 76 61 69 6c 61 62 6c | 65 20 6f 72 20 6e 6f 6e |availabl|e or non|
|00003f60| 66 75 6e 63 74 69 6f 6e | 61 6c 20 61 73 20 61 20 |function|al as a |
|00003f70| 72 65 73 75 6c 74 2e 0a | 2e 53 48 20 46 69 6c 65 |result..|.SH File|
|00003f80| 73 0a 2f 65 74 63 2f 70 | 61 73 73 77 64 20 5c 2d |s./etc/p|asswd \-|
|00003f90| 20 75 73 65 72 20 61 63 | 63 6f 75 6e 74 20 69 6e | user ac|count in|
|00003fa0| 66 6f 72 6d 61 74 69 6f | 6e 0a 2e 62 72 0a 2f 65 |formatio|n..br./e|
|00003fb0| 74 63 2f 73 68 61 64 6f | 77 20 5c 2d 20 65 6e 63 |tc/shado|w \- enc|
|00003fc0| 72 79 70 74 65 64 20 70 | 61 73 73 77 6f 72 64 73 |rypted p|asswords|
|00003fd0| 20 61 6e 64 20 61 67 65 | 20 69 6e 66 6f 72 6d 61 | and age| informa|
|00003fe0| 74 69 6f 6e 0a 2e 62 72 | 0a 2f 2e 70 72 6f 66 69 |tion..br|./.profi|
|00003ff0| 6c 65 20 5c 2d 20 69 6e | 69 74 69 61 6c 69 7a 61 |le \- in|itializa|
|00004000| 74 69 6f 6e 20 73 63 72 | 69 70 74 20 66 6f 72 20 |tion scr|ipt for |
|00004010| 73 69 6e 67 6c 65 20 75 | 73 65 72 20 73 68 65 6c |single u|ser shel|
|00004020| 6c 0a 2e 53 48 20 53 65 | 65 20 41 6c 73 6f 0a 6c |l..SH Se|e Also.l|
|00004030| 6f 67 69 6e 28 31 29 2c | 0a 69 6e 69 74 28 31 4d |ogin(1),|.init(1M|
|00004040| 29 2c 0a 73 68 28 31 29 | 0a 53 48 41 52 5f 45 4f |),.sh(1)|.SHAR_EO|
|00004050| 46 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |F.fi.if |test -f |
|00004060| 27 70 77 63 6f 6e 76 2e | 38 27 0a 74 68 65 6e 0a |'pwconv.|8'.then.|
|00004070| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00004080| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00004090| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|000040a0| 70 77 63 6f 6e 76 2e 38 | 27 22 0a 65 6c 73 65 0a |pwconv.8|'".else.|
|000040b0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|000040c0| 20 3e 20 27 70 77 63 6f | 6e 76 2e 38 27 0a 2e 54 | > 'pwco|nv.8'..T|
|000040d0| 48 20 50 57 43 4f 4e 56 | 20 38 0a 2e 53 48 20 4e |H PWCONV| 8..SH N|
|000040e0| 41 4d 45 0a 70 77 63 6f | 6e 76 20 5c 2d 20 63 6f |AME.pwco|nv \- co|
|000040f0| 6e 76 65 72 74 20 61 6e | 64 20 75 70 64 61 74 65 |nvert an|d update|
|00004100| 20 73 68 61 64 6f 77 20 | 70 61 73 73 77 6f 72 64 | shadow |password|
|00004110| 20 66 69 6c 65 73 0a 2e | 53 48 20 53 59 4e 4f 50 | files..|SH SYNOP|
|00004120| 53 49 53 0a 2f 65 74 63 | 2f 70 77 63 6f 6e 76 0a |SIS./etc|/pwconv.|
|00004130| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00004140| 5c 66 49 50 77 63 6f 6e | 76 5c 66 52 20 63 6f 70 |\fIPwcon|v\fR cop|
|00004150| 69 65 73 20 74 68 65 20 | 6f 6c 64 20 70 61 73 73 |ies the |old pass|
|00004160| 77 6f 72 64 20 66 69 6c | 65 20 69 6e 66 6f 72 6d |word fil|e inform|
|00004170| 61 74 69 6f 6e 20 74 6f | 20 61 20 6e 65 77 20 73 |ation to| a new s|
|00004180| 68 61 64 6f 77 0a 70 61 | 73 73 77 6f 72 64 20 66 |hadow.pa|ssword f|
|00004190| 69 6c 65 2c 0a 6d 65 72 | 67 69 6e 67 20 65 6e 74 |ile,.mer|ging ent|
|000041a0| 72 69 65 73 20 66 72 6f | 6d 20 61 6e 20 6f 70 74 |ries fro|m an opt|
|000041b0| 69 6f 6e 61 6c 20 65 78 | 69 73 74 69 6e 67 20 73 |ional ex|isting s|
|000041c0| 68 61 64 6f 77 20 66 69 | 6c 65 2e 0a 54 68 65 20 |hadow fi|le..The |
|000041d0| 6e 65 77 20 70 61 73 73 | 77 6f 72 64 20 66 69 6c |new pass|word fil|
|000041e0| 65 20 69 73 20 6c 65 66 | 74 20 69 6e 20 5c 66 42 |e is lef|t in \fB|
|000041f0| 6e 70 61 73 73 77 64 5c | 66 52 2c 0a 74 68 65 20 |npasswd\|fR,.the |
|00004200| 6e 65 77 20 73 68 61 64 | 6f 77 20 66 69 6c 65 20 |new shad|ow file |
|00004210| 69 73 20 6c 65 66 74 20 | 69 6e 20 5c 66 42 6e 73 |is left |in \fBns|
|00004220| 68 61 64 6f 77 5c 66 52 | 2e 0a 42 6f 74 68 20 6f |hadow\fR|..Both o|
|00004230| 66 20 74 68 65 73 65 20 | 61 72 65 20 66 69 6c 65 |f these |are file|
|00004240| 73 20 61 72 65 20 63 72 | 65 61 74 65 64 20 77 69 |s are cr|eated wi|
|00004250| 74 68 20 6d 6f 64 65 73 | 20 77 68 69 63 68 20 6f |th modes| which o|
|00004260| 6e 6c 79 20 70 65 72 6d | 69 74 0a 72 65 61 64 20 |nly perm|it.read |
|00004270| 61 63 63 65 73 73 20 74 | 6f 20 74 68 65 20 6f 77 |access t|o the ow|
|00004280| 6e 65 72 2e 0a 45 78 69 | 73 74 69 6e 67 20 73 68 |ner..Exi|sting sh|
|00004290| 61 64 6f 77 20 65 6e 74 | 72 69 65 73 20 61 72 65 |adow ent|ries are|
|000042a0| 20 63 6f 70 69 65 64 20 | 61 73 20 69 73 2e 0a 4e | copied |as is..N|
|000042b0| 65 77 20 65 6e 74 72 69 | 65 73 20 61 72 65 20 63 |ew entri|es are c|
|000042c0| 72 65 61 74 65 64 20 77 | 69 74 68 20 70 61 73 73 |reated w|ith pass|
|000042d0| 77 6f 72 64 73 20 77 68 | 69 63 68 20 65 78 70 69 |words wh|ich expi|
|000042e0| 72 65 20 69 6e 20 31 30 | 30 30 30 20 64 61 79 73 |re in 10|000 days|
|000042f0| 2c 0a 77 69 74 68 20 61 | 20 6c 61 73 74 20 63 68 |,.with a| last ch|
|00004300| 61 6e 67 65 64 20 64 61 | 74 65 20 6f 66 20 74 6f |anged da|te of to|
|00004310| 64 61 79 2c 0a 75 6e 6c | 65 73 73 20 70 61 73 73 |day,.unl|ess pass|
|00004320| 77 6f 72 64 20 61 67 69 | 6e 67 20 69 6e 66 6f 72 |word agi|ng infor|
|00004330| 6d 61 74 69 6f 6e 20 77 | 61 73 20 61 6c 72 65 61 |mation w|as alrea|
|00004340| 64 79 20 70 72 65 73 65 | 6e 74 2e 0a 45 6e 74 72 |dy prese|nt..Entr|
|00004350| 69 65 73 20 77 69 74 68 | 20 62 6c 61 6e 6b 20 70 |ies with| blank p|
|00004360| 61 73 73 77 6f 72 64 73 | 20 61 72 65 20 6e 6f 74 |asswords| are not|
|00004370| 20 63 6f 70 69 65 64 20 | 74 6f 20 74 68 65 20 73 | copied |to the s|
|00004380| 68 61 64 6f 77 20 66 69 | 6c 65 20 61 74 20 61 6c |hadow fi|le at al|
|00004390| 6c 2e 0a 2e 53 48 20 46 | 69 6c 65 73 0a 2f 65 74 |l...SH F|iles./et|
|000043a0| 63 2f 70 61 73 73 77 64 | 20 5c 2d 20 6f 6c 64 20 |c/passwd| \- old |
|000043b0| 65 6e 63 72 79 70 74 65 | 64 20 70 61 73 73 77 6f |encrypte|d passwo|
|000043c0| 72 64 73 20 61 6e 64 20 | 70 61 73 73 77 6f 72 64 |rds and |password|
|000043d0| 20 61 67 69 6e 67 0a 2e | 62 72 0a 2f 65 74 63 2f | aging..|br./etc/|
|000043e0| 73 68 61 64 6f 77 20 5c | 2d 20 70 72 65 76 69 6f |shadow \|- previo|
|000043f0| 75 73 6c 79 20 63 6f 6e | 76 65 72 74 65 64 20 73 |usly con|verted s|
|00004400| 68 61 64 6f 77 20 70 61 | 73 73 77 6f 72 64 20 66 |hadow pa|ssword f|
|00004410| 69 6c 65 0a 2e 62 72 0a | 2e 2f 6e 70 61 73 73 77 |ile..br.|./npassw|
|00004420| 64 20 5c 2d 20 6e 65 77 | 20 70 61 73 73 77 6f 72 |d \- new| passwor|
|00004430| 64 20 66 69 6c 65 0a 2e | 62 72 0a 2e 2f 6e 73 68 |d file..|br../nsh|
|00004440| 61 64 6f 77 20 5c 2d 20 | 6e 65 77 20 73 68 61 64 |adow \- |new shad|
|00004450| 6f 77 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |ow passw|ord file|
|00004460| 0a 2e 53 48 20 53 65 65 | 20 41 6c 73 6f 0a 70 61 |..SH See| Also.pa|
|00004470| 73 73 77 64 28 31 29 2c | 0a 70 61 73 73 77 64 28 |sswd(1),|.passwd(|
|00004480| 34 29 2c 0a 73 68 61 64 | 6f 77 28 34 29 2c 0a 70 |4),.shad|ow(4),.p|
|00004490| 77 75 6e 63 6f 6e 76 28 | 38 29 0a 53 48 41 52 5f |wunconv(|8).SHAR_|
|000044a0| 45 4f 46 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |EOF.fi.i|f test -|
|000044b0| 66 20 27 70 77 75 6e 63 | 6f 6e 76 2e 38 27 0a 74 |f 'pwunc|onv.8'.t|
|000044c0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000044d0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|000044e0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000044f0| 6c 65 20 27 70 77 75 6e | 63 6f 6e 76 2e 38 27 22 |le 'pwun|conv.8'"|
|00004500| 0a 65 6c 73 65 0a 63 61 | 74 20 3c 3c 20 5c 53 48 |.else.ca|t << \SH|
|00004510| 41 52 5f 45 4f 46 20 3e | 20 27 70 77 75 6e 63 6f |AR_EOF >| 'pwunco|
|00004520| 6e 76 2e 38 27 0a 2e 54 | 48 20 50 57 55 4e 43 4f |nv.8'..T|H PWUNCO|
|00004530| 4e 56 20 38 0a 2e 53 48 | 20 4e 41 4d 45 0a 70 77 |NV 8..SH| NAME.pw|
|00004540| 75 6e 63 6f 6e 76 20 5c | 2d 20 72 65 73 74 6f 72 |unconv \|- restor|
|00004550| 65 20 6f 6c 64 20 70 61 | 73 73 77 6f 72 64 20 66 |e old pa|ssword f|
|00004560| 69 6c 65 20 66 72 6f 6d | 20 73 68 61 64 6f 77 20 |ile from| shadow |
|00004570| 70 61 73 73 77 6f 72 64 | 20 66 69 6c 65 0a 2e 53 |password| file..S|
|00004580| 48 20 53 59 4e 4f 50 53 | 49 53 0a 2f 65 74 63 2f |H SYNOPS|IS./etc/|
|00004590| 70 77 75 6e 63 6f 6e 76 | 0a 2e 53 48 20 44 45 53 |pwunconv|..SH DES|
|000045a0| 43 52 49 50 54 49 4f 4e | 0a 5c 66 49 50 77 75 6e |CRIPTION|.\fIPwun|
|000045b0| 63 6f 6e 76 5c 66 52 20 | 63 6f 70 69 65 73 20 74 |conv\fR |copies t|
|000045c0| 68 65 20 70 61 73 73 77 | 6f 72 64 20 66 69 6c 65 |he passw|ord file|
|000045d0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 72 6f | informa|tion fro|
|000045e0| 6d 20 74 68 65 20 73 68 | 61 64 6f 77 0a 70 61 73 |m the sh|adow.pas|
|000045f0| 73 77 6f 72 64 20 66 69 | 6c 65 2c 0a 6d 65 72 67 |sword fi|le,.merg|
|00004600| 69 6e 67 20 65 6e 74 72 | 69 65 73 20 66 72 6f 6d |ing entr|ies from|
|00004610| 20 61 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 65 78 69 | an opti|onal exi|
|00004620| 73 74 69 6e 67 20 73 68 | 61 64 6f 77 20 66 69 6c |sting sh|adow fil|
|00004630| 65 2e 0a 54 68 65 20 6e | 65 77 20 70 61 73 73 77 |e..The n|ew passw|
|00004640| 6f 72 64 20 66 69 6c 65 | 20 69 73 20 6c 65 66 74 |ord file| is left|
|00004650| 20 69 6e 20 5c 66 42 6e | 70 61 73 73 77 64 5c 66 | in \fBn|passwd\f|
|00004660| 52 2e 0a 54 68 69 73 20 | 66 69 6c 65 20 69 73 20 |R..This |file is |
|00004670| 63 72 65 61 74 65 64 20 | 77 69 74 68 20 6d 6f 64 |created |with mod|
|00004680| 65 73 20 77 68 69 63 68 | 20 61 6c 6c 6f 77 20 72 |es which| allow r|
|00004690| 65 61 64 20 61 63 63 65 | 73 73 20 66 6f 72 0a 74 |ead acce|ss for.t|
|000046a0| 68 65 20 6f 77 6e 65 72 | 20 6f 6e 6c 79 2e 0a 54 |he owner| only..T|
|000046b0| 68 65 72 65 20 69 73 20 | 6e 6f 20 6e 65 77 20 73 |here is |no new s|
|000046c0| 68 61 64 6f 77 20 66 69 | 6c 65 2e 0a 50 61 73 73 |hadow fi|le..Pass|
|000046d0| 77 6f 72 64 20 61 67 69 | 6e 67 20 69 6e 66 6f 72 |word agi|ng infor|
|000046e0| 6d 61 74 69 6f 6e 20 69 | 73 20 74 72 61 6e 73 6c |mation i|s transl|
|000046f0| 61 74 65 64 20 77 68 65 | 72 65 20 70 6f 73 73 69 |ated whe|re possi|
|00004700| 62 6c 65 2e 0a 2e 53 48 | 20 46 69 6c 65 73 0a 2f |ble...SH| Files./|
|00004710| 65 74 63 2f 70 61 73 73 | 77 64 20 5c 2d 20 6f 6c |etc/pass|wd \- ol|
|00004720| 64 20 65 6e 63 72 79 70 | 74 65 64 20 70 61 73 73 |d encryp|ted pass|
|00004730| 77 6f 72 64 73 20 61 6e | 64 20 70 61 73 73 77 6f |words an|d passwo|
|00004740| 72 64 20 61 67 69 6e 67 | 0a 2e 62 72 0a 2f 65 74 |rd aging|..br./et|
|00004750| 63 2f 73 68 61 64 6f 77 | 20 5c 2d 20 70 72 65 76 |c/shadow| \- prev|
|00004760| 69 6f 75 73 6c 79 20 63 | 6f 6e 76 65 72 74 65 64 |iously c|onverted|
|00004770| 20 73 68 61 64 6f 77 20 | 70 61 73 73 77 6f 72 64 | shadow |password|
|00004780| 20 66 69 6c 65 0a 2e 62 | 72 0a 2e 2f 6e 70 61 73 | file..b|r../npas|
|00004790| 73 77 64 20 5c 2d 20 6e | 65 77 20 70 61 73 73 77 |swd \- n|ew passw|
|000047a0| 6f 72 64 20 66 69 6c 65 | 0a 2e 53 48 20 53 65 65 |ord file|..SH See|
|000047b0| 20 41 6c 73 6f 0a 70 61 | 73 73 77 64 28 31 29 2c | Also.pa|sswd(1),|
|000047c0| 0a 70 61 73 73 77 64 28 | 34 29 2c 0a 73 68 61 64 |.passwd(|4),.shad|
|000047d0| 6f 77 28 34 29 2c 0a 70 | 77 63 6f 6e 76 28 38 29 |ow(4),.p|wconv(8)|
|000047e0| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 0a 65 78 69 |.SHAR_EO|F.fi.exi|
|000047f0| 74 20 30 0a 23 09 45 6e | 64 20 6f 66 20 73 68 65 |t 0.#.En|d of she|
|00004800| 6c 6c 20 61 72 63 68 69 | 76 65 0a |ll archi|ve. |
+--------+-------------------------+-------------------------+--------+--------+