From owner-freebsd-questions Mon Apr 7 07:55:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA16770 for questions-outgoing; Mon, 7 Apr 1997 07:55:07 -0700 (PDT) Received: from cisco.it ([194.183.8.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA16756 for ; Mon, 7 Apr 1997 07:54:56 -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 RAA05327 for ; Mon, 7 Apr 1997 17:54:16 +0200 (MET DST) Date: Mon, 7 Apr 1997 17:54:16 +0200 (MET DST) Message-Id: <199704071554.RAA05327@cisco.it> X-Sender: cp011@posta.cisco.it (Unverified) X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: freebsd-questions@FreeBSD.ORG From: Antonio Nati Subject: Apache and effective user id Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Probably I'm missing something about Apache or about uid and euid. I'm running apache, with user = nobody (= 65536). When I run a CGI program I have the following situation: after start: getuid = 65536 geteuid = 0 after setuid(0) and seteuid(0): getuid = 0 geteuid = 0 Is that correct? Should instead Apache start my program with euid = 65536? Isn't euid the effective user id during the run of a program (the one I may modify with chmod 4xxx), that's to say the one that gives me the real access privileges? Tonino