run shell scripts as root, not just administrator
run shell scripts as root, not just administrator
- Subject: run shell scripts as root, not just administrator
- From: Ian Mcginley - Systems Support Engineer <email@hidden>
- Date: Mon, 27 Oct 2003 11:51:37 +1100
Hi all!
I'm almost done with all of my shell > applescript, however i've got one
last hurdle. I have a shell script that MUST be run by root.
Currently i've tried:
do shell script ("cd " & sourceDIR & ";find . -print; cpio -pdmu " &
destDIR & > /tmp/cpio.out 2>&1 & "") with administrator priviledges
And this doesn't work :/
So then I tried:
do shell script("sudo su -;cd " & sourceDIR & ";find . -print; cpio
-pdmu " & destDIR & > /tmp/cpio.out 2>&1 & "") with administrator
priviledges
And that hasn't worked either. :(
Any other methods I could try?
Regards,
--
Ian McGinley
Systems Support Engineer
Sun Microsystems Australia
476 St Kilda Road - Melbourne - Australia - 3004
Ph: (03) 8866 6360 Email: email@hidden
UNIX is user-friendly, it is just picky about its friends
_______________________________________________
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.