Date: Mon, 14 Oct 2002 10:26:21 -0500 From: "Maildrop" <maildrop@qwest.net> To: "Patrick Holahan" <patrick@sdn.co.za>, questions@freebsd.org Subject: RE: Running ipfw from a webpage/using php. Message-ID: <NGBBIILBAKIFGHHCHOHPAENCFJAA.maildrop@qwest.net> In-Reply-To: <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Patrick Holahan > Sent: Monday, October 14, 2002 9:36 AM > To: questions@freebsd.org > 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 majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > 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?NGBBIILBAKIFGHHCHOHPAENCFJAA.maildrop>