*BSD News Article 70289


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!News.LiveNet.Net!jsloan
From: jsloan@LiveNet.Net (Jim Sloan)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: apache ownerships
Date: Thu, 06 Jun 96 05:25:09 GMT
Organization: LiveNet, Inc.
Lines: 39
Message-ID: <4p5q3l$1ok_002@news.livenet.net>
References: <4orc4j$lth@moon.igcom.net> <david-0406962128410001@ppp27.emeraldis.com>
NNTP-Posting-Host: yellow.livenet.net
X-Newsreader: News Xpress 2.0 Beta #0

In article <david-0406962128410001@ppp27.emeraldis.com>, david@emeraldis.com (David G. Cannon) wrote:
>In article <4orc4j$lth@moon.igcom.net>, david@terra.igcom.net (David B.
>Bauman) wrote:
>
>> I am currently using the latest apache httpd runing on bsd 2.0.1.
>> The server works fine, execept for the fact that when the apache server
>> starts, all of the processes are owned by the user/group specified in
>> /conf/httpd.conf except the main process which is owned by root.
>> Are there any other modifications that are required to have *all* web
>> processes for that daemon to be owned by the specified user/group?
>> 
>> 
>> David Bauman
>
>
>If Apache was started by the rc or rc.local file, all of it's processes
>should be running as "root".
>
>David G. Cannon

Nope, only the master process will be running as root as apache reads the 
httpd.conf file and runs it's children as that user/group specified.  The main 
process does no servicing of web pages, it's only function is to control the 
children, ie, # of startup servers, minimum spare servers, maximum spare 
servers, etc.

if you want even the master process to run as a specified user/group, then you 
would need to su user `httpd`


------------------------------------------------------------------------
 Jim Sloan                        jsloan@livenet.net
 Vice President
 LiveNet, Inc.                         
 413 Davis St. Suite 106          Full Service Internet Provider
 Virginia Beach VA 23462          Dialup and dedicated connections
 Ph: 804-499-9328                 Virtual Web, Email, and FTP hosting
 http://www.livenet.net           info@livenet.net webmaster@livenet.net
------------------------------------------------------------------------