From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 14:46:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 D26D516A41F for ; Wed, 11 Jan 2006 14:46:15 +0000 (GMT) (envelope-from michal.mertl@i.cz) Received: from vidle.i.cz (vidle.i.cz [193.179.36.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6084C43D48 for ; Wed, 11 Jan 2006 14:46:14 +0000 (GMT) (envelope-from michal.mertl@i.cz) Received: from ns.i.cz (brana.i.cz [193.179.36.134]) by vidle.i.cz (Postfix) with ESMTP id A70162E00D; Wed, 11 Jan 2006 15:46:13 +0100 (CET) Received: from localhost (localhost.i.cz [127.0.0.1]) by ns.i.cz (Postfix) with SMTP id 899B5122A02; Wed, 11 Jan 2006 15:46:13 +0100 (CET) X-AV-Checked: Wed Jan 11 15:46:13 2006 ns.i.cz Received: from genius.i.cz (genius.i.cz [192.168.129.68]) by ns.i.cz (Postfix) with ESMTP id 83143122A01; Wed, 11 Jan 2006 15:46:13 +0100 (CET) From: Michal Mertl To: Vladimir Dvorak In-Reply-To: <43C4D004.90101@vdsoft.org> References: <43C4D004.90101@vdsoft.org> Content-Type: text/plain Date: Wed, 11 Jan 2006 15:46:12 +0100 Message-Id: <1136990772.832.32.camel@genius1.i.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: quotas + jail ? 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: Wed, 11 Jan 2006 14:46:16 -0000 Vladimir Dvorak wrote: > Hello, > > I have simple question - is possible to use quotas in jail(8) environment ? Yes, it is, although with some restrictions. You have to enable the disk quotas from the host (have them listed in host's /etc/fstab). To operate the quotas from inside the jail quotas have to be mentioned in jail's /etc/fstab too (when using the file name of quota file it has to be relative to jail's root). Repquota/edquota/quota work inside the jail. You have to keep in mind that disk quotas are in fact a property of a filesystem and are not related to jails at all. So if two jails share a filesystem the disk quotas are shared too. If you have users with the same UID in both the jails they will share the quota. Michal