Possible to run a shell script with admin privileges at (non-admin) startup?

Posted:
in Genius Bar edited January 2014
I generally log in as a non-admin user for security purposes, but I have a shell script that I want to run at startup that requires admin privileges. The script I'm running is something like this...



Code:


try

set theConfirmation to (do shell script ¬

"BLAH BLAH BLAH SCRIPT"

password ¬

"ADMINPASS" with administrator privileges)

on error

beep

end try







Anyone able to help me with what I'm missing?
Sign In or Register to comment.