Lines Matching full:passwd
12 OS/2 and similar systems which don't normally have an /etc/passwd file.
35 - ${ETC}/passwd (or %ETC%/passwd)
36 - ${PYTHONHOME}/Etc/passwd (or %PYTHONHOME%/Etc/passwd)
62 # try and find the passwd file
67 __passwd_path.append('%s/passwd' % os.environ['ETC'])
69 __passwd_path.append('%s/Etc/passwd' % os.environ['PYTHONHOME'])
116 raise KeyError, '>> passwd database fields not delimited <<'
121 class Passwd: class
122 def __init__(self, name, passwd, uid, gid, gecos, dir, shell): argument
124 self.__dict__['pw_passwd'] = passwd
158 # with dictionaries to speed recall by UID or passwd name
161 passwd = open(passwd_file, 'r')
168 entry = passwd.readline().strip()
177 record = Passwd(*fields)
186 passwd.close()
191 # return the passwd database entry by UID
196 # return the passwd database entry by passwd name
201 # return all the passwd database entries