From owner-freebsd-questions@FreeBSD.ORG Tue May 27 21:26:39 2008 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 98D861065673 for ; Tue, 27 May 2008 21:26:39 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 609948FC18 for ; Tue, 27 May 2008 21:26:39 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.2) with ESMTP id m4RLQcQg086545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 May 2008 16:26:38 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.2/Submit) id m4RLQcAq086542; Tue, 27 May 2008 16:26:38 -0500 (CDT) (envelope-from dan) Date: Tue, 27 May 2008 16:26:38 -0500 From: Dan Nelson To: Aaron Holmes Message-ID: <20080527212637.GE5582@dan.emsphone.com> References: <483C6D5E.20501@aaronholmes.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <483C6D5E.20501@aaronholmes.net> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Setting quotas on nested directories 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: Tue, 27 May 2008 21:26:39 -0000 In the last episode (May 27), Aaron Holmes said: > Hello all, > I want to set quotas on nested directories; ie: /mnt/docs has the > directories "legal" and "IT" > I want to limit "legal" to 50GB. How can this be done, if at all? > From my googleing, it looks like any filesystems you want to apply > quotas need to be be 1) in /etc/fstab and 2) mounted Quotas on UFS are set at either the user- or the group-ID level, not on directories themselves. So you could create a group named "legal", then "chgrp -R legal /mnt/docs/legal", and run "edquota -g legal" to set a 50GB quota on files in the "legal" group. http://www.freebsd.org/doc/en/books/handbook/quotas.html describes how to set up the system to enable quotas. -- Dan Nelson dnelson@allantgroup.com