Re: What's the official way to detect a user has administration privileges?
Re: What's the official way to detect a user has administration privileges?
- Subject: Re: What's the official way to detect a user has administration privileges?
- From: "Stephen J. Butler" <email@hidden>
- Date: Tue, 24 Jun 2008 14:49:28 -0500
On Tue, Jun 24, 2008 at 5:32 AM, Stéphane <email@hidden> wrote:
> What's the official way to detect a user has administration privileges (from
> a Mac OS X point of view)?
>
> OpenDirectory (how?) or does the fact that the user belongs to group admin
> is enough (with the exception of root)?
The best way to do what you want is to use the Authorization Services
AuthorizationCopyRights:
<http://developer.apple.com/documentation/Security/Reference/authorization_ref/Reference/reference.html#//apple_ref/doc/uid/TP30000826-CH1g-F17549>
Check for the "system.privilege.admin" right.
_______________________________________________
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