getting user id (from an arbitrary sys user)

Thinker thinker at branda.to
Wed Mar 14 18:59:11 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gerardo Herzig wrote:
> hi all. What i need to know is if there is some function like
> os.getuid(), but taking an argument (the username, off course), so i can
> do getuid('myuser')
>
> Thanks you dudes!
>
> Gerardo
Please refer http://docs.python.org/lib/module-pwd.html for pwd module.

- --
Thinker Li - thinker at branda.to thinker.li at gmail.com
http://heaven.branda.to/~thinker/GinGin_CGI.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+Dfv1LDUVnWfY8gRAkfkAKDydeZwxvb1tK+Ms5xE9xWfetNtLACg5xi3
yAJvjodjdL20vU32MVZsLDk=
=iRUm
-----END PGP SIGNATURE-----




More information about the Python-list mailing list