Re: root tool acting on behalf of a user - what to set and how
Re: root tool acting on behalf of a user - what to set and how
- Subject: Re: root tool acting on behalf of a user - what to set and how
- From: Dan Bernstein <email@hidden>
- Date: Sun, 26 Sep 2004 00:15:58 +0200
On Sat, 25 Sep 2004 23:00:00 +0100, Finlay Dobbie <email@hidden> wrote:
>
> On 25 Sep 2004, at 10:16, Dan Bernstein wrote:
>
> > 1. Given the user's uid, what's the best way to determine the user's
> > gid and groups list?
>
> getpwuid?
Thanks, but where in the passwd struct do I find the groups list? (And
as long as we're discussing this structure, is it safe to assume (as
finger does, IIRC) that pw_gecos points to a UTF8 string with the
user's full name?)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden