1 2 RCS file: RCS/mkapachepw.py,v 3 Working file: mkapachepw.py 4 head: 1.121 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 22; selected revisions: 22 11 description: 12 Part Of The 'mkapachepw' Project 13 ---------------------------- 14 revision 1.121 15 date: 2005/04/12 07:10:35; author: root; state: Exp; lines: +17 -5 16 Added ability to name output files on command line and use stdout in this context. 17 ---------------------------- 18 revision 1.120 19 date: 2005/04/11 22:11:24; author: root; state: Exp; lines: +4 -4 20 Changed default user output filename to '.htusers'. 21 ---------------------------- 22 revision 1.119 23 date: 2005/04/06 07:59:11; author: toor; state: Exp; lines: +3 -2 24 Another minor help screen formatting change. 25 ---------------------------- 26 revision 1.118 27 date: 2005/04/06 07:57:48; author: toor; state: Exp; lines: +2 -2 28 Minor help screen formatting change. 29 ---------------------------- 30 revision 1.117 31 date: 2005/04/06 07:52:05; author: toor; state: Exp; lines: +77 -20 32 Added -c option to strictly prevent collisions. 33 Added -q option to suppress warning message output. 34 ---------------------------- 35 revision 1.116 36 date: 2005/04/06 06:31:42; author: toor; state: Exp; lines: +45 -41 37 Added -s command line flag to suppress processing of system groups/users. 38 ---------------------------- 39 revision 1.115 40 date: 2005/04/06 06:18:21; author: toor; state: Exp; lines: +18 -10 41 Destring the error messages from the code. 42 ---------------------------- 43 revision 1.114 44 date: 2005/04/06 05:59:54; author: root; state: Exp; lines: +23 -6 45 Enumerated in/excludes now also apply to entries in include files. 46 ---------------------------- 47 revision 1.113 48 date: 2005/04/05 23:08:30; author: root; state: Exp; lines: +4 -3 49 Changed fake GID/UID used when including external file entries to 100000. 50 Created the BOGUSID variable to hold this value explicitly to make it easy 51 for the user to change it. 52 ---------------------------- 53 revision 1.112 54 date: 2005/04/05 21:56:30; author: root; state: Exp; lines: +14 -3 55 Added explicit try/except handling around opening of output files. 56 ---------------------------- 57 revision 1.111 58 date: 2005/04/05 21:44:36; author: root; state: Exp; lines: +49 -9 59 Added logic to support including external password and group files. 60 ---------------------------- 61 revision 1.110 62 date: 2005/04/05 20:43:44; author: root; state: Exp; lines: +12 -9 63 Added logic to trap for invalid (non-integer) values for -g and -u arguments. 64 ---------------------------- 65 revision 1.109 66 date: 2005/04/05 20:26:32; author: root; state: Exp; lines: +7 -1 67 Added code to error out if any command line arguments remain after processing options. 68 ---------------------------- 69 revision 1.108 70 date: 2005/04/04 22:23:24; author: root; state: Exp; lines: +40 -36 71 Reordered parsing of in/exclusion arguments to be keyed to name rather than ID. 72 Corrected command line argument to set starting UID to use -u rather than -p. 73 Copy of command line used to generate file is now included as comment. 74 Added logic to default to suppressing user accounts that do not permit login. 75 ---------------------------- 76 revision 1.107 77 date: 2005/04/04 21:41:37; author: root; state: Exp; lines: +54 -34 78 Completed a possible implementation for command line ex/inclusion. 79 ---------------------------- 80 revision 1.106 81 date: 2005/04/02 09:03:53; author: root; state: Exp; lines: +99 -51 82 Installed command line support and some of the logic for 83 explicitly listing included- and excluded users or groups. 84 ---------------------------- 85 revision 1.105 86 date: 2005/04/02 00:26:03; author: root; state: Exp; lines: +5 -5 87 Changed default filenames to start with '.ht'. 88 ---------------------------- 89 revision 1.104 90 date: 2005/04/01 22:30:33; author: root; state: Exp; lines: +5 -3 91 Added hostname to timestamp in each output file. 92 ---------------------------- 93 revision 1.103 94 date: 2005/04/01 22:21:35; author: root; state: Exp; lines: +50 -33 95 Added code to produce output files, observing STARTGID and STARTUID. 96 Added command line options to set STARTGID and STARTUID. 97 ---------------------------- 98 revision 1.102 99 date: 2005/04/01 18:17:55; author: root; state: Exp; lines: +2 -2 100 Changed how debug output is formatted. 101 ---------------------------- 102 revision 1.101 103 date: 2005/04/01 06:08:38; author: root; state: Exp; lines: +76 -14 104 Initial cut of basic group and user database extraction logic. 105 ---------------------------- 106 revision 1.100 107 date: 2005/03/31 23:12:16; author: tundra; state: Exp; 108 Initial Version 109 ---------------------------- 110 =============================================================================