Making Mac OSX launchctl launch a process as root on startup
My question is how to make a MacOSX daemon process using launchd start with root privileges automatically after a reboot? I'm writing an application for in house use that blocks access to web sites. It is written in python and modifies the /ect/hosts file to disable or enable listed urls. The main application is in django and I created a python twisted daemon that does the actual modification of the /etc/hosts file as root access privileges are required. I have created a plist file which works with one minor issue. After rebooting the daemon process has my normal logon privileges instead of