Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2001 09:28:25 +0200
From:      Neil Blakey-Milner <nbm@mithrandr.moria.org>
To:        =?iso-8859-1?Q?S=F8ren_Neigaard?= <neigaard@e-box.dk>
Cc:        GB Clark II <gclarkii@vsservices.com>, newbies@FreeBSD.ORG
Subject:   Re: automatic start of Apache
Message-ID:  <20011001092824.A28783@mithrandr.moria.org>
In-Reply-To: <1521651324.20010930225604@e-box.dk>; from neigaard@e-box.dk on Sun, Sep 30, 2001 at 10:56:04PM %2B0200
References:  <200109301651.JAA23450@ocis.ocis.net> <172104446956.20010930194645@e-box.dk> <01093013473503.38597@prime.vsservices.com> <1521651324.20010930225604@e-box.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011001092824.A28783>