• 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: Person experienced with auth services needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Person experienced with auth services needed


  • Subject: Re: Person experienced with auth services needed
  • From: Jim Correia <email@hidden>
  • Date: Mon, 26 Jun 2006 15:18:35 -0400

On Jun 26, 2006, at 3:02 PM, Mark Williams wrote:

I am willing to pay some one to write me a method that accepts to path arguments, executes ditto with privileges in verbose mode(see below), using the paths as it's arguments and then reads all of ditto's output. I would like for it to log the output to the console, NSLog() is fine one line at a time, as they come in.
This method may be called time and time again, ie, the calling method will often use a directory iterator to have this method copy files and sometimes folders. This is where I keep failing. I keep getting the error "resource /usr/bin/ditto temporarily unavailable" when doing large folders with many items in them.

It sounds like you are using AuthorizationExecuteWithPrivileges to repeatedly call a command line tool.


If this is what you are doing, this is the wrong approach to the problem.

The documentation and sample code describe the correct approach.

See "Special Considertions" of

http://developer.apple.com/documentation/Security/Reference/ authorization_ref/Reference/reference.html#//apple_ref/c/func/ AuthorizationExecuteWithPrivileges

as well as the MoreSecurity sample code (inside the MoreIsBetter sample.)

Jim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Person experienced with auth services needed (From: Mark Williams <email@hidden>)

  • Prev by Date: Person experienced with auth services needed
  • Next by Date: Re: Person experienced with auth services needed
  • Previous by thread: Person experienced with auth services needed
  • Next by thread: Re: Person experienced with auth services needed
  • Index(es):
    • Date
    • Thread