From owner-freebsd-questions@FreeBSD.ORG Sat Oct 2 09:29:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 885EB16A4CE for ; Sat, 2 Oct 2004 09:29:00 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7977343D46 for ; Sat, 2 Oct 2004 09:29:00 +0000 (GMT) (envelope-from john.oxley@gmail.com) Received: by mproxy.gmail.com with SMTP id q44so362596cwc for ; Sat, 02 Oct 2004 02:29:00 -0700 (PDT) Received: by 10.11.116.18 with SMTP id o18mr287009cwc; Sat, 02 Oct 2004 02:29:00 -0700 (PDT) Received: by 10.11.118.61 with HTTP; Sat, 2 Oct 2004 02:29:00 -0700 (PDT) Message-ID: Date: Sat, 2 Oct 2004 11:29:00 +0200 From: John Oxley To: questions@freebsd.org, Me Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Disk quotas X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John Oxley List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 09:29:00 -0000 The Scenario: I am running a multiuser FreeBSD 5.2.1-RELEASE box for ~500 users. We have enforced disk quotas on /home and /tmp of 250MB soft and 256MB hard The Problem: One user has inadvertently snaked around this. (btw I like users who tell you when they have found a problem that works in their favour) We're running Apache 1 with mod_php, mod_ssl etc etc etc. This user has gallery setup on his webpage and the albums directory is chmod 707'd so that httpd can write to it. The problem is that httpd creates files as http:group and quota is not picking up that he is using more disk space than we want him to. The Question: Can quota be told that all files in ~luser belong to luser as well as all files owned by luser. If not, where would the appropriate place for hacking be, the kernel or usr.bin/*quota* -Ox