Re: Determine if user can admin
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 19 avr. 05, at 01:44, Eric Long wrote: Hi, See grp.h among others. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre