• 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: Admin Access for Tasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Admin Access for Tasks


  • Subject: Re: Admin Access for Tasks
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 22 Apr 2003 08:34:50 -0700

On Tuesday, April 22, 2003, at 08:02 AM, Lance Pysher wrote:

Part of my application has a server and I would like to have a user option to add a script to the startupItems.

You probably don't need admin authorization for this, since /Library should be group-writable for admins.

I see a lot of programs have a window pop up to allow administrator access to do tasks. How is that done?

Most of them use the Security framework, which you can read about on the ADC site. There are also a few applications I've used (Cocktail, Monolingual) that actually interface with sudo over NSTask instead, but the Security framework is what's used by most applications, and it does have several advantages over sudo (it's automatically localized for the user, it doesn't require the BSD subsystem to be installed, maybe a few other things).

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"Building the future and keeping the past alive are one and the same thing." - Metal Gear Solid 2
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Admin Access for Tasks (From: Lance Pysher <email@hidden>)

  • Prev by Date: Admin Access for Tasks
  • Next by Date: SIGBUS 10 in Autorelease Pool
  • Previous by thread: Admin Access for Tasks
  • Next by thread: SIGBUS 10 in Autorelease Pool
  • Index(es):
    • Date
    • Thread