| |
---|
| | |
---|
| | # Program Information |
---|
| | |
---|
| | PROGNAME = "mkapachepw" |
---|
| | RCSID = "$Id: mkapachepw.py,v 1.119 2005/04/06 07:59:11 toor Exp $" |
---|
| | RCSID = "$Id: mkapachepw.py,v 1.120 2005/04/11 22:11:24 root Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | BOGUSID = 100000 # Fake GID/UID used when external files |
---|
| | GRFILE = "./.htgroups" # Group output file |
---|
| | PWFILE = "./.htpasswords" # Password output file |
---|
| | USRFILE = "./.htusers" # User output file |
---|
| | STARTUID = 100 # User IDs below this ignored |
---|
| | STARTGID = 100 # Group IDS below this ignored |
---|
| | |
---|
| | |
---|
| |
---|
| | |
---|
| | # Password File |
---|
| | |
---|
| | try: |
---|
| | pwfile = open(PWFILE, "w") |
---|
| | pwfile = open(USRFILE, "w") |
---|
| | except: |
---|
| | ErrorMsg(eFILEOPEN % PWFILE) |
---|
| | ErrorMsg(eFILEOPEN % USRFILE) |
---|
| | sys.exit(3) |
---|
| | |
---|
| | pwfile.write(TIMESTAMP) |
---|
| | pwfile.write(CMDLINE) |
---|
| |
---|
| | |