From owner-freebsd-questions Sat Oct 19 10:33: 8 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 F18B837B401 for ; Sat, 19 Oct 2002 10:33:07 -0700 (PDT) Received: from grummit.biaix.org (213-97-212-86.uc.nombres.ttd.es [213.97.212.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 58FDB43E6A for ; Sat, 19 Oct 2002 10:33:06 -0700 (PDT) (envelope-from joan@grummit.biaix.org) Received: (qmail 771 invoked by uid 1000); 14 Oct 2002 20:10:41 -0000 Date: Mon, 14 Oct 2002 22:10:41 +0200 From: Joan Picanyol To: questions@freebsd.org Subject: Re: Running ipfw from a webpage/using php. Message-ID: <20021014201041.GA645@grummit.biaix.org> Mail-Followup-To: questions@freebsd.org References: <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za> User-Agent: Mutt/1.4i 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 * Patrick Holahan [20021014 16:35]: > 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.) What do you want to do? (No, you *don't* want to run a command as root from php) > Would anyone know how to do this? If you really want to do it, you can try Apache's SUEXEC feature. Read about it at http://httpd.apache.org/docs/suexec.html qvb -- pica To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message