getting the uid of a system user

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Fri Oct 3 17:41:16 EDT 2003


Marco Herrn wrote:
> Hi I need to get the uid of a system user from the /etc/passwd file. Is
> there an already existing module/function available or do I have to
> parse it myself?

You're probably looking for the pwd and grp modules;
http://www.python.org/doc/current/lib/module-pwd.html

--Irmen





More information about the Python-list mailing list