Re: NSOperation: Selector being called before process finished

2009-08-26 Thread Kyle Sluder
No. Take a look at BetterAuthorizationSample: http://developer.apple.com/SampleCode/BetterAuthorizationSample/listing6.html I should have just sent you there in the first place, because true to form I have recommended something you shouldn't do. BAS does *not* use a setuid tool. --Kyle Sluder _

Re: NSOperation: Selector being called before process finished

2009-08-26 Thread Kyle Sluder
On Wed, Aug 26, 2009 at 5:01 PM, PCWiz wrote: > I have a class which is a subclass of NSOperation, that runs a shell script > with AuthorizationExecuteWithPrivileges. Something like this: You are not using AuthorizationExecuteWithPrivileges correctly. For security reasons, the privileged code mus

NSOperation: Selector being called before process finished

2009-08-26 Thread PCWiz
Hi, I have a class which is a subclass of NSOperation, that runs a shell script with AuthorizationExecuteWithPrivileges. Something like this: // Alloc my auth class and authenticate Authentication *auth = [[Authentication alloc] init]; [auth authenticate]; // Set permissions on script and run