Changed default user output filename to '.htusers'.
1 parent a90c4e8 commit 96a50f1cf7026cd6a8fe0118486a25e20ac8c6ef
@root root authored on 11 Apr 2005
Showing 1 changed file
View
8
mkapachepw.py
 
# 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)