From owner-freebsd-jail@FreeBSD.ORG Thu Oct 25 13:11:33 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B225B16A417 for ; Thu, 25 Oct 2007 13:11:33 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 6144113C4A7 for ; Thu, 25 Oct 2007 13:11:33 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (vanquish.pitbpa0.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Thu, 25 Oct 2007 09:11:32 -0400 id 00056403.47209604.0000FD23 Date: Thu, 25 Oct 2007 09:11:32 -0400 From: Bill Moran To: Anton - Valqk Message-Id: <20071025091132.6ef704aa.wmoran@collaborativefusion.com> In-Reply-To: <47209044.3080307@lozenetz.org> References: <47209044.3080307@lozenetz.org> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: User Quota inside jail? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 13:11:33 -0000 In response to Anton - Valqk : > Hello Group, > > I'm wondering if I can set quota inside a jail for user in it. > > For example: > > jail root: /usr/jails/testjail - this is a separate partition mounted > with quota support > > in the jail I have user: testuser > > I want to set a quota 1G for him in his home - > /usr/jails/testjail/home/testuser > > is this possible? > I was thinking of making edquota from outside the jail and setting it > from there... > but I got error the uid dosen't exists.... > > any ideas? > is someone did this? > I've tryed a search in the lists, but this list is not in the search > list.... I almost got this working in the 4.X days. I have no idea if it's easier or harder to do in 6.X, or even possible. The trick is that all the quota stuff has to be managed from the host system. The jail is simply a victim of the quotas. It means you have to have all the jail users replicated on the host, and the quotas configured on the host. Unfortunately, I don't remember any of the gory details. -- Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ wmoran@collaborativefusion.com Phone: 412-422-3463x4023