home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3345 < prev    next >
SHell self-extracting ARchive  |  1991-05-17  |  55.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: 3345

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 6a 66 | 68 40 72 70 70 33 38 36 |From: jf|h@rpp386|
|00000010| 2e 63 61 63 74 75 73 2e | 6f 72 67 20 28 4a 6f 68 |.cactus.|org (Joh|
|00000020| 6e 20 46 20 48 61 75 67 | 68 20 49 49 29 0a 4e 65 |n F Haug|h II).Ne|
|00000030| 77 73 67 72 6f 75 70 73 | 3a 20 61 6c 74 2e 73 6f |wsgroups|: alt.so|
|00000040| 75 72 63 65 73 0a 53 75 | 62 6a 65 63 74 3a 20 53 |urces.Su|bject: S|
|00000050| 68 61 64 6f 77 20 4c 6f | 67 69 6e 20 53 75 69 74 |hadow Lo|gin Suit|
|00000060| 65 2c 20 76 65 72 73 69 | 6f 6e 20 33 20 28 70 61 |e, versi|on 3 (pa|
|00000070| 72 74 20 31 20 6f 66 20 | 38 29 0a 4d 65 73 73 61 |rt 1 of |8).Messa|
|00000080| 67 65 2d 49 44 3a 20 3c | 31 39 32 39 35 40 72 70 |ge-ID: <|19295@rp|
|00000090| 70 33 38 36 2e 63 61 63 | 74 75 73 2e 6f 72 67 3e |p386.cac|tus.org>|
|000000a0| 0a 44 61 74 65 3a 20 31 | 36 20 4d 61 79 20 39 31 |.Date: 1|6 May 91|
|000000b0| 20 31 36 3a 33 31 3a 32 | 32 20 47 4d 54 0a 0a 23 | 16:31:2|2 GMT..#|
|000000c0| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|000000d0| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|000000e0| 69 76 65 2c 20 6d 65 61 | 6e 69 6e 67 3a 0a 23 20 |ive, mea|ning:.# |
|000000f0| 31 2e 20 52 65 6d 6f 76 | 65 20 65 76 65 72 79 74 |1. Remov|e everyt|
|00000100| 68 69 6e 67 20 61 62 6f | 76 65 20 74 68 65 20 23 |hing abo|ve the #|
|00000110| 21 20 2f 62 69 6e 2f 73 | 68 20 6c 69 6e 65 2e 0a |! /bin/s|h line..|
|00000120| 23 20 32 2e 20 53 61 76 | 65 20 74 68 65 20 72 65 |# 2. Sav|e the re|
|00000130| 73 75 6c 74 69 6e 67 20 | 74 65 78 74 20 69 6e 20 |sulting |text in |
|00000140| 61 20 66 69 6c 65 2e 0a | 23 20 33 2e 20 45 78 65 |a file..|# 3. Exe|
|00000150| 63 75 74 65 20 74 68 65 | 20 66 69 6c 65 20 77 69 |cute the| file wi|
|00000160| 74 68 20 2f 62 69 6e 2f | 73 68 20 28 6e 6f 74 20 |th /bin/|sh (not |
|00000170| 63 73 68 29 20 74 6f 20 | 63 72 65 61 74 65 3a 0a |csh) to |create:.|
|00000180| 23 09 52 45 41 44 4d 45 | 0a 23 09 6e 65 77 67 72 |#.README|.#.newgr|
|00000190| 70 2e 63 0a 23 09 4d 61 | 6b 65 66 69 6c 65 0a 23 |p.c.#.Ma|kefile.#|
|000001a0| 09 63 6f 6e 66 69 67 2e | 68 0a 23 09 70 77 75 6e |.config.|h.#.pwun|
|000001b0| 63 6f 6e 76 2e 63 0a 23 | 09 6f 62 73 63 75 72 65 |conv.c.#|.obscure|
|000001c0| 2e 63 0a 23 09 61 67 65 | 2e 63 0a 23 20 54 68 69 |.c.#.age|.c.# Thi|
|000001d0| 73 20 61 72 63 68 69 76 | 65 20 63 72 65 61 74 65 |s archiv|e create|
|000001e0| 64 3a 20 53 75 6e 20 4d | 61 72 20 20 33 20 31 33 |d: Sun M|ar 3 13|
|000001f0| 3a 32 37 3a 31 33 20 31 | 39 39 31 0a 23 20 42 79 |:27:13 1|991.# By|
|00000200| 3a 09 4a 6f 68 6e 20 46 | 20 48 61 75 67 68 20 49 |:.John F| Haugh I|
|00000210| 49 20 28 52 69 76 65 72 | 20 50 61 72 69 73 68 65 |I (River| Parishe|
|00000220| 73 20 50 72 6f 67 72 61 | 6d 6d 69 6e 67 2c 20 41 |s Progra|mming, A|
|00000230| 75 73 74 69 6e 20 54 58 | 29 0a 65 78 70 6f 72 74 |ustin TX|).export|
|00000240| 20 50 41 54 48 3b 20 50 | 41 54 48 3d 2f 62 69 6e | PATH; P|ATH=/bin|
|00000250| 3a 2f 75 73 72 2f 62 69 | 6e 3a 24 50 41 54 48 0a |:/usr/bi|n:$PATH.|
|00000260| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|00000270| 61 63 74 69 6e 67 20 27 | 52 45 41 44 4d 45 27 22 |acting '|README'"|
|00000280| 20 27 28 31 32 37 32 35 | 20 63 68 61 72 61 63 74 | '(12725| charact|
|00000290| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|000002a0| 20 27 52 45 41 44 4d 45 | 27 0a 74 68 65 6e 0a 09 | 'README|'.then..|
|000002b0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|000002c0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000002d0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 52 |existing| file 'R|
|000002e0| 45 41 44 4d 45 27 22 0a | 65 6c 73 65 0a 73 65 64 |EADME'".|else.sed|
|000002f0| 20 27 73 2f 5e 58 2f 2f | 27 20 3c 3c 20 5c 53 48 | 's/^X//|' << \SH|
|00000300| 41 52 5f 45 4f 46 20 3e | 20 27 52 45 41 44 4d 45 |AR_EOF >| 'README|
|00000310| 27 0a 58 54 68 69 73 20 | 69 73 20 74 68 65 20 65 |'.XThis |is the e|
|00000320| 78 70 6c 61 6e 61 74 6f | 72 79 20 64 6f 63 75 6d |xplanato|ry docum|
|00000330| 65 6e 74 20 66 6f 72 20 | 4a 6f 68 6e 20 46 2e 20 |ent for |John F. |
|00000340| 48 61 75 67 68 20 49 49 | 27 73 20 6c 6f 67 69 6e |Haugh II|'s login|
|00000350| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 2c 0a 58 72 | replace|ment,.Xr|
|00000360| 65 6c 65 61 73 65 20 33 | 2e 20 20 54 68 69 73 20 |elease 3|. This |
|00000370| 64 6f 63 75 6d 65 6e 74 | 20 77 61 73 20 6c 61 73 |document| was las|
|00000380| 74 20 75 70 64 61 74 65 | 64 20 31 31 2f 32 31 2f |t update|d 11/21/|
|00000390| 39 30 2e 0a 58 0a 58 54 | 68 69 73 20 73 6f 66 74 |90..X.XT|his soft|
|000003a0| 77 61 72 65 20 69 73 20 | 63 6f 70 79 72 69 67 68 |ware is |copyrigh|
|000003b0| 74 20 31 39 38 38 2c 20 | 31 39 38 39 2c 20 31 39 |t 1988, |1989, 19|
|000003c0| 39 30 2c 20 4a 6f 68 6e | 20 46 2e 20 48 61 75 67 |90, John| F. Haug|
|000003d0| 68 20 49 49 2e 20 20 41 | 6c 6c 20 72 69 67 68 74 |h II. A|ll right|
|000003e0| 73 0a 58 72 65 73 65 72 | 76 65 64 2e 20 20 55 73 |s.Xreser|ved. Us|
|000003f0| 65 2c 20 64 75 70 6c 69 | 63 61 74 69 6f 6e 20 61 |e, dupli|cation a|
|00000400| 6e 64 20 64 69 73 63 6c | 6f 73 75 72 65 20 69 73 |nd discl|osure is|
|00000410| 20 70 65 72 6d 69 74 74 | 65 64 20 61 63 63 6f 72 | permitt|ed accor|
|00000420| 64 69 6e 67 20 74 6f 20 | 74 68 65 0a 58 67 75 69 |ding to |the.Xgui|
|00000430| 64 65 6c 69 6e 65 73 20 | 6c 69 73 74 65 64 20 62 |delines |listed b|
|00000440| 65 6c 6f 77 2e 0a 58 0a | 58 54 68 69 73 20 73 6f |elow..X.|XThis so|
|00000450| 66 74 77 61 72 65 20 69 | 73 20 62 65 69 6e 67 20 |ftware i|s being |
|00000460| 70 72 6f 76 69 64 65 64 | 20 61 73 20 61 20 66 72 |provided| as a fr|
|00000470| 65 65 6c 79 20 72 65 64 | 69 73 74 72 69 62 75 74 |eely red|istribut|
|00000480| 61 62 6c 65 20 6c 6f 67 | 69 6e 20 63 6c 6f 6e 65 |able log|in clone|
|00000490| 2e 0a 58 59 6f 75 20 6d | 61 79 20 64 69 73 74 72 |..XYou m|ay distr|
|000004a0| 69 62 75 74 65 20 74 68 | 69 73 20 73 6f 66 74 77 |ibute th|is softw|
|000004b0| 61 72 65 20 70 72 6f 76 | 69 64 65 64 20 79 6f 75 |are prov|ided you|
|000004c0| 20 64 6f 20 6e 6f 74 20 | 63 68 61 72 67 65 20 66 | do not |charge f|
|000004d0| 6f 72 20 6f 74 68 65 72 | 20 74 68 61 6e 0a 58 74 |or other| than.Xt|
|000004e0| 72 61 6e 73 6d 69 73 73 | 69 6f 6e 20 63 6f 73 74 |ransmiss|ion cost|
|000004f0| 73 2e 20 20 59 6f 75 20 | 61 72 65 20 66 72 65 65 |s. You |are free|
|00000500| 20 74 6f 20 63 6f 70 79 | 20 74 68 69 73 20 73 6f | to copy| this so|
|00000510| 66 74 77 61 72 65 20 70 | 72 6f 76 69 64 65 64 20 |ftware p|rovided |
|00000520| 79 6f 75 0a 58 64 6f 20 | 6e 6f 74 20 72 65 73 74 |you.Xdo |not rest|
|00000530| 72 69 63 74 20 74 68 65 | 20 72 69 67 68 74 73 20 |rict the| rights |
|00000540| 6f 66 20 74 68 65 20 72 | 65 63 69 70 69 65 6e 74 |of the r|ecipient|
|00000550| 73 20 74 6f 20 66 75 72 | 74 68 65 72 20 63 6f 70 |s to fur|ther cop|
|00000560| 79 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 2e |y this s|oftware.|
|00000570| 0a 58 0a 58 54 48 49 53 | 20 53 4f 46 54 57 41 52 |.X.XTHIS| SOFTWAR|
|00000580| 45 20 49 53 20 42 45 49 | 4e 47 20 44 49 53 54 52 |E IS BEI|NG DISTR|
|00000590| 49 42 55 54 45 44 20 41 | 53 2d 49 53 2e 20 20 54 |IBUTED A|S-IS. T|
|000005a0| 48 45 20 41 55 54 48 4f | 52 53 20 44 49 53 43 4c |HE AUTHO|RS DISCL|
|000005b0| 41 49 4d 20 41 4c 4c 0a | 58 4c 49 41 42 49 4c 49 |AIM ALL.|XLIABILI|
|000005c0| 54 59 20 46 4f 52 20 41 | 4e 59 20 43 4f 4e 53 45 |TY FOR A|NY CONSE|
|000005d0| 51 55 45 4e 43 45 53 20 | 4f 46 20 55 53 45 2e 20 |QUENCES |OF USE. |
|000005e0| 20 54 48 45 20 55 53 45 | 52 20 49 53 20 53 4f 4c | THE USE|R IS SOL|
|000005f0| 45 4c 59 20 52 45 53 50 | 4f 4e 53 49 42 4c 45 0a |ELY RESP|ONSIBLE.|
|00000600| 58 46 4f 52 20 54 48 45 | 20 4d 41 49 4e 54 45 4e |XFOR THE| MAINTEN|
|00000610| 41 4e 43 45 20 4f 46 20 | 54 48 49 53 20 53 4f 46 |ANCE OF |THIS SOF|
|00000620| 54 57 41 52 45 20 50 41 | 43 4b 41 47 45 2e 20 20 |TWARE PA|CKAGE. |
|00000630| 54 48 45 20 41 55 54 48 | 4f 52 53 20 41 52 45 20 |THE AUTH|ORS ARE |
|00000640| 55 4e 44 45 52 20 4e 4f | 0a 58 4f 42 4c 49 47 41 |UNDER NO|.XOBLIGA|
|00000650| 54 49 4f 4e 20 54 4f 20 | 50 52 4f 56 49 44 45 20 |TION TO |PROVIDE |
|00000660| 4d 4f 44 49 46 49 43 41 | 54 49 4f 4e 53 20 4f 52 |MODIFICA|TIONS OR|
|00000670| 20 49 4d 50 52 4f 56 45 | 4d 45 4e 54 53 2e 20 20 | IMPROVE|MENTS. |
|00000680| 54 48 45 20 55 53 45 52 | 20 49 53 0a 58 45 4e 43 |THE USER| IS.XENC|
|00000690| 4f 55 52 41 47 45 20 54 | 4f 20 54 41 4b 45 20 41 |OURAGE T|O TAKE A|
|000006a0| 4e 59 20 41 4e 44 20 41 | 4c 4c 20 53 54 45 50 53 |NY AND A|LL STEPS|
|000006b0| 20 4e 45 45 44 45 44 20 | 54 4f 20 50 52 4f 54 45 | NEEDED |TO PROTE|
|000006c0| 43 54 20 41 47 41 49 4e | 53 54 20 41 43 43 49 44 |CT AGAIN|ST ACCID|
|000006d0| 45 4e 54 41 4c 0a 58 4c | 4f 53 53 20 4f 46 20 49 |ENTAL.XL|OSS OF I|
|000006e0| 4e 46 4f 52 4d 41 54 49 | 4f 4e 20 4f 52 20 4d 41 |NFORMATI|ON OR MA|
|000006f0| 43 48 49 4e 45 20 52 45 | 53 4f 55 52 43 45 53 2e |CHINE RE|SOURCES.|
|00000700| 0a 58 0a 58 53 70 65 63 | 69 61 6c 20 74 68 61 6e |.X.XSpec|ial than|
|00000710| 6b 73 20 61 72 65 20 64 | 75 65 20 74 6f 20 43 68 |ks are d|ue to Ch|
|00000720| 69 70 20 52 6f 73 65 6e | 74 68 61 6c 20 66 6f 72 |ip Rosen|thal for|
|00000730| 20 68 69 73 20 66 69 6e | 65 20 74 65 73 74 69 6e | his fin|e testin|
|00000740| 67 20 65 66 66 6f 72 74 | 73 3b 0a 58 74 6f 20 53 |g effort|s;.Xto S|
|00000750| 74 65 76 65 20 53 69 6d | 6d 6f 6e 73 20 66 6f 72 |teve Sim|mons for|
|00000760| 20 68 69 73 20 77 6f 72 | 6b 20 69 6e 20 70 6f 72 | his wor|k in por|
|00000770| 74 69 6e 67 20 74 68 69 | 73 20 63 6f 64 65 20 74 |ting thi|s code t|
|00000780| 6f 20 42 53 44 3b 20 61 | 6e 64 20 74 6f 20 42 69 |o BSD; a|nd to Bi|
|00000790| 6c 6c 0a 58 4b 65 6e 6e | 65 64 79 20 66 6f 72 20 |ll.XKenn|edy for |
|000007a0| 68 69 73 20 63 6f 6e 74 | 72 69 62 75 74 69 6f 6e |his cont|ribution|
|000007b0| 73 20 6f 66 20 4c 61 73 | 65 72 4a 65 74 20 70 72 |s of Las|erJet pr|
|000007c0| 69 6e 74 65 72 20 74 69 | 6d 65 20 61 6e 64 20 65 |inter ti|me and e|
|000007d0| 6e 65 72 67 69 65 73 2e | 0a 58 41 6c 73 6f 2c 20 |nergies.|.XAlso, |
|000007e0| 74 68 61 6e 6b 73 20 66 | 6f 72 20 44 65 6e 6e 69 |thanks f|or Denni|
|000007f0| 73 20 4c 2e 20 4d 75 6d | 61 75 67 68 20 66 6f 72 |s L. Mum|augh for|
|00000800| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 20 73 68 61 | the ini|tial sha|
|00000810| 64 6f 77 20 70 61 73 73 | 77 6f 72 64 0a 58 69 6e |dow pass|word.Xin|
|00000820| 66 6f 72 6d 61 74 69 6f | 6e 20 61 6e 64 20 74 6f |formatio|n and to|
|00000830| 20 54 6f 6e 79 20 57 61 | 6c 74 6f 6e 20 28 6f 6c | Tony Wa|lton (ol|
|00000840| 61 70 77 40 6f 6c 67 62 | 31 2e 6f 6c 69 76 2e 63 |apw@olgb|1.oliv.c|
|00000850| 6f 2e 75 6b 29 20 66 6f | 72 20 74 68 65 20 53 79 |o.uk) fo|r the Sy|
|00000860| 73 74 65 6d 0a 58 56 20 | 52 65 6c 65 61 73 65 20 |stem.XV |Release |
|00000870| 34 20 63 68 61 6e 67 65 | 73 2e 0a 58 0a 58 4e 65 |4 change|s..X.XNe|
|00000880| 77 20 66 6f 72 20 52 65 | 6c 65 61 73 65 20 33 3a |w for Re|lease 3:|
|00000890| 0a 58 09 54 68 65 20 6f | 62 6a 65 63 74 73 20 61 |.X.The o|bjects a|
|000008a0| 72 65 20 62 65 69 6e 67 | 20 63 6f 6d 62 69 6e 65 |re being| combine|
|000008b0| 64 20 69 6e 74 6f 20 6c | 69 62 72 61 72 69 65 73 |d into l|ibraries|
|000008c0| 20 74 6f 20 6d 61 6b 65 | 20 6d 61 69 6e 74 65 6e | to make| mainten|
|000008d0| 61 6e 63 65 0a 58 09 65 | 61 73 69 65 72 20 61 6e |ance.X.e|asier an|
|000008e0| 64 20 74 6f 20 65 6e 63 | 6f 75 72 61 67 65 20 64 |d to enc|ourage d|
|000008f0| 65 76 65 6c 6f 70 65 72 | 73 20 74 6f 20 75 73 65 |eveloper|s to use|
|00000900| 20 74 68 65 20 6d 6f 64 | 75 6c 65 73 20 61 73 20 | the mod|ules as |
|00000910| 74 68 65 0a 58 09 62 61 | 73 69 73 20 66 6f 72 20 |the.X.ba|sis for |
|00000920| 6e 65 77 20 74 6f 6f 6c | 73 2e 0a 58 0a 58 09 4e |new tool|s..X.X.N|
|00000930| 65 77 20 6c 69 6e 74 20 | 72 75 6c 65 73 20 68 61 |ew lint |rules ha|
|00000940| 76 65 20 62 65 65 6e 20 | 61 64 64 65 64 20 74 6f |ve been |added to|
|00000950| 20 6d 61 6b 65 20 74 68 | 65 20 63 6f 64 65 20 65 | make th|e code e|
|00000960| 61 73 69 65 72 20 74 6f | 20 6c 69 6e 74 2e 0a 58 |asier to| lint..X|
|00000970| 0a 58 42 65 67 69 6e 20 | 62 79 20 72 65 61 64 69 |.XBegin |by readi|
|00000980| 6e 67 20 61 6e 64 20 65 | 64 69 74 69 6e 67 20 74 |ng and e|diting t|
|00000990| 68 65 20 63 6f 6e 66 69 | 67 2e 68 20 66 69 6c 65 |he confi|g.h file|
|000009a0| 2e 20 20 41 6c 6c 20 6f | 70 74 69 6f 6e 73 20 61 |. All o|ptions a|
|000009b0| 72 65 20 73 65 6c 65 63 | 74 65 64 0a 58 62 79 20 |re selec|ted.Xby |
|000009c0| 75 73 69 6e 67 20 23 64 | 65 66 69 6e 65 27 73 2e |using #d|efine's.|
|000009d0| 20 20 41 20 62 72 69 65 | 66 20 64 65 73 63 72 69 | A brie|f descri|
|000009e0| 70 74 69 6f 6e 20 66 6f | 72 20 65 61 63 68 20 61 |ption fo|r each a|
|000009f0| 76 61 69 6c 61 62 6c 65 | 20 6f 70 74 69 6f 6e 20 |vailable| option |
|00000a00| 61 70 70 65 61 72 73 0a | 58 62 65 6c 6f 77 2e 20 |appears.|Xbelow. |
|00000a10| 20 59 6f 75 20 6d 61 79 | 20 77 61 6e 74 20 74 6f | You may| want to|
|00000a20| 20 70 72 69 6e 74 20 74 | 68 69 73 20 66 69 6c 65 | print t|his file|
|00000a30| 20 6f 75 74 20 61 73 20 | 69 74 20 69 73 20 4c 4f | out as |it is LO|
|00000a40| 4e 47 20 61 6e 64 20 79 | 6f 75 20 77 69 6c 6c 0a |NG and y|ou will.|
|00000a50| 58 6e 65 65 64 20 74 6f | 20 72 65 66 65 72 20 74 |Xneed to| refer t|
|00000a60| 6f 20 69 74 20 77 68 69 | 6c 65 20 65 64 69 74 74 |o it whi|le editt|
|00000a70| 69 6e 67 20 63 6f 6e 66 | 69 67 2e 68 2e 20 20 59 |ing conf|ig.h. Y|
|00000a80| 6f 75 20 77 69 6c 6c 20 | 61 6c 73 6f 20 68 61 76 |ou will |also hav|
|00000a90| 65 20 74 6f 20 65 64 69 | 74 0a 58 74 68 65 20 4d |e to edi|t.Xthe M|
|00000aa0| 61 6b 65 66 69 6c 65 2e | 20 20 54 68 65 20 70 6f |akefile.| The po|
|00000ab0| 73 73 69 62 6c 65 20 64 | 69 66 66 65 72 65 6e 63 |ssible d|ifferenc|
|00000ac0| 65 73 20 61 72 65 20 64 | 6f 63 75 6d 65 6e 74 65 |es are d|ocumente|
|00000ad0| 64 20 74 68 65 72 65 2e | 20 20 50 61 79 20 63 6c |d there.| Pay cl|
|00000ae0| 6f 73 65 0a 58 61 74 74 | 65 6e 74 69 6f 6e 20 74 |ose.Xatt|ention t|
|00000af0| 6f 20 74 68 65 20 69 6e | 73 74 61 6c 6c 3a 20 72 |o the in|stall: r|
|00000b00| 75 6c 65 2e 20 20 44 4f | 20 4e 4f 54 20 4d 41 49 |ule. DO| NOT MAI|
|00000b10| 4c 20 4d 45 20 44 49 46 | 46 45 52 45 4e 43 45 53 |L ME DIF|FERENCES|
|00000b20| 20 46 4f 52 20 56 41 52 | 49 4f 55 53 0a 58 49 4e | FOR VAR|IOUS.XIN|
|00000b30| 53 54 41 4c 4c 41 54 49 | 4f 4e 20 50 52 4f 42 4c |STALLATI|ON PROBL|
|00000b40| 45 4d 53 2e 20 20 49 66 | 20 79 6f 75 20 6d 75 73 |EMS. If| you mus|
|00000b50| 74 20 73 68 61 72 65 20 | 79 6f 75 72 20 65 78 70 |t share |your exp|
|00000b60| 65 72 69 65 6e 63 65 73 | 2c 20 64 6f 20 73 6f 20 |eriences|, do so |
|00000b70| 6f 6e 20 74 68 65 0a 58 | 6e 65 74 2e 20 20 4c 6f |on the.X|net. Lo|
|00000b80| 67 69 6e 20 6e 6f 77 20 | 72 75 6e 73 20 6f 6e 20 |gin now |runs on |
|00000b90| 61 62 6f 75 74 20 33 30 | 20 64 69 66 66 65 72 65 |about 30| differe|
|00000ba0| 6e 74 20 76 61 72 69 65 | 74 69 65 73 20 6f 66 20 |nt varie|ties of |
|00000bb0| 55 4e 49 58 20 74 68 61 | 74 20 49 20 68 61 76 65 |UNIX tha|t I have|
|00000bc0| 0a 58 62 65 65 6e 20 6d | 61 64 65 20 61 77 61 72 |.Xbeen m|ade awar|
|00000bd0| 65 20 6f 66 2e 0a 58 0a | 58 4e 6f 74 65 20 74 68 |e of..X.|XNote th|
|00000be0| 61 74 20 74 68 65 72 65 | 20 61 72 65 20 4d 41 4e |at there| are MAN|
|00000bf0| 59 20 6f 70 74 69 6f 6e | 73 2e 20 20 41 73 20 64 |Y option|s. As d|
|00000c00| 69 73 74 72 69 62 75 74 | 65 64 20 6d 6f 73 74 20 |istribut|ed most |
|00000c10| 6f 70 74 69 6f 6e 73 20 | 61 72 65 20 74 75 72 6e |options |are turn|
|00000c20| 65 64 0a 58 6f 6e 2c 20 | 77 68 69 63 68 20 70 72 |ed.Xon, |which pr|
|00000c30| 6f 64 75 63 65 73 20 61 | 20 72 65 61 6c 6c 79 20 |oduces a| really |
|00000c40| 6e 69 63 65 20 70 61 63 | 6b 61 67 65 2e 20 20 54 |nice pac|kage. T|
|00000c50| 68 69 73 20 69 73 20 74 | 68 65 20 73 79 73 74 65 |his is t|he syste|
|00000c60| 6d 20 61 73 20 75 73 65 | 64 20 6f 6e 0a 58 73 6f |m as use|d on.Xso|
|00000c70| 6d 65 20 6f 66 20 74 68 | 65 20 61 75 74 68 6f 72 |me of th|e author|
|00000c80| 73 27 20 6d 61 63 68 69 | 6e 65 73 2e 0a 58 0a 58 |s' machi|nes..X.X|
|00000c90| 44 69 61 6c 75 70 20 50 | 61 73 73 77 6f 72 64 20 |Dialup P|assword |
|00000ca0| 46 69 6c 65 73 20 2d 0a | 58 09 54 68 69 73 20 6f |Files -.|X.This o|
|00000cb0| 70 74 69 6f 6e 20 70 65 | 72 6d 69 74 73 20 69 6e |ption pe|rmits in|
|00000cc0| 64 69 76 69 64 75 61 6c | 20 70 6f 72 74 73 20 74 |dividual| ports t|
|00000cd0| 6f 20 68 61 76 65 20 61 | 6e 20 61 64 64 69 74 69 |o have a|n additi|
|00000ce0| 6f 6e 61 6c 0a 58 09 70 | 61 73 73 77 6f 72 64 20 |onal.X.p|assword |
|00000cf0| 70 72 6f 6d 70 74 65 64 | 20 66 6f 72 20 6f 6e 20 |prompted| for on |
|00000d00| 61 20 62 79 2d 73 68 65 | 6c 6c 20 62 61 73 69 73 |a by-she|ll basis|
|00000d10| 2e 20 20 2f 65 74 63 2f | 64 69 61 6c 75 70 73 0a |. /etc/|dialups.|
|00000d20| 58 09 63 6f 6e 74 61 69 | 6e 73 20 61 20 6c 69 73 |X.contai|ns a lis|
|00000d30| 74 20 6f 66 20 64 69 61 | 6c 75 70 20 70 6f 72 74 |t of dia|lup port|
|00000d40| 73 2c 20 64 5f 70 61 73 | 73 77 64 20 63 6f 6e 74 |s, d_pas|swd cont|
|00000d50| 61 69 6e 73 20 74 68 65 | 0a 58 09 70 61 73 73 77 |ains the|.X.passw|
|00000d60| 6f 72 64 20 66 6f 72 20 | 65 61 63 68 20 73 68 65 |ord for |each she|
|00000d70| 6c 6c 20 72 65 71 75 69 | 72 69 6e 67 20 61 20 64 |ll requi|ring a d|
|00000d80| 69 61 6c 75 70 20 70 61 | 73 73 77 6f 72 64 2e 0a |ialup pa|ssword..|
|00000d90| 58 0a 58 09 53 65 6c 65 | 63 74 20 74 68 69 73 20 |X.X.Sele|ct this |
|00000da0| 6f 70 74 69 6f 6e 20 62 | 79 20 64 65 66 69 6e 69 |option b|y defini|
|00000db0| 6e 67 20 74 68 65 20 44 | 49 41 4c 55 50 20 6d 61 |ng the D|IALUP ma|
|00000dc0| 63 72 6f 2e 0a 58 0a 58 | 50 6f 72 74 20 41 63 63 |cro..X.X|Port Acc|
|00000dd0| 65 73 73 20 54 69 6d 65 | 73 20 46 69 6c 65 20 2d |ess Time|s File -|
|00000de0| 0a 58 09 54 68 69 73 20 | 6f 70 74 69 6f 6e 20 70 |.X.This |option p|
|00000df0| 65 72 6d 69 74 73 20 69 | 6e 64 69 76 69 64 75 61 |ermits i|ndividua|
|00000e00| 6c 20 70 6f 72 74 73 20 | 74 6f 20 68 61 76 65 20 |l ports |to have |
|00000e10| 72 65 73 74 72 69 63 74 | 69 6f 6e 73 0a 58 09 62 |restrict|ions.X.b|
|00000e20| 61 73 65 64 20 6f 6e 20 | 75 73 65 72 20 6e 61 6d |ased on |user nam|
|00000e30| 65 20 61 6e 64 20 74 69 | 6d 65 20 6f 66 20 64 61 |e and ti|me of da|
|00000e40| 79 20 61 6e 64 20 77 65 | 65 6b 2e 0a 58 0a 58 09 |y and we|ek..X.X.|
|00000e50| 53 65 6c 65 63 74 20 74 | 68 69 73 20 6f 70 74 69 |Select t|his opti|
|00000e60| 6f 6e 20 62 79 20 64 65 | 66 69 6e 69 6e 67 20 74 |on by de|fining t|
|00000e70| 68 65 20 50 4f 52 54 54 | 49 4d 45 20 6d 61 63 72 |he PORTT|IME macr|
|00000e80| 6f 2e 0a 58 0a 58 53 68 | 61 64 6f 77 20 5b 20 75 |o..X.XSh|adow [ u|
|00000e90| 6e 72 65 61 64 61 62 6c | 65 20 5d 20 50 61 73 73 |nreadabl|e ] Pass|
|00000ea0| 77 6f 72 64 20 46 69 6c | 65 73 20 2d 0a 58 09 54 |word Fil|es -.X.T|
|00000eb0| 68 69 73 20 6f 70 74 69 | 6f 6e 20 75 74 69 6c 69 |his opti|on utili|
|00000ec0| 7a 65 73 20 61 6e 20 61 | 6c 74 65 72 6e 61 74 65 |zes an a|lternate|
|00000ed0| 2c 20 6e 6f 6e 2d 72 65 | 61 64 61 62 6c 65 20 66 |, non-re|adable f|
|00000ee0| 69 6c 65 20 74 6f 0a 58 | 09 63 6f 6e 74 61 69 6e |ile to.X|.contain|
|00000ef0| 20 74 68 65 20 61 63 74 | 75 61 6c 20 65 6e 63 72 | the act|ual encr|
|00000f00| 79 70 74 65 64 20 70 61 | 73 73 77 6f 72 64 73 2e |ypted pa|sswords.|
|00000f10| 20 20 54 68 69 73 20 69 | 73 20 70 72 65 73 75 6d | This i|s presum|
|00000f20| 65 64 0a 58 09 74 6f 20 | 69 6e 63 72 65 61 73 65 |ed.X.to |increase|
|00000f30| 20 73 79 73 74 65 6d 20 | 73 65 63 75 72 69 74 79 | system |security|
|00000f40| 20 62 79 20 69 6e 63 72 | 65 61 73 69 6e 67 20 74 | by incr|easing t|
|00000f50| 68 65 20 64 69 66 66 69 | 63 75 6c 74 79 0a 58 09 |he diffi|culty.X.|
|00000f60| 77 69 74 68 20 77 68 69 | 63 68 20 73 79 73 74 65 |with whi|ch syste|
|00000f70| 6d 20 63 72 61 63 6b 65 | 72 73 20 6f 62 74 61 69 |m cracke|rs obtai|
|00000f80| 6e 20 65 6e 63 72 79 70 | 74 65 64 20 70 61 73 73 |n encryp|ted pass|
|00000f90| 77 6f 72 64 73 2e 0a 58 | 0a 58 09 53 65 6c 65 63 |words..X|.X.Selec|
|00000fa0| 74 20 74 68 69 73 20 6f | 70 74 69 6f 6e 20 62 79 |t this o|ption by|
|00000fb0| 20 64 65 66 69 6e 69 6e | 67 20 74 68 65 20 53 48 | definin|g the SH|
|00000fc0| 41 44 4f 57 50 57 44 20 | 6d 61 63 72 6f 2e 0a 58 |ADOWPWD |macro..X|
|00000fd0| 0a 58 44 42 4d 20 50 61 | 73 73 77 6f 72 64 20 46 |.XDBM Pa|ssword F|
|00000fe0| 69 6c 65 73 20 2d 0a 58 | 09 54 68 69 73 20 6f 70 |iles -.X|.This op|
|00000ff0| 74 69 6f 6e 20 75 74 69 | 6c 69 7a 65 73 20 74 68 |tion uti|lizes th|
|00001000| 65 20 44 42 4d 20 64 61 | 74 61 62 61 73 65 20 61 |e DBM da|tabase a|
|00001010| 63 63 65 73 73 20 72 6f | 75 74 69 6e 65 73 20 74 |ccess ro|utines t|
|00001020| 6f 0a 58 09 69 6e 63 72 | 65 61 73 65 20 74 68 65 |o.X.incr|ease the|
|00001030| 20 70 65 72 66 6f 72 6d | 61 6e 63 65 20 6f 66 20 | perform|ance of |
|00001040| 75 73 65 72 20 6e 61 6d | 65 20 61 6e 64 20 49 44 |user nam|e and ID|
|00001050| 20 6c 6f 6f 6b 75 70 73 | 20 69 6e 20 74 68 65 0a | lookups| in the.|
|00001060| 58 09 70 61 73 73 77 6f | 72 64 20 66 69 6c 65 2e |X.passwo|rd file.|
|00001070| 0a 58 0a 58 09 53 65 6c | 65 63 74 20 74 68 69 73 |.X.X.Sel|ect this|
|00001080| 20 6f 70 74 69 6f 6e 20 | 62 79 20 64 65 66 69 6e | option |by defin|
|00001090| 69 6e 67 20 62 6f 74 68 | 20 74 68 65 20 44 42 4d |ing both| the DBM|
|000010a0| 20 61 6e 64 20 47 45 54 | 50 57 45 4e 54 0a 58 09 | and GET|PWENT.X.|
|000010b0| 6d 61 63 72 6f 73 2e 20 | 20 54 68 65 20 46 47 45 |macros. | The FGE|
|000010c0| 54 50 57 45 4e 54 20 6d | 61 63 72 6f 20 6d 75 73 |TPWENT m|acro mus|
|000010d0| 74 20 61 6c 73 6f 20 62 | 65 20 64 65 66 69 6e 65 |t also b|e define|
|000010e0| 64 20 6f 72 20 74 68 65 | 0a 58 09 66 67 65 74 70 |d or the|.X.fgetp|
|000010f0| 77 65 6e 74 28 29 20 6c | 69 62 72 61 72 79 20 72 |went() l|ibrary r|
|00001100| 6f 75 74 69 6e 65 20 6d | 75 73 74 20 62 65 20 70 |outine m|ust be p|
|00001110| 72 65 73 65 6e 74 2e 0a | 58 0a 58 44 6f 75 62 6c |resent..|X.XDoubl|
|00001120| 65 20 4c 65 6e 67 74 68 | 20 50 61 73 73 77 6f 72 |e Length| Passwor|
|00001130| 64 73 20 2d 0a 58 09 54 | 68 69 73 20 6f 70 74 69 |ds -.X.T|his opti|
|00001140| 6f 6e 20 65 78 74 65 6e | 64 73 20 74 68 65 20 6d |on exten|ds the m|
|00001150| 61 78 69 6d 75 6d 20 6c | 65 6e 67 74 68 20 6f 66 |aximum l|ength of|
|00001160| 20 61 20 75 73 65 72 20 | 70 61 73 73 77 6f 72 64 | a user |password|
|00001170| 0a 58 09 74 6f 20 31 36 | 20 63 68 61 72 61 63 74 |.X.to 16| charact|
|00001180| 65 72 73 20 66 72 6f 6d | 20 65 69 67 68 74 2e 0a |ers from| eight..|
|00001190| 58 0a 58 09 53 65 6c 65 | 63 74 20 74 68 69 73 20 |X.X.Sele|ct this |
|000011a0| 6f 70 74 69 6f 6e 20 62 | 79 20 64 65 66 69 6e 69 |option b|y defini|
|000011b0| 6e 67 20 74 68 65 20 44 | 4f 55 42 4c 45 53 49 5a |ng the D|OUBLESIZ|
|000011c0| 45 20 6d 61 63 72 6f 2e | 0a 58 09 43 72 65 64 69 |E macro.|.X.Credi|
|000011d0| 74 20 66 6f 72 20 74 68 | 69 73 20 6f 70 74 69 6f |t for th|is optio|
|000011e0| 6e 20 69 73 20 64 75 65 | 20 4a 6f 6e 61 74 68 61 |n is due| Jonatha|
|000011f0| 6e 20 42 61 79 65 72 2e | 0a 58 0a 58 4f 62 73 63 |n Bayer.|.X.XObsc|
|00001200| 75 72 65 20 50 61 73 73 | 77 6f 72 64 20 54 65 73 |ure Pass|word Tes|
|00001210| 74 69 6e 67 20 2d 0a 58 | 09 54 68 69 73 20 6f 70 |ting -.X|.This op|
|00001220| 74 69 6f 6e 20 69 6e 63 | 6c 75 64 65 73 20 63 6f |tion inc|ludes co|
|00001230| 64 65 20 74 6f 20 74 65 | 73 74 20 75 73 65 72 20 |de to te|st user |
|00001240| 70 61 73 73 77 6f 72 64 | 73 20 66 6f 72 0a 58 09 |password|s for.X.|
|00001250| 63 6f 6d 70 6c 65 78 69 | 74 79 2e 20 20 54 68 65 |complexi|ty. The|
|00001260| 20 70 72 6f 67 72 61 6d | 6d 65 72 20 69 73 20 65 | program|mer is e|
|00001270| 6e 63 6f 75 72 61 67 65 | 64 20 74 6f 20 65 64 69 |ncourage|d to edi|
|00001280| 74 20 74 68 65 0a 58 09 | 66 69 6c 65 20 6f 62 73 |t the.X.|file obs|
|00001290| 63 75 72 65 2e 63 20 74 | 6f 20 61 64 64 20 61 64 |cure.c t|o add ad|
|000012a0| 64 69 74 69 6f 6e 61 6c | 20 6d 65 74 68 6f 64 73 |ditional| methods|
|000012b0| 20 66 6f 72 20 64 65 74 | 65 63 74 69 6e 67 0a 58 | for det|ecting.X|
|000012c0| 09 73 69 6d 70 6c 69 73 | 74 69 63 20 70 61 73 73 |.simplis|tic pass|
|000012d0| 77 6f 72 64 73 2e 0a 58 | 0a 58 09 53 65 6c 65 63 |words..X|.X.Selec|
|000012e0| 74 20 74 68 69 73 20 6f | 70 74 69 6f 6e 20 62 79 |t this o|ption by|
|000012f0| 20 64 65 66 69 6e 69 6e | 67 20 74 68 65 20 4f 42 | definin|g the OB|
|00001300| 53 43 55 52 45 20 6d 61 | 63 72 6f 2e 0a 58 0a 58 |SCURE ma|cro..X.X|
|00001310| 09 41 64 64 69 74 69 6f | 6e 61 6c 6c 79 2c 20 74 |.Additio|nally, t|
|00001320| 68 65 20 50 41 53 53 4c | 45 4e 47 54 48 20 6d 61 |he PASSL|ENGTH ma|
|00001330| 63 72 6f 20 6d 75 73 74 | 20 62 65 20 64 65 66 69 |cro must| be defi|
|00001340| 6e 65 64 20 74 6f 0a 58 | 09 63 6f 6e 74 72 6f 6c |ned to.X|.control|
|00001350| 20 74 68 65 20 6d 69 6e | 69 6d 75 6d 20 6c 65 6e | the min|imum len|
|00001360| 67 74 68 20 66 6f 72 20 | 61 20 6c 65 67 61 6c 20 |gth for |a legal |
|00001370| 70 61 73 73 77 6f 72 64 | 2e 0a 58 0a 58 4d 61 6e |password|..X.XMan|
|00001380| 64 61 74 6f 72 79 20 50 | 61 73 73 77 6f 72 64 20 |datory P|assword |
|00001390| 50 72 6f 6d 70 74 69 6e | 67 20 2d 0a 58 09 54 68 |Promptin|g -.X.Th|
|000013a0| 69 73 20 6f 70 74 69 6f | 6e 20 72 65 71 75 69 72 |is optio|n requir|
|000013b0| 65 73 20 61 6c 6c 20 70 | 61 73 73 77 6f 72 64 73 |es all p|asswords|
|000013c0| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 6e 75 6c 6c |, includ|ing null|
|000013d0| 20 6f 6e 65 73 2c 0a 58 | 09 74 6f 20 62 65 20 70 | ones,.X|.to be p|
|000013e0| 72 6f 6d 70 74 65 64 20 | 66 6f 72 2e 20 20 54 72 |rompted |for. Tr|
|000013f0| 61 64 69 74 69 6f 6e 61 | 6c 6c 79 20 61 6e 20 61 |aditiona|lly an a|
|00001400| 63 63 6f 75 6e 74 20 77 | 69 74 68 20 61 0a 58 09 |ccount w|ith a.X.|
|00001410| 70 61 73 73 77 6f 72 64 | 20 66 69 65 6c 64 20 6f |password| field o|
|00001420| 66 20 27 3a 3a 27 20 64 | 6f 65 73 20 6e 6f 74 20 |f '::' d|oes not |
|00001430| 72 65 71 75 69 72 65 20 | 70 72 6f 6d 70 74 69 6e |require |promptin|
|00001440| 67 20 66 6f 72 2e 0a 58 | 09 54 68 69 73 20 6f 70 |g for..X|.This op|
|00001450| 74 69 6f 6e 20 6d 6f 64 | 69 66 69 65 73 20 74 68 |tion mod|ifies th|
|00001460| 69 73 20 62 65 68 61 76 | 69 6f 72 20 74 6f 20 72 |is behav|ior to r|
|00001470| 65 71 75 69 72 65 20 65 | 76 65 6e 0a 58 09 6e 75 |equire e|ven.X.nu|
|00001480| 6c 6c 20 70 61 73 73 77 | 6f 72 64 73 20 62 65 20 |ll passw|ords be |
|00001490| 70 72 6f 6d 70 74 65 64 | 20 66 6f 72 2e 0a 58 0a |prompted| for..X.|
|000014a0| 58 09 53 65 6c 65 63 74 | 20 74 68 69 73 20 6f 70 |X.Select| this op|
|000014b0| 74 69 6f 6e 20 62 79 20 | 64 65 66 69 6e 69 6e 67 |tion by |defining|
|000014c0| 20 74 68 65 20 4e 4f 42 | 4c 41 4e 4b 20 6d 61 63 | the NOB|LANK mac|
|000014d0| 72 6f 2e 0a 58 0a 58 50 | 61 73 73 77 6f 72 64 20 |ro..X.XP|assword |
|000014e0| 41 67 69 6e 67 20 44 65 | 66 61 75 6c 74 73 20 2d |Aging De|faults -|
|000014f0| 0a 58 09 59 6f 75 20 6d | 61 79 20 73 65 6c 65 63 |.X.You m|ay selec|
|00001500| 74 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 6e 75 |t the de|fault nu|
|00001510| 6d 62 65 72 20 6f 66 20 | 64 61 79 73 20 64 75 72 |mber of |days dur|
|00001520| 69 6e 67 20 77 68 69 63 | 68 20 61 0a 58 09 70 61 |ing whic|h a.X.pa|
|00001530| 73 73 77 6f 72 64 20 69 | 73 20 76 61 6c 69 64 2e |ssword i|s valid.|
|00001540| 20 20 54 68 65 20 70 77 | 63 6f 6e 76 20 63 6f 6d | The pw|conv com|
|00001550| 6d 61 6e 64 20 61 64 64 | 73 20 61 67 69 6e 67 0a |mand add|s aging.|
|00001560| 58 09 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 74 6f |X.inform|ation to|
|00001570| 20 61 63 63 6f 75 6e 74 | 73 20 77 68 69 63 68 20 | account|s which |
|00001580| 64 6f 20 6e 6f 74 20 69 | 6e 63 6c 75 64 65 20 69 |do not i|nclude i|
|00001590| 74 20 61 6c 72 65 61 64 | 79 2e 0a 58 0a 58 09 54 |t alread|y..X.X.T|
|000015a0| 68 65 20 4d 49 4e 44 41 | 59 53 20 6d 61 63 72 6f |he MINDA|YS macro|
|000015b0| 20 6d 75 73 74 20 62 65 | 20 64 65 66 69 6e 65 64 | must be| defined|
|000015c0| 20 74 6f 20 62 65 20 74 | 68 65 20 6d 69 6e 69 6d | to be t|he minim|
|000015d0| 75 6d 0a 58 09 6e 75 6d | 62 65 72 20 6f 66 20 64 |um.X.num|ber of d|
|000015e0| 61 79 73 20 77 68 69 63 | 68 20 6d 75 73 74 20 70 |ays whic|h must p|
|000015f0| 61 73 73 20 62 65 66 6f | 72 65 20 61 20 70 61 73 |ass befo|re a pas|
|00001600| 73 77 6f 72 64 20 6d 61 | 79 20 62 65 0a 58 09 63 |sword ma|y be.X.c|
|00001610| 68 61 6e 67 65 64 2e 20 | 20 54 68 65 20 4d 41 58 |hanged. | The MAX|
|00001620| 44 41 59 53 20 6d 61 63 | 72 6f 20 6d 75 73 74 20 |DAYS mac|ro must |
|00001630| 62 65 20 64 65 66 69 6e | 65 64 20 74 6f 20 62 65 |be defin|ed to be|
|00001640| 20 74 68 65 0a 58 09 6d | 61 78 69 6d 75 6d 20 6e | the.X.m|aximum n|
|00001650| 75 6d 62 65 72 20 6f 66 | 20 64 61 79 73 20 77 68 |umber of| days wh|
|00001660| 69 63 68 20 61 20 70 61 | 73 73 77 6f 72 64 20 77 |ich a pa|ssword w|
|00001670| 69 6c 6c 20 72 65 6d 61 | 69 6e 0a 58 09 76 61 6c |ill rema|in.X.val|
|00001680| 69 64 20 64 75 72 69 6e | 67 2e 0a 58 0a 58 09 54 |id durin|g..X.X.T|
|00001690| 68 65 20 57 41 52 4e 44 | 41 59 53 20 6d 61 63 72 |he WARND|AYS macr|
|000016a0| 6f 20 63 6f 6e 74 72 6f | 6c 73 20 68 6f 77 20 6d |o contro|ls how m|
|000016b0| 61 6e 79 20 64 61 79 73 | 20 77 61 72 6e 69 6e 67 |any days| warning|
|000016c0| 20 61 20 75 73 65 72 0a | 58 09 69 73 20 67 69 76 | a user.|X.is giv|
|000016d0| 65 6e 20 74 68 61 74 20 | 74 68 65 69 72 20 70 61 |en that |their pa|
|000016e0| 73 73 77 6f 72 64 20 69 | 73 20 61 62 6f 75 74 20 |ssword i|s about |
|000016f0| 74 6f 20 65 78 70 69 72 | 65 2e 20 20 54 68 65 0a |to expir|e. The.|
|00001700| 58 09 64 65 66 61 75 6c | 74 20 69 73 20 31 30 2e |X.defaul|t is 10.|
|00001710| 0a 58 0a 58 48 5a 20 45 | 6e 76 69 72 6f 6e 6d 65 |.X.XHZ E|nvironme|
|00001720| 6e 74 61 6c 20 56 61 72 | 69 61 62 6c 65 20 2d 0a |ntal Var|iable -.|
|00001730| 58 09 54 68 69 73 20 6f | 70 74 69 6f 6e 20 70 72 |X.This o|ption pr|
|00001740| 65 2d 64 65 66 69 6e 65 | 73 20 74 68 65 20 48 5a |e-define|s the HZ|
|00001750| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 61 6c 20 76 | environ|mental v|
|00001760| 61 72 69 61 62 6c 65 2e | 0a 58 09 43 65 72 74 61 |ariable.|.X.Certa|
|00001770| 69 6e 20 73 79 73 74 65 | 6d 73 20 72 65 71 75 69 |in syste|ms requi|
|00001780| 72 65 20 74 68 69 73 20 | 76 61 72 69 61 62 6c 65 |re this |variable|
|00001790| 20 62 65 20 64 65 66 69 | 6e 65 64 20 66 6f 72 0a | be defi|ned for.|
|000017a0| 58 09 73 79 73 74 65 6d | 20 74 69 6d 65 20 72 65 |X.system| time re|
|000017b0| 70 6f 72 74 69 6e 67 20 | 66 75 6e 63 74 69 6f 6e |porting |function|
|000017c0| 73 20 74 6f 20 77 6f 72 | 6b 20 70 72 6f 70 65 72 |s to wor|k proper|
|000017d0| 6c 79 2e 0a 58 0a 58 09 | 53 65 6c 65 63 74 20 74 |ly..X.X.|Select t|
|000017e0| 68 69 73 20 6f 70 74 69 | 6f 6e 20 62 79 20 64 65 |his opti|on by de|
|000017f0| 66 69 6e 69 6e 67 20 74 | 68 65 20 48 5a 20 6d 61 |fining t|he HZ ma|
|00001800| 63 72 6f 20 74 6f 20 68 | 61 76 65 0a 58 09 74 68 |cro to h|ave.X.th|
|00001810| 65 20 64 65 73 69 72 65 | 64 20 65 6e 76 69 72 6f |e desire|d enviro|
|00001820| 6e 6d 65 6e 74 61 6c 20 | 76 61 72 69 61 62 6c 65 |nmental |variable|
|00001830| 20 76 61 6c 75 65 2e 0a | 58 0a 58 54 5a 20 45 6e | value..|X.XTZ En|
|00001840| 76 69 72 6f 6e 6d 65 6e | 74 61 6c 20 56 61 72 69 |vironmen|tal Vari|
|00001850| 61 62 6c 65 20 2d 0a 58 | 09 54 68 69 73 20 6f 70 |able -.X|.This op|
|00001860| 74 69 6f 6e 20 70 72 65 | 2d 64 65 66 69 6e 65 73 |tion pre|-defines|
|00001870| 20 74 68 65 20 54 5a 20 | 65 6e 76 69 72 6f 6e 6d | the TZ |environm|
|00001880| 65 6e 74 61 6c 20 76 61 | 72 69 61 62 6c 65 2e 0a |ental va|riable..|
|00001890| 58 09 54 68 69 73 20 70 | 72 6f 76 69 64 65 73 20 |X.This p|rovides |
|000018a0| 61 20 64 65 66 61 75 6c | 74 20 74 69 6d 65 7a 6f |a defaul|t timezo|
|000018b0| 6e 65 20 76 61 72 69 61 | 62 6c 65 20 66 6f 72 20 |ne varia|ble for |
|000018c0| 75 73 65 20 62 79 0a 58 | 09 76 61 72 69 6f 75 73 |use by.X|.various|
|000018d0| 20 75 74 69 6c 69 74 69 | 65 73 2e 0a 58 0a 58 09 | utiliti|es..X.X.|
|000018e0| 53 65 6c 65 63 74 20 74 | 68 69 73 20 6f 70 74 69 |Select t|his opti|
|000018f0| 6f 6e 20 62 79 20 64 65 | 66 69 6e 69 6e 67 20 74 |on by de|fining t|
|00001900| 68 65 20 54 5a 20 6d 61 | 63 72 6f 20 74 6f 20 68 |he TZ ma|cro to h|
|00001910| 61 76 65 0a 58 09 74 68 | 65 20 64 65 73 69 72 65 |ave.X.th|e desire|
|00001920| 64 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 61 6c 20 |d enviro|nmental |
|00001930| 76 61 72 69 61 62 6c 65 | 20 76 61 6c 75 65 2c 20 |variable| value, |
|00001940| 6f 72 20 74 68 65 20 6e | 61 6d 65 0a 58 09 6f 66 |or the n|ame.X.of|
|00001950| 20 74 68 65 20 66 69 6c | 65 20 63 6f 6e 74 61 69 | the fil|e contai|
|00001960| 6e 69 6e 67 20 74 68 65 | 20 64 65 73 69 72 65 64 |ning the| desired|
|00001970| 20 76 61 6c 75 65 2e 0a | 58 0a 58 50 61 73 73 77 | value..|X.XPassw|
|00001980| 6f 72 64 20 41 67 69 6e | 67 20 2d 0a 58 09 54 68 |ord Agin|g -.X.Th|
|00001990| 69 73 20 6f 70 74 69 6f | 6e 20 69 6e 63 6c 75 64 |is optio|n includ|
|000019a0| 65 73 20 63 6f 64 65 20 | 74 6f 20 70 65 72 66 6f |es code |to perfo|
|000019b0| 72 6d 20 70 61 73 73 77 | 6f 72 64 20 61 67 69 6e |rm passw|ord agin|
|000019c0| 67 2e 0a 58 09 50 61 73 | 73 77 6f 72 64 20 61 67 |g..X.Pas|sword ag|
|000019d0| 69 6e 67 20 69 73 20 70 | 72 65 73 75 6d 65 64 20 |ing is p|resumed |
|000019e0| 74 6f 20 69 6e 63 72 65 | 61 73 65 20 73 79 73 74 |to incre|ase syst|
|000019f0| 65 6d 20 73 65 63 75 72 | 69 74 79 0a 58 09 62 79 |em secur|ity.X.by|
|00001a00| 20 66 6f 72 63 69 6e 67 | 20 75 73 65 72 73 20 74 | forcing| users t|
|00001a10| 6f 20 63 68 61 6e 67 65 | 20 70 61 73 73 77 6f 72 |o change| passwor|
|00001a20| 64 73 20 6f 6e 20 61 20 | 72 65 67 75 6c 61 72 0a |ds on a |regular.|
|00001a30| 58 09 62 61 73 69 73 2e | 20 20 54 68 65 20 72 65 |X.basis.| The re|
|00001a40| 73 6f 6c 75 74 69 6f 6e | 20 6f 6e 20 70 61 73 73 |solution| on pass|
|00001a50| 77 6f 72 64 20 61 67 65 | 20 69 73 20 69 6e 20 77 |word age| is in w|
|00001a60| 65 65 6b 73 20 66 6f 72 | 0a 58 09 6e 6f 6e 2d 73 |eeks for|.X.non-s|
|00001a70| 68 61 64 6f 77 20 70 61 | 73 73 77 6f 72 64 20 73 |hadow pa|ssword s|
|00001a80| 79 73 74 65 6d 73 20 61 | 6e 64 20 69 6e 20 64 61 |ystems a|nd in da|
|00001a90| 79 73 20 6f 74 68 65 72 | 77 69 73 65 2e 0a 58 0a |ys other|wise..X.|
|00001aa0| 58 09 53 65 6c 65 63 74 | 20 74 68 69 73 20 6f 70 |X.Select| this op|
|00001ab0| 74 69 6f 6e 20 62 79 20 | 64 65 66 69 6e 69 6e 67 |tion by |defining|
|00001ac0| 20 74 68 65 20 41 47 49 | 4e 47 20 6d 61 63 72 6f | the AGI|NG macro|
|00001ad0| 2e 0a 58 0a 58 4d 61 69 | 6c 62 6f 78 20 43 68 65 |..X.XMai|lbox Che|
|00001ae0| 63 6b 69 6e 67 20 2d 0a | 58 09 54 68 69 73 20 6f |cking -.|X.This o|
|00001af0| 70 74 69 6f 6e 20 69 6e | 63 6c 75 64 65 73 20 63 |ption in|cludes c|
|00001b00| 6f 64 65 20 74 6f 20 63 | 68 65 63 6b 20 74 68 65 |ode to c|heck the|
|00001b10| 20 73 74 61 74 75 73 20 | 6f 66 20 74 68 65 0a 58 | status |of the.X|
|00001b20| 09 75 73 65 72 27 73 20 | 6d 61 69 6c 62 6f 78 2e |.user's |mailbox.|
|00001b30| 20 20 4f 6e 65 20 6f 66 | 20 74 68 72 65 65 20 6d | One of| three m|
|00001b40| 65 73 73 61 67 65 73 20 | 61 72 65 20 70 72 6f 64 |essages |are prod|
|00001b50| 75 63 65 64 0a 58 09 64 | 65 70 65 6e 64 69 6e 67 |uced.X.d|epending|
|00001b60| 20 6f 6e 20 74 68 65 20 | 73 74 61 74 75 73 20 6f | on the |status o|
|00001b70| 66 20 74 68 65 20 75 73 | 65 72 27 73 20 6d 61 69 |f the us|er's mai|
|00001b80| 6c 62 6f 78 2e 0a 58 0a | 58 09 53 65 6c 65 63 74 |lbox..X.|X.Select|
|00001b90| 20 74 68 69 73 20 6f 70 | 74 69 6f 6e 20 62 79 20 | this op|tion by |
|00001ba0| 64 65 66 69 6e 69 6e 67 | 20 74 68 65 20 4d 41 49 |defining| the MAI|
|00001bb0| 4c 43 48 45 43 4b 20 6d | 61 63 72 6f 2e 0a 58 0a |LCHECK m|acro..X.|
|00001bc0| 58 43 6f 6e 73 6f 6c 65 | 20 52 65 73 74 72 69 63 |XConsole| Restric|
|00001bd0| 74 65 64 20 52 6f 6f 74 | 20 4c 6f 67 69 6e 73 20 |ted Root| Logins |
|00001be0| 2d 0a 58 09 54 68 69 73 | 20 6f 70 74 69 6f 6e 20 |-.X.This| option |
|00001bf0| 72 65 73 74 72 69 63 74 | 73 20 74 68 65 20 70 6f |restrict|s the po|
|00001c00| 72 74 20 77 68 69 63 68 | 20 72 6f 6f 74 20 6d 61 |rt which| root ma|
|00001c10| 79 20 6c 65 67 61 6c 6c | 79 0a 58 09 6c 6f 67 69 |y legall|y.X.logi|
|00001c20| 6e 20 6f 6e 2e 20 20 54 | 68 69 73 20 6f 70 74 69 |n on. T|his opti|
|00001c30| 6f 6e 20 70 72 65 73 75 | 6d 61 62 6c 79 20 69 6e |on presu|mably in|
|00001c40| 63 72 65 61 73 65 73 20 | 73 79 73 74 65 6d 0a 58 |creases |system.X|
|00001c50| 09 73 65 63 75 72 69 74 | 79 20 62 79 20 70 72 65 |.securit|y by pre|
|00001c60| 76 65 6e 74 69 6e 67 20 | 6f 75 74 73 69 64 65 20 |venting |outside |
|00001c70| 61 74 74 61 63 6b 73 20 | 61 67 61 69 6e 73 74 20 |attacks |against |
|00001c80| 74 68 65 20 72 6f 6f 74 | 0a 58 09 61 63 63 6f 75 |the root|.X.accou|
|00001c90| 6e 74 2e 0a 58 0a 58 09 | 53 65 6c 65 63 74 20 74 |nt..X.X.|Select t|
|00001ca0| 68 69 73 20 6f 70 74 69 | 6f 6e 20 62 79 20 64 65 |his opti|on by de|
|00001cb0| 66 69 6e 69 6e 67 20 74 | 68 65 20 43 4f 4e 53 4f |fining t|he CONSO|
|00001cc0| 4c 45 20 6d 61 63 72 6f | 20 74 6f 0a 58 09 68 61 |LE macro| to.X.ha|
|00001cd0| 76 65 20 74 68 65 20 64 | 65 73 69 72 65 64 20 70 |ve the d|esired p|
|00001ce0| 6f 72 74 20 6e 61 6d 65 | 2e 20 20 49 66 20 74 68 |ort name|. If th|
|00001cf0| 69 73 20 66 69 6c 65 20 | 69 73 20 61 20 72 65 67 |is file |is a reg|
|00001d00| 75 6c 61 72 0a 58 09 66 | 69 6c 65 2c 20 69 74 20 |ular.X.f|ile, it |
|00001d10| 69 73 20 63 6f 6e 73 69 | 64 65 72 65 64 20 74 6f |is consi|dered to|
|00001d20| 20 63 6f 6e 74 61 69 6e | 20 61 20 6c 69 73 74 20 | contain| a list |
|00001d30| 6f 66 20 6c 65 67 61 6c | 20 70 6f 72 74 0a 58 09 |of legal| port.X.|
|00001d40| 6e 61 6d 65 73 2c 20 6f | 6e 65 20 70 65 72 20 6c |names, o|ne per l|
|00001d50| 69 6e 65 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |ine. No|te that |
|00001d60| 74 68 65 20 70 6f 72 74 | 20 6e 61 6d 65 73 20 44 |the port| names D|
|00001d70| 4f 20 4e 4f 54 0a 58 09 | 62 65 67 69 6e 20 77 69 |O NOT.X.|begin wi|
|00001d80| 74 68 20 22 2f 64 65 76 | 2f 22 20 61 6e 64 20 74 |th "/dev|/" and t|
|00001d90| 68 61 74 20 61 20 66 69 | 6c 65 20 6e 61 6d 65 20 |hat a fi|le name |
|00001da0| 77 6f 75 6c 64 20 68 61 | 76 65 20 74 6f 0a 58 09 |would ha|ve to.X.|
|00001db0| 62 65 20 66 75 6c 6c 79 | 20 71 75 61 6c 69 66 69 |be fully| qualifi|
|00001dc0| 65 64 2e 20 20 53 65 65 | 20 63 6f 6e 66 69 67 2e |ed. See| config.|
|00001dd0| 68 20 66 6f 72 20 61 20 | 70 61 69 72 20 6f 66 0a |h for a |pair of.|
|00001de0| 58 09 65 78 61 6d 70 6c | 65 73 2e 0a 58 0a 58 52 |X.exampl|es..X.XR|
|00001df0| 65 73 74 72 69 63 74 65 | 64 20 55 73 65 72 20 4c |estricte|d User L|
|00001e00| 6f 67 69 6e 73 20 2d 0a | 58 09 54 68 69 73 20 6f |ogins -.|X.This o|
|00001e10| 70 74 69 6f 6e 20 70 65 | 72 6d 69 74 73 20 79 6f |ption pe|rmits yo|
|00001e20| 75 20 74 6f 20 73 70 65 | 63 69 66 79 20 61 20 66 |u to spe|cify a f|
|00001e30| 69 6c 65 20 77 68 69 63 | 68 20 64 69 73 61 62 6c |ile whic|h disabl|
|00001e40| 65 73 0a 58 09 75 73 65 | 72 20 6c 6f 67 69 6e 73 |es.X.use|r logins|
|00001e50| 2e 20 20 54 68 69 73 20 | 6f 70 74 69 6f 6e 73 20 |. This |options |
|00001e60| 70 65 72 6d 69 74 73 20 | 79 6f 75 20 74 6f 20 6b |permits |you to k|
|00001e70| 65 65 70 20 6e 6f 72 6d | 61 6c 0a 58 09 75 73 65 |eep norm|al.X.use|
|00001e80| 72 73 20 6f 66 66 20 6f | 66 20 74 68 65 20 73 79 |rs off o|f the sy|
|00001e90| 73 74 65 6d 20 77 68 69 | 6c 65 20 70 65 72 66 6f |stem whi|le perfo|
|00001ea0| 72 6d 69 6e 67 20 6d 61 | 69 6e 74 65 6e 61 6e 63 |rming ma|intenanc|
|00001eb0| 65 0a 58 09 66 75 6e 63 | 74 69 6f 6e 73 2e 0a 58 |e.X.func|tions..X|
|00001ec0| 0a 58 09 53 65 6c 65 63 | 74 20 74 68 69 73 20 6f |.X.Selec|t this o|
|00001ed0| 70 74 69 6f 6e 20 62 79 | 20 64 65 66 69 6e 69 6e |ption by| definin|
|00001ee0| 67 20 4e 4f 4c 4f 47 49 | 4e 53 20 74 6f 20 62 65 |g NOLOGI|NS to be|
|00001ef0| 20 74 68 65 20 6e 61 6d | 65 0a 58 09 6f 66 20 74 | the nam|e.X.of t|
|00001f00| 68 65 20 66 69 6c 65 20 | 74 6f 20 75 73 65 2e 0a |he file |to use..|
|00001f10| 58 0a 58 52 65 73 74 72 | 69 63 74 65 64 20 55 73 |X.XRestr|icted Us|
|00001f20| 65 20 41 63 63 6f 75 6e | 74 73 20 2d 0a 58 09 54 |e Accoun|ts -.X.T|
|00001f30| 68 69 73 20 6f 70 74 69 | 6f 6e 20 70 65 72 6d 69 |his opti|on permi|
|00001f40| 74 73 20 63 65 72 74 61 | 69 6e 20 61 63 63 6f 75 |ts certa|in accou|
|00001f50| 6e 74 73 20 74 6f 20 62 | 65 20 75 73 65 64 20 66 |nts to b|e used f|
|00001f60| 6f 72 0a 58 09 69 64 65 | 6e 74 69 66 69 63 61 74 |or.X.ide|ntificat|
|00001f70| 69 6f 6e 20 70 75 72 70 | 6f 73 65 73 20 6f 6e 6c |ion purp|oses onl|
|00001f80| 79 2e 20 20 54 68 69 73 | 20 6f 70 74 69 6f 6e 73 |y. This| options|
|00001f90| 20 61 73 73 6f 63 69 61 | 74 65 73 0a 58 09 6c 6f | associa|tes.X.lo|
|00001fa0| 67 69 6e 20 49 44 27 73 | 20 77 69 74 68 20 55 49 |gin ID's| with UI|
|00001fb0| 44 27 73 2c 20 73 75 63 | 68 20 61 73 20 66 6f 72 |D's, suc|h as for|
|00001fc0| 20 64 69 73 6b 20 73 70 | 61 63 65 20 61 63 63 6f | disk sp|ace acco|
|00001fd0| 75 6e 74 69 6e 67 0a 58 | 09 6f 72 20 61 6e 6f 6e |unting.X|.or anon|
|00001fe0| 79 6d 6f 75 73 20 46 54 | 50 20 61 63 63 6f 75 6e |ymous FT|P accoun|
|00001ff0| 74 73 2e 20 20 50 61 73 | 73 77 6f 72 64 73 20 66 |ts. Pas|swords f|
|00002000| 6f 72 20 74 68 65 73 65 | 20 61 63 63 6f 75 6e 74 |or these| account|
|00002010| 73 0a 58 09 6d 61 79 20 | 6f 6e 6c 79 20 62 65 20 |s.X.may |only be |
|00002020| 63 68 61 6e 67 65 64 20 | 62 79 20 72 6f 6f 74 2e |changed |by root.|
|00002030| 0a 58 0a 58 09 53 65 6c | 65 63 74 20 74 68 69 73 |.X.X.Sel|ect this|
|00002040| 20 6f 70 74 69 6f 6e 20 | 62 79 20 64 65 66 69 6e | option |by defin|
|00002050| 69 6e 67 20 4e 4f 55 53 | 45 20 74 6f 20 62 65 20 |ing NOUS|E to be |
|00002060| 74 68 65 20 73 74 72 69 | 6e 67 0a 58 09 74 6f 20 |the stri|ng.X.to |
|00002070| 69 6e 63 6c 75 64 65 20 | 69 6e 20 74 68 65 20 70 |include |in the p|
|00002080| 61 73 73 77 6f 72 64 20 | 66 69 6c 65 20 69 6e 20 |assword |file in |
|00002090| 70 6c 61 63 65 20 6f 66 | 20 74 68 65 20 75 73 65 |place of| the use|
|000020a0| 72 27 73 0a 58 09 73 68 | 65 6c 6c 2e 0a 58 0a 58 |r's.X.sh|ell..X.X|
|000020b0| 4d 65 73 73 61 67 65 20 | 6f 66 20 74 68 65 20 44 |Message |of the D|
|000020c0| 61 79 20 50 72 69 6e 74 | 69 6e 67 20 2d 0a 58 09 |ay Print|ing -.X.|
|000020d0| 54 68 69 73 20 6f 70 74 | 69 6f 6e 20 63 61 75 73 |This opt|ion caus|
|000020e0| 65 73 20 74 68 65 20 6d | 65 73 73 61 67 65 20 6f |es the m|essage o|
|000020f0| 66 20 74 68 65 20 64 61 | 79 20 74 6f 20 62 65 0a |f the da|y to be.|
|00002100| 58 09 70 72 69 6e 74 65 | 64 20 61 74 20 6c 6f 67 |X.printe|d at log|
|00002110| 69 6e 20 74 69 6d 65 2e | 0a 58 0a 58 09 53 65 6c |in time.|.X.X.Sel|
|00002120| 65 63 74 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |ect this| option |
|00002130| 62 79 20 64 65 66 69 6e | 69 6e 67 20 74 68 65 20 |by defin|ing the |
|00002140| 4d 4f 54 44 20 6d 61 63 | 72 6f 2e 0a 58 0a 58 09 |MOTD mac|ro..X.X.|
|00002150| 49 66 20 79 6f 75 20 77 | 69 73 68 20 74 68 69 73 |If you w|ish this|
|00002160| 20 66 65 61 74 75 72 65 | 20 74 6f 20 62 65 20 6f | feature| to be o|
|00002170| 76 65 72 72 69 64 65 6e | 20 6f 6e 20 61 20 70 65 |verriden| on a pe|
|00002180| 72 2d 75 73 65 72 0a 58 | 09 62 61 73 69 73 2c 20 |r-user.X|.basis, |
|00002190| 64 65 66 69 6e 65 20 74 | 68 65 20 6d 61 63 72 6f |define t|he macro|
|000021a0| 20 48 55 53 48 4c 4f 47 | 49 4e 20 61 6e 64 20 75 | HUSHLOG|IN and u|
|000021b0| 73 65 72 73 20 6d 61 79 | 20 74 68 65 6e 0a 58 09 |sers may| then.X.|
|000021c0| 74 75 72 6e 20 6f 66 66 | 20 74 68 65 20 2f 65 74 |turn off| the /et|
|000021d0| 63 2f 6d 6f 74 64 20 6d | 65 73 73 61 67 65 20 62 |c/motd m|essage b|
|000021e0| 79 20 63 72 65 61 74 69 | 6e 67 20 61 20 66 69 6c |y creati|ng a fil|
|000021f0| 65 0a 58 09 27 2e 68 75 | 73 68 6c 6f 67 69 6e 27 |e.X.'.hu|shlogin'|
|00002200| 20 69 6e 20 74 68 65 69 | 72 20 68 6f 6d 65 20 64 | in thei|r home d|
|00002210| 69 72 65 63 74 6f 72 69 | 65 73 2e 0a 58 0a 58 4c |irectori|es..X.XL|
|00002220| 61 73 74 20 4c 6f 67 69 | 6e 20 54 69 6d 65 20 4c |ast Logi|n Time L|
|00002230| 6f 67 67 69 6e 67 20 2d | 0a 58 09 54 68 69 73 20 |ogging -|.X.This |
|00002240| 6f 70 74 69 6f 6e 20 63 | 61 75 73 65 73 20 61 20 |option c|auses a |
|00002250| 72 65 63 6f 72 64 20 74 | 6f 20 62 65 20 6d 61 64 |record t|o be mad|
|00002260| 65 20 6f 66 20 73 75 63 | 63 65 73 73 66 75 6c 0a |e of suc|cessful.|
|00002270| 58 09 6c 6f 67 69 6e 73 | 20 69 6e 20 2f 75 73 72 |X.logins| in /usr|
|00002280| 2f 61 64 6d 2f 6c 61 73 | 74 6c 6f 67 2e 20 20 54 |/adm/las|tlog. T|
|00002290| 68 65 20 66 6f 72 6d 61 | 74 20 6f 66 20 74 68 65 |he forma|t of the|
|000022a0| 0a 58 09 73 74 72 75 63 | 74 75 72 65 20 69 73 20 |.X.struc|ture is |
|000022b0| 64 65 66 69 6e 65 64 20 | 69 6e 20 6c 61 73 74 6c |defined |in lastl|
|000022c0| 6f 67 2e 68 2e 0a 58 0a | 58 09 53 65 6c 65 63 74 |og.h..X.|X.Select|
|000022d0| 20 74 68 69 73 20 6f 70 | 74 69 6f 6e 20 62 79 20 | this op|tion by |
|000022e0| 64 65 66 69 6e 69 6e 67 | 20 74 68 65 20 4c 41 53 |defining| the LAS|
|000022f0| 54 4c 4f 47 20 6d 61 63 | 72 6f 2e 0a 58 0a 58 09 |TLOG mac|ro..X.X.|
|00002300| 59 6f 75 20 77 69 6c 6c | 20 6e 65 65 64 20 74 6f |You will| need to|
|00002310| 20 64 65 74 65 72 6d 69 | 6e 65 20 69 66 20 79 6f | determi|ne if yo|
|00002320| 75 20 73 79 73 74 65 6d | 20 61 6c 72 65 61 64 79 |u system| already|
|00002330| 20 68 61 73 0a 58 09 61 | 20 6c 61 73 74 6c 6f 67 | has.X.a| lastlog|
|00002340| 2e 68 20 66 69 6c 65 20 | 61 6e 64 20 75 73 65 20 |.h file |and use |
|00002350| 74 68 61 74 20 66 69 6c | 65 20 69 66 20 70 72 65 |that fil|e if pre|
|00002360| 73 65 6e 74 2e 0a 58 0a | 58 46 61 69 6c 65 64 20 |sent..X.|XFailed |
|00002370| 4c 6f 67 69 6e 20 4c 6f | 67 67 69 6e 67 20 2d 0a |Login Lo|gging -.|
|00002380| 58 09 54 68 69 73 20 6f | 70 74 69 6f 6e 20 63 61 |X.This o|ption ca|
|00002390| 75 73 65 73 20 61 20 72 | 65 63 6f 72 64 20 74 6f |uses a r|ecord to|
|000023a0| 20 62 65 20 6b 65 70 74 | 20 6f 66 20 74 68 65 20 | be kept| of the |
|000023b0| 6d 6f 73 74 0a 58 09 72 | 65 63 65 6e 74 20 6c 6f |most.X.r|ecent lo|
|000023c0| 67 69 6e 20 66 61 69 6c | 75 72 65 20 62 79 20 64 |gin fail|ure by d|
|000023d0| 61 74 65 20 61 6e 64 20 | 70 6f 72 74 2e 20 20 41 |ate and |port. A|
|000023e0| 20 63 75 6d 6d 75 6c 61 | 74 69 76 65 0a 58 09 63 | cummula|tive.X.c|
|000023f0| 6f 75 6e 74 20 6f 66 20 | 66 61 69 6c 75 72 65 73 |ount of |failures|
|00002400| 20 69 73 20 6d 61 69 6e | 74 61 69 6e 65 64 20 61 | is main|tained a|
|00002410| 6e 64 20 63 6f 6d 70 61 | 72 65 64 20 61 67 61 69 |nd compa|red agai|
|00002420| 6e 73 74 0a 58 09 61 6e | 20 61 6c 6c 6f 77 61 62 |nst.X.an| allowab|
|00002430| 6c 65 20 6c 69 6d 69 74 | 2e 0a 58 0a 58 09 53 65 |le limit|..X.X.Se|
|00002440| 6c 65 63 74 20 74 68 69 | 73 20 6f 70 74 69 6f 6e |lect thi|s option|
|00002450| 20 62 79 20 64 65 66 69 | 6e 69 6e 67 20 74 68 65 | by defi|ning the|
|00002460| 20 46 41 49 4c 4c 4f 47 | 20 6d 61 63 72 6f 2e 0a | FAILLOG| macro..|
|00002470| 58 0a 58 09 41 6e 20 61 | 64 64 69 74 69 6f 6e 61 |X.X.An a|dditiona|
|00002480| 6c 20 6f 70 74 69 6f 6e | 20 69 73 20 70 72 6f 76 |l option| is prov|
|00002490| 69 64 65 64 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |ided whi|ch will |
|000024a0| 63 72 65 61 74 65 0a 58 | 09 75 74 6d 70 2d 6c 69 |create.X|.utmp-li|
|000024b0| 6b 65 20 65 6e 74 72 69 | 65 73 20 66 6f 72 20 65 |ke entri|es for e|
|000024c0| 61 63 68 20 66 61 69 6c | 65 64 20 6c 6f 67 69 6e |ach fail|ed login|
|000024d0| 2e 20 20 42 65 63 61 75 | 73 65 20 6f 66 0a 58 09 |. Becau|se of.X.|
|000024e0| 73 65 63 75 72 69 74 79 | 20 63 6f 6e 63 65 72 6e |security| concern|
|000024f0| 73 2c 20 6f 6e 6c 79 20 | 76 61 6c 69 64 20 61 63 |s, only |valid ac|
|00002500| 63 6f 75 6e 74 20 6e 61 | 6d 65 73 20 77 69 6c 6c |count na|mes will|
|00002510| 20 62 65 0a 58 09 6c 6f | 67 67 65 64 2e 0a 58 0a | be.X.lo|gged..X.|
|00002520| 58 09 53 65 6c 65 63 74 | 20 74 68 69 73 20 6f 70 |X.Select| this op|
|00002530| 74 69 6f 6e 20 62 79 20 | 64 65 66 69 6e 69 6e 67 |tion by |defining|
|00002540| 20 74 68 65 20 46 54 4d | 50 20 6d 61 63 72 6f 20 | the FTM|P macro |
|00002550| 74 6f 20 62 65 0a 58 09 | 74 68 65 20 6e 61 6d 65 |to be.X.|the name|
|00002560| 20 6f 66 20 61 20 75 74 | 6d 70 2d 6c 69 6b 65 20 | of a ut|mp-like |
|00002570| 66 69 6c 65 2e 20 20 59 | 6f 75 20 6d 61 79 20 63 |file. Y|ou may c|
|00002580| 6f 6e 74 72 6f 6c 20 74 | 68 65 0a 58 09 72 65 63 |ontrol t|he.X.rec|
|00002590| 6f 72 64 69 6e 67 20 6f | 66 20 75 6e 6b 6e 6f 77 |ording o|f unknow|
|000025a0| 6e 20 6c 6f 67 69 6e 20 | 6e 61 6d 65 73 20 62 79 |n login |names by|
|000025b0| 20 64 65 66 69 6e 69 6e | 67 20 74 68 65 0a 58 09 | definin|g the.X.|
|000025c0| 55 4e 4b 4e 4f 57 4e 53 | 20 6d 61 63 72 6f 2e 20 |UNKNOWNS| macro. |
|000025d0| 20 54 68 69 73 20 70 72 | 65 76 65 6e 74 73 20 70 | This pr|events p|
|000025e0| 6f 73 73 69 62 6c 65 20 | 70 61 73 73 77 6f 72 64 |ossible |password|
|000025f0| 73 20 66 72 6f 6d 0a 58 | 09 62 65 69 6e 67 20 65 |s from.X|.being e|
|00002600| 6e 74 65 72 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |ntered i|nto the |
|00002610| 46 54 4d 50 20 66 69 6c | 65 2e 0a 58 0a 58 09 53 |FTMP fil|e..X.X.S|
|00002620| 65 65 20 74 68 65 20 66 | 69 6c 65 20 66 61 69 6c |ee the f|ile fail|
|00002630| 6c 6f 67 2e 68 20 61 6e | 64 20 63 6f 6e 66 69 67 |log.h an|d config|
|00002640| 2e 68 20 66 6f 72 20 6d | 6f 72 65 20 64 65 74 61 |.h for m|ore deta|
|00002650| 69 6c 73 2e 0a 58 0a 58 | 54 65 72 6d 69 6e 61 6c |ils..X.X|Terminal|
|00002660| 20 50 65 72 6d 69 73 73 | 69 6f 6e 73 20 2d 20 0a | Permiss|ions - .|
|00002670| 58 09 54 68 69 73 20 6f | 70 74 69 6f 6e 20 61 6c |X.This o|ption al|
|00002680| 6c 6f 77 73 20 74 68 65 | 20 74 65 72 6d 69 6e 61 |lows the| termina|
|00002690| 6c 20 6d 6f 64 65 73 20 | 74 6f 20 62 65 20 73 65 |l modes |to be se|
|000026a0| 74 20 61 74 0a 58 09 6c | 6f 67 69 6e 20 74 69 6d |t at.X.l|ogin tim|
|000026b0| 65 2e 20 20 54 68 69 73 | 20 69 73 20 70 61 72 74 |e. This| is part|
|000026c0| 69 63 75 6c 61 72 6c 79 | 20 75 73 65 66 75 6c 20 |icularly| useful |
|000026d0| 74 6f 20 64 69 73 61 62 | 6c 65 0a 58 09 6d 65 73 |to disab|le.X.mes|
|000026e0| 73 61 67 65 73 20 6f 6e | 20 75 73 65 72 27 73 20 |sages on| user's |
|000026f0| 74 65 72 6d 69 6e 61 6c | 73 2e 0a 58 0a 58 09 53 |terminal|s..X.X.S|
|00002700| 65 6c 65 63 74 20 74 68 | 69 73 20 6f 70 74 69 6f |elect th|is optio|
|00002710| 6e 20 62 79 20 64 65 66 | 69 6e 69 6e 67 20 74 68 |n by def|ining th|
|00002720| 65 20 54 54 59 50 45 52 | 4d 20 6d 61 63 72 6f 20 |e TTYPER|M macro |
|00002730| 61 73 0a 58 09 68 61 76 | 69 6e 67 20 74 68 65 20 |as.X.hav|ing the |
|00002740| 64 65 73 69 72 65 64 20 | 6d 6f 64 65 2e 0a 58 0a |desired |mode..X.|
|00002750| 58 54 65 72 6d 69 6e 61 | 6c 20 54 79 70 65 20 53 |XTermina|l Type S|
|00002760| 65 74 75 70 20 2d 0a 58 | 09 54 68 69 73 20 6f 70 |etup -.X|.This op|
|00002770| 74 69 6f 6e 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |tion all|ows the |
|00002780| 74 65 72 6d 69 6e 61 6c | 20 74 79 70 65 20 74 6f |terminal| type to|
|00002790| 20 62 65 20 73 65 74 20 | 61 74 0a 58 09 6c 6f 67 | be set |at.X.log|
|000027a0| 69 6e 20 74 69 6d 65 2e | 20 20 54 68 65 20 65 6e |in time.| The en|
|000027b0| 76 69 72 6f 6e 6d 65 6e | 74 61 6c 20 76 61 72 69 |vironmen|tal vari|
|000027c0| 61 62 6c 65 20 54 45 52 | 4d 20 77 69 6c 6c 20 62 |able TER|M will b|
|000027d0| 65 0a 58 09 73 65 74 20 | 66 72 6f 6d 20 74 68 65 |e.X.set |from the|
|000027e0| 20 73 70 65 63 69 66 69 | 65 64 20 74 65 72 6d 69 | specifi|ed termi|
|000027f0| 6e 61 6c 20 74 6f 20 70 | 6f 72 74 20 6d 61 70 70 |nal to p|ort mapp|
|00002800| 69 6e 67 0a 58 09 66 69 | 6c 65 2e 0a 58 0a 58 09 |ing.X.fi|le..X.X.|
|00002810| 53 65 6c 65 63 74 20 74 | 68 69 73 20 6f 70 74 69 |Select t|his opti|
|00002820| 6f 6e 20 62 79 20 64 65 | 66 69 6e 69 6e 67 20 74 |on by de|fining t|
|00002830| 68 65 20 54 54 59 54 59 | 50 45 20 6d 61 63 72 6f |he TTYTY|PE macro|
|00002840| 20 61 73 0a 58 09 68 61 | 76 69 6e 67 20 74 68 65 | as.X.ha|ving the|
|00002850| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 6e 61 | value o|f the na|
|00002860| 6d 65 20 6f 66 20 74 68 | 65 20 74 79 70 65 20 74 |me of th|e type t|
|00002870| 6f 20 70 6f 72 74 0a 58 | 09 6d 61 70 70 69 6e 67 |o port.X|.mapping|
|00002880| 20 66 69 6c 65 2e 20 20 | 43 72 65 64 69 74 20 66 | file. |Credit f|
|00002890| 6f 72 20 74 68 69 73 20 | 6f 70 74 69 6f 6e 20 69 |or this |option i|
|000028a0| 73 20 64 75 65 20 43 68 | 69 70 0a 58 09 52 6f 73 |s due Ch|ip.X.Ros|
|000028b0| 65 6e 74 68 61 6c 2e 0a | 58 0a 58 46 69 6c 65 20 |enthal..|X.XFile |
|000028c0| 53 69 7a 65 20 53 65 74 | 74 69 6e 67 20 2d 0a 58 |Size Set|ting -.X|
|000028d0| 09 54 68 69 73 20 6f 70 | 74 69 6f 6e 20 69 6e 63 |.This op|tion inc|
|000028e0| 6c 75 64 65 73 20 63 6f | 64 65 20 74 6f 20 73 65 |ludes co|de to se|
|000028f0| 74 20 74 68 65 20 75 73 | 65 72 27 73 20 75 6c 69 |t the us|er's uli|
|00002900| 6d 69 74 0a 58 09 61 74 | 20 6c 6f 67 69 6e 20 74 |mit.X.at| login t|
|00002910| 69 6d 65 2e 20 20 41 64 | 64 69 74 69 6f 6e 61 6c |ime. Ad|ditional|
|00002920| 20 63 6f 64 65 20 74 6f | 20 73 65 74 20 74 68 65 | code to| set the|
|00002930| 20 75 6d 61 73 6b 20 61 | 6e 64 0a 58 09 6e 69 63 | umask a|nd.X.nic|
|00002940| 65 20 76 61 6c 75 65 20 | 69 73 20 61 6c 73 6f 20 |e value |is also |
|00002950| 69 6e 63 6c 75 64 65 64 | 2e 0a 58 0a 58 09 53 65 |included|..X.X.Se|
|00002960| 6c 65 63 74 20 74 68 69 | 73 20 6f 70 74 69 6f 6e |lect thi|s option|
|00002970| 20 62 79 20 64 65 66 69 | 6e 69 6e 67 20 74 68 65 | by defi|ning the|
|00002980| 20 51 55 4f 54 41 53 20 | 6d 61 63 72 6f 2e 0a 58 | QUOTAS |macro..X|
|00002990| 0a 58 53 77 69 74 63 68 | 2d 55 73 65 72 20 4c 6f |.XSwitch|-User Lo|
|000029a0| 67 67 69 6e 67 20 2d 0a | 58 09 54 68 69 73 20 6f |gging -.|X.This o|
|000029b0| 70 74 69 6f 6e 20 63 61 | 75 73 65 73 20 73 75 28 |ption ca|uses su(|
|000029c0| 31 29 20 74 6f 20 6c 6f | 67 20 61 74 74 65 6d 70 |1) to lo|g attemp|
|000029d0| 74 73 20 74 6f 20 73 77 | 69 74 63 68 0a 58 09 75 |ts to sw|itch.X.u|
|000029e0| 73 65 72 73 2e 20 20 53 | 75 28 31 29 20 77 69 6c |sers. S|u(1) wil|
|000029f0| 6c 20 6c 6f 67 20 61 6c | 6c 20 61 74 74 65 6d 70 |l log al|l attemp|
|00002a00| 74 2c 20 67 69 76 69 6e | 67 20 74 68 65 20 6f 6c |t, givin|g the ol|
|00002a10| 64 0a 58 09 61 6e 64 20 | 6e 65 77 20 75 73 65 72 |d.X.and |new user|
|00002a20| 20 49 44 27 73 2c 20 74 | 74 79 20 70 6f 72 74 2c | ID's, t|ty port,|
|00002a30| 20 61 6e 64 20 74 69 6d | 65 2e 20 20 49 74 20 61 | and tim|e. It a|
|00002a40| 6c 73 6f 0a 58 09 69 6e | 64 69 63 61 74 65 73 20 |lso.X.in|dicates |
|00002a50| 69 66 20 74 68 65 20 61 | 74 74 65 6d 70 74 20 77 |if the a|ttempt w|
|00002a60| 61 73 20 73 75 63 63 65 | 73 73 66 75 6c 2e 0a 58 |as succe|ssful..X|
|00002a70| 0a 58 09 53 65 6c 65 63 | 74 20 74 68 69 73 20 6f |.X.Selec|t this o|
|00002a80| 70 74 69 6f 6e 20 62 79 | 20 64 65 66 69 6e 69 6e |ption by| definin|
|00002a90| 67 20 74 68 65 20 53 55 | 4c 4f 47 20 6d 61 63 72 |g the SU|LOG macr|
|00002aa0| 6f 20 74 6f 0a 58 09 68 | 61 76 65 20 74 68 65 20 |o to.X.h|ave the |
|00002ab0| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 6e 61 6d |value of| the nam|
|00002ac0| 65 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 79 6f |e of the| file yo|
|00002ad0| 75 20 77 61 6e 74 0a 58 | 09 61 74 74 65 6d 70 74 |u want.X|.attempt|
|00002ae0| 73 20 6c 6f 67 67 65 64 | 20 74 6f 2e 0a 58 0a 58 |s logged| to..X.X|
|00002af0| 43 6f 6e 66 69 67 75 72 | 61 62 6c 65 20 45 64 69 |Configur|able Edi|
|00002b00| 74 69 6e 67 20 4b 65 79 | 73 20 2d 0a 58 09 54 68 |ting Key|s -.X.Th|
|00002b10| 69 73 20 6f 70 74 69 6f | 6e 73 20 61 6c 6c 6f 77 |is optio|ns allow|
|00002b20| 73 20 74 68 65 20 65 72 | 61 73 65 20 61 6e 64 20 |s the er|ase and |
|00002b30| 6b 69 6c 6c 20 63 68 61 | 72 61 63 74 65 72 73 20 |kill cha|racters |
|00002b40| 74 6f 0a 58 09 62 65 20 | 73 65 6c 65 63 74 65 64 |to.X.be |selected|
|00002b50| 2e 20 20 41 20 64 65 66 | 61 75 6c 74 20 76 61 6c |. A def|ault val|
|00002b60| 75 65 20 69 73 20 70 72 | 6f 76 69 64 65 64 2e 20 |ue is pr|ovided. |
|00002b70| 20 42 79 20 64 65 66 61 | 75 6c 74 0a 58 09 45 52 | By defa|ult.X.ER|
|00002b80| 41 53 45 20 77 69 6c 6c | 20 62 65 20 5e 48 20 61 |ASE will| be ^H a|
|00002b90| 6e 64 20 4b 49 4c 4c 20 | 77 69 6c 6c 20 62 65 20 |nd KILL |will be |
|00002ba0| 5e 55 2e 0a 58 0a 58 09 | 53 65 6c 65 63 74 20 74 |^U..X.X.|Select t|
|00002bb0| 68 69 73 20 6f 70 74 69 | 6f 6e 20 62 79 20 64 65 |his opti|on by de|
|00002bc0| 66 69 6e 69 6e 67 20 74 | 68 65 20 45 52 41 53 45 |fining t|he ERASE|
|00002bd0| 43 48 41 52 20 6d 61 63 | 72 6f 0a 58 09 74 6f 20 |CHAR mac|ro.X.to |
|00002be0| 62 65 20 74 68 65 20 64 | 65 73 69 72 65 64 20 65 |be the d|esired e|
|00002bf0| 72 61 73 65 20 63 68 61 | 72 61 63 74 65 72 20 61 |rase cha|racter a|
|00002c00| 6e 64 20 74 68 65 20 4b | 49 4c 4c 43 48 41 52 20 |nd the K|ILLCHAR |
|00002c10| 0a 58 09 6d 61 63 72 6f | 20 74 6f 20 62 65 20 74 |.X.macro| to be t|
|00002c20| 68 65 20 64 65 73 69 72 | 65 64 20 4b 49 4c 4c 20 |he desir|ed KILL |
|00002c30| 63 68 61 72 61 63 74 65 | 72 2e 0a 58 0a 58 44 65 |characte|r..X.XDe|
|00002c40| 66 61 75 6c 74 20 75 6c | 69 6d 69 74 20 61 6e 64 |fault ul|imit and|
|00002c50| 20 75 6d 61 73 6b 20 56 | 61 6c 75 65 73 20 2d 0a | umask V|alues -.|
|00002c60| 58 09 54 68 69 73 20 6f | 70 74 69 6f 6e 20 61 6c |X.This o|ption al|
|00002c70| 6c 6f 77 73 20 79 6f 75 | 20 74 6f 20 73 65 6c 65 |lows you| to sele|
|00002c80| 63 74 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 76 |ct the d|efault v|
|00002c90| 61 6c 75 65 73 0a 58 09 | 66 6f 72 20 75 6c 69 6d |alues.X.|for ulim|
|00002ca0| 69 74 20 61 6e 64 20 75 | 6d 61 73 6b 2c 20 61 6c |it and u|mask, al|
|00002cb0| 6c 6f 77 69 6e 67 20 79 | 6f 75 20 74 6f 20 61 76 |lowing y|ou to av|
|00002cc0| 6f 69 64 0a 58 09 72 65 | 67 65 6e 65 72 61 74 69 |oid.X.re|generati|
|00002cd0| 6e 67 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 6b |ng your |system k|
|00002ce0| 65 72 6e 65 6c 2e 20 20 | 54 68 65 73 65 20 76 61 |ernel. |These va|
|00002cf0| 6c 75 65 73 20 6d 61 79 | 20 62 65 0a 58 09 6f 76 |lues may| be.X.ov|
|00002d00| 65 72 72 69 64 65 6e 20 | 77 69 74 68 20 61 70 70 |erriden |with app|
|00002d10| 72 6f 70 72 69 61 74 65 | 20 65 6e 74 72 69 65 73 |ropriate| entries|
|00002d20| 20 69 6e 20 74 68 65 20 | 47 45 43 4f 53 20 66 69 | in the |GECOS fi|
|00002d30| 65 6c 64 2e 0a 58 0a 58 | 09 53 65 6c 65 63 74 20 |eld..X.X|.Select |
|00002d40| 74 68 65 20 64 65 66 61 | 75 6c 74 20 75 6c 69 6d |the defa|ult ulim|
|00002d50| 69 74 20 62 79 20 64 65 | 66 69 6e 69 6e 67 20 74 |it by de|fining t|
|00002d60| 68 65 20 55 4c 49 4d 49 | 54 0a 58 09 6d 61 63 72 |he ULIMI|T.X.macr|
|00002d70| 6f 2c 20 61 6e 64 20 74 | 68 65 20 64 65 66 61 75 |o, and t|he defau|
|00002d80| 6c 74 20 75 6d 61 73 6b | 20 62 79 20 64 65 66 69 |lt umask| by defi|
|00002d90| 6e 69 6e 67 20 74 68 65 | 20 55 4d 41 53 4b 0a 58 |ning the| UMASK.X|
|00002da0| 09 6d 61 63 72 6f 2e 0a | 58 09 0a 58 09 57 61 72 |.macro..|X..X.War|
|00002db0| 6e 69 6e 67 3a 20 54 68 | 65 73 65 20 76 61 6c 75 |ning: Th|ese valu|
|00002dc0| 65 73 20 77 69 6c 6c 20 | 6e 6f 74 20 61 70 70 6c |es will |not appl|
|00002dd0| 79 20 74 6f 20 70 72 6f | 63 65 73 73 65 73 0a 58 |y to pro|cesses.X|
|00002de0| 09 65 78 65 63 75 74 65 | 64 20 62 79 20 2f 65 74 |.execute|d by /et|
|00002df0| 63 2f 63 72 6f 6e 20 6f | 72 20 61 6e 79 20 6f 66 |c/cron o|r any of|
|00002e00| 20 74 68 65 69 72 20 63 | 68 69 6c 64 72 65 6e 2e | their c|hildren.|
|00002e10| 0a 58 0a 58 42 53 44 20 | 4e 6f 74 65 73 3a 09 53 |.X.XBSD |Notes:.S|
|00002e20| 74 65 76 65 20 53 69 6d | 6d 6f 6e 73 09 73 63 73 |teve Sim|mons.scs|
|00002e30| 40 69 74 69 2e 6f 72 67 | 0a 58 0a 58 54 68 65 20 |@iti.org|.X.XThe |
|00002e40| 66 75 6c 6c 20 70 6f 72 | 74 20 6f 66 20 74 68 65 |full por|t of the|
|00002e50| 20 73 68 61 64 6f 77 20 | 70 61 63 6b 61 67 65 20 | shadow |package |
|00002e60| 74 6f 20 42 53 44 20 69 | 73 20 6e 6f 74 20 63 6f |to BSD i|s not co|
|00002e70| 6d 70 6c 65 74 65 3b 20 | 62 75 74 20 73 6f 6d 65 |mplete; |but some|
|00002e80| 0a 58 6f 66 20 74 68 65 | 20 69 73 73 75 65 73 20 |.Xof the| issues |
|00002e90| 68 61 76 65 20 62 65 65 | 6e 20 77 6f 72 6b 65 64 |have bee|n worked|
|00002ea0| 20 6f 75 74 2e 20 20 54 | 68 65 73 65 20 6e 6f 74 | out. T|hese not|
|00002eb0| 65 73 20 64 65 73 63 72 | 69 62 65 20 74 68 65 20 |es descr|ibe the |
|00002ec0| 63 75 72 72 65 6e 74 0a | 58 73 74 61 74 65 20 6f |current.|Xstate o|
|00002ed0| 66 20 74 68 69 6e 67 73 | 3a 0a 58 0a 58 49 6e 20 |f things|:.X.XIn |
|00002ee0| 6f 72 64 65 72 20 74 6f | 20 6d 61 6b 65 20 75 73 |order to| make us|
|00002ef0| 65 20 6f 66 20 70 61 73 | 73 77 6f 72 64 20 61 67 |e of pas|sword ag|
|00002f00| 69 6e 67 20 75 6e 64 65 | 72 20 42 53 44 2c 20 6d |ing unde|r BSD, m|
|00002f10| 69 6e 6f 72 20 63 68 61 | 6e 67 65 73 20 74 6f 0a |inor cha|nges to.|
|00002f20| 58 2f 75 73 72 2f 69 6e | 63 6c 75 64 65 2f 70 77 |X/usr/in|clude/pw|
|00002f30| 64 2e 68 20 61 6e 64 20 | 67 65 74 70 77 65 6e 74 |d.h and |getpwent|
|00002f40| 28 29 20 61 72 65 20 6e | 65 65 64 65 64 2e 20 20 |() are n|eeded. |
|00002f50| 54 68 65 73 65 20 63 68 | 61 6e 67 65 73 20 61 72 |These ch|anges ar|
|00002f60| 65 20 74 6f 0a 58 6b 65 | 65 70 20 74 68 65 20 70 |e to.Xke|ep the p|
|00002f70| 61 73 73 77 6f 72 64 20 | 61 67 65 20 66 72 6f 6d |assword |age from|
|00002f80| 20 6d 65 73 73 69 6e 67 | 20 75 70 20 74 68 65 20 | messing| up the |
|00002f90| 65 6e 63 72 79 70 74 65 | 64 20 70 61 73 73 77 6f |encrypte|d passwo|
|00002fa0| 72 64 20 77 68 65 6e 20 | 6e 6f 74 0a 58 75 73 69 |rd when |not.Xusi|
|00002fb0| 6e 67 20 73 68 61 64 6f | 77 20 70 61 73 73 77 6f |ng shado|w passwo|
|00002fc0| 72 64 73 2c 20 61 6e 64 | 20 69 6e 76 6f 6c 76 65 |rds, and| involve|
|00002fd0| 20 70 6c 61 63 69 6e 67 | 20 61 20 6e 65 77 20 66 | placing| a new f|
|00002fe0| 69 65 6c 64 20 69 6e 20 | 74 68 65 20 70 61 73 73 |ield in |the pass|
|00002ff0| 77 6f 72 64 0a 58 64 61 | 74 61 20 73 74 72 75 63 |word.Xda|ta struc|
|00003000| 74 75 72 65 2e 20 20 54 | 6f 20 75 73 65 20 74 68 |ture. T|o use th|
|00003010| 69 73 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 61 |is, you |should a|
|00003020| 70 70 6c 79 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |pply the| followi|
|00003030| 6e 67 20 74 77 6f 20 70 | 61 74 63 68 65 73 3a 0a |ng two p|atches:.|
|00003040| 58 09 70 77 64 2e 68 2e | 70 61 74 63 68 0a 58 09 |X.pwd.h.|patch.X.|
|00003050| 67 65 74 70 77 65 6e 74 | 2e 63 2e 70 61 74 63 68 |getpwent|.c.patch|
|00003060| 0a 58 74 6f 20 74 68 65 | 20 42 53 44 20 2f 75 73 |.Xto the| BSD /us|
|00003070| 72 2f 69 6e 63 6c 75 64 | 65 2f 70 77 64 2e 68 20 |r/includ|e/pwd.h |
|00003080| 61 6e 64 20 2f 75 73 72 | 2f 73 72 63 2f 6c 69 62 |and /usr|/src/lib|
|00003090| 2f 6c 69 62 63 2f 67 65 | 6e 2f 67 65 74 70 77 65 |/libc/ge|n/getpwe|
|000030a0| 6e 74 2e 63 2c 0a 58 72 | 65 73 70 65 63 74 69 76 |nt.c,.Xr|espectiv|
|000030b0| 65 6c 79 2e 20 20 41 66 | 74 65 72 20 61 70 70 6c |ely. Af|ter appl|
|000030c0| 79 69 6e 67 20 74 68 65 | 20 70 61 74 63 68 65 73 |ying the| patches|
|000030d0| 2c 20 72 65 62 75 69 6c | 64 20 79 6f 75 72 20 73 |, rebuil|d your s|
|000030e0| 74 61 6e 64 61 72 64 20 | 43 0a 58 6c 69 62 72 61 |tandard |C.Xlibra|
|000030f0| 72 79 20 77 69 74 68 20 | 74 68 65 20 6e 65 77 20 |ry with |the new |
|00003100| 67 65 74 70 77 65 6e 74 | 2e 20 20 50 72 6f 67 72 |getpwent|. Progr|
|00003110| 61 6d 73 20 77 68 69 63 | 68 20 75 73 65 20 74 68 |ams whic|h use th|
|00003120| 65 20 6f 6c 64 20 67 65 | 74 70 77 65 6e 74 0a 58 |e old ge|tpwent.X|
|00003130| 77 69 6c 6c 20 66 61 69 | 6c 20 6f 6e 20 70 61 73 |will fai|l on pas|
|00003140| 73 77 6f 72 64 20 63 68 | 65 63 6b 69 6e 67 20 69 |sword ch|ecking i|
|00003150| 66 20 74 68 65 79 20 64 | 6f 20 61 20 73 74 72 63 |f they d|o a strc|
|00003160| 6d 70 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 61 |mp rathe|r than a|
|00003170| 20 73 74 72 6e 63 6d 70 | 2e 0a 58 5b 20 49 20 64 | strncmp|..X[ I d|
|00003180| 6f 20 6e 6f 74 20 73 65 | 65 6d 20 74 6f 20 68 61 |o not se|em to ha|
|00003190| 76 65 20 74 68 65 73 65 | 20 74 77 6f 20 70 61 74 |ve these| two pat|
|000031a0| 63 68 65 73 2e 20 20 49 | 20 68 61 76 65 20 70 72 |ches. I| have pr|
|000031b0| 6f 76 69 64 65 64 20 61 | 6e 20 65 6e 74 69 72 65 |ovided a|n entire|
|000031c0| 0a 58 67 65 74 70 77 65 | 6e 74 20 63 6f 6c 6c 65 |.Xgetpwe|nt colle|
|000031d0| 63 74 69 6f 6e 20 6f 66 | 20 63 6f 64 65 20 77 68 |ction of| code wh|
|000031e0| 69 63 68 20 6d 61 79 20 | 62 65 20 75 73 65 66 75 |ich may |be usefu|
|000031f0| 6c 20 69 6e 73 74 65 61 | 64 2e 20 20 54 68 69 73 |l instea|d. This|
|00003200| 20 63 6f 64 65 0a 58 64 | 6f 65 73 20 6e 6f 74 20 | code.Xd|oes not |
|00003210| 73 75 70 70 6f 72 74 20 | 53 75 6e 20 59 65 6c 6c |support |Sun Yell|
|00003220| 6f 77 20 50 61 67 65 73 | 28 74 6d 3f 29 2c 20 77 |ow Pages|(tm?), w|
|00003230| 68 69 63 68 20 69 73 20 | 61 20 73 68 61 6d 65 2e |hich is |a shame.|
|00003240| 20 2d 6a 66 68 20 5d 0a | 58 0a 58 54 68 65 73 65 | -jfh ].|X.XThese|
|00003250| 20 63 68 61 6e 67 65 73 | 20 61 72 65 20 62 61 73 | changes| are bas|
|00003260| 65 64 20 6f 6e 20 42 53 | 44 34 2e 33 2c 20 6e 6f |ed on BS|D4.3, no|
|00003270| 74 20 54 61 68 6f 65 0a | 58 0a 58 54 6f 44 6f 20 |t Tahoe.|X.XToDo |
|00003280| 42 53 44 3a 0a 58 0a 58 | 49 27 6d 20 77 6f 72 6b |BSD:.X.X|I'm work|
|00003290| 69 6e 67 20 6f 6e 20 74 | 68 69 73 20 69 6e 20 6d |ing on t|his in m|
|000032a0| 79 20 63 6f 70 69 6f 75 | 73 20 73 70 61 72 65 20 |y copiou|s spare |
|000032b0| 74 69 6d 65 20 28 68 61 | 68 21 29 3b 20 61 6e 79 |time (ha|h!); any|
|000032c0| 20 68 65 6c 70 20 77 6f | 75 6c 64 0a 58 62 65 20 | help wo|uld.Xbe |
|000032d0| 61 70 70 72 65 63 69 61 | 74 65 64 2e 20 20 49 66 |apprecia|ted. If|
|000032e0| 20 79 6f 75 20 64 65 63 | 69 64 65 20 74 6f 20 68 | you dec|ide to h|
|000032f0| 65 6c 70 2c 20 64 6f 20 | 74 68 65 73 65 20 69 6e |elp, do |these in|
|00003300| 64 65 70 65 6e 64 61 6e | 74 6c 79 20 72 61 74 68 |dependan|tly rath|
|00003310| 65 72 0a 58 74 68 61 6e | 20 72 65 77 6f 72 6b 20 |er.Xthan| rework |
|00003320| 42 53 44 20 63 6f 64 65 | 21 20 20 4b 65 65 70 20 |BSD code|! Keep |
|00003330| 69 74 20 72 65 64 69 73 | 74 72 69 62 75 74 61 62 |it redis|tributab|
|00003340| 6c 65 21 0a 58 0a 58 4e | 6f 20 64 62 6d 20 66 75 |le!.X.XN|o dbm fu|
|00003350| 6e 63 74 69 6f 6e 73 20 | 68 61 76 65 20 62 65 65 |nctions |have bee|
|00003360| 6e 20 70 75 74 20 69 6e | 20 70 6c 61 63 65 2e 20 |n put in| place. |
|00003370| 20 44 62 6d 20 66 75 6e | 63 74 69 6f 6e 61 6c 69 | Dbm fun|ctionali|
|00003380| 74 79 20 69 73 20 6e 65 | 65 64 65 64 0a 58 66 6f |ty is ne|eded.Xfo|
|00003390| 72 20 62 6f 74 68 20 2f | 65 74 63 2f 70 61 73 73 |r both /|etc/pass|
|000033a0| 77 6f 72 64 20 61 6e 64 | 20 2f 65 74 63 2f 73 68 |word and| /etc/sh|
|000033b0| 61 64 6f 77 20 6d 61 6e | 61 67 65 6d 65 6e 74 2e |adow man|agement.|
|000033c0| 20 20 5b 20 49 74 20 69 | 73 20 6e 6f 77 20 70 6f | [ It i|s now po|
|000033d0| 73 73 69 62 6c 65 0a 58 | 74 6f 20 63 72 65 61 74 |ssible.X|to creat|
|000033e0| 65 20 2f 65 74 63 2f 70 | 61 73 73 77 64 2e 64 69 |e /etc/p|asswd.di|
|000033f0| 72 20 61 6e 64 20 2f 65 | 74 63 2f 70 61 73 73 77 |r and /e|tc/passw|
|00003400| 64 2e 70 61 67 20 75 73 | 69 6e 67 20 74 68 65 20 |d.pag us|ing the |
|00003410| 6e 65 77 20 6d 6b 70 61 | 73 73 77 64 0a 58 63 6f |new mkpa|sswd.Xco|
|00003420| 6d 6d 61 6e 64 2e 20 20 | 67 65 74 70 77 75 69 64 |mmand. |getpwuid|
|00003430| 20 61 6e 64 20 67 65 74 | 70 77 6e 61 6d 20 62 6f | and get|pwnam bo|
|00003440| 74 68 20 75 73 65 20 74 | 68 65 73 65 20 66 69 6c |th use t|hese fil|
|00003450| 65 73 2e 20 20 20 41 6c | 73 6f 2c 20 74 68 65 20 |es. Al|so, the |
|00003460| 0a 58 63 6f 6d 6d 61 6e | 64 73 20 63 68 66 6e 2c |.Xcomman|ds chfn,|
|00003470| 20 63 68 73 68 2c 20 61 | 6e 64 20 63 68 61 67 65 | chsh, a|nd chage|
|00003480| 20 61 6c 6c 20 75 70 64 | 61 74 65 20 74 68 65 20 | all upd|ate the |
|00003490| 44 42 4d 20 66 69 6c 65 | 73 2e 20 2d 6a 66 68 20 |DBM file|s. -jfh |
|000034a0| 5d 0a 58 0a 58 54 68 65 | 20 42 53 44 20 47 45 43 |].X.XThe| BSD GEC|
|000034b0| 4f 53 20 66 69 65 6c 64 | 20 67 65 74 73 20 75 73 |OS field| gets us|
|000034c0| 65 64 20 66 6f 72 20 6c | 6f 74 73 20 6d 6f 72 65 |ed for l|ots more|
|000034d0| 20 73 74 75 66 66 20 74 | 68 61 6e 20 74 68 65 20 | stuff t|han the |
|000034e0| 55 53 47 2e 20 20 41 74 | 20 61 0a 58 6d 69 6e 69 |USG. At| a.Xmini|
|000034f0| 6d 75 6d 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |mum this| functio|
|00003500| 6e 61 6c 69 74 79 20 73 | 68 6f 75 6c 64 20 62 65 |nality s|hould be|
|00003510| 20 64 75 70 6c 69 63 61 | 74 65 64 20 75 6e 64 65 | duplica|ted unde|
|00003520| 72 20 42 53 44 3b 20 62 | 65 74 74 65 72 20 69 73 |r BSD; b|etter is|
|00003530| 20 74 6f 20 70 75 74 0a | 58 69 74 20 69 6e 74 6f | to put.|Xit into|
|00003540| 20 55 53 47 20 61 73 20 | 77 65 6c 6c 3b 20 73 74 | USG as |well; st|
|00003550| 69 6c 6c 20 62 65 74 74 | 65 72 20 77 6f 75 6c 64 |ill bett|er would|
|00003560| 20 62 65 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 | be to m|ake the |
|00003570| 63 68 66 6e 20 63 6f 6d | 6d 61 6e 64 20 66 6f 72 |chfn com|mand for|
|00003580| 0a 58 62 6f 74 68 20 73 | 79 73 74 65 6d 73 3b 20 |.Xboth s|ystems; |
|00003590| 62 65 73 74 20 77 6f 75 | 6c 64 20 62 65 20 73 69 |best wou|ld be si|
|000035a0| 74 65 2d 63 6f 6e 66 69 | 67 75 72 61 62 6c 65 20 |te-confi|gurable |
|000035b0| 64 61 74 61 20 74 6f 20 | 62 65 20 70 75 74 20 69 |data to |be put i|
|000035c0| 6e 74 6f 20 47 45 43 4f | 53 2f 63 68 66 6e 2e 0a |nto GECO|S/chfn..|
|000035d0| 58 5b 20 74 68 69 73 20 | 69 73 20 6e 6f 77 20 70 |X[ this |is now p|
|000035e0| 6f 73 73 69 62 6c 65 20 | 75 73 69 6e 67 20 63 68 |ossible |using ch|
|000035f0| 66 6e 20 61 6e 64 20 74 | 68 65 20 2d 6f 20 6f 70 |fn and t|he -o op|
|00003600| 74 69 6f 6e 2e 20 2d 20 | 6a 66 68 20 5d 0a 53 48 |tion. - |jfh ].SH|
|00003610| 41 52 5f 45 4f 46 0a 69 | 66 20 74 65 73 74 20 31 |AR_EOF.i|f test 1|
|00003620| 32 37 32 35 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 |2725 -ne| "`wc -c|
|00003630| 20 3c 20 27 52 45 41 44 | 4d 45 27 60 22 0a 74 68 | < 'READ|ME'`".th|
|00003640| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00003650| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00003660| 6e 67 20 27 52 45 41 44 | 4d 45 27 22 20 27 28 73 |ng 'READ|ME'" '(s|
|00003670| 68 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |hould ha|ve been |
|00003680| 31 32 37 32 35 20 63 68 | 61 72 61 63 74 65 72 73 |12725 ch|aracters|
|00003690| 29 27 0a 66 69 0a 66 69 | 0a 65 63 68 6f 20 73 68 |)'.fi.fi|.echo sh|
|000036a0| 61 72 3a 20 22 65 78 74 | 72 61 63 74 69 6e 67 20 |ar: "ext|racting |
|000036b0| 27 6e 65 77 67 72 70 2e | 63 27 22 20 27 28 38 35 |'newgrp.|c'" '(85|
|000036c0| 37 36 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |76 chara|cters)'.|
|000036d0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 6e 65 77 67 |if test |-f 'newg|
|000036e0| 72 70 2e 63 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |rp.c'.th|en..echo|
|000036f0| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00003700| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00003710| 74 69 6e 67 20 66 69 6c | 65 20 27 6e 65 77 67 72 |ting fil|e 'newgr|
|00003720| 70 2e 63 27 22 0a 65 6c | 73 65 0a 73 65 64 20 27 |p.c'".el|se.sed '|
|00003730| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |s/^X//' |<< \SHAR|
|00003740| 5f 45 4f 46 20 3e 20 27 | 6e 65 77 67 72 70 2e 63 |_EOF > '|newgrp.c|
|00003750| 27 0a 58 2f 2a 0a 58 20 | 2a 20 43 6f 70 79 72 69 |'.X/*.X |* Copyri|
|00003760| 67 68 74 20 31 39 39 30 | 2c 20 4a 6f 68 6e 20 46 |ght 1990|, John F|
|00003770| 2e 20 48 61 75 67 68 20 | 49 49 0a 58 20 2a 20 41 |. Haugh |II.X * A|
|00003780| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00003790| 65 64 2e 0a 58 20 2a 0a | 58 20 2a 20 50 65 72 6d |ed..X *.|X * Perm|
|000037a0| 69 73 73 69 6f 6e 20 69 | 73 20 67 72 61 6e 74 65 |ission i|s grante|
|000037b0| 64 20 74 6f 20 63 6f 70 | 79 20 61 6e 64 20 63 72 |d to cop|y and cr|
|000037c0| 65 61 74 65 20 64 65 72 | 69 76 61 74 69 76 65 20 |eate der|ivative |
|000037d0| 77 6f 72 6b 73 20 66 6f | 72 20 61 6e 79 0a 58 20 |works fo|r any.X |
|000037e0| 2a 20 6e 6f 6e 2d 63 6f | 6d 6d 65 72 63 69 61 6c |* non-co|mmercial|
|000037f0| 20 70 75 72 70 6f 73 65 | 2c 20 70 72 6f 76 69 64 | purpose|, provid|
|00003800| 65 64 20 74 68 69 73 20 | 63 6f 70 79 72 69 67 68 |ed this |copyrigh|
|00003810| 74 20 6e 6f 74 69 63 65 | 20 69 73 20 70 72 65 73 |t notice| is pres|
|00003820| 65 72 76 65 64 0a 58 20 | 2a 20 69 6e 20 61 6c 6c |erved.X |* in all|
|00003830| 20 63 6f 70 69 65 73 20 | 6f 66 20 73 6f 75 72 63 | copies |of sourc|
|00003840| 65 20 63 6f 64 65 2c 20 | 6f 72 20 69 6e 63 6c 75 |e code, |or inclu|
|00003850| 64 65 64 20 69 6e 20 68 | 75 6d 61 6e 20 72 65 61 |ded in h|uman rea|
|00003860| 64 61 62 6c 65 20 66 6f | 72 6d 0a 58 20 2a 20 61 |dable fo|rm.X * a|
|00003870| 6e 64 20 63 6f 6e 73 70 | 69 63 75 6f 75 73 6c 79 |nd consp|icuously|
|00003880| 20 64 69 73 70 6c 61 79 | 65 64 20 6f 6e 20 61 6c | display|ed on al|
|00003890| 6c 20 63 6f 70 69 65 73 | 20 6f 66 20 6f 62 6a 65 |l copies| of obje|
|000038a0| 63 74 20 63 6f 64 65 20 | 6f 72 0a 58 20 2a 20 64 |ct code |or.X * d|
|000038b0| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 6d 65 64 69 |istribut|ion medi|
|000038c0| 61 2e 0a 58 20 2a 2f 0a | 58 0a 58 23 69 6e 63 6c |a..X */.|X.X#incl|
|000038d0| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|000038e0| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |>.X#incl|ude <str|
|000038f0| 69 6e 67 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |ing.h>.X|#include|
|00003900| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 58 23 69 6e 63 | <stdio.|h>.X#inc|
|00003910| 6c 75 64 65 20 3c 67 72 | 70 2e 68 3e 0a 58 23 69 |lude <gr|p.h>.X#i|
|00003920| 6e 63 6c 75 64 65 20 22 | 70 77 64 2e 68 22 0a 58 |nclude "|pwd.h".X|
|00003930| 23 69 6e 63 6c 75 64 65 | 20 3c 74 65 72 6d 69 6f |#include| <termio|
|00003940| 2e 68 3e 0a 58 23 69 66 | 64 65 66 20 53 59 53 33 |.h>.X#if|def SYS3|
|00003950| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00003960| 69 6f 63 74 6c 2e 68 3e | 0a 58 23 65 6e 64 69 66 |ioctl.h>|.X#endif|
|00003970| 0a 58 23 69 6e 63 6c 75 | 64 65 20 22 63 6f 6e 66 |.X#inclu|de "conf|
|00003980| 69 67 2e 68 22 0a 58 0a | 58 23 69 66 6e 64 65 66 |ig.h".X.|X#ifndef|
|00003990| 09 6c 69 6e 74 0a 58 73 | 74 61 74 69 63 09 63 68 |.lint.Xs|tatic.ch|
|000039a0| 61 72 09 73 63 63 73 69 | 64 5b 5d 20 3d 20 22 40 |ar.sccsi|d[] = "@|
|000039b0| 28 23 29 6e 65 77 67 72 | 70 2e 63 09 33 2e 33 09 |(#)newgr|p.c.3.3.|
|000039c0| 31 32 3a 33 30 3a 35 38 | 09 31 32 2f 31 32 2f 39 |12:30:58|.12/12/9|
|000039d0| 30 22 3b 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 23 |0";.X#en|dif.X.X#|
|000039e0| 69 66 64 65 66 09 4e 47 | 52 4f 55 50 53 0a 58 69 |ifdef.NG|ROUPS.Xi|
|000039f0| 6e 74 09 6e 67 72 6f 75 | 70 73 3b 0a 58 67 69 64 |nt.ngrou|ps;.Xgid|
|00003a00| 5f 74 09 67 72 6f 75 70 | 73 5b 4e 47 52 4f 55 50 |_t.group|s[NGROUP|
|00003a10| 53 5d 3b 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 73 |S];.X#en|dif.X.Xs|
|00003a20| 74 72 75 63 74 09 70 61 | 73 73 77 64 09 2a 70 77 |truct.pa|sswd.*pw|
|00003a30| 64 3b 0a 58 73 74 72 75 | 63 74 09 70 61 73 73 77 |d;.Xstru|ct.passw|
|00003a40| 64 09 2a 67 65 74 70 77 | 75 69 64 28 29 3b 0a 58 |d.*getpw|uid();.X|
|00003a50| 73 74 72 75 63 74 09 70 | 61 73 73 77 64 09 2a 67 |struct.p|asswd.*g|
|00003a60| 65 74 70 77 6e 61 6d 28 | 29 3b 0a 58 0a 58 23 69 |etpwnam(|);.X.X#i|
|00003a70| 66 64 65 66 09 53 48 41 | 44 4f 57 50 57 44 0a 58 |fdef.SHA|DOWPWD.X|
|00003a80| 23 69 6e 63 6c 75 64 65 | 20 22 73 68 61 64 6f 77 |#include| "shadow|
|00003a90| 2e 68 22 0a 58 73 74 72 | 75 63 74 09 73 70 77 64 |.h".Xstr|uct.spwd|
|00003aa0| 09 2a 73 70 77 64 3b 0a | 58 73 74 72 75 63 74 09 |.*spwd;.|Xstruct.|
|00003ab0| 73 70 77 64 09 2a 67 65 | 74 73 70 6e 61 6d 28 29 |spwd.*ge|tspnam()|
|00003ac0| 3b 0a 58 23 65 6e 64 69 | 66 0a 58 73 74 72 75 63 |;.X#endi|f.Xstruc|
|00003ad0| 74 09 67 72 6f 75 70 09 | 2a 67 72 70 3b 0a 58 73 |t.group.|*grp;.Xs|
|00003ae0| 74 72 75 63 74 09 67 72 | 6f 75 70 09 2a 67 65 74 |truct.gr|oup.*get|
|00003af0| 67 72 67 69 64 28 29 3b | 0a 58 73 74 72 75 63 74 |grgid();|.Xstruct|
|00003b00| 09 67 72 6f 75 70 09 2a | 67 65 74 67 72 6e 61 6d |.group.*|getgrnam|
|00003b10| 28 29 3b 0a 58 0a 58 63 | 68 61 72 09 2a 67 65 74 |();.X.Xc|har.*get|
|00003b20| 6c 6f 67 69 6e 28 29 3b | 0a 58 63 68 61 72 09 2a |login();|.Xchar.*|
|00003b30| 63 72 79 70 74 28 29 3b | 0a 58 76 6f 69 64 09 73 |crypt();|.Xvoid.s|
|00003b40| 68 65 6c 6c 28 29 3b 0a | 58 0a 58 63 68 61 72 09 |hell();.|X.Xchar.|
|00003b50| 2a 6e 61 6d 65 3b 0a 58 | 63 68 61 72 09 2a 67 72 |*name;.X|char.*gr|
|00003b60| 6f 75 70 3b 0a 58 69 6e | 74 09 67 69 64 3b 0a 58 |oup;.Xin|t.gid;.X|
|00003b70| 0a 58 63 68 61 72 09 2a | 50 72 6f 67 3b 0a 58 63 |.Xchar.*|Prog;.Xc|
|00003b80| 68 61 72 09 70 72 6f 67 | 5b 42 55 46 53 49 5a 5d |har.prog|[BUFSIZ]|
|00003b90| 3b 0a 58 63 68 61 72 09 | 62 61 73 65 5b 42 55 46 |;.Xchar.|base[BUF|
|00003ba0| 53 49 5a 5d 3b 0a 58 63 | 68 61 72 09 70 61 73 73 |SIZ];.Xc|har.pass|
|00003bb0| 77 64 5b 42 55 46 53 49 | 5a 5d 3b 0a 58 63 68 61 |wd[BUFSI|Z];.Xcha|
|00003bc0| 72 09 2a 63 70 61 73 73 | 77 64 3b 0a 58 63 68 61 |r.*cpass|wd;.Xcha|
|00003bd0| 72 09 2a 73 61 6c 74 3b | 0a 58 0a 58 23 69 66 6e |r.*salt;|.X.X#ifn|
|00003be0| 64 65 66 09 4d 41 58 45 | 4e 56 0a 58 23 64 65 66 |def.MAXE|NV.X#def|
|00003bf0| 69 6e 65 09 4d 41 58 45 | 4e 56 09 36 34 0a 58 23 |ine.MAXE|NV.64.X#|
|00003c00| 65 6e 64 69 66 0a 58 0a | 58 63 68 61 72 09 2a 6e |endif.X.|Xchar.*n|
|00003c10| 65 77 65 6e 76 70 5b 4d | 41 58 45 4e 56 5d 3b 0a |ewenvp[M|AXENV];.|
|00003c20| 58 69 6e 74 09 6e 65 77 | 65 6e 76 63 20 3d 20 30 |Xint.new|envc = 0|
|00003c30| 3b 0a 58 69 6e 74 09 6d | 61 78 65 6e 76 20 3d 20 |;.Xint.m|axenv = |
|00003c40| 4d 41 58 45 4e 56 3b 0a | 58 0a 58 2f 2a 0a 58 20 |MAXENV;.|X.X/*.X |
|00003c50| 2a 20 75 73 61 67 65 20 | 2d 20 70 72 69 6e 74 20 |* usage |- print |
|00003c60| 63 6f 6d 6d 61 6e 64 20 | 75 73 61 67 65 20 6d 65 |command |usage me|
|00003c70| 73 73 61 67 65 0a 58 20 | 2a 2f 0a 58 0a 58 75 73 |ssage.X |*/.X.Xus|
|00003c80| 61 67 65 20 28 29 0a 58 | 7b 0a 58 09 66 70 72 69 |age ().X|{.X.fpri|
|00003c90| 6e 74 66 20 28 73 74 64 | 65 72 72 2c 20 22 75 73 |ntf (std|err, "us|
|00003ca0| 61 67 65 3a 20 6e 65 77 | 67 72 70 20 5b 20 2d 20 |age: new|grp [ - |
|00003cb0| 5d 20 5b 20 67 72 6f 75 | 70 20 5d 5c 6e 22 29 3b |] [ grou|p ]\n");|
|00003cc0| 0a 58 09 65 78 69 74 20 | 28 31 29 3b 0a 58 7d 0a |.X.exit |(1);.X}.|
|00003cd0| 58 0a 58 2f 2a 0a 58 20 | 2a 20 6e 65 77 67 72 70 |X.X/*.X |* newgrp|
|00003ce0| 20 2d 20 63 68 61 6e 67 | 65 20 74 68 65 20 69 6e | - chang|e the in|
|00003cf0| 76 6f 6b 65 72 73 20 63 | 75 72 72 65 6e 74 20 72 |vokers c|urrent r|
|00003d00| 65 61 6c 20 61 6e 64 20 | 65 66 66 65 63 74 69 76 |eal and |effectiv|
|00003d10| 65 20 67 72 6f 75 70 20 | 69 64 0a 58 20 2a 2f 0a |e group |id.X */.|
|00003d20| 58 0a 58 6d 61 69 6e 20 | 28 61 72 67 63 2c 20 61 |X.Xmain |(argc, a|
|00003d30| 72 67 76 2c 20 65 6e 76 | 70 29 0a 58 69 6e 74 09 |rgv, env|p).Xint.|
|00003d40| 61 72 67 63 3b 0a 58 63 | 68 61 72 09 2a 2a 61 72 |argc;.Xc|har.**ar|
|00003d50| 67 76 3b 0a 58 63 68 61 | 72 09 2a 2a 65 6e 76 70 |gv;.Xcha|r.**envp|
|00003d60| 3b 0a 58 7b 0a 58 09 69 | 6e 74 09 69 6e 69 74 66 |;.X{.X.i|nt.initf|
|00003d70| 6c 61 67 20 3d 20 30 3b | 0a 58 09 69 6e 74 09 6e |lag = 0;|.X.int.n|
|00003d80| 65 65 64 73 70 61 73 73 | 77 64 20 3d 20 30 3b 0a |eedspass|wd = 0;.|
|00003d90| 58 09 69 6e 74 09 69 3b | 0a 58 09 63 68 61 72 09 |X.int.i;|.X.char.|
|00003da0| 2a 63 70 3b 0a 58 23 69 | 66 64 65 66 09 44 4f 55 |*cp;.X#i|fdef.DOU|
|00003db0| 42 4c 45 53 49 5a 45 0a | 58 09 69 6e 74 09 6c 6f |BLESIZE.|X.int.lo|
|00003dc0| 6e 67 70 61 73 73 3b 0a | 58 23 65 6e 64 69 66 0a |ngpass;.|X#endif.|
|00003dd0| 58 0a 58 09 2f 2a 0a 58 | 09 20 2a 20 6c 65 74 20 |X.X./*.X|. * let |
|00003de0| 6d 65 20 70 61 72 73 65 | 20 74 68 65 20 63 6f 6d |me parse| the com|
|00003df0| 6d 61 6e 64 20 6c 69 6e | 65 20 66 69 72 73 74 2e |mand lin|e first.|
|00003e00| 20 20 74 68 65 20 6f 6e | 6c 79 20 6c 65 67 61 6c | the on|ly legal|
|00003e10| 20 66 6c 61 67 0a 58 09 | 20 2a 20 69 73 20 61 20 | flag.X.| * is a |
|00003e20| 22 2d 22 2c 20 77 68 69 | 63 68 20 69 6e 64 69 63 |"-", whi|ch indic|
|00003e30| 61 74 65 73 20 74 68 65 | 20 73 68 65 6c 6c 20 69 |ates the| shell i|
|00003e40| 73 20 74 6f 20 70 65 72 | 66 6f 72 6d 20 74 68 65 |s to per|form the|
|00003e50| 20 73 61 6d 65 0a 58 09 | 20 2a 20 69 6e 69 74 69 | same.X.| * initi|
|00003e60| 61 6c 69 7a 61 74 69 6f | 6e 20 69 74 20 64 6f 65 |alizatio|n it doe|
|00003e70| 73 20 61 74 20 6c 6f 67 | 69 6e 20 74 69 6d 65 2e |s at log|in time.|
|00003e80| 20 20 74 68 65 20 72 65 | 6d 61 69 6e 69 6e 67 0a | the re|maining.|
|00003e90| 58 09 20 2a 20 6f 70 74 | 69 6f 6e 61 6c 20 61 72 |X. * opt|ional ar|
|00003ea0| 67 75 6d 65 6e 74 20 69 | 73 20 74 68 65 20 6e 61 |gument i|s the na|
|00003eb0| 6d 65 20 6f 66 20 61 20 | 6e 65 77 20 67 72 6f 75 |me of a |new grou|
|00003ec0| 70 2e 20 20 69 66 20 69 | 74 20 69 73 6e 27 74 0a |p. if i|t isn't.|
|00003ed0| 58 09 20 2a 20 70 72 65 | 73 65 6e 74 20 69 20 6a |X. * pre|sent i j|
|00003ee0| 75 73 74 20 75 73 65 20 | 74 68 65 20 6c 6f 67 69 |ust use |the logi|
|00003ef0| 6e 20 67 72 6f 75 70 20 | 69 64 20 6f 66 20 74 68 |n group |id of th|
|00003f00| 69 73 20 75 73 65 72 2e | 0a 58 09 20 2a 2f 0a 58 |is user.|.X. */.X|
|00003f10| 0a 58 09 69 66 20 28 61 | 72 67 63 20 3e 20 31 20 |.X.if (a|rgc > 1 |
|00003f20| 26 26 20 73 74 72 63 6d | 70 20 28 61 72 67 76 5b |&& strcm|p (argv[|
|00003f30| 31 5d 2c 20 22 2d 22 29 | 20 3d 3d 20 30 29 20 7b |1], "-")| == 0) {|
|00003f40| 0a 58 09 09 69 6e 69 74 | 66 6c 61 67 20 3d 20 31 |.X..init|flag = 1|
|00003f50| 3b 0a 58 09 09 61 72 67 | 63 2d 2d 3b 20 61 72 67 |;.X..arg|c--; arg|
|00003f60| 76 2b 2b 3b 0a 58 09 7d | 0a 58 09 69 66 20 28 61 |v++;.X.}|.X.if (a|
|00003f70| 72 67 63 20 3e 20 32 29 | 0a 58 09 09 75 73 61 67 |rgc > 2)|.X..usag|
|00003f80| 65 20 28 29 3b 0a 58 0a | 58 23 69 66 64 65 66 09 |e ();.X.|X#ifdef.|
|00003f90| 4e 47 52 4f 55 50 53 0a | 58 0a 58 09 2f 2a 0a 58 |NGROUPS.|X.X./*.X|
|00003fa0| 09 20 2a 20 67 65 74 20 | 74 68 65 20 63 75 72 72 |. * get |the curr|
|00003fb0| 65 6e 74 20 75 73 65 72 | 73 20 67 72 6f 75 70 73 |ent user|s groups|
|00003fc0| 65 74 2e 20 20 74 68 65 | 20 6e 65 77 20 67 72 6f |et. the| new gro|
|00003fd0| 75 70 20 77 69 6c 6c 20 | 62 65 0a 58 09 20 2a 20 |up will |be.X. * |
|00003fe0| 61 64 64 65 64 20 74 6f | 20 74 68 65 20 63 6f 6e |added to| the con|
|00003ff0| 63 75 72 72 65 6e 74 20 | 67 72 6f 75 70 73 65 74 |current |groupset|
|00004000| 20 69 66 20 74 68 65 72 | 65 20 69 73 20 72 6f 6f | if ther|e is roo|
|00004010| 6d 2c 20 6f 74 68 65 72 | 77 69 73 65 0a 58 09 20 |m, other|wise.X. |
|00004020| 2a 20 79 6f 75 20 67 65 | 74 20 61 20 6e 61 73 74 |* you ge|t a nast|
|00004030| 79 20 6d 65 73 73 61 67 | 65 20 62 75 74 20 61 74 |y messag|e but at|
|00004040| 20 6c 65 61 73 74 20 79 | 6f 75 72 20 72 65 61 6c | least y|our real|
|00004050| 20 61 6e 64 20 65 66 66 | 65 63 74 69 76 65 0a 58 | and eff|ective.X|
|00004060| 09 20 2a 20 67 72 6f 75 | 70 20 69 64 27 73 20 61 |. * grou|p id's a|
|00004070| 72 65 20 73 65 74 2e 0a | 58 09 20 2a 2f 0a 58 0a |re set..|X. */.X.|
|00004080| 58 09 6e 67 72 6f 75 70 | 73 20 3d 20 67 65 74 67 |X.ngroup|s = getg|
|00004090| 72 6f 75 70 73 20 28 67 | 72 6f 75 70 73 29 3b 0a |roups (g|roups);.|
|000040a0| 58 23 65 6e 64 69 66 0a | 58 0a 58 09 2f 2a 0a 58 |X#endif.|X.X./*.X|
|000040b0| 09 20 2a 20 73 61 76 65 | 20 6d 79 20 6e 61 6d 65 |. * save| my name|
|000040c0| 20 66 6f 72 20 65 72 72 | 6f 72 20 6d 65 73 73 61 | for err|or messa|
|000040d0| 67 65 73 20 61 6e 64 20 | 73 61 76 65 20 6d 79 20 |ges and |save my |
|000040e0| 72 65 61 6c 20 67 69 64 | 20 69 6e 63 61 73 65 0a |real gid| incase.|
|000040f0| 58 09 20 2a 20 6f 66 20 | 65 72 72 6f 72 73 2e 20 |X. * of |errors. |
|00004100| 20 69 66 20 74 68 65 72 | 65 20 69 73 20 61 6e 20 | if ther|e is an |
|00004110| 65 72 72 6f 72 20 69 20 | 68 61 76 65 20 74 6f 20 |error i |have to |
|00004120| 65 78 65 63 20 61 20 6e | 65 77 20 6c 6f 67 69 6e |exec a n|ew login|
|00004130| 0a 58 09 20 2a 20 73 68 | 65 6c 6c 20 66 6f 72 20 |.X. * sh|ell for |
|00004140| 74 68 65 20 75 73 65 72 | 20 73 69 6e 63 65 20 68 |the user| since h|
|00004150| 65 72 20 6f 6c 64 20 73 | 68 65 6c 6c 20 77 6f 6e |er old s|hell won|
|00004160| 27 74 20 68 61 76 65 20 | 66 6f 72 6b 27 64 20 74 |'t have |fork'd t|
|00004170| 6f 0a 58 09 20 2a 20 63 | 72 65 61 74 65 20 74 68 |o.X. * c|reate th|
|00004180| 65 20 70 72 6f 63 65 73 | 73 2e 0a 58 09 20 2a 2f |e proces|s..X. */|
|00004190| 0a 58 0a 58 09 50 72 6f | 67 20 3d 20 61 72 67 76 |.X.X.Pro|g = argv|
|000041a0| 5b 30 5d 3b 0a 58 09 67 | 69 64 20 3d 20 67 65 74 |[0];.X.g|id = get|
|000041b0| 67 69 64 20 28 29 3b 0a | 58 0a 58 09 2f 2a 0a 58 |gid ();.|X.X./*.X|
|000041c0| 09 20 2a 20 6e 6f 77 20 | 69 20 67 65 74 20 74 6f |. * now |i get to|
|000041d0| 20 64 65 74 65 72 6d 69 | 6e 65 20 6d 79 20 63 75 | determi|ne my cu|
|000041e0| 72 72 65 6e 74 20 6e 61 | 6d 65 2e 20 20 69 20 64 |rrent na|me. i d|
|000041f0| 6f 20 74 68 69 73 20 74 | 6f 20 76 61 6c 69 64 61 |o this t|o valida|
|00004200| 74 65 0a 58 09 20 2a 20 | 6d 79 20 61 63 63 65 73 |te.X. * |my acces|
|00004210| 73 20 74 6f 20 74 68 65 | 20 72 65 71 75 65 73 74 |s to the| request|
|00004220| 65 64 20 67 72 6f 75 70 | 2e 20 20 74 68 65 20 76 |ed group|. the v|
|00004230| 61 6c 69 64 61 74 69 6f | 6e 20 77 6f 72 6b 73 20 |alidatio|n works |
|00004240| 6c 69 6b 65 0a 58 09 20 | 2a 20 74 68 69 73 20 2d |like.X. |* this -|
|00004250| 0a 58 09 20 2a 09 31 29 | 20 67 65 74 20 74 68 65 |.X. *.1)| get the|
|00004260| 20 6e 61 6d 65 20 61 73 | 73 6f 63 69 61 74 65 64 | name as|sociated|
|00004270| 20 77 69 74 68 20 6d 79 | 20 63 75 72 72 65 6e 74 | with my| current|
|00004280| 20 75 73 65 72 20 69 64 | 0a 58 09 20 2a 09 32 29 | user id|.X. *.2)|
|00004290| 20 67 65 74 20 6d 79 20 | 6c 6f 67 69 6e 20 6e 61 | get my |login na|
|000042a0| 6d 65 2c 20 61 73 20 74 | 6f 6c 64 20 62 79 20 67 |me, as t|old by g|
|000042b0| 65 74 6c 6f 67 69 6e 28 | 29 2e 0a 58 09 20 2a 09 |etlogin(|)..X. *.|
|000042c0| 33 29 20 69 66 20 74 68 | 65 79 20 6d 61 74 63 68 |3) if th|ey match|
|000042d0| 2c 20 6d 79 20 6e 61 6d | 65 20 69 73 20 74 68 65 |, my nam|e is the|
|000042e0| 20 6c 6f 67 69 6e 20 6e | 61 6d 65 0a 58 09 20 2a | login n|ame.X. *|
|000042f0| 09 34 29 20 69 66 20 74 | 68 65 79 20 64 6f 6e 27 |.4) if t|hey don'|
|00004300| 74 20 6d 61 74 63 68 2c | 20 6d 79 20 6e 61 6d 65 |t match,| my name|
|00004310| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 69 6e 20 | is the |name in |
|00004320| 74 68 65 0a 58 09 20 2a | 09 20 20 20 70 61 73 73 |the.X. *|. pass|
|00004330| 77 6f 72 64 20 66 69 6c | 65 2e 0a 58 09 20 2a 0a |word fil|e..X. *.|
|00004340| 58 09 20 2a 20 74 68 69 | 73 20 69 73 6e 27 74 20 |X. * thi|s isn't |
|00004350| 70 65 72 66 65 63 74 2c | 20 62 75 74 20 69 74 20 |perfect,| but it |
|00004360| 77 6f 72 6b 73 20 6d 6f | 72 65 20 6f 66 74 65 6e |works mo|re often|
|00004370| 20 74 68 65 6e 20 6e 6f | 74 2e 0a 58 09 20 2a 2f | then no|t..X. */|
|00004380| 0a 58 0a 58 09 70 77 64 | 20 3d 20 67 65 74 70 77 |.X.X.pwd| = getpw|
|00004390| 75 69 64 20 28 67 65 74 | 75 69 64 20 28 29 29 3b |uid (get|uid ());|
|000043a0| 0a 58 0a 58 09 69 66 20 | 28 21 20 28 6e 61 6d 65 |.X.X.if |(! (name|
|000043b0| 20 3d 20 67 65 74 6c 6f | 67 69 6e 20 28 29 29 20 | = getlo|gin ()) |
|000043c0| 7c 7c 20 73 74 72 63 6d | 70 20 28 6e 61 6d 65 2c ||| strcm|p (name,|
|000043d0| 20 70 77 64 2d 3e 70 77 | 5f 6e 61 6d 65 29 20 21 | pwd->pw|_name) !|
|000043e0| 3d 20 30 29 0a 58 09 09 | 6e 61 6d 65 20 3d 20 70 |= 0).X..|name = p|
|000043f0| 77 64 2d 3e 70 77 5f 6e | 61 6d 65 3b 0a 58 0a 58 |wd->pw_n|ame;.X.X|
|00004400| 09 69 66 20 28 21 20 28 | 70 77 64 20 3d 20 67 65 |.if (! (|pwd = ge|
|00004410| 74 70 77 6e 61 6d 20 28 | 6e 61 6d 65 29 29 29 20 |tpwnam (|name))) |
|00004420| 7b 0a 58 09 09 66 70 72 | 69 6e 74 66 20 28 73 74 |{.X..fpr|intf (st|
|00004430| 64 65 72 72 2c 20 22 75 | 6e 6b 6e 6f 77 6e 20 75 |derr, "u|nknown u|
|00004440| 73 65 72 3a 20 25 73 5c | 6e 22 2c 20 6e 61 6d 65 |ser: %s\|n", name|
|00004450| 29 3b 0a 58 09 09 65 78 | 69 74 20 28 31 29 3b 0a |);.X..ex|it (1);.|
|00004460| 58 09 7d 0a 58 0a 58 09 | 2f 2a 0a 58 09 20 2a 20 |X.}.X.X.|/*.X. * |
|00004470| 6e 6f 77 20 77 65 20 64 | 65 74 65 72 6d 69 6e 65 |now we d|etermine|
|00004480| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|00004490| 20 6e 65 77 20 67 72 6f | 75 70 20 77 68 69 63 68 | new gro|up which|
|000044a0| 20 73 68 65 20 77 69 73 | 68 65 73 0a 58 09 20 2a | she wis|hes.X. *|
|000044b0| 20 74 6f 20 62 65 63 6f | 6d 65 20 61 20 6d 65 6d | to beco|me a mem|
|000044c0| 62 65 72 20 6f 66 2e 20 | 20 74 68 65 20 70 61 73 |ber of. | the pas|
|000044d0| 73 77 6f 72 64 20 66 69 | 6c 65 20 65 6e 74 72 79 |sword fi|le entry|
|000044e0| 20 66 6f 72 20 68 65 72 | 0a 58 09 20 2a 20 63 75 | for her|.X. * cu|
|000044f0| 72 72 65 6e 74 20 75 73 | 65 72 20 69 64 20 68 61 |rrent us|er id ha|
|00004500| 73 20 62 65 65 6e 20 67 | 6f 74 74 65 6e 2e 20 20 |s been g|otten. |
|00004510| 69 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 6f |if there| is no o|
|00004520| 70 74 69 6f 6e 61 6c 0a | 58 09 20 2a 20 67 72 6f |ptional.|X. * gro|
|00004530| 75 70 20 61 72 67 75 6d | 65 6e 74 20 73 68 65 20 |up argum|ent she |
|00004540| 77 69 6c 6c 20 68 61 76 | 65 20 68 65 72 20 72 65 |will hav|e her re|
|00004550| 61 6c 20 61 6e 64 20 65 | 66 66 65 63 74 69 76 65 |al and e|ffective|
|00004560| 20 67 72 6f 75 70 20 69 | 64 0a 58 09 20 2a 20 73 | group i|d.X. * s|
|00004570| 65 74 20 74 6f 20 74 68 | 65 20 76 61 6c 75 65 20 |et to th|e value |
|00004580| 66 72 6f 6d 20 68 65 72 | 20 70 61 73 73 77 6f 72 |from her| passwor|
|00004590| 64 20 66 69 6c 65 20 65 | 6e 74 72 79 2e 20 20 6f |d file e|ntry. o|
|000045a0| 74 68 65 72 77 69 73 65 | 0a 58 09 20 2a 20 77 65 |therwise|.X. * we|
|000045b0| 20 76 61 6c 69 64 61 74 | 65 20 68 65 72 20 61 63 | validat|e her ac|
|000045c0| 63 65 73 73 20 74 6f 20 | 74 68 65 20 73 70 65 63 |cess to |the spec|
|000045d0| 69 66 69 65 64 20 67 72 | 6f 75 70 2e 0a 58 09 20 |ified gr|oup..X. |
|000045e0| 2a 2f 0a 58 0a 58 09 69 | 66 20 28 61 72 67 76 5b |*/.X.X.i|f (argv[|
|000045f0| 31 5d 20 21 3d 20 28 63 | 68 61 72 20 2a 29 20 30 |1] != (c|har *) 0|
|00004600| 29 20 7b 0a 58 0a 58 09 | 09 2f 2a 0a 58 09 09 20 |) {.X.X.|./*.X.. |
|00004610| 2a 20 73 74 61 72 74 20 | 62 79 20 67 65 74 74 69 |* start |by getti|
|00004620| 6e 67 20 74 68 65 20 65 | 6e 74 72 79 20 66 6f 72 |ng the e|ntry for|
|00004630| 20 74 68 65 20 72 65 71 | 75 65 73 74 65 64 20 67 | the req|uested g|
|00004640| 72 6f 75 70 2e 0a 58 09 | 09 20 2a 2f 0a 58 0a 58 |roup..X.|. */.X.X|
|00004650| 09 09 69 66 20 28 21 20 | 28 67 72 70 20 3d 20 67 |..if (! |(grp = g|
|00004660| 65 74 67 72 6e 61 6d 20 | 28 67 72 6f 75 70 20 3d |etgrnam |(group =|
|00004670| 20 61 72 67 76 5b 31 5d | 29 29 29 20 7b 0a 58 09 | argv[1]|))) {.X.|
|00004680| 09 09 66 70 72 69 6e 74 | 66 20 28 73 74 64 65 72 |..fprint|f (stder|
|00004690| 72 2c 20 22 75 6e 6b 6e | 6f 77 6e 20 67 72 6f 75 |r, "unkn|own grou|
|000046a0| 70 3a 20 25 73 5c 6e 22 | 2c 20 67 72 6f 75 70 29 |p: %s\n"|, group)|
|000046b0| 3b 0a 58 09 09 09 67 6f | 74 6f 20 66 61 69 6c 75 |;.X...go|to failu|
|000046c0| 72 65 3b 0a 58 09 09 7d | 0a 58 0a 58 09 09 2f 2a |re;.X..}|.X.X../*|
|000046d0| 0a 58 09 09 20 2a 20 73 | 65 65 20 69 66 20 73 68 |.X.. * s|ee if sh|
|000046e0| 65 20 69 73 20 61 20 6d | 65 6d 62 65 72 20 6f 66 |e is a m|ember of|
|000046f0| 20 74 68 69 73 20 67 72 | 6f 75 70 2e 0a 58 09 09 | this gr|oup..X..|
|00004700| 20 2a 2f 0a 58 0a 58 09 | 09 66 6f 72 20 28 69 20 | */.X.X.|.for (i |
|00004710| 3d 20 30 3b 67 72 70 2d | 3e 67 72 5f 6d 65 6d 5b |= 0;grp-|>gr_mem[|
|00004720| 69 5d 3b 69 2b 2b 29 0a | 58 09 09 09 69 66 20 28 |i];i++).|X...if (|
|00004730| 73 74 72 63 6d 70 20 28 | 6e 61 6d 65 2c 20 67 72 |strcmp (|name, gr|
|00004740| 70 2d 3e 67 72 5f 6d 65 | 6d 5b 69 5d 29 20 3d 3d |p->gr_me|m[i]) ==|
|00004750| 20 30 29 0a 58 09 09 09 | 09 62 72 65 61 6b 3b 0a | 0).X...|.break;.|
|00004760| 58 0a 58 09 09 2f 2a 0a | 58 09 09 20 2a 20 69 66 |X.X../*.|X.. * if|
|00004770| 20 73 68 65 20 69 73 6e | 27 74 20 61 20 6d 65 6d | she isn|'t a mem|
|00004780| 62 65 72 2c 20 73 68 65 | 20 6e 65 65 64 73 20 74 |ber, she| needs t|
|00004790| 6f 20 70 72 6f 76 69 64 | 65 20 74 68 65 0a 58 09 |o provid|e the.X.|
|000047a0| 09 20 2a 20 67 72 6f 75 | 70 20 70 61 73 73 77 6f |. * grou|p passwo|
|000047b0| 72 64 2e 20 20 69 66 20 | 74 68 65 72 65 20 69 73 |rd. if |there is|
|000047c0| 20 6e 6f 20 67 72 6f 75 | 70 20 70 61 73 73 77 6f | no grou|p passwo|
|000047d0| 72 64 2c 20 73 68 65 0a | 58 09 09 20 2a 20 77 69 |rd, she.|X.. * wi|
|000047e0| 6c 6c 20 62 65 20 64 65 | 6e 69 65 64 20 61 63 63 |ll be de|nied acc|
|000047f0| 65 73 73 20 61 6e 79 77 | 61 79 2e 0a 58 09 09 20 |ess anyw|ay..X.. |
|00004800| 2a 2f 0a 58 0a 58 09 09 | 69 66 20 28 67 72 70 2d |*/.X.X..|if (grp-|
|00004810| 3e 67 72 5f 6d 65 6d 5b | 69 5d 20 3d 3d 20 28 63 |>gr_mem[|i] == (c|
|00004820| 68 61 72 20 2a 29 20 30 | 29 0a 58 09 09 09 6e 65 |har *) 0|).X...ne|
|00004830| 65 64 73 70 61 73 73 77 | 64 20 3d 20 31 3b 0a 58 |edspassw|d = 1;.X|
|00004840| 23 69 66 64 65 66 09 53 | 48 41 44 4f 57 50 57 44 |#ifdef.S|HADOWPWD|
|00004850| 0a 58 0a 58 09 09 2f 2a | 0a 58 09 09 20 2a 20 69 |.X.X../*|.X.. * i|
|00004860| 66 20 73 68 65 20 64 6f | 65 73 20 6e 6f 74 20 68 |f she do|es not h|
|00004870| 61 76 65 20 65 69 74 68 | 65 72 20 61 20 73 68 61 |ave eith|er a sha|
|00004880| 64 6f 77 65 64 20 70 61 | 73 73 77 6f 72 64 2c 0a |dowed pa|ssword,.|
|00004890| 58 09 09 20 2a 20 6f 72 | 20 61 20 72 65 67 75 6c |X.. * or| a regul|
|000048a0| 61 72 20 70 61 73 73 77 | 6f 72 64 2c 20 61 6e 64 |ar passw|ord, and|
|000048b0| 20 74 68 65 20 67 72 6f | 75 70 20 68 61 73 20 61 | the gro|up has a|
|000048c0| 20 70 61 73 73 77 6f 72 | 64 2c 0a 58 09 09 20 2a | passwor|d,.X.. *|
|000048d0| 20 73 68 65 20 6e 65 65 | 64 73 20 74 6f 20 67 69 | she nee|ds to gi|
|000048e0| 76 65 20 74 68 65 20 67 | 72 6f 75 70 20 70 61 73 |ve the g|roup pas|
|000048f0| 73 77 6f 72 64 2e 0a 58 | 09 09 20 2a 2f 0a 58 0a |sword..X|.. */.X.|
|00004900| 58 09 09 69 66 20 28 73 | 70 77 64 20 3d 20 67 65 |X..if (s|pwd = ge|
|00004910| 74 73 70 6e 61 6d 20 28 | 6e 61 6d 65 29 29 20 7b |tspnam (|name)) {|
|00004920| 0a 58 09 09 09 69 66 20 | 28 73 70 77 64 2d 3e 73 |.X...if |(spwd->s|
|00004930| 70 5f 70 77 64 70 5b 30 | 5d 20 3d 3d 20 27 5c 30 |p_pwdp[0|] == '\0|
|00004940| 27 20 26 26 20 67 72 70 | 2d 3e 67 72 5f 70 61 73 |' && grp|->gr_pas|
|00004950| 73 77 64 5b 30 5d 29 0a | 58 09 09 09 09 6e 65 65 |swd[0]).|X....nee|
|00004960| 64 73 70 61 73 73 77 64 | 20 3d 20 31 3b 0a 58 09 |dspasswd| = 1;.X.|
|00004970| 09 7d 20 65 6c 73 65 20 | 7b 0a 58 09 09 09 69 66 |.} else |{.X...if|
|00004980| 20 28 70 77 64 2d 3e 70 | 77 5f 70 61 73 73 77 64 | (pwd->p|w_passwd|
|00004990| 5b 30 5d 20 3d 3d 20 27 | 5c 30 27 20 26 26 20 67 |[0] == '|\0' && g|
|000049a0| 72 70 2d 3e 67 72 5f 70 | 61 73 73 77 64 5b 30 5d |rp->gr_p|asswd[0]|
|000049b0| 29 0a 58 09 09 09 09 6e | 65 65 64 73 70 61 73 73 |).X....n|eedspass|
|000049c0| 77 64 20 3d 20 31 3b 0a | 58 09 09 7d 0a 58 23 65 |wd = 1;.|X..}.X#e|
|000049d0| 6c 73 65 0a 58 0a 58 09 | 09 2f 2a 0a 58 09 09 20 |lse.X.X.|./*.X.. |
|000049e0| 2a 20 69 66 20 73 68 65 | 20 64 6f 65 73 20 6e 6f |* if she| does no|
|000049f0| 74 20 68 61 76 65 20 61 | 20 72 65 67 75 6c 61 72 |t have a| regular|
|00004a00| 20 70 61 73 73 77 6f 72 | 64 20 73 68 65 20 77 69 | passwor|d she wi|
|00004a10| 6c 6c 20 68 61 76 65 0a | 58 09 09 20 2a 20 74 6f |ll have.|X.. * to|
|00004a20| 20 67 69 76 65 20 74 68 | 65 20 67 72 6f 75 70 20 | give th|e group |
|00004a30| 70 61 73 73 77 6f 72 64 | 2c 20 69 66 20 6f 6e 65 |password|, if one|
|00004a40| 20 65 78 69 73 74 73 2e | 0a 58 09 09 20 2a 2f 0a | exists.|.X.. */.|
|00004a50| 58 0a 58 09 09 69 66 20 | 28 70 77 64 2d 3e 70 77 |X.X..if |(pwd->pw|
|00004a60| 5f 70 61 73 73 77 64 5b | 30 5d 20 3d 3d 20 27 5c |_passwd[|0] == '\|
|00004a70| 30 27 20 26 26 20 67 72 | 70 2d 3e 67 72 5f 70 61 |0' && gr|p->gr_pa|
|00004a80| 73 73 77 64 5b 30 5d 29 | 0a 58 09 09 09 6e 65 65 |sswd[0])|.X...nee|
|00004a90| 64 73 70 61 73 73 77 64 | 20 3d 20 31 3b 0a 58 23 |dspasswd| = 1;.X#|
|00004aa0| 65 6e 64 69 66 0a 58 09 | 7d 20 65 6c 73 65 20 7b |endif.X.|} else {|
|00004ab0| 0a 58 0a 58 09 09 2f 2a | 0a 58 09 09 20 2a 20 67 |.X.X../*|.X.. * g|
|00004ac0| 65 74 20 74 68 65 20 67 | 72 6f 75 70 20 66 69 6c |et the g|roup fil|
|00004ad0| 65 20 65 6e 74 72 79 20 | 66 6f 72 20 68 65 72 20 |e entry |for her |
|00004ae0| 6c 6f 67 69 6e 20 67 72 | 6f 75 70 20 69 64 2e 0a |login gr|oup id..|
|00004af0| 58 09 09 20 2a 20 74 68 | 65 20 65 6e 74 72 79 20 |X.. * th|e entry |
|00004b00| 6d 75 73 74 20 65 78 69 | 73 74 2c 20 73 69 6d 70 |must exi|st, simp|
|00004b10| 6c 79 20 74 6f 20 62 65 | 20 61 6e 6e 6f 79 69 6e |ly to be| annoyin|
|00004b20| 67 2e 0a 58 09 09 20 2a | 2f 0a 58 0a 58 09 09 69 |g..X.. *|/.X.X..i|
|00004b30| 66 20 28 21 20 28 67 72 | 70 20 3d 20 67 65 74 67 |f (! (gr|p = getg|
|00004b40| 72 67 69 64 20 28 70 77 | 64 2d 3e 70 77 5f 67 69 |rgid (pw|d->pw_gi|
|00004b50| 64 29 29 29 20 7b 0a 58 | 09 09 09 66 70 72 69 6e |d))) {.X|...fprin|
|00004b60| 74 66 20 28 73 74 64 65 | 72 72 2c 20 22 75 6e 6b |tf (stde|rr, "unk|
|00004b70| 6e 6f 77 6e 20 67 69 64 | 3a 20 25 64 5c 6e 22 2c |nown gid|: %d\n",|
|00004b80| 20 70 77 64 2d 3e 70 77 | 5f 67 69 64 29 3b 0a 58 | pwd->pw|_gid);.X|
|00004b90| 09 09 09 67 6f 74 6f 20 | 66 61 69 6c 75 72 65 3b |...goto |failure;|
|00004ba0| 0a 58 09 09 7d 0a 58 09 | 7d 0a 58 0a 58 09 2f 2a |.X..}.X.|}.X.X./*|
|00004bb0| 0a 58 09 20 2a 20 6e 6f | 77 20 69 20 73 65 65 20 |.X. * no|w i see |
|00004bc0| 61 62 6f 75 74 20 6c 65 | 74 74 69 6e 67 20 68 65 |about le|tting he|
|00004bd0| 72 20 69 6e 74 6f 20 74 | 68 65 20 67 72 6f 75 70 |r into t|he group|
|00004be0| 20 73 68 65 20 72 65 71 | 75 65 73 74 65 64 2e 0a | she req|uested..|
|00004bf0| 58 09 20 2a 20 69 66 20 | 73 68 65 20 69 73 20 74 |X. * if |she is t|
|00004c00| 68 65 20 72 6f 6f 74 20 | 75 73 65 72 2c 20 69 27 |he root |user, i'|
|00004c10| 6c 6c 20 6c 65 74 20 68 | 65 72 20 69 6e 20 77 69 |ll let h|er in wi|
|00004c20| 74 68 6f 75 74 20 68 61 | 76 69 6e 67 20 74 6f 0a |thout ha|ving to.|
|00004c30| 58 09 20 2a 20 70 72 6f | 6d 70 74 20 66 6f 72 20 |X. * pro|mpt for |
|00004c40| 74 68 65 20 70 61 73 73 | 77 6f 72 64 2e 20 20 6f |the pass|word. o|
|00004c50| 74 68 65 72 77 69 73 65 | 20 69 20 61 73 6b 20 66 |therwise| i ask f|
|00004c60| 6f 72 20 61 20 70 61 73 | 73 77 6f 72 64 0a 58 09 |or a pas|sword.X.|
|00004c70| 20 2a 20 69 66 20 73 68 | 65 20 66 6c 75 6e 6b 65 | * if sh|e flunke|
|00004c80| 64 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 74 65 73 |d one of| the tes|
|00004c90| 74 73 20 61 62 6f 76 65 | 2e 20 20 6e 6f 74 65 20 |ts above|. note |
|00004ca0| 74 68 61 74 20 73 68 65 | 0a 58 09 20 2a 20 77 6f |that she|.X. * wo|
|00004cb0| 6e 27 74 20 68 61 76 65 | 20 74 6f 20 70 72 6f 76 |n't have| to prov|
|00004cc0| 69 64 65 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 |ide the |password|
|00004cd0| 20 74 6f 20 68 65 72 20 | 6c 6f 67 69 6e 20 67 72 | to her |login gr|
|00004ce0| 6f 75 70 20 65 76 65 6e | 0a 58 09 20 2a 20 69 66 |oup even|.X. * if|
|00004cf0| 20 73 68 65 20 69 73 6e | 27 74 20 6c 69 73 74 65 | she isn|'t liste|
|00004d00| 64 20 61 73 20 61 20 6d | 65 6d 62 65 72 2e 0a 58 |d as a m|ember..X|
|00004d10| 09 20 2a 2f 0a 58 0a 58 | 09 69 66 20 28 67 65 74 |. */.X.X|.if (get|
|00004d20| 75 69 64 20 28 29 20 21 | 3d 20 30 20 26 26 20 6e |uid () !|= 0 && n|
|00004d30| 65 65 64 73 70 61 73 73 | 77 64 29 20 7b 0a 58 09 |eedspass|wd) {.X.|
|00004d40| 09 70 61 73 73 77 64 5b | 30 5d 20 3d 20 27 5c 30 |.passwd[|0] = '\0|
|00004d50| 27 3b 0a 58 0a 58 09 09 | 69 66 20 28 67 72 70 2d |';.X.X..|if (grp-|
|00004d60| 3e 67 72 5f 70 61 73 73 | 77 64 5b 30 5d 29 20 7b |>gr_pass|wd[0]) {|
|00004d70| 0a 58 0a 58 09 09 2f 2a | 0a 58 09 09 20 2a 20 67 |.X.X../*|.X.. * g|
|00004d80| 65 74 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |et the p|assword |
|00004d90| 66 72 6f 6d 20 68 65 72 | 2c 20 61 6e 64 20 73 65 |from her|, and se|
|00004da0| 74 20 74 68 65 20 73 61 | 6c 74 20 66 6f 72 0a 58 |t the sa|lt for.X|
|00004db0| 09 09 20 2a 20 74 68 65 | 20 64 65 63 72 79 70 74 |.. * the| decrypt|
|00004dc0| 69 6f 6e 20 66 72 6f 6d | 20 74 68 65 20 67 72 6f |ion from| the gro|
|00004dd0| 75 70 20 66 69 6c 65 2e | 0a 58 09 09 20 2a 2f 0a |up file.|.X.. */.|
|00004de0| 58 0a 58 09 09 09 69 66 | 20 28 21 20 28 63 70 20 |X.X...if| (! (cp |
|00004df0| 3d 20 67 65 74 70 61 73 | 73 20 28 22 50 61 73 73 |= getpas|s ("Pass|
|00004e00| 77 6f 72 64 3a 22 29 29 | 29 0a 58 09 09 09 09 67 |word:"))|).X....g|
|00004e10| 6f 74 6f 20 66 61 69 6c | 75 72 65 3b 0a 58 0a 58 |oto fail|ure;.X.X|
|00004e20| 09 09 09 73 74 72 63 70 | 79 20 28 70 61 73 73 77 |...strcp|y (passw|
|00004e30| 64 2c 20 63 70 29 3b 0a | 58 09 09 09 73 61 6c 74 |d, cp);.|X...salt|
|00004e40| 20 3d 20 67 72 70 2d 3e | 67 72 5f 70 61 73 73 77 | = grp->|gr_passw|
|00004e50| 64 3b 0a 58 09 09 7d 20 | 65 6c 73 65 20 7b 0a 58 |d;.X..} |else {.X|
|00004e60| 0a 58 09 09 2f 2a 0a 58 | 09 09 20 2a 20 74 68 65 |.X../*.X|.. * the|
|00004e70| 72 65 20 69 73 20 6e 6f | 20 70 61 73 73 77 6f 72 |re is no| passwor|
|00004e80| 64 2c 20 70 72 69 6e 74 | 20 6f 75 74 20 22 53 6f |d, print| out "So|
|00004e90| 72 72 79 22 20 61 6e 64 | 20 67 69 76 65 20 75 70 |rry" and| give up|
|00004ea0| 0a 58 09 09 20 2a 2f 0a | 58 0a 58 09 09 09 66 70 |.X.. */.|X.X...fp|
|00004eb0| 75 74 73 20 28 22 53 6f | 72 72 79 5c 6e 22 2c 20 |uts ("So|rry\n", |
|00004ec0| 73 74 64 65 72 72 29 3b | 0a 58 09 09 09 67 6f 74 |stderr);|.X...got|
|00004ed0| 6f 20 66 61 69 6c 75 72 | 65 3b 0a 58 09 09 7d 0a |o failur|e;.X..}.|
|00004ee0| 58 0a 58 09 09 2f 2a 0a | 58 09 09 20 2a 20 65 6e |X.X../*.|X.. * en|
|00004ef0| 63 72 79 70 74 20 74 68 | 65 20 6b 65 79 20 73 68 |crypt th|e key sh|
|00004f00| 65 20 67 61 76 65 20 75 | 73 20 75 73 69 6e 67 20 |e gave u|s using |
|00004f10| 74 68 65 20 73 61 6c 74 | 20 66 72 6f 6d 0a 58 09 |the salt| from.X.|
|00004f20| 09 20 2a 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 |. * the |password|
|00004f30| 20 69 6e 20 74 68 65 20 | 67 72 6f 75 70 20 66 69 | in the |group fi|
|00004f40| 6c 65 2e 20 20 74 68 65 | 20 72 65 73 75 6c 74 20 |le. the| result |
|00004f50| 6f 66 0a 58 09 09 20 2a | 20 74 68 69 73 20 65 6e |of.X.. *| this en|
|00004f60| 63 72 79 70 74 69 6f 6e | 20 6d 75 73 74 20 6d 61 |cryption| must ma|
|00004f70| 74 63 68 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |tch the |previous|
|00004f80| 6c 79 0a 58 09 09 20 2a | 20 65 6e 63 72 79 70 74 |ly.X.. *| encrypt|
|00004f90| 65 64 20 76 61 6c 75 65 | 20 69 6e 20 74 68 65 20 |ed value| in the |
|00004fa0| 66 69 6c 65 2e 0a 58 09 | 09 20 2a 2f 0a 58 0a 58 |file..X.|. */.X.X|
|00004fb0| 09 09 63 70 61 73 73 77 | 64 20 3d 20 70 77 5f 65 |..cpassw|d = pw_e|
|00004fc0| 6e 63 72 79 70 74 20 28 | 70 61 73 73 77 64 2c 20 |ncrypt (|passwd, |
|00004fd0| 73 61 6c 74 29 3b 0a 58 | 0a 58 09 09 69 66 20 28 |salt);.X|.X..if (|
|00004fe0| 73 74 72 63 6d 70 20 28 | 63 70 61 73 73 77 64 2c |strcmp (|cpasswd,|
|00004ff0| 20 67 72 70 2d 3e 67 72 | 5f 70 61 73 73 77 64 29 | grp->gr|_passwd)|
|00005000| 20 21 3d 20 30 29 20 7b | 0a 58 09 09 09 66 70 75 | != 0) {|.X...fpu|
|00005010| 74 73 20 28 22 53 6f 72 | 72 79 5c 6e 22 2c 20 73 |ts ("Sor|ry\n", s|
|00005020| 74 64 65 72 72 29 3b 0a | 58 09 09 09 67 6f 74 6f |tderr);.|X...goto|
|00005030| 20 66 61 69 6c 75 72 65 | 3b 0a 58 09 09 7d 0a 58 | failure|;.X..}.X|
|00005040| 09 7d 0a 58 0a 58 09 2f | 2a 0a 58 09 20 2a 20 61 |.}.X.X./|*.X. * a|
|00005050| 6c 6c 20 73 75 63 63 65 | 73 73 66 75 6c 20 76 61 |ll succe|ssful va|
|00005060| 6c 69 64 61 74 69 6f 6e | 73 20 70 61 73 73 20 74 |lidation|s pass t|
|00005070| 68 72 6f 75 67 68 20 74 | 68 69 73 20 70 6f 69 6e |hrough t|his poin|
|00005080| 74 2e 20 20 74 68 65 0a | 58 09 20 2a 20 67 72 6f |t. the.|X. * gro|
|00005090| 75 70 20 69 64 20 77 69 | 6c 6c 20 62 65 20 73 65 |up id wi|ll be se|
|000050a0| 74 2c 20 61 6e 64 20 74 | 68 65 20 67 72 6f 75 70 |t, and t|he group|
|000050b0| 20 61 64 64 65 64 20 74 | 6f 20 74 68 65 20 63 6f | added t|o the co|
|000050c0| 6e 63 75 72 72 65 6e 74 | 0a 58 09 20 2a 20 67 72 |ncurrent|.X. * gr|
|000050d0| 6f 75 70 73 65 74 2e 0a | 58 09 20 2a 2f 0a 58 0a |oupset..|X. */.X.|
|000050e0| 58 09 67 69 64 20 3d 20 | 67 72 70 2d 3e 67 72 5f |X.gid = |grp->gr_|
|000050f0| 67 69 64 3b 0a 58 23 69 | 66 64 65 66 09 4e 47 52 |gid;.X#i|fdef.NGR|
|00005100| 4f 55 50 53 0a 58 0a 58 | 09 2f 2a 0a 58 09 20 2a |OUPS.X.X|./*.X. *|
|00005110| 20 69 20 61 6d 20 67 6f | 69 6e 67 20 74 6f 20 74 | i am go|ing to t|
|00005120| 72 79 20 74 6f 20 61 64 | 64 20 68 65 72 20 6e 65 |ry to ad|d her ne|
|00005130| 77 20 67 72 6f 75 70 20 | 69 64 20 74 6f 20 68 65 |w group |id to he|
|00005140| 72 20 63 6f 6e 63 75 72 | 72 65 6e 74 0a 58 09 20 |r concur|rent.X. |
|00005150| 2a 20 67 72 6f 75 70 20 | 73 65 74 2e 20 20 69 66 |* group |set. if|
|00005160| 20 74 68 65 20 67 72 6f | 75 70 20 69 64 20 69 73 | the gro|up id is|
|00005170| 20 61 6c 72 65 61 64 79 | 20 70 72 65 73 65 6e 74 | already| present|
|00005180| 20 69 27 6c 6c 20 6a 75 | 73 74 0a 58 09 20 2a 20 | i'll ju|st.X. * |
|00005190| 73 6b 69 70 20 74 68 69 | 73 20 70 61 72 74 2e 20 |skip thi|s part. |
|000051a0| 20 69 66 20 74 68 65 20 | 67 72 6f 75 70 20 64 6f | if the |group do|
|000051b0| 65 73 6e 27 74 20 66 69 | 74 2c 20 69 27 6c 6c 20 |esn't fi|t, i'll |
|000051c0| 63 6f 6d 70 6c 61 69 6e | 0a 58 09 20 2a 20 6c 6f |complain|.X. * lo|
|000051d0| 75 64 6c 79 20 61 6e 64 | 20 73 6b 69 70 20 74 68 |udly and| skip th|
|000051e0| 69 73 20 70 61 72 74 20 | 2e 2e 2e 0a 58 09 20 2a |is part |....X. *|
|000051f0| 2f 0a 58 0a 58 09 66 6f | 72 20 28 69 20 3d 20 30 |/.X.X.fo|r (i = 0|
|00005200| 3b 69 20 3c 20 6e 67 72 | 6f 75 70 73 3b 69 2b 2b |;i < ngr|oups;i++|
|00005210| 29 20 7b 0a 58 09 09 69 | 66 20 28 67 69 64 20 3d |) {.X..i|f (gid =|
|00005220| 3d 20 67 72 6f 75 70 73 | 5b 69 5d 29 0a 58 09 09 |= groups|[i]).X..|
|00005230| 09 62 72 65 61 6b 3b 0a | 58 09 7d 0a 58 09 69 66 |.break;.|X.}.X.if|
|00005240| 20 28 69 20 3d 3d 20 6e | 67 72 6f 75 70 73 29 20 | (i == n|groups) |
|00005250| 7b 0a 58 09 09 69 66 20 | 28 6e 67 72 6f 75 70 73 |{.X..if |(ngroups|
|00005260| 20 3d 3d 20 4e 47 52 4f | 55 50 53 29 20 7b 0a 58 | == NGRO|UPS) {.X|
|00005270| 09 09 09 66 70 72 69 6e | 74 66 20 28 73 74 64 65 |...fprin|tf (stde|
|00005280| 72 72 2c 20 22 74 6f 6f | 20 6d 61 6e 79 20 67 72 |rr, "too| many gr|
|00005290| 6f 75 70 73 5c 6e 22 29 | 3b 0a 58 09 09 7d 20 65 |oups\n")|;.X..} e|
|000052a0| 6c 73 65 20 7b 0a 58 09 | 09 09 67 72 6f 75 70 73 |lse {.X.|..groups|
|000052b0| 5b 6e 67 72 6f 75 70 73 | 2b 2b 5d 20 3d 20 67 69 |[ngroups|++] = gi|
|000052c0| 64 3b 0a 58 09 09 09 69 | 66 20 28 73 65 74 67 72 |d;.X...i|f (setgr|
|000052d0| 6f 75 70 73 20 28 6e 67 | 72 6f 75 70 73 2c 20 67 |oups (ng|roups, g|
|000052e0| 72 6f 75 70 73 29 29 20 | 7b 0a 58 09 09 09 09 66 |roups)) |{.X....f|
|000052f0| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00005300| 22 25 73 3a 20 22 2c 20 | 50 72 6f 67 29 3b 0a 58 |"%s: ", |Prog);.X|
|00005310| 09 09 09 09 70 65 72 72 | 6f 72 20 28 22 75 6e 61 |....perr|or ("una|
|00005320| 62 6c 65 20 74 6f 20 73 | 65 74 20 67 72 6f 75 70 |ble to s|et group|
|00005330| 73 22 29 3b 0a 58 09 09 | 09 7d 0a 58 09 09 7d 0a |s");.X..|.}.X..}.|
|00005340| 58 09 7d 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 09 |X.}.X#en|dif.X.X.|
|00005350| 2f 2a 0a 58 09 20 2a 20 | 74 68 69 73 20 69 73 20 |/*.X. * |this is |
|00005360| 77 68 65 72 65 20 61 6c | 6c 20 66 61 69 6c 75 72 |where al|l failur|
|00005370| 65 73 20 6c 61 6e 64 2e | 20 20 74 68 65 20 67 72 |es land.| the gr|
|00005380| 6f 75 70 20 69 64 20 77 | 69 6c 6c 20 6e 6f 74 0a |oup id w|ill not.|
|00005390| 58 09 20 2a 20 68 61 76 | 65 20 62 65 65 6e 20 73 |X. * hav|e been s|
|000053a0| 65 74 2c 20 73 6f 20 74 | 68 65 20 73 65 74 67 69 |et, so t|he setgi|
|000053b0| 64 28 29 20 62 65 6c 6f | 77 20 77 69 6c 6c 20 73 |d() belo|w will s|
|000053c0| 65 74 20 6d 65 20 74 6f | 20 74 68 65 0a 58 09 20 |et me to| the.X. |
|000053d0| 2a 20 6f 72 69 67 69 6e | 61 6c 20 67 72 6f 75 70 |* origin|al group|
|000053e0| 20 69 64 20 69 20 68 61 | 64 20 77 68 65 6e 20 69 | id i ha|d when i|
|000053f0| 20 77 61 73 20 69 6e 76 | 6f 6b 65 64 2e 0a 58 09 | was inv|oked..X.|
|00005400| 20 2a 2f 0a 58 0a 58 66 | 61 69 6c 75 72 65 3a 0a | */.X.Xf|ailure:.|
|00005410| 58 0a 58 09 2f 2a 0a 58 | 09 20 2a 20 69 20 73 65 |X.X./*.X|. * i se|
|00005420| 74 20 68 65 72 20 67 72 | 6f 75 70 20 69 64 20 65 |t her gr|oup id e|
|00005430| 69 74 68 65 72 20 74 6f | 20 74 68 65 20 76 61 6c |ither to| the val|
|00005440| 75 65 20 73 68 65 20 72 | 65 71 75 65 73 74 65 64 |ue she r|equested|
|00005450| 2c 20 6f 72 0a 58 09 20 | 2a 20 74 6f 20 74 68 65 |, or.X. |* to the|
|00005460| 20 6f 72 69 67 69 6e 61 | 6c 20 76 61 6c 75 65 2e | origina|l value.|
|00005470| 20 20 69 20 68 61 76 65 | 20 74 6f 20 67 6f 20 62 | i have| to go b|
|00005480| 61 63 6b 20 74 6f 20 74 | 68 65 20 6f 72 69 67 69 |ack to t|he origi|
|00005490| 6e 61 6c 0a 58 09 20 2a | 20 62 65 63 61 75 73 65 |nal.X. *| because|
|000054a0| 20 73 68 65 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 68 | she no |longer h|
|000054b0| 61 73 20 61 20 73 68 65 | 6c 6c 20 72 75 6e 6e 69 |as a she|ll runni|
|000054c0| 6e 67 2e 0a 58 09 20 2a | 2f 0a 58 0a 58 09 69 66 |ng..X. *|/.X.X.if|
|000054d0| 20 28 73 65 74 67 69 64 | 20 28 67 69 64 29 29 0a | (setgid| (gid)).|
|000054e0| 58 09 09 70 65 72 72 6f | 72 20 28 22 73 65 74 67 |X..perro|r ("setg|
|000054f0| 69 64 22 29 3b 0a 58 0a | 58 09 69 66 20 28 73 65 |id");.X.|X.if (se|
|00005500| 74 75 69 64 20 28 67 65 | 74 75 69 64 20 28 29 29 |tuid (ge|tuid ())|
|00005510| 29 0a 58 09 09 70 65 72 | 72 6f 72 20 28 22 73 65 |).X..per|ror ("se|
|00005520| 74 75 69 64 22 29 3b 0a | 58 0a 58 09 2f 2a 0a 58 |tuid");.|X.X./*.X|
|00005530| 09 20 2a 20 69 20 68 61 | 76 65 20 74 6f 20 67 65 |. * i ha|ve to ge|
|00005540| 74 20 74 68 65 20 70 61 | 74 68 6e 61 6d 65 20 6f |t the pa|thname o|
|00005550| 66 20 68 65 72 20 6c 6f | 67 69 6e 20 73 68 65 6c |f her lo|gin shel|
|00005560| 6c 2e 20 20 61 73 20 61 | 20 66 61 76 6f 72 0a 58 |l. as a| favor.X|
|00005570| 09 20 2a 20 69 27 6c 6c | 20 74 72 79 20 68 65 72 |. * i'll| try her|
|00005580| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 66 6f 72 | environ|ment for|
|00005590| 20 61 20 24 53 48 45 4c | 4c 20 76 61 6c 75 65 20 | a $SHEL|L value |
|000055a0| 66 69 72 73 74 2c 20 61 | 6e 64 0a 58 09 20 2a 20 |first, a|nd.X. * |
|000055b0| 74 68 65 6e 20 74 72 79 | 20 74 68 65 20 70 61 73 |then try| the pas|
|000055c0| 73 77 6f 72 64 20 66 69 | 6c 65 20 65 6e 74 72 79 |sword fi|le entry|
|000055d0| 2e 0a 58 09 20 2a 2f 0a | 58 0a 58 09 69 66 20 28 |..X. */.|X.X.if (|
|000055e0| 21 20 69 6e 69 74 66 6c | 61 67 20 26 26 20 28 63 |! initfl|ag && (c|
|000055f0| 70 20 3d 20 67 65 74 65 | 6e 76 20 28 22 53 48 45 |p = gete|nv ("SHE|
|00005600| 4c 4c 22 29 29 29 0a 58 | 09 09 73 74 72 6e 63 70 |LL"))).X|..strncp|
|00005610| 79 20 28 70 72 6f 67 2c | 20 63 70 2c 20 73 69 7a |y (prog,| cp, siz|
|00005620| 65 6f 66 20 70 72 6f 67 | 29 3b 0a 58 09 65 6c 73 |eof prog|);.X.els|
|00005630| 65 20 69 66 20 28 70 77 | 64 2d 3e 70 77 5f 73 68 |e if (pw|d->pw_sh|
|00005640| 65 6c 6c 20 26 26 20 70 | 77 64 2d 3e 70 77 5f 73 |ell && p|wd->pw_s|
|00005650| 68 65 6c 6c 5b 30 5d 29 | 0a 58 09 09 73 74 72 6e |hell[0])|.X..strn|
|00005660| 63 70 79 20 28 70 72 6f | 67 2c 20 70 77 64 2d 3e |cpy (pro|g, pwd->|
|00005670| 70 77 5f 73 68 65 6c 6c | 2c 20 73 69 7a 65 6f 66 |pw_shell|, sizeof|
|00005680| 20 70 72 6f 67 29 3b 0a | 58 09 65 6c 73 65 0a 58 | prog);.|X.else.X|
|00005690| 09 09 73 74 72 63 70 79 | 20 28 70 72 6f 67 2c 20 |..strcpy| (prog, |
|000056a0| 22 2f 62 69 6e 2f 73 68 | 22 29 3b 0a 58 0a 58 09 |"/bin/sh|");.X.X.|
|000056b0| 2f 2a 0a 58 09 20 2a 20 | 6e 6f 77 20 69 20 74 72 |/*.X. * |now i tr|
|000056c0| 79 20 74 6f 20 66 69 6e | 64 20 74 68 65 20 62 61 |y to fin|d the ba|
|000056d0| 73 65 6e 61 6d 65 20 6f | 66 20 74 68 65 20 6c 6f |sename o|f the lo|
|000056e0| 67 69 6e 20 73 68 65 6c | 6c 2e 20 20 74 68 69 73 |gin shel|l. this|
|000056f0| 0a 58 09 20 2a 20 77 69 | 6c 6c 20 62 65 63 6f 6d |.X. * wi|ll becom|
|00005700| 65 20 61 72 67 76 5b 30 | 5d 20 6f 66 20 74 68 65 |e argv[0|] of the|
|00005710| 20 73 70 61 77 6e 65 64 | 20 63 6f 6d 6d 61 6e 64 | spawned| command|
|00005720| 2e 0a 58 09 20 2a 2f 0a | 58 0a 58 09 69 66 20 28 |..X. */.|X.X.if (|
|00005730| 63 70 20 3d 20 73 74 72 | 72 63 68 72 20 28 70 72 |cp = str|rchr (pr|
|00005740| 6f 67 2c 20 27 2f 27 29 | 29 0a 58 09 09 63 70 2b |og, '/')|).X..cp+|
|00005750| 2b 3b 0a 58 09 65 6c 73 | 65 0a 58 09 09 63 70 20 |+;.X.els|e.X..cp |
|00005760| 3d 20 70 72 6f 67 3b 0a | 58 0a 58 09 2f 2a 0a 58 |= prog;.|X.X./*.X|
|00005770| 09 20 2a 20 74 6f 20 68 | 61 76 65 20 74 68 65 20 |. * to h|ave the |
|00005780| 73 68 65 6c 6c 20 70 65 | 72 66 6f 72 6d 20 6c 6f |shell pe|rform lo|
|00005790| 67 69 6e 20 70 72 6f 63 | 65 73 73 69 6e 67 20 69 |gin proc|essing i|
|000057a0| 20 77 69 6c 6c 20 73 65 | 74 20 74 68 65 0a 58 09 | will se|t the.X.|
|000057b0| 20 2a 20 66 69 72 73 74 | 20 63 68 61 72 61 63 74 | * first| charact|
|000057c0| 65 72 20 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |er in th|e first |
|000057d0| 61 72 67 75 6d 65 6e 74 | 20 74 6f 20 61 20 22 2d |argument| to a "-|
|000057e0| 22 2e 0a 58 09 20 2a 2f | 0a 58 0a 58 09 69 66 20 |"..X. */|.X.X.if |
|000057f0| 28 69 6e 69 74 66 6c 61 | 67 29 0a 58 09 09 73 74 |(initfla|g).X..st|
|00005800| 72 63 61 74 20 28 73 74 | 72 63 70 79 20 28 62 61 |rcat (st|rcpy (ba|
|00005810| 73 65 2c 20 22 2d 22 29 | 2c 20 63 70 29 3b 0a 58 |se, "-")|, cp);.X|
|00005820| 09 65 6c 73 65 0a 58 09 | 09 73 74 72 63 70 79 20 |.else.X.|.strcpy |
|00005830| 28 62 61 73 65 2c 20 63 | 70 29 3b 0a 58 0a 58 23 |(base, c|p);.X.X#|
|00005840| 69 66 64 65 66 09 53 48 | 41 44 4f 57 50 57 44 0a |ifdef.SH|ADOWPWD.|
|00005850| 58 09 65 6e 64 73 70 65 | 6e 74 20 28 29 3b 0a 58 |X.endspe|nt ();.X|
|00005860| 23 65 6e 64 69 66 0a 58 | 09 65 6e 64 70 77 65 6e |#endif.X|.endpwen|
|00005870| 74 20 28 29 3b 0a 58 09 | 65 6e 64 67 72 65 6e 74 |t ();.X.|endgrent|
|00005880| 20 28 29 3b 0a 58 0a 58 | 09 2f 2a 0a 58 09 20 2a | ();.X.X|./*.X. *|
|00005890| 20 73 77 69 74 63 68 20 | 62 61 63 6b 20 74 6f 20 | switch |back to |
|000058a0| 68 65 72 20 68 6f 6d 65 | 20 64 69 72 65 63 74 6f |her home| directo|
|000058b0| 72 79 20 69 66 20 69 20 | 61 6d 20 64 6f 69 6e 67 |ry if i |am doing|
|000058c0| 20 6c 6f 67 69 6e 0a 58 | 09 20 2a 20 69 6e 69 74 | login.X|. * init|
|000058d0| 69 61 6c 69 7a 61 74 69 | 6f 6e 2e 0a 58 09 20 2a |ializati|on..X. *|
|000058e0| 2f 0a 58 0a 58 09 69 66 | 20 28 69 6e 69 74 66 6c |/.X.X.if| (initfl|
|000058f0| 61 67 29 20 7b 0a 58 09 | 09 63 68 64 69 72 20 28 |ag) {.X.|.chdir (|
|00005900| 70 77 64 2d 3e 70 77 5f | 64 69 72 29 3b 0a 58 09 |pwd->pw_|dir);.X.|
|00005910| 09 77 68 69 6c 65 20 28 | 2a 65 6e 76 70 29 20 7b |.while (|*envp) {|
|00005920| 0a 58 09 09 09 69 66 20 | 28 73 74 72 6e 63 6d 70 |.X...if |(strncmp|
|00005930| 20 28 2a 65 6e 76 70 2c | 20 22 50 41 54 48 3d 22 | (*envp,| "PATH="|
|00005940| 2c 20 35 29 20 3d 3d 20 | 30 20 7c 7c 0a 58 09 09 |, 5) == |0 ||.X..|
|00005950| 09 09 09 73 74 72 6e 63 | 6d 70 20 28 2a 65 6e 76 |...strnc|mp (*env|
|00005960| 70 2c 20 22 48 4f 4d 45 | 3d 22 2c 20 35 29 20 3d |p, "HOME|=", 5) =|
|00005970| 3d 20 30 20 7c 7c 0a 58 | 09 09 09 09 09 73 74 72 |= 0 ||.X|.....str|
|00005980| 6e 63 6d 70 20 28 2a 65 | 6e 76 70 2c 20 22 53 48 |ncmp (*e|nvp, "SH|
|00005990| 45 4c 4c 3d 22 2c 20 36 | 29 20 3d 3d 20 30 29 0a |ELL=", 6|) == 0).|
|000059a0| 58 09 09 09 09 61 64 64 | 65 6e 76 20 28 2a 65 6e |X....add|env (*en|
|000059b0| 76 70 29 3b 0a 58 0a 58 | 09 09 09 65 6e 76 70 2b |vp);.X.X|...envp+|
|000059c0| 2b 3b 0a 58 09 09 7d 0a | 58 09 7d 20 65 6c 73 65 |+;.X..}.|X.} else|
|000059d0| 20 7b 0a 58 09 09 77 68 | 69 6c 65 20 28 2a 65 6e | {.X..wh|ile (*en|
|000059e0| 76 70 29 0a 58 09 09 09 | 61 64 64 65 6e 76 20 28 |vp).X...|addenv (|
|000059f0| 2a 65 6e 76 70 2b 2b 29 | 3b 0a 58 09 7d 0a 58 0a |*envp++)|;.X.}.X.|
|00005a00| 58 09 2f 2a 0a 58 09 20 | 2a 20 65 78 65 63 20 74 |X./*.X. |* exec t|
|00005a10| 68 65 20 6c 6f 67 69 6e | 20 73 68 65 6c 6c 20 61 |he login| shell a|
|00005a20| 6e 64 20 67 6f 20 61 77 | 61 79 2e 0a 58 09 20 2a |nd go aw|ay..X. *|
|00005a30| 2f 0a 58 0a 58 09 73 68 | 65 6c 6c 20 28 70 72 6f |/.X.X.sh|ell (pro|
|00005a40| 67 2c 20 62 61 73 65 29 | 3b 0a 58 09 2f 2a 4e 4f |g, base)|;.X./*NO|
|00005a50| 54 52 45 41 43 48 45 44 | 2a 2f 0a 58 7d 0a 53 48 |TREACHED|*/.X}.SH|
|00005a60| 41 52 5f 45 4f 46 0a 69 | 66 20 74 65 73 74 20 38 |AR_EOF.i|f test 8|
|00005a70| 35 37 36 20 2d 6e 65 20 | 22 60 77 63 20 2d 63 20 |576 -ne |"`wc -c |
|00005a80| 3c 20 27 6e 65 77 67 72 | 70 2e 63 27 60 22 0a 74 |< 'newgr|p.c'`".t|
|00005a90| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00005aa0| 22 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 |"error t|ransmitt|
|00005ab0| 69 6e 67 20 27 6e 65 77 | 67 72 70 2e 63 27 22 20 |ing 'new|grp.c'" |
|00005ac0| 27 28 73 68 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |'(should| have be|
|00005ad0| 65 6e 20 38 35 37 36 20 | 63 68 61 72 61 63 74 65 |en 8576 |characte|
|00005ae0| 72 73 29 27 0a 66 69 0a | 66 69 0a 65 63 68 6f 20 |rs)'.fi.|fi.echo |
|00005af0| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|00005b00| 67 20 27 4d 61 6b 65 66 | 69 6c 65 27 22 20 27 28 |g 'Makef|ile'" '(|
|00005b10| 31 31 33 31 35 20 63 68 | 61 72 61 63 74 65 72 73 |11315 ch|aracters|
|00005b20| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 4d |)'.if te|st -f 'M|
|00005b30| 61 6b 65 66 69 6c 65 27 | 0a 74 68 65 6e 0a 09 65 |akefile'|.then..e|
|00005b40| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00005b50| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00005b60| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 4d 61 |xisting |file 'Ma|
|00005b70| 6b 65 66 69 6c 65 27 22 | 0a 65 6c 73 65 0a 73 65 |kefile'"|.else.se|
|00005b80| 64 20 27 73 2f 5e 58 2f | 2f 27 20 3c 3c 20 5c 53 |d 's/^X/|/' << \S|
|00005b90| 48 41 52 5f 45 4f 46 20 | 3e 20 27 4d 61 6b 65 66 |HAR_EOF |> 'Makef|
|00005ba0| 69 6c 65 27 0a 58 23 0a | 58 23 20 43 6f 70 79 72 |ile'.X#.|X# Copyr|
|00005bb0| 69 67 68 74 20 31 39 38 | 38 2c 31 39 38 39 2c 31 |ight 198|8,1989,1|
|00005bc0| 39 39 30 2c 20 4a 6f 68 | 6e 20 46 2e 20 48 61 75 |990, Joh|n F. Hau|
|00005bd0| 67 68 20 49 49 0a 58 23 | 20 41 6c 6c 20 72 69 67 |gh II.X#| All rig|
|00005be0| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0a 58 23 |hts rese|rved..X#|
|00005bf0| 0a 58 23 20 50 65 72 6d | 69 73 73 69 6f 6e 20 69 |.X# Perm|ission i|
|00005c00| 73 20 67 72 61 6e 74 65 | 64 20 74 6f 20 63 6f 70 |s grante|d to cop|
|00005c10| 79 20 61 6e 64 20 63 72 | 65 61 74 65 20 64 65 72 |y and cr|eate der|
|00005c20| 69 76 61 74 69 76 65 20 | 77 6f 72 6b 73 20 66 6f |ivative |works fo|
|00005c30| 72 20 61 6e 79 0a 58 23 | 20 6e 6f 6e 2d 63 6f 6d |r any.X#| non-com|
|00005c40| 6d 65 72 63 69 61 6c 20 | 70 75 72 70 6f 73 65 2c |mercial |purpose,|
|00005c50| 20 70 72 6f 76 69 64 65 | 64 20 74 68 69 73 20 63 | provide|d this c|
|00005c60| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 20 |opyright| notice |
|00005c70| 69 73 20 70 72 65 73 65 | 72 76 65 64 0a 58 23 20 |is prese|rved.X# |
|00005c80| 69 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 20 6f 66 |in all c|opies of|
|00005c90| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2c 20 6f 72 | source |code, or|
|00005ca0| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 68 75 6d | include|d in hum|
|00005cb0| 61 6e 20 72 65 61 64 61 | 62 6c 65 20 66 6f 72 6d |an reada|ble form|
|00005cc0| 0a 58 23 20 61 6e 64 20 | 63 6f 6e 73 70 69 63 75 |.X# and |conspicu|
|00005cd0| 6f 75 73 6c 79 20 64 69 | 73 70 6c 61 79 65 64 20 |ously di|splayed |
|00005ce0| 6f 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 20 6f 66 |on all c|opies of|
|00005cf0| 20 6f 62 6a 65 63 74 20 | 63 6f 64 65 20 6f 72 0a | object |code or.|
|00005d00| 58 23 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |X# distr|ibution |
|00005d10| 6d 65 64 69 61 2e 0a 58 | 23 0a 58 23 09 25 57 25 |media..X|#.X#.%W%|
|00005d20| 09 25 55 25 20 20 2d 20 | 53 68 61 64 6f 77 20 70 |.%U% - |Shadow p|
|00005d30| 61 73 73 77 6f 72 64 20 | 73 79 73 74 65 6d 0a 58 |assword |system.X|
|00005d40| 23 0a 58 23 09 25 57 25 | 09 25 55 25 09 25 47 25 |#.X#.%W%|.%U%.%G%|
|00005d50| 0a 58 23 0a 58 53 48 45 | 4c 4c 20 3d 20 2f 62 69 |.X#.XSHE|LL = /bi|
|00005d60| 6e 2f 73 68 0a 58 0a 58 | 23 0a 58 23 20 53 65 74 |n/sh.X.X|#.X# Set|
|00005d70| 20 74 68 69 73 20 66 6c | 61 67 20 74 6f 20 64 65 | this fl|ag to de|
|00005d80| 63 69 64 65 20 77 68 61 | 74 20 6c 65 76 65 6c 20 |cide wha|t level |
|00005d90| 6f 66 20 63 6f 64 65 20 | 22 67 65 74 22 20 72 65 |of code |"get" re|
|00005da0| 74 75 72 6e 73 2e 0a 58 | 23 20 54 68 65 20 62 61 |turns..X|# The ba|
|00005db0| 73 65 20 55 53 45 4e 45 | 54 20 72 65 6c 65 61 73 |se USENE|T releas|
|00005dc0| 65 20 77 61 73 20 72 65 | 6c 65 61 73 65 20 31 2e |e was re|lease 1.|
|00005dd0| 20 20 49 74 20 69 73 20 | 6e 6f 20 6c 6f 6e 67 65 | It is |no longe|
|00005de0| 72 20 73 75 70 70 6f 72 | 74 65 64 2e 0a 58 23 20 |r suppor|ted..X# |
|00005df0| 54 68 65 20 76 65 72 73 | 69 6f 6e 20 77 69 74 68 |The vers|ion with|
|00005e00| 20 74 68 65 20 75 74 69 | 6c 69 74 69 65 73 20 61 | the uti|lities a|
|00005e10| 64 64 65 64 20 77 61 73 | 20 72 65 6c 65 61 73 65 |dded was| release|
|00005e20| 20 32 2e 0a 58 23 20 54 | 68 65 20 75 6e 72 65 6c | 2..X# T|he unrel|
|00005e30| 65 61 73 65 64 20 76 65 | 72 73 69 6f 6e 20 77 69 |eased ve|rsion wi|
|00005e40| 74 68 20 64 61 74 61 62 | 61 73 65 2d 6c 69 6b 65 |th datab|ase-like|
|00005e50| 20 66 69 6c 65 20 61 63 | 63 65 73 73 20 69 73 20 | file ac|cess is |
|00005e60| 72 65 6c 65 61 73 65 20 | 33 2e 0a 58 52 45 4c 45 |release |3..XRELE|
|00005e70| 41 53 45 20 3d 20 33 0a | 58 47 46 4c 41 47 53 20 |ASE = 3.|XGFLAGS |
|00005e80| 3d 20 2d 74 20 2d 72 24 | 28 52 45 4c 45 41 53 45 |= -t -r$|(RELEASE|
|00005e90| 29 0a 58 0a 58 23 20 44 | 65 66 69 6e 65 20 74 68 |).X.X# D|efine th|
|00005ea0| 65 20 64 69 72 65 63 74 | 6f 72 79 20 6c 6f 67 69 |e direct|ory logi|
|00005eb0| 6e 20 69 73 20 63 6f 70 | 69 65 64 20 74 6f 2e 20 |n is cop|ied to. |
|00005ec0| 20 42 45 20 56 45 52 59 | 20 43 41 52 45 46 55 4c | BE VERY| CAREFUL|
|00005ed0| 21 21 21 0a 58 23 20 4c | 4f 47 49 4e 44 49 52 20 |!!!.X# L|OGINDIR |
|00005ee0| 3d 20 2f 62 69 6e 0a 58 | 4c 4f 47 49 4e 44 49 52 |= /bin.X|LOGINDIR|
|00005ef0| 20 3d 20 2f 65 74 63 0a | 58 0a 58 23 20 50 69 63 | = /etc.|X.X# Pic|
|00005f00| 6b 20 79 6f 75 72 20 66 | 61 76 6f 72 69 74 65 20 |k your f|avorite |
|00005f10| 43 20 63 6f 6d 70 69 6c | 65 72 20 61 6e 64 20 74 |C compil|er and t|
|00005f20| 61 67 73 20 63 6f 6d 6d | 61 6e 64 0a 58 43 43 20 |ags comm|and.XCC |
|00005f30| 3d 20 63 63 0a 58 54 41 | 47 53 20 3d 20 63 74 61 |= cc.XTA|GS = cta|
|00005f40| 67 73 0a 58 0a 58 23 20 | 4f 53 2e 20 20 43 75 72 |gs.X.X# |OS. Cur|
|00005f50| 72 65 6e 74 6c 79 20 6f | 6e 6c 79 20 42 53 44 20 |rently o|nly BSD |
|00005f60| 61 6e 64 20 55 53 47 20 | 61 72 65 20 64 65 66 69 |and USG |are defi|
|00005f70| 6e 65 64 2e 20 20 49 66 | 20 79 6f 75 20 64 6f 6e |ned. If| you don|
|00005f80| 27 74 20 75 73 65 20 42 | 53 44 2c 0a 58 23 20 55 |'t use B|SD,.X# U|
|00005f90| 53 47 20 28 53 79 73 74 | 65 6d 20 56 29 20 69 73 |SG (Syst|em V) is|
|00005fa0| 20 61 73 73 75 6d 65 64 | 2e 0a 58 4f 53 20 3d 20 | assumed|..XOS = |
|00005fb0| 2d 44 55 53 47 0a 58 23 | 20 4f 53 20 3d 20 2d 44 |-DUSG.X#| OS = -D|
|00005fc0| 42 53 44 0a 58 0a 58 23 | 20 44 6f 20 79 6f 75 20 |BSD.X.X#| Do you |
|00005fd0| 68 61 76 65 20 74 6f 20 | 64 6f 20 72 61 6e 6c 69 |have to |do ranli|
|00005fe0| 62 3f 20 20 53 6f 72 72 | 79 20 74 6f 20 68 65 61 |b? Sorr|y to hea|
|00005ff0| 72 20 74 68 61 74 20 2e | 2e 2e 0a 58 52 41 4e 4c |r that .|...XRANL|
|00006000| 49 42 20 3d 20 72 61 6e | 6c 69 62 0a 58 23 20 52 |IB = ran|lib.X# R|
|00006010| 41 4e 4c 49 42 20 3d 20 | 65 63 68 6f 0a 58 0a 58 |ANLIB = |echo.X.X|
|00006020| 23 20 46 6c 61 67 73 20 | 66 6f 72 20 53 43 4f 20 |# Flags |for SCO |
|00006030| 58 65 6e 69 78 2f 33 38 | 36 0a 58 43 46 4c 41 47 |Xenix/38|6.XCFLAG|
|00006040| 53 20 3d 20 2d 4f 20 2d | 4d 33 20 2d 67 20 24 28 |S = -O -|M3 -g $(|
|00006050| 4f 53 29 0a 58 4c 49 42 | 53 20 3d 20 2d 6c 63 72 |OS).XLIB|S = -lcr|
|00006060| 79 70 74 20 2d 6c 6e 64 | 62 6d 0a 58 23 20 4c 49 |ypt -lnd|bm.X# LI|
|00006070| 42 53 20 3d 20 2d 6c 63 | 72 79 70 74 20 2d 6c 64 |BS = -lc|rypt -ld|
|00006080| 62 6d 0a 58 4c 44 46 4c | 41 47 53 20 3d 20 2d 4d |bm.XLDFL|AGS = -M|
|00006090| 33 20 2d 67 0a 58 4c 54 | 46 4c 41 47 53 20 3d 20 |3 -g.XLT|FLAGS = |
|000060a0| 0a 58 23 20 54 68 69 73 | 20 73 68 6f 75 6c 64 20 |.X# This| should |
|000060b0| 62 65 20 53 6c 69 62 73 | 65 63 2e 61 20 66 6f 72 |be Slibs|ec.a for|
|000060c0| 20 73 6d 61 6c 6c 20 6d | 6f 64 65 6c 2c 20 6f 72 | small m|odel, or|
|000060d0| 20 4c 6c 69 62 73 65 63 | 2e 61 20 66 6f 72 0a 58 | Llibsec|.a for.X|
|000060e0| 23 20 6c 61 72 67 65 20 | 6d 6f 64 65 6c 20 6f 72 |# large |model or|
|000060f0| 20 77 68 61 74 65 76 65 | 72 2e 20 20 4d 55 53 54 | whateve|r. MUST|
|00006100| 20 41 47 52 45 45 20 57 | 49 54 48 20 43 46 4c 41 | AGREE W|ITH CFLA|
|00006110| 47 53 21 21 21 0a 58 4c | 49 42 53 45 43 20 3d 20 |GS!!!.XL|IBSEC = |
|00006120| 53 6c 69 62 73 65 63 2e | 61 0a 58 0a 58 23 20 46 |Slibsec.|a.X.X# F|
|00006130| 6c 61 67 73 20 66 6f 72 | 20 6e 6f 72 6d 61 6c 20 |lags for| normal |
|00006140| 6d 61 63 68 69 6e 65 73 | 0a 58 23 20 43 46 4c 41 |machines|.X# CFLA|
|00006150| 47 53 20 3d 20 2d 4f 20 | 2d 67 20 24 28 4f 53 29 |GS = -O |-g $(OS)|
|00006160| 0a 58 23 20 4c 49 42 53 | 20 3d 0a 58 23 20 4c 44 |.X# LIBS| =.X# LD|
|00006170| 46 4c 41 47 53 20 3d 20 | 2d 67 0a 58 23 20 4c 49 |FLAGS = |-g.X# LI|
|00006180| 42 53 45 43 20 3d 20 6c | 69 62 73 65 63 2e 61 0a |BSEC = l|ibsec.a.|
|00006190| 58 0a 58 23 20 4e 61 6d | 65 73 20 66 6f 72 20 72 |X.X# Nam|es for r|
|000061a0| 6f 6f 74 20 75 73 65 72 | 20 61 6e 64 20 67 72 6f |oot user| and gro|
|000061b0| 75 70 2c 20 61 6e 64 20 | 62 69 6e 20 75 73 65 72 |up, and |bin user|
|000061c0| 20 61 6e 64 20 67 72 6f | 75 70 0a 58 52 55 49 44 | and gro|up.XRUID|
|000061d0| 20 3d 20 72 6f 6f 74 0a | 58 52 47 49 44 20 3d 20 | = root.|XRGID = |
|000061e0| 72 6f 6f 74 0a 58 42 55 | 49 44 20 3d 20 62 69 6e |root.XBU|ID = bin|
|000061f0| 0a 58 42 47 49 44 20 3d | 20 62 69 6e 0a 58 0a 58 |.XBGID =| bin.X.X|
|00006200| 23 20 52 75 6c 65 73 20 | 66 6f 72 20 2e 4c 20 28 |# Rules |for .L (|
|00006210| 6c 69 6e 74 29 20 66 69 | 6c 65 73 2e 0a 58 2e 53 |lint) fi|les..X.S|
|00006220| 55 46 46 49 58 45 53 3a | 20 2e 4c 0a 58 4c 49 4e |UFFIXES:| .L.XLIN|
|00006230| 54 20 3d 20 6c 69 6e 74 | 0a 58 4c 49 4e 54 46 4c |T = lint|.XLINTFL|
|00006240| 41 47 53 20 3d 20 24 28 | 4f 53 29 20 2d 44 6c 69 |AGS = $(|OS) -Dli|
|00006250| 6e 74 0a 58 0a 58 2e 63 | 2e 4c 3a 0a 58 09 24 28 |nt.X.X.c|.L:.X.$(|
|00006260| 4c 49 4e 54 29 20 2d 75 | 20 24 28 4c 49 4e 54 46 |LINT) -u| $(LINTF|
|00006270| 4c 41 47 53 29 20 24 2a | 2e 63 20 3e 20 24 2a 2e |LAGS) $*|.c > $*.|
|00006280| 4c 0a 58 0a 58 4c 4f 42 | 4a 53 20 3d 20 6c 6d 61 |L.X.XLOB|JS = lma|
|00006290| 69 6e 2e 6f 20 6c 6f 67 | 69 6e 2e 6f 20 65 6e 76 |in.o log|in.o env|
|000062a0| 2e 6f 20 76 61 6c 69 64 | 2e 6f 20 73 65 74 75 70 |.o valid|.o setup|
|000062b0| 2e 6f 20 73 68 65 6c 6c | 2e 6f 20 61 67 65 2e 6f |.o shell|.o age.o|
|000062c0| 20 5c 0a 58 09 75 74 6d | 70 2e 6f 20 73 75 62 2e | \.X.utm|p.o sub.|
|000062d0| 6f 20 6d 61 69 6c 2e 6f | 20 6d 6f 74 64 2e 6f 20 |o mail.o| motd.o |
|000062e0| 6c 6f 67 2e 6f 20 74 74 | 79 74 79 70 65 2e 6f 20 |log.o tt|ytype.o |
|000062f0| 66 61 69 6c 75 72 65 2e | 6f 0a 58 0a 58 4c 53 52 |failure.|o.X.XLSR|
|00006300| 43 53 20 3d 20 6c 6d 61 | 69 6e 2e 63 20 6c 6f 67 |CS = lma|in.c log|
|00006310| 69 6e 2e 63 20 65 6e 76 | 2e 63 20 76 61 6c 69 64 |in.c env|.c valid|
|00006320| 2e 63 20 73 65 74 75 70 | 2e 63 20 73 68 65 6c 6c |.c setup|.c shell|
|00006330| 2e 63 20 61 67 65 2e 63 | 20 5c 0a 58 09 75 74 6d |.c age.c| \.X.utm|
|00006340| 70 2e 63 20 73 75 62 2e | 63 20 6d 61 69 6c 2e 63 |p.c sub.|c mail.c|
|00006350| 20 6d 6f 74 64 2e 63 20 | 6c 6f 67 2e 63 20 74 74 | motd.c |log.c tt|
|00006360| 79 74 79 70 65 2e 63 20 | 66 61 69 6c 75 72 65 2e |ytype.c |failure.|
|00006370| 63 0a 58 0a 58 53 4f 42 | 4a 53 20 3d 20 73 6d 61 |c.X.XSOB|JS = sma|
|00006380| 69 6e 2e 6f 20 65 6e 76 | 2e 6f 20 65 6e 74 72 79 |in.o env|.o entry|
|00006390| 2e 6f 20 73 75 73 65 74 | 75 70 2e 6f 20 73 68 65 |.o suset|up.o she|
|000063a0| 6c 6c 2e 6f 20 5c 0a 58 | 09 73 75 62 2e 6f 20 6d |ll.o \.X|.sub.o m|
|000063b0| 61 69 6c 2e 6f 20 6d 6f | 74 64 2e 6f 20 73 75 6c |ail.o mo|td.o sul|
|000063c0| 6f 67 2e 6f 20 61 67 65 | 2e 6f 0a 58 0a 58 53 53 |og.o age|.o.X.XSS|
|000063d0| 52 43 53 20 3d 20 73 6d | 61 69 6e 2e 63 20 65 6e |RCS = sm|ain.c en|
|000063e0| 76 2e 63 20 65 6e 74 72 | 79 2e 63 20 73 65 74 75 |v.c entr|y.c setu|
|000063f0| 70 2e 63 20 73 68 65 6c | 6c 2e 63 20 5c 0a 58 09 |p.c shel|l.c \.X.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.