Find out username and UID/GID

Paul Rubin http
Sun Jan 4 16:01:14 CET 2004

Florian Lindner <Florian.Lindner at> 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