From owner-freebsd-questions Mon Apr 7 15:54:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA20170 for questions-outgoing; Mon, 7 Apr 1997 15:54:19 -0700 (PDT) Received: from cisco.it ([194.183.8.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA20160 for ; Mon, 7 Apr 1997 15:54:12 -0700 (PDT) Received: from pentium-120 (ppp-03.cisco.it [194.183.8.32]) by cisco.it (8.7.5/8.7.3) with SMTP id BAA05709; Tue, 8 Apr 1997 01:53:20 +0200 (MET DST) Date: Tue, 8 Apr 1997 01:53:20 +0200 (MET DST) Message-Id: <199704072353.BAA05709@cisco.it> X-Sender: cp011@posta.cisco.it X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Adrian Chadd From: Antonio Nati Subject: Re: Apache and effective user id Cc: freebsd-questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> >> 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