Running a tool authorized as root
Running a tool authorized as root
- Subject: Running a tool authorized as root
- From: email@hidden
- Date: Sat, 20 Aug 2005 03:02:32 +0000
I want to run a tool that needs to be run by the root user. I can get it to work the first time, but never after that.
How I want the app to work:
Users clicks button on UI
Have the user authenticate
Run the tool
Deauthenticate
The first time works without a problem. However everytime after that I get the error -60031. I /do/ want the user to authenticate everytime they click the button. What my code basically looks like is:
AuthorizationCreate()
AuthorizationCopyRights()
AuthorizationExecuteWithPrivileges()
AuthorizationFree()
Any ideas?
Thanks,
Kris
Kris
_______________________________________________
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