• 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
running a shell script in automator with admin privileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

running a shell script in automator with admin privileges


  • Subject: running a shell script in automator with admin privileges
  • From: Brett George <email@hidden>
  • Date: Wed, 24 Oct 2007 19:54:31 -0700

I have a simple automator workflow that asks for confirmation before running a shell script. The shell script needs to run as root and calling the commands with "sudo" doesn't prompt the user to authenticate. Prior to running the shell script, I have also tried running a simple apple script with

do shell script "echo test" with administrator privileges

but the commands are still not authenticated properly.

As the shell script is complicated, I would prefer to avoid having to write a bunch of wrappers for it in AppleScript.

Is there another way I can get authentication for the shell script?

Thanks,
Brett.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: running a shell script in automator with admin privileges
      • From: Steve Hayman <email@hidden>
  • Next by Date: Re: running a shell script in automator with admin privileges
  • Next by thread: Re: running a shell script in automator with admin privileges
  • Index(es):
    • Date
    • Thread