33
33
sys.path.append(os.path.join(os.getcwd(), 'www'))
43
42
print "Must run remakeuser.py as root."
50
49
# Create the user if it does not exist
53
uid = conn.get_single({'login':login}, 'login', ['unixid'], ['login'])
51
(_,_,uid,_,_,_,_) = pwd.getpwnam(username)
58
56
except Exception, message:
59
57
print "Error: " + str(message)