From owner-freebsd-ports Thu Oct 18 4: 5:20 2001 Delivered-To: freebsd-ports@freebsd.org Received: from sapas.dppl.net (sapas.dppl.com [216.182.10.231]) by hub.freebsd.org (Postfix) with ESMTP id ACE6C37B405 for ; Thu, 18 Oct 2001 04:05:17 -0700 (PDT) Received: from volyn.dppl.net (cc375212-a.union1.nj.home.com [24.253.222.7]) by sapas.dppl.net (Postfix) with ESMTP id 4E5493E0C; Thu, 18 Oct 2001 07:05:16 -0400 (EDT) Received: from there (localhost [127.0.0.1]) by volyn.dppl.net (Postfix) with SMTP id C38731B3B0; Thu, 18 Oct 2001 07:05:13 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Yarema To: ports@FreeBSD.org Subject: Re: HEADS UP: Apache port change from nobody:nogroup to www:www planned Date: Thu, 18 Oct 2001 07:05:11 -0400 X-Mailer: KMail [version 1.3] Cc: Andrey A.Chernov , Sheldon Hearn MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011018110513.C38731B3B0@volyn.dppl.net> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Andrey A. Chernov wrote: > On Thu, Oct 18, 2001 at 12:22:32 +0200, Sheldon Hearn wrote: >> >> Hold on a second. What files does Apache _write_ as user nobody? > > Any file written from cgi-bin script f.e. I tend to agree with Sheldon Hearn here. As Doug Barton put it: > I agree that sa's that need their cgi processes to write files > should take appropriate steps to make sure that their apache user/group > permissions are safe, but I'm afraid that the step you're taking is going > to mask the problem and give people a false sense of security. Apache is not abusing nobody:nogroup -- users who don't configure their CGI environment are. The Right Thing is to run CGIs via suexec. suexec works better if apache does run as nobody:nogroup. eperl is another port that takes advantage of apache running as specifically nobody:nogroup to change the process ownership to the scrip owner's uid. -- Yarema To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message