Perl Help!!!

"Dhruv Soi" <dhruvs-g/icWj5ZvQOxIBOabOT86AC/[email protected]> Tue, 31 Aug 2004 17:05:26 +0530
Newsgroups gmane.user-groups.linux.delhi.devel
Message-ID <07b801c48f4e$9c86fd90$5601a8c0@dhruv>
Hi All
I have written a script that has cgi interface and requires root rights to
achieve the task. When i run that script from command line it works fine but
when i use cgi it doesn't work as Apache is not running as root user which i
even don't want to run using root user.

I tried chown u+s scriptname.cgi .....but no help
Secondly i tried sudo and kept apache in sudoers but the script stops for
password prompt....Then i tried Perl::expect module but from cgi even thats
not working....Any pointers???

I know there is some way out to run perl scripts as root but don't know what
exactly that way is.....

Thanks
Dhruv