Applescript "with administrator privileges" and without Password prompt
I have to configure some phone settings in the central VOIP/VPN/Gateway Router via a ssh (with certificate) command.
There is only a option to allow or disallow the ssh access in the router. Therefor I wrote a applescript to allow only the specific ssh command "set /Setup/Voice-Call-Manager/Call-Router/Call-Routing/". To avoid the configuration access for anyone and to hard code passwords I have to execute this script with root permissions (do shell script "/usr/bin/su - " & user & " -c " & "'" & cmd & "'" with administrator privileges"). In any other unix implementation I can use "chmod 4755; chown 0:0". Even I compiled the Applescript and stored it as Carbon App, I get a user/password prompt.
How can I avoid this prompt or authorize the script/app in any way?
Thanks Henri
MacPro Quad 3.0 (Leo Server), MacBook Pro 2.53, MacBook Pro 2.4, Macbook Pro 2.0, Mac OS X (10.5.6), IBM pSeries, Dell VMware ESX