From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 15:25:19 2004 Return-Path: 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 01E0916A4CE for ; Thu, 26 Feb 2004 15:25:19 -0800 (PST) Received: from mail.valuehost.co.uk (mail.valuehost.co.uk [62.25.99.6]) by mx1.FreeBSD.org (Postfix) with SMTP id C62A943D31 for ; Thu, 26 Feb 2004 15:25:17 -0800 (PST) (envelope-from bjorn@eikeland.info) Received: (qmail 12821 invoked by uid 89); 26 Feb 2004 23:25:01 +0000 Received: from unknown (HELO beer.eikeland.info) (bjorn@eikeland.info@80.202.108.144) by mail.valuehost.co.uk with SMTP; 26 Feb 2004 23:25:01 +0000 In-Reply-To: <403E72C9.5010103@daleco.biz> References: <403E72C9.5010103@daleco.biz> To: "freebsd-questions@freebsd.org" Message-ID: From: Bjorn Eikeland Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Fri, 27 Feb 2004 00:24:17 +0100 User-Agent: Opera7.23/FreeBSD M2 build 518 Subject: Re: web based configuration as root or equivalent X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 23:25:19 -0000 På Thu, 26 Feb 2004 16:27:21 -0600, skrev Kevin D. Kinsey, DaleCo, S.P. : > Bjorn Eikeland wrote: > >> I'm wanting to make a web based configuration tool for my wireless >> routers >> (setting up freebsd boxes to make a outdoor wlan) - ofcourse I can use >> ssh >> and webmin, but the configuration should be made even easier for less >> technical users. >> >> I've read the how to use Webmin with apache, didnt quite folllow the >> procedure, but bear with me.. >> >> chown scripts to root (chown -R root:root /var/www/cp) >> chmod w/suid (chmod -R 755 /var/www/cp) >> >> add -U flag to perl line, what does this do? is there a php knob like >> this? > What is the "perl line"....? What does it do? PHP can certainly > do chmod and chown .... > find . -name "*.cgi" -o -name "*.pl" | perl perlpath.pl "/usr/bin/perl -U" - Its from the webmin docs, on how to run webmin through apache, it goes through the scrips and add -U to the #!/usr/bin/perl line in each script. Is something similar needed to achieve the same effect with php? (The goal is to have the php script execute with root privelegies) > >> chown the scripts back to www (chown -R www:www /var/www/cp) >> chmod rwx to www (chmod -R 700 /var/www/cp) >> >> or am I stuck with compiling apache with D_BIG_SECURITY_HOLE? >> >> thanks, >> Bjorn > > Your mailer, or some mailer between you and freebsd.org, > is one month off (in the past) ... some people may not see > your message for this reason... > Indeed it was - been a long day, cmos battery needs replacing and it seems it's easy to get the date wrong when someone flips your calandar over to january to look at last months joke... *sigh*