Re: Setting Proxy servers as administrator
Re: Setting Proxy servers as administrator
- Subject: Re: Setting Proxy servers as administrator
- From: "Duane Murphy" <email@hidden>
- Date: Thu, 4 Sep 2003 12:07:17 -0700
--- At Thu, 4 Sep 2003 18:11:13 +0000, Ryan G wrote:
>
>From: "Duane Murphy" <email@hidden>
>
>To: "Ryan G" <email@hidden>, "Macintosh Network Programming"
>
><email@hidden>
>
>Subject: Re: Setting Proxy servers as administrator
>
>Date: Thu, 4 Sep 2003 10:58:42 -0700
>
>
>You are doing nothing wrong. You do need root access. System Preferences
>
>uses a helper application that is setuid-root to do it's dirty work.
>
>Pressing the lock button kills that app. Pressing it again will turn it
>
>back on.
>
>
>
>For a GUI application the typical process is documented in
>
>MoreAuthSample. You write a tool that does the secure work for you and
>
>execute it with privileges when you need it. MoreAuthSample works well
>
>for simple cases like this. More complex cases can use MoreAuthSample as
>
>an example of what needs to happen.
>
>
Ahh. This explains a lot, thanks. Is there anyway I can reuse this helper
>
application in my own program? How does the helper application get started
>
the first time? Is it started independantly
>
of System Preferences? Because I don't get re-asked my password when
>
starting the System Preferences app after shutting it down.
The helper app is undocumented and entirely private. I am sure Apple
would heavily discourage you from using it. You would be likely to break
in the future as changes are made. (I expect that the app is a Cocoa DO
Server based tool.)
Check out MoreAuthSample. Doing this yourself is not that difficult.
>
Thanks for your help
Certainly!
...Duane
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.