Re: Authorization question
Re: Authorization question
- Subject: Re: Authorization question
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 1 Jun 2003 13:20:04 +0100
On Sunday, June 1, 2003, at 10:04 am, Darkshadow wrote:
If it's not supposed to work that way, if I should be able to execute
the helper tool with the system.preferences right, let me know and
I'll post back with the authorization code I'm using.
If you want to run a tool as root, you'll need
kAuthorizationRightExecute. However, PLEASE read Apple's documentation
on Authorization Services IN DETAIL (particularly the bit about
self-restricted, self-repairing setuid root tools), and also look at
their AuthSample and MoreAuth code at
<
http://developer.apple.com/samplecode>. If you'd like to see my
attempt at an application which authorizes against the
system.preferences right and does root-privileged operations, see
<
http://www.clichesw.com/products/themechanger> (source included).
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.