getgrouplist() ?
Mark McEahern
marklists at mceahern.com
Sat Jun 15 10:00:03 EDT 2002
> I need a way to get a back a list of supplemental group ids for a
> specified uid. Something like getgrouplist() in my C standard lib. I
> don't see a convenient method for this, have I missed it?
>
> The os module contains getgroups(), but that doesn't allow me to
> specify a uid; it uses only the uid of the current process.
For what it's worth, the grp module is getting some improvements for 2.3:
http://www.python.org/dev/doc/devel/whatsnew/node8.html
// m
-
More information about the Python-list
mailing list