Re: Admin Access for Tasks
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.