From owner-freebsd-questions Mon Apr 7 08:14:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA17728 for questions-outgoing; Mon, 7 Apr 1997 08:14:22 -0700 (PDT) Received: from obiwan.aceonline.com.au (obiwan.aceonline.com.au [203.103.90.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA17722 for ; Mon, 7 Apr 1997 08:14:14 -0700 (PDT) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id XAA02820; Mon, 7 Apr 1997 23:03:07 +0800 (WST) Date: Mon, 7 Apr 1997 23:03:07 +0800 (WST) From: Adrian Chadd To: Antonio Nati cc: freebsd-questions@freebsd.org Subject: Re: Apache and effective user id In-Reply-To: <199704071554.RAA05327@cisco.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 ... | (also known as the Good, the bad and the | ugly..)