RE: [PHP] running commands as root from a script

2002-03-28 Thread Darren Gamble
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

Re: [PHP] running commands as root from a script

2002-03-28 Thread Jason Wong
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

Re: [PHP] running commands as root from a script

2002-03-28 Thread Steve Edberg
I have done a similar thing by executing another script via sudo using the PHP command passthru() (or you could use exec(), system(), whatever's appropriate). See http://www.courtesan.com/sudo/ for more info. The whole setup was (and is) a bit of a kluge, but the script didn't need