You might take a look at sudo. You don't say how you plan to run your script, but some OS's (like Linux) won't let you run an interpreter script suid root.
Is root privilege really necessary? What are you doing that seems to need it?
After Compline,
Zaxo
In reply to Re: setuid: Perl v C
by Zaxo
in thread setuid: Perl v C
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |