Beispiel #1
0
def PGtoEntry(i):
    return utilities.join([i["group"], i["passwd"], i["gid"], utilities.join(i["users"], ",")], ":") + "\n"
Beispiel #2
0
def PStoEntry(i):
    return utilities.join(
        [i["user"], i["passwd"], i["lastpwdchange"], i["minpwdchange"],
         i["maxpwdchange"], i[
         "warnperiod"], i["inactive"], i["expire"],
         i["reserved"]], ":") + "\n"
Beispiel #3
0
def PPtoEntry(i):
    return utilities.join(
        [i["user"], i["passwd"], i["uid"], i["gid"], i["name"], i["home"],
         i["shell"]], ":") + "\n"