Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 47207 invoked from network); 30 Oct 2003 23:58:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Oct 2003 23:58:48 -0000 Received: (qmail 75754 invoked by uid 500); 30 Oct 2003 23:58:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 75725 invoked by uid 500); 30 Oct 2003 23:58:13 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 75690 invoked from network); 30 Oct 2003 23:58:13 -0000 Received: from unknown (HELO zcamail04.zca.compaq.com) (161.114.32.104) by daedalus.apache.org with SMTP; 30 Oct 2003 23:58:13 -0000 Received: from cacexg11.americas.cpqcorp.net (cacexg11.americas.cpqcorp.net [16.105.250.94]) by zcamail04.zca.compaq.com (Postfix) with ESMTP id AE4F55AF3 for ; Thu, 30 Oct 2003 15:58:20 -0800 (PST) Received: from cacexc01.americas.cpqcorp.net ([16.105.250.72]) by cacexg11.americas.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.0); Thu, 30 Oct 2003 15:58:20 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 30 Oct 2003 15:58:20 -0800 Message-ID: <329CEF4E238E71429500F7A09094745F03B65249@cacexc01.americas.cpqcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Username/Group setting Thread-Index: AcOfFawZ/bnu8UZCSECT/rWlkAITPwAJffQw From: "Foo, Randy" To: X-OriginalArrivalTime: 30 Oct 2003 23:58:20.0375 (UTC) FILETIME=[B1F3EE70:01C39F41] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Username/Group setting X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leif, Thankyou!!! I have it running under www now.=20 The following result is after reconfiguring the *real* conf file, which you helped me find: [root@listlnx bin]# ./httpd -V|egrep "(ROOT|SERVER_CONF)" -D HTTPD_ROOT=3D"/usr/local/apache2" -D SERVER_CONFIG_FILE=3D"conf/httpd.conf" Which makes it appear that the httpd root is at /usr/local/apache2 But when first tried without the filter: ot@listlnx conf]# httpd -V Server version: Apache/2.0.40 Server built: Feb 25 2003 05:01:56 Server's Module Magic Number: 20020628:0 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR=3D"server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=3D"/etc/httpd" -D SUEXEC_BIN=3D"/usr/sbin/suexec" -D DEFAULT_PIDLOG=3D"logs/httpd.pid" -D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status" -D DEFAULT_LOCKFILE=3D"logs/accept.lock" -D DEFAULT_ERRORLOG=3D"logs/error_log" -D AP_TYPES_CONFIG_FILE=3D"conf/mime.types" -D SERVER_CONFIG_FILE=3D"conf/httpd.conf" [root@listlnx conf]# which httpd /usr/sbin/httpd [root@listlnx conf]# The conf file was in a different place than I originally thought - at /etc/httpd The documentation for apache doesn't say anything about the conf file being elsewhere, unless the prefix directory has been changed with options (but I hadn't done that). I was editing --PREFIX/conf/httpd.conf (where --PREFIX is the default /usr/local/apache2) After some reconfiguration of the /etc/httpd.conf file and a restart, the server is happily serving up mailman cgi pages. =20 Thanks again! Randy=20 -----Original Message----- From: Leif W [mailto:warp-9.9@usa.net]=20 Sent: Thursday, October 30, 2003 10:39 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Username/Group setting Do you have multiple Apache installations or config files? Ensure you're editing the right config file for the right server. Check httpd's compiled in defaults. [2003-10-30@13:25:39] /var/log -> ps auxwwf | grep httpd | grep -v grep root 2829 0.0 1.8 8044 4848 ? S 12:15 0:02 /usr/local/apache2/bin/httpd -k start -DSSL www 2845 0.0 1.7 8044 4488 ? S 12:21 0:00 \_ /usr/local/apache2/bin/httpd -k start -DSSL www 2846 0.0 2.0 8272 5272 ? S 12:21 0:00 \_ /usr/local/apache2/bin/httpd -k start -DSSL www 2849 0.0 1.8 8044 4880 ? S 12:21 0:00 \_ /usr/local/apache2/bin/httpd -k start -DSSL [2003-10-30@13:25:53] /var/www -> /usr/local/apache2/bin/httpd -V | egrep "(ROOT|SERVER_CONF)" -D HTTPD_ROOT=3D"/usr/local/apache2" -D SERVER_CONFIG_FILE=3D"conf/httpd.conf" [2003-10-30@13:26:02] /var/www -> Again, I don't know what RedHat does to mangle Apache's default installation httpd.conf file, but the one from apache.org has a section like this: # # comments here deleted for brevity's sake # #User nobody #Group #-1 User www Group www Save and restart the server with HTTPD_ROOT/bin/apachectl restart (or graceful). This is how I have successfully changed the User and Group from Apache's default of nobody/nogroup. Also note, my www user is a restricted user which has no home dir (/dev/null) and no shell (/bin/false), which is even less than what user nobody has by default on Debian (it has a /bin/sh shell). Leif ----- Original Message -----=20 From: "Foo, Randy" To: Sent: Thursday, October 30, 2003 12:55 PM Subject: RE: [users@httpd] Username/Group setting Thankyou. I tried it, and there are no processes running under nobody. I tried a ps -ef|grep httpd, and it looks to be running one instance of httpd as root, and several children as apache. I can't figure out how to get it to switch users to www though, using the httpd.conf file and changing the user and group to www just isn't working. Is there something I am missing? Any advice appreciated Best regards, Randy Foo -----Original Message----- From: Jerome Schlumberger [mailto:jerome.schlumberger@nexantis.net] Sent: Wednesday, October 29, 2003 5:35 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Username/Group setting You can do ps -u user to verify if httpd run with this user identity. Usually the user is nobody so: ps -u nobody On Thursday 30 October 2003 10:25, Foo, Randy wrote: > Hello, > > How can you tell what user apache is running under? According to the=20 > documentation, it should be possible to change it to user www using=20 > the httpd.conf file. It says to run it once as root, and then it will > change over, but I don't know how to verify this. I have some=20 > problems with apache not serving CGI pages for mailman 2.1.2 on a Red=20 > Hat 9 installation with apache 2.0.47. I've set ScriptAlias to the=20 > mailman directory, and mailman was compiled to use www as a cgi-gid.=20 > The username www does exist and can log in. I get the "Object not=20 > Found" error when trying to hit the cgi pages of mailman. The error=20 > logs tell me nothing, really. Any ideas on what I'm doing wrong here, > so that the CGI wouldn't work? > > > > Thanks, > > Randy Foo > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server=20 > Project. See for more=20 > info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org