Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2008 16:26:38 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Aaron Holmes <aaron@aaronholmes.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setting quotas on nested directories
Message-ID:  <20080527212637.GE5582@dan.emsphone.com>
In-Reply-To: <483C6D5E.20501@aaronholmes.net>
References:  <483C6D5E.20501@aaronholmes.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080527212637.GE5582>