• 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
Authorization to copy a file -- is it really that complex?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Authorization to copy a file -- is it really that complex?


  • Subject: Authorization to copy a file -- is it really that complex?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 14 Jun 2012 13:39:07 -0700

I've managed to never have to deal with Authorization Services so far in my Cocoa career; until today. Basically I have an app that needs to install some helper tools that the user can run from a shell. (This is a lot like the way TextMate installs the 'mate' tool.) I'm giving a choice of install locations, but the typical one is going to be /usr/bin, so the app will need to authorize to do that.

Reading through the Authorization Services Programming Guide and BetterAuthorizationSample, this all looks really, really complicated. All I need to do is the GUI equivalent of "sudo ditto my_tool /usr/bin" — does this really take pages and pages of code involving AuthorizationRefs and IPC, and either setuid or invoking launchctl?!

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: Authorization to copy a file -- is it really that complex?
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Authorization to copy a file -- is it really that complex?
      • From: Jens Alfke <email@hidden>
    • Re: Authorization to copy a file -- is it really that complex?
      • From: Laurent Daudelin <email@hidden>
  • Prev by Date: Re: Demo Version
  • Next by Date: Re: Authorization to copy a file -- is it really that complex?
  • Previous by thread: Re: Demo Version
  • Next by thread: Re: Authorization to copy a file -- is it really that complex?
  • Index(es):
    • Date
    • Thread