Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Perl backtiks run as root
Andy Knipp
I have a CGI that runs:
$cmd="/usr/bin/touch /tmp/hi";
`$cmd`;
When the cgi runs normal it is fine, but the file is owned by nobody. However I want this run as root so I chmod u+s to the cgi, now it does not run at all (I remove /tmp/hi nothing comes back)
So it appears when the CGI is setuid, it will not do a system call.
There has got to be something stupid here going on.
Tips/Pointers/RTFMs appreciated
Andy
Find more posts tagged with
Comments
There are no comments yet