in reply to Setting root privileges for a script

Check out the POSIX module. It has setuid, setpgid, and setsid subs. There is also a setpgrp function built into Perl.
  • Comment on Re: Setting root privileges for a script