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 t

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

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

2002-03-28 Thread Darren Gamble
ROTECTED]] Sent: Thursday, March 28, 2002 10:37 AM To: [EMAIL PROTECTED] Subject: [PHP] running commands as root from a script Hi there, I have a little problem. I need to run a few commands for Courier from a script. What I have is a php based application that makes it easy to create and manag

[PHP] running commands as root from a script

2002-03-28 Thread Ken Nagorski
Hi there, I have a little problem. I need to run a few commands for Courier from a script. What I have is a php based application that makes it easy to create and manage virtual domains and the addresses for them from the web. However when You "Apply the changes" everything is written to /tmp dir