Re: running commands as root from a script
| From: | Jason Wong | Date: | Thu, 28 Mar 2002 17:55:49 +0000 |
| Subject: | Re: running commands as root from a script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90566@lists.php.net to get a copy of this message | ||
On Friday 29 March 2002 01:44, Darren Gamble wrote:
> Good day,
>
> A bit off topic, but you can run a Perl script setuid. You have to pass a
> flag to Perl to let it know that it's OK, though (it's -U, I believe) which
> would appear in your first "she-bang" line.
>
> I've never had to run a PHP script setuid. I would imagine that one would
> have to write it CGI-like instead of via the server module.
Some systems disable setuid Perl scripts (RH for example). The only way to
enable it is to recompile Perl.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Whenever I hear anyone arguing for slavery, I feel a strong impulse to
see it tried on him personally.
-- Abraham Lincoln
*/