From owner-freebsd-newbies Mon Oct 1 0:30:10 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from infinitive.futureperfectcorporation.com (curie.sunesi.com [196.25.112.244]) by hub.freebsd.org (Postfix) with SMTP id C219237B416 for ; Mon, 1 Oct 2001 00:28:29 -0700 (PDT) Received: (qmail 96601 invoked by uid 0); 1 Oct 2001 07:28:25 -0000 Received: from choke.sunesi.net (HELO gerund.futureperfectcorporation.com) (196.25.112.242) by infinitive.futureperfectcorporation.com with SMTP; 1 Oct 2001 07:28:25 -0000 Received: (qmail 28878 invoked by uid 1001); 1 Oct 2001 07:28:25 -0000 Date: Mon, 1 Oct 2001 09:28:25 +0200 From: Neil Blakey-Milner To: =?iso-8859-1?Q?S=F8ren_Neigaard?= Cc: GB Clark II , newbies@FreeBSD.ORG Subject: Re: automatic start of Apache Message-ID: <20011001092824.A28783@mithrandr.moria.org> References: <200109301651.JAA23450@ocis.ocis.net> <172104446956.20010930194645@e-box.dk> <01093013473503.38597@prime.vsservices.com> <1521651324.20010930225604@e-box.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <1521651324.20010930225604@e-box.dk>; from neigaard@e-box.dk on Sun, Sep 30, 2001 at 10:56:04PM +0200 Organization: iTouch Labs X-Operating-System: FreeBSD 4.3-RELEASE i386 X-URL: http://mithrandr.moria.org/nbm/ Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun 2001-09-30 (22:56), Søren Neigaard wrote: > Sunday, September 30, 2001, 8:47:35 PM, GB wrote: > > >>>> stuff about using /usr/local/etc/rc.d/ scripts... > >> I like this method best :) I can see that httpd runs as nobody. Can I > >> change this, and is it a good/bad idea? > GCI> Yes, this can be changed with a wrapper or other means. > GCI> It depends on what you want to run the web server as. Another non-prived > GCI> account should be OK... Root would be very bad...:) > Yes I can guess that. I would like it to run as a apache user, how can > this be done? Could you give a example please? Just add an apache user (``pw useradd apache -u 64500''), and change these lines in /usr/local/etc/apache/httpd.conf: User nobody Group nobody to User apache Group apache Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message