• 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: do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script


  • Subject: Re: do shell script
  • From: Michael Terry <email@hidden>
  • Date: Tue, 10 Feb 2004 13:46:29 -0800

On Feb 10, 2004, at 1:03 PM, Michael Slomski wrote:

The following script will run fine if the user which is executing it has
admin privs.
What can i do if a user without admin privs can run this script? Is there a
possibility to run it with something

Run script as user xxx

tell application "Finder"
activate
do shell script "/usr/sbin/bless -folder9 '/Volumes/System
OS9/Systemordner' -setOF" password "myAdminPassw" with administrator
privileges
restart
end tell


Doesn't it work, anyway?

Or are you saying that you don't want to include the password in the script where unprivileged users can see it? In that case, I think you can store the password in a keychain file that the underprivileged user can't access and have the script access it at need.


Mike
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: do shell script
      • From: Michael Slomski <email@hidden>
    • Re: do shell script
      • From: Michael Slomski <email@hidden>
References: 
 >do shell script (From: Michael Slomski <email@hidden>)

  • Prev by Date: Re: Changing case of variables
  • Next by Date: Droplet that crash
  • Previous by thread: do shell script
  • Next by thread: Re: do shell script
  • Index(es):
    • Date
    • Thread