Re: cocoa-dev digest, Vol 2 #4549 - 16 msgs
Re: cocoa-dev digest, Vol 2 #4549 - 16 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #4549 - 16 msgs
- From: Jerry LeVan <email@hidden>
- Date: Sun, 25 Jul 2004 14:38:41 -0400
I have some source code using the security manager on my Cocoa page
http://homepage.mac.com/levanj/Cocoa
( PMQueueManager)
Jerry
On Jul 25, 2004, at 2:17 PM, email@hidden wrote:
From: Larry Fransson <email@hidden>
Subject: Re: non-root app writing to root file
Date: Sat, 24 Jul 2004 22:38:24 -0700
To: Cocoa Apple <email@hidden>
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.