Re: Determine if user can admin
Re: Determine if user can admin
- Subject: Re: Determine if user can admin
- From: Jay Vaughan <email@hidden>
- Date: Tue, 19 Apr 2005 14:17:18 +0200
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?
The Carbon way:
err = AuthorizationCreate(&user_rights,
kAuthorizationEmptyEnvironment, user_flags, &user_authorizationRef);
See Authorization Services docs for more details ..
--
;
Jay Vaughan
_______________________________________________
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