• 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: applescript for enabling root user...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: applescript for enabling root user... (From: Andrew Oliver <email@hidden>)
 >Re: applescript for enabling root user... (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: shell script doesn't run when run as cron job?
  • Next by Date: Re: Shell script problem
  • Previous by thread: Re: applescript for enabling root user...
  • Next by thread: shell script doesn't run when run as cron job?
  • Index(es):
    • Date
    • Thread