• 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: User Access Rights
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User Access Rights


  • Subject: Re: User Access Rights
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 16 May 2009 09:30:42 -0700

It's a bit primitive but you could issue the 'id' shell command via NSTask and scan the reply for '80(admin)'.


It's also needlessly convoluted. The 'id' command isn't using magic. There are library functions and system calls for this.

See:
  man getgroups
  man getegid

  -- GG

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Help with drawing
  • Next by Date: [iPhone] Settings Application...need an Image Picker
  • Previous by thread: Re: KVO compliant array proxy
  • Next by thread: [iPhone] Settings Application...need an Image Picker
  • Index(es):
    • Date
    • Thread