Run suid Perl scripts under Apache without suidperl (using a really simple C wrapper)
Run suid Perl scripts under Apache without suidperl (using a really simple C wrapper)
If Perl was installed on your computer without the 'suidperl' program, you can't run suid Perl script.
One situation may be when you want to use your nifty administrative Perl tool from a web interface, i.e. run a script which requires root access.
Anyhow, your Apache server runs as user 'http' or 'nobody', which makes it impossible to use the Perl script with 'suidperl' missing.
Here is where we will use the C wrapper (calm down, you don't need any C knowledge at all):
Assume that your Perl script is installed as 'http://www.yourweb.com/cgi-bin/yourniftytool.pl', but it doesn't work very well... :-(