• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Run As Root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Run As Root
      • From: Luther Fuller <email@hidden>
References: 
 >Run As Root (From: Luther Fuller <email@hidden>)

  • Prev by Date: Run As Root
  • Next by Date: Re: INDESIGN: Coercing a String to a Constant
  • Previous by thread: Run As Root
  • Next by thread: Re: Run As Root
  • Index(es):
    • Date
    • Thread