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: Matt Jaffa <email@hidden>
- Date: Sun, 25 Jul 2004 00:06:53 -0600
Well my SystemPreference is using sqlite to write to a database file
stored in root owned folders, and editing a root owned sqlite db file,
so I don't know how calling a tool with the authorization will be able
to get that sqlite file to the tool to save it.
Matt
On Jul 24, 2004, at 11:38 PM, Larry Fransson wrote:
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.
_______________________________________________
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.