Re: Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application
Re: Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application
- Subject: Re: Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application
- From: Sherm Pendley <email@hidden>
- Date: Sun, 31 Oct 2010 12:47:33 -0400
On Sun, Oct 31, 2010 at 9:31 AM, eveningnick eveningnick
<email@hidden> wrote:
> Hello
> How, using an ordinary application (started by "doubleclicking" from
> /Applications), i could create/modify/delete that file?
> Is it possible at all, according to OS X current security model?
Not unless the permissions for that file are incorrect - not a
situation I'd be willing to depend on.
> Maybe i could display a "User login" inbox somehow then, to let user
> authorise to perform that operation? What API should i use then?
Authorization Services:
<http://developer.apple.com/library/mac/#documentation/Security/Conceptual/authorization_concepts/01introduction/introduction.html>
> My application - is an ordinary Cocoa app, created using XCode
You'll need to create a separate "helper tool" that has admin
privileges. After reviewing the "Concepts" section, have a look at the
"Authorizing in a Factored Application" section under "Tasks."
sherm--
--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden