SUMMARY: httpd fails to set UID

From: Michael Pope (mdp@wilj.itl.co.uk)
Date: Thu Feb 23 1995 - 04:26:20 CST


The general consensus was generally check nobody exists in /etc/passwd and
nogroup exists in /etc/group. I'm sorry, I should have said that I had already
done this. Harold March gave me a clue however by saying httpd was trying
to set UID and GID to 65534. It wasn't because both nobody and nogroup were
set to -2 in /etc/passwd and /etc/group. Strange, this was the case on
every one of our Unix machines. When I RTFM it says valid UID and GID values
are 0-65535. I changed the values to what they should have been (65534) and
this fixed the problem. I have no idea why these values were set to -2, they
have been that for as long as I can remember.

Regards

        Mick

Thanks to:-

Harold March <MARCH@mtl.marconi.ca>
Mark Allyn (206) 860-9454 <allyn@allyn.com>
Ashwin P. Rao <ashwin@cadence.com>
Sergey Gribov <sergey@venus.compugen.co.il>
Alan K.K. Kong <kkkong@ee.cuhk.hk>

My original post:-

Sun Managers,

I've just installed a CERN httpd binary on to a SPARC 2 running
SunOS 4.1.1. I've setup a config file, which I include below, much as
the template for a normal standalone server included with the binary.

################# httpd configuration file #################

ServerRoot /WWW
HostName enginfo.itl.co.uk
ServerType StandAlone
PidFile /etc/httpd-pid
Port 80
#
UserId nobody
GroupId nogroup
#
AccessLog /var/adm/httpd-log
ErrorLog /var/adm/httpd-errors
LogFormat Common
LogTime LocalTime
#
UserDir WWW
#
Pass /* /WWW/*

############################################################

Everthing appears to be working fine except that I get the following
errors appearing in the error log every time an http request is made
to the server.

[20/Feb/1995:08:57:37 +0000] [OK] [host: porsche.itl.co.uk] Failed to set group id to -2
[20/Feb/1995:08:57:37 +0000] [OK] [host: porsche.itl.co.uk] Failed to set user id to -2

httpd is running as root. The binary I downloaded was listed for
SunOS 4.1.3, could this be the problem ?

Can anyone throw any light on this for me.

Thanks in advance.

        Mick

-- 

Mick Pope Research & Development

Wilj International Ltd, Internet: mdp@wilj.itl.co.uk Viking House, Phone: +44 1233 638383 Ellingham Way Fax: +44 1233 627553 Ashford, Kent, TN23 6NF ENGLAND Instrumental in Diagnostic Technology



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:17 CDT