Re: Person experienced with auth services needed
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