Re: applescript for enabling root user...
Re: applescript for enabling root user...
- Subject: Re: applescript for enabling root user...
- From: Christopher Nebel <email@hidden>
- Date: Mon, 12 Dec 2005 11:54:22 -0800
On Dec 12, 2005, at 9:26 AM, Emmanuel wrote:
At 9:22 AM -0800 12/12/05, Andrew Oliver wrote:
On 12/12/05 9:10 AM, "Bernardo Hoehl" <email@hidden> wrote:
Hi List,
I have this applescript studio app that passes some "do shell
script"
commands as user "root".
Why are you running any commands as user root?
You should use 'do shell script's '... with administrator
privileges' option
to authenticate the user and gain root privileges.
do shell script "blah -blah" with administrator privileges
This will make sure the user has authority to execute the command
and does
not require the root account to be active.
My $0.02 here: I think you have to use different commands depending
whether in Tiger or in Panther.
In some cases, depending on the precise version of Tiger. See
<http://developer.apple.com/technotes/tn2002/tn2065.html> under "How
do I get administrator privileges for a command?"
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden