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
_
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
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