Re: Determine if user can admin
Re: Determine if user can admin
- Subject: Re: Determine if user can admin
- From: Stephane Sudre <email@hidden>
- Date: Tue, 19 Apr 2005 12:13:53 +0200
On 19 avr. 05, at 01:44, Eric Long wrote:
Hi,
When setting up accounts in Mac OS X, the Accounts pref panel has a
checkbox
for user accounts labeled, "Allow user to administer this computer".
How can I programmatically determine if my application is being run
for a
user who is allowed to administer the computer vs. one who isn't?
1. Maybe this information is stored in the Open Directory information
on this user account.
2. Otherwise, you can find the group of the user and the additional
group and look for the gid for the admin group.
See grp.h among others.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden