Re: Run As Root
Re: Run As Root
- Subject: Re: Run As Root
- From: Stan Cleveland <email@hidden>
- Date: Wed, 12 Oct 2011 14:39:28 -0700
On Oct 12, 2011, at 2:13 PM, Luther Fuller wrote: I have a script that I've been using in (Snow) Leopard that starts with ...
do shell script "softwareupdate -l"
I just tried using it in Lion and all I got was ...
error 102, Must be run as root
Now what do I do?
This should take care of it:
do shell script "softwareupdate -l" with administrator privileges user name"lutherf" password "blah"
The "user name" and "password" parts are optional. If not supplied, the script will prompt for the information.
Stan C.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Run As Root (From: Luther Fuller <email@hidden>) |