From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 12:56:25 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 449B0106566B for ; Sun, 8 Feb 2009 12:56:25 +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 043478FC1B for ; Sun, 8 Feb 2009 12:56:24 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id 2D55C78FB5; Sun, 8 Feb 2009 13:56: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 106DC78C82; Sun, 8 Feb 2009 13:56:22 +0100 (CET) Date: Sun, 8 Feb 2009 13:56:24 +0100 From: Nicolas Letellier To: Glen Barber Message-Id: <20090208135624.72f60572.nicolas@nicoelro.net> In-Reply-To: <4ad871310902080450r39b89f85uc1668657f55ee4d6@mail.gmail.com> References: <20090208133123.401c8d1a.nicolas@nicoelro.net> <4ad871310902080450r39b89f85uc1668657f55ee4d6@mail.gmail.com> 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 Cc: FreeBSD Questions Subject: Re: 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:56:25 -0000 On Sun, 8 Feb 2009 07:50:34 -0500 Glen Barber wrote: > On Sun, Feb 8, 2009 at 7:31 AM, Nicolas Letellier wrote: > > 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... ? > > > > I haven't used 1.3 in years... I don't think www:www is proper, but I > may be wrong. With 2.2.X, the permissions are root:wheel. What > happens when you execute the page? What is printed the error log? Thanks for your response. I have another FreeBSD (7.0) and Apache 1.3, and it works. On this machine (6.3) it does not work. When I upload a FILE, the rights are root:wheel ; when I create a folder, the rights are www:site1. www:site1 are rights of all files. The problem is... I don't understand the "wheel". Apache does not run in wheel. All my folders/files are not grouped by "wheel". I don't understand WHY apache set 'wheel' in group... I have nothing in log. Because there are no errors... All is ok... Just the rights...... -- -Nicolas.