Find out username and UID/GID

Paul Rubin http
Sun Jan 4 10:01:14 EST 2004


Florian Lindner <Florian.Lindner at xgm.de> writes:
> how can I find out the username and it's UID and GID on a linux system,
> using the most recent python version? If possible, without the use of extra
> libraries.

os.getuid(), os.getgid()



More information about the Python-list mailing list