Re: Setting Proxy servers as administrator
Re: Setting Proxy servers as administrator
- Subject: Re: Setting Proxy servers as administrator
- From: "Ryan G" <email@hidden>
- Date: Thu, 04 Sep 2003 18:11:13 +0000
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.
Thanks for your help
ryan
_________________________________________________________________
Fast, faster, fastest: Upgrade to Cable or DSL today!
https://broadband.msn.com
_______________________________________________
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.