Typically PHP runs as www (or nobody).  You will have to give ipfw root exec
premission (forgot what is is called, but mode 1755 and owner root) or use
sudo. (man sudo, man chmod) either should work, but be warned this is very
INSECURE!

Jack

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Holahan
> Sent: Monday, October 14, 2002 9:36 AM
> To: [EMAIL PROTECTED]
> Subject: Running ipfw from a webpage/using php.
>
>
> Hi there..
>
> Hopefully someone here is able to help me..
>
> I need to run a root command (ipfw) from apache through php. (Yes, this is
> not very secure and I'm aware of this and if anyone has any better
> suggestions, please feel free to make them.)
>
> Would anyone know how to do this?
>
> Thanks in advance
> -ph
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to