From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 12:31:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66A3E106564A for ; Sun, 8 Feb 2009 12:31:26 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: from mail.nicoelro.net (helm.nicoelro.net [87.98.216.147]) by mx1.freebsd.org (Postfix) with ESMTP id 29A6A8FC1B for ; Sun, 8 Feb 2009 12:31:26 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id C00A978D1A; Sun, 8 Feb 2009 13:31:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on helm.nicoelro.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from orthanc (mne69-8-82-247-37-160.fbx.proxad.net [82.247.37.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@nicoelro.net) by mail.nicoelro.net (Postfix) with ESMTP id 9ACE478C2B for ; Sun, 8 Feb 2009 13:31:23 +0100 (CET) Date: Sun, 8 Feb 2009 13:31:23 +0100 From: Nicolas Letellier To: FreeBSD Questions Message-Id: <20090208133123.401c8d1a.nicolas@nicoelro.net> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Problem when uploading files with Apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2009 12:31:26 -0000 Hello. I use apache13 with FreeBSD 6.3. I have some websites, in : /var/www/sites/site1 /var/www/sites/site2 I use PHP 5 (compiled in apache module). The rights are: ls -ls /var/www/sites/site1: www:site1 All files are owned by www user. All files are grouped in site{1,2} group. I have a php script in /var/www/sites/site1. I call it with www.domain.com/test.php. If, in my php page, I create a folder (in /var/www/sites/site1/), it have www:site1 in rights. Ok, it's good. However, if I create a file, it have www:wheel in rights. What's the problem? Apache runs in www:www. I does not have folder grouped in wheel group. Why Apache set 'wheel' as group when I upload a file? Do you have advices, solutions... ? Thanks! -- -Nicolas.