From owner-freebsd-questions Mon Apr 7 20:37:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA13089 for questions-outgoing; Mon, 7 Apr 1997 20:37:03 -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 UAA13081 for ; Mon, 7 Apr 1997 20:36:59 -0700 (PDT) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id LAA04844; Tue, 8 Apr 1997 11:25:51 +0800 (WST) Date: Tue, 8 Apr 1997 11:25:51 +0800 (WST) From: Adrian Chadd To: Antonio Nati cc: freebsd-questions@freebsd.org Subject: Re: Apache and effective user id In-Reply-To: <199704072353.BAA05709@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 Is the webserver running as root? Cya -- Adrian Chadd | UNIX, MS-DOS and Windows ... | (also known as the Good, the bad and the | ugly..) On Tue, 8 Apr 1997, Antonio Nati wrote: > >> > >> I'm running apache, with user = nobody (= 65536). > > > >>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. :) > > > > Sorry to make you lose time, but my nobody is 65534 (not 65536). Sorry, but > I work with a dual-boot system and during the boots my memory (me, not the > computer) loses something. > > My production system runs with dedicated uid/gid, it's my stand-alone > development system that has this problem. > > Anyway, coming back to the original question, is it right to have > getuid = 65534 > geteuid = 0 > in the execution of a cgi program? > > Tonino > >