• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determine if user can admin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Determine if user can admin (From: Eric Long <email@hidden>)

  • Prev by Date: Re: Determine if user can admin
  • Next by Date: Re: Determine if user can admin
  • Previous by thread: Re: Determine if user can admin
  • Next by thread: Re: Determine if user can admin
  • Index(es):
    • Date
    • Thread