Possible to run a shell script with admin privileges at (non-admin) startup?
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...
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?
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?