Skip site navigation (1)Skip section navigation (2)
Date:      14 Oct 2002 16:16:21 +0100
From:      Simon Dick <simond@irrelevant.org>
To:        Patrick Holahan <patrick@sdn.co.za>
Cc:        questions@freebsd.org
Subject:   Re: Running ipfw from a webpage/using php.
Message-ID:  <1034608581.2411.2.camel@linux>
In-Reply-To: <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za>
References:  <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2002-10-14 at 15:35, Patrick Holahan wrote:
> 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?

If you have to do this, I'd suggest setting up sudo so that the user
apache runs as has sudo access to run the ipfw command and nothing else.
It's still not nice, but it should work.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1034608581.2411.2.camel>