Re: do shell script
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.