Re: [SMARTY-DEV] Execute command which has root privileges
| From: | Monte Ohrt | Date: | Fri, 06 Jun 2003 13:54:32 +0000 |
| Subject: | Re: [SMARTY-DEV] Execute command which has root privileges | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1541@lists.php.net to get a copy of this message | ||
wrong list, try php-general.
On Fri, 2003-06-06 at 08:23, vijaypatel wrote:
> Hello,
>
> I am using FreeBSD 4.7 ,PHP 4.2.3 & Apache 1.3
>
> I want to execute shell script which contains few IPFW commands. I have tried with
> system(),exec(),passthru() command to execute script but i can't do that.
> Apache has created "www" user on FreeBSD. I found that "www" user has not
> privilege for IPFW.
>
> How can i execute script which contains IPFW commands with PHP,Apache?
>
> I have given 777 permission to script file.
>
> Thanking You.
--
Monte Ohrt <monte@ispi.net>