in reply to suid perl
Write a wrapper in C for your script. Compile that and make it setuid. Something like the following should do...
All the usual warnings about security apply twice as much for setuid programs. The webserver runs as nobody for a reason; use extreme caution when subverting it. Of course, you are familiar with the security issues, right? And you've read perlsec? And you have taint checking on? etc. etc. etc.int main(int argc, char** argv) { execv("/path/to/your/script", argv); }
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: suid perl
by devslashneil (Friar) on Jun 20, 2003 at 02:43 UTC | |
by devslashneil (Friar) on Jun 20, 2003 at 02:47 UTC |