• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: root tool acting on behalf of a user - what to set and how
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >root tool acting on behalf of a user - what to set and how (From: Dan Bernstein <email@hidden>)
 >Re: root tool acting on behalf of a user - what to set and how (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: root tool acting on behalf of a user - what to set and how
  • Next by Date: Re: root tool acting on behalf of a user - what to set and how
  • Previous by thread: Re: root tool acting on behalf of a user - what to set and how
  • Next by thread: quick Open Directory question
  • Index(es):
    • Date
    • Thread