Run the script as root and have it drop privs when it doesn't need them. Or set up a separate daemon to do the rootish parts of it.<br>