Re: Setting Network Preferences Programatically
Re: Setting Network Preferences Programatically
- Subject: Re: Setting Network Preferences Programatically
- From: "Justin C. Walker" <email@hidden>
- Date: Mon, 20 Oct 2003 15:56:30 -0700
On Monday, October 20, 2003, at 02:09 PM, James Masasaki wrote:
Hello.
I am trying to set the Network settings in System Preferences
programatically. Mainly I just need to save, set, then later restore
the Web Proxy Settings in Network preferences. And of course I need a
way to do this without being logged in as root or su.
I don't have time to dig into System Configuration Framework.
I have looked at MoreSecurity and MoreAuthSample, but those samples
say there is no way to do this without the user getting the
authorization dialog.
I need a way to do this without being root or su, and without the
system prompting the user for the authentication dialog.
I know there must be a way to do it because I can set the Network
settings in System Preferences without the authorization dialog
without being logged in as root or su.
So my questions are:
1) Can this be accomplished programatically at all in OS X 10.1 and
10.2?
Check the archives (look for 'programmatically' and
'SystemConfiguration'). This has been done programmatically since Mac
OS X was released (of course, bugs do happen...)
2) Can it be accomplished without needing to write a priviledged user
tool?
This is a privileged operation, so 'no'.
3) Can it be accomplished programatically at all without prompting the
user for the authentication dialog?
Not that I'm aware of, unless the user starts the app from the command
line with 'sudo'. Otherwise, it's a privileged operation, so ...
There may be high-level APIs I'm not aware of, so other replies may
clarify this.
Regards,
Justin
--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
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.