Probably you should look over here for info about suexec http://httpd.apache.org/docs/suexec.html, or check the 'sudo' man pages... With that you could gain root privilages..
-----Oorspronkelijk bericht----- Van: vijaypatel [mailto:[EMAIL PROTECTED] Verzonden: maandag 9 juni 2003 6:06 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Execute command which has root privileges 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php