Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 1997 23:03:07 +0800 (WST)
From:      Adrian Chadd <adrian@obiwan.aceonline.com.au>
To:        Antonio Nati <A.Nati@cisco.it>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Apache and effective user id
Message-ID:  <Pine.BSF.3.95q.970407230103.2801B-100000@obiwan.aceonline.com.au>
In-Reply-To: <199704071554.RAA05327@cisco.it>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 7 Apr 1997, Antonio Nati wrote:

> Probably I'm missing something about Apache or about uid and euid.
> 
> I'm running apache, with user = nobody (= 65536).

Right.

>From memory, FreeBSD uses 16-bit integers to hold userids, and so that
gives a valid range of UIDs of 0 .. 65535 inclusive. 65536 is 1 too much,
and so "overflows" and becomes 0 again. :)

I've created a low-priv user called "httpuser" in the group "http" with
some nice low UID/GID and things work.

Have fun,

-- 
Adrian Chadd			| UNIX, MS-DOS and Windows ...
<adrian@psinet.net.au>		| (also known as the Good, the bad and the
				|				ugly..)






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970407230103.2801B-100000>