• 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: Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Determine current mouse cursor position
  • Next by Date: Re: Determine current mouse cursor position
  • Previous by thread: Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application
  • Next by thread: borderless button - hilight on click
  • Index(es):
    • Date
    • Thread