site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Am 19.04.2005 um 01:44 schrieb Eric Long: 1) Something like "id | grep admin". 2) Try to execute you task anyways and watch for errors. HTH, Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ _______________________________________________ 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". This is a checkbox wether the user is member of the group "admin" or not. 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? 3) Ask for privileged execution always. This would allow admins, currently logged in as somebody else, as well. Guys like myself do their work as an unprivileged user just to be sure to get asked for a password before some app tries to "improve" the system. :-) This email sent to site_archiver@lists.apple.com