Re: non-root app writing to root file
Re: non-root app writing to root file
- Subject: Re: non-root app writing to root file
- From: Larry Fransson <email@hidden>
- Date: Sat, 24 Jul 2004 22:38:24 -0700
On Jul 24, 2004, at 17:26, Matt Jaffa wrote:
I have successfully gotten that Authentication window to popup and
return with the AuthRef, but my code still can't do those writing to
files , to the root files.
That's where you need a separate tool that runs as root. Simply
popping up an authorization dialog and authenticating user doesn't
actually give your application root privileges; it only verifies that
the user has admin/root privileges. Once that's done, you launch your
setuid tool with root privileges to perform your privileged operations.
The AuthSample sample code contains such a tool.
Larry Fransson
Seattle, WA
_______________________________________________
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.