Re: Setting Proxy servers as administrator
Re: Setting Proxy servers as administrator
- Subject: Re: Setting Proxy servers as administrator
- From: Dave Camp <email@hidden>
- Date: Thu, 4 Sep 2003 11:12:17 -0700
You have to be root to do that from your own code.
I think System Preferences does it without asking for a password
because it has a SUID root helper app that it works with. I presume it
verifies that the current user is in the admin group and gives the
helper app the go-ahead to perform the work on it's behalf.
Dave
On Thursday, September 4, 2003, at 10:39 AM, Ryan G wrote:
Hey all,
I'm trying to programatically change the proxy settings in the system
preferences. I have been using the SystemConfiguration framework to
do this, and everything works fine, except I have to have root
privileges to call the commit changes function. But I know I should
be able to change the proxy settings with a user having their access
rights set to administrator (since I can use the System Preferences
application to change the proxy settings as my user, but I cannot run
my application successfully unless I'm root). Ideally, I would like
to be able to use the Security framework to get access to
"system.preferences" rights to change the proxy settings.
Is anyone aware of what I need to do to do this?
Thanks.
Ryan
_________________________________________________________________
Need more e-mail storage? Get 10MB with Hotmail Extra Storage.
http://join.msn.com/?PAGE=features/es
_______________________________________________
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.
---
You are in a maze of testy little Java VMs, all subtly different.
_______________________________________________
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.