I am looking for a way to do the equivalent without prompting for password. I need it to be a native way that does not require the user to change any configuration files (including sudoers). And GUI doesn't count (making AppleScript open System Preferences and click the buttons).
do shell script "networksetup -setsocksfirewallproxy wi-fi 127.0.0.1 5464 off" do shell script "networksetup -setsocksfirewallproxystate wi-fi on"
Maybe something with keychain? Configuration profile?
Note: If they have to type in a admin one time to set something up thats ok (like giving the application access to keychain), but it must be simple enough the average user can do it.
Simplicity is the most important.