Re: PHP Run Command Line
| From: | mike cullerton | Date: | Fri, 06 Jul 2001 00:13:17 +0000 |
| Subject: | Re: PHP Run Command Line | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56406@lists.php.net to get a copy of this message | ||
on 7/5/01 11:00 AM, Arcady Genkin at a.genkin@utoronto.ca wrote:
> "Matt Simpson" <delete.matt@theonlinecreator.com> writes:
>
>> I need to let PHP run a command as SU... is there any way it can be done? I
>> need it to let Courier compile it's makeuserdb and makemaildir. Any help
>> would be great.
>
> If you *really* want to do that, you can install `sudo' package, and
> configure it to allow running a particular command as root to whatever
> user Apache runs as.
sudo is always one of the first things i install on my box. i never login as
root if i can help it. being forced to type 'sudo command' always makes me
think about what i'm doing.
and this is on a box with no users.
is this script being run from within apache or on the command line?
-- mike cullerton