From owner-freebsd-questions Mon Oct 14 8:17:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38C9637B401 for ; Mon, 14 Oct 2002 08:17:38 -0700 (PDT) Received: from mpls-qmqp-01.inet.qwest.net (mpls-qmqp-01.inet.qwest.net [63.231.195.112]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E99B43EA9 for ; Mon, 14 Oct 2002 08:17:37 -0700 (PDT) (envelope-from maildrop@qwest.net) Received: (qmail 54081 invoked by uid 0); 14 Oct 2002 15:12:19 -0000 Received: from unknown (63.231.195.1) by mpls-qmqp-01.inet.qwest.net with QMQP; 14 Oct 2002 15:12:19 -0000 Received: from unknown (HELO jenny) (63.231.238.226) by mpls-pop-01.inet.qwest.net with SMTP; 14 Oct 2002 15:17:36 -0000 Date: Mon, 14 Oct 2002 10:26:21 -0500 Message-ID: From: "Maildrop" To: "Patrick Holahan" , questions@freebsd.org Subject: RE: Running ipfw from a webpage/using php. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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