Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Nov 2005 16:39:23 -0600
From:      "John P. Campbell" <jpc@xzuberant.com>
To:        freebsd-ports@freebsd.org
Cc:        John Campbell <jpc@xzuberant.com>
Subject:   Re: httpd: bad user name nobody (apache13-modssl port)
Message-ID:  <4371291B.5040801@xzuberant.com>
In-Reply-To: <44y83ybwm4.fsf@be-well.ilk.org>
References:  <dkqevb%2Bbr4q@eGroups.com> <44y83ybwm4.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert wrote:
> "John Campbell" <jpc@xzuberant.com> writes:
>>I recently upgrade apache13-modssl to version 1.3.34 and now when I
>>attempt to start the server, I get this message:
>>
>>httpd: bad user name nobody
>>
>>The user nobody exists and the server has been running fine for years.
>> It's not chrooted.  This happens regardless of what I put in httpd.conf.
>>
>>I googled and found lots of people with similar issues, but didn't
>>find a solution. 
>>
>>Any ideas?
> 
> 
> Are you *sure* the user "nobody" exists?

Yes, of course. "id nobody" ran just fine.  But the thing is, that it 
had nothing to do with my httpd.conf.  There was NO reference to nobody 
in there.

> Try running pwd_mkdb(8) and then check /etc/passwd (in case something
> is corrupted in the database).

What I had to do was remove this line in the config:

        --enable-module=auth_db \

After that, it seems to work.  I'm not sure what the side effects of 
that will be.  I haven't had time to check that closer.  httpd now 
starts fine, running as the user specified in the conf file (www).

> 
> Not that I recommend running apache as "nobody", anyway.
> It's definitely safer in the long run to run it as a user that is used
> for nothing else.

Like I mentioned, the conf file is not using nobody, it uses www.

jpc


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 11/5/2005




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