Skip navigation.
 
mlRe: Person experienced with auth services needed
FROM : Jim Correia
DATE : Mon Jun 26 21:18:35 2006

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

Related mailsAuthorDate
mlPerson experienced with auth services needed Mark Williams Jun 26, 21:02
mlRe: Person experienced with auth services needed Jim Correia Jun 26, 21:18
mlRe: Person experienced with auth services needed A.M. Jun 26, 21:20
mlRe: Person experienced with auth services needed Mark Williams Jun 26, 22:17