Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.

So the question is, How do you run the script on startup with sudo permission

share|improve this question

1 Answer 1

Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).

What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.