Re: Execute command which has root privileges

From: Date: Mon, 09 Jun 2003 04:25:08 +0000
Subject: Re: Execute command which has root privileges
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150700@lists.php.net to get a copy of this message
You could use sudo, if your system has that. That's what I do for the rare occasion I have to call a script with root perms. But use sudo with care! "Vijaypatel" <vijaypatel@hotpop.com> wrote in message news:001c01c32e3c$80060720$0800a8c0@tosc.icenet.net... 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? I have given 777 permission to script file. Thanking You.

« previous php.general (#150700) next »