From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 09:29:56 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 3095616A41F for ; Wed, 11 Jan 2006 09:29:56 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from poseidon.vdsoft.org (poseidon.vdsoft.org [193.85.147.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id B403B43D79 for ; Wed, 11 Jan 2006 09:29:50 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from localhost (unknown [127.0.0.1]) by poseidon.vdsoft.org (Postfix) with ESMTP id 6345847E532 for ; Wed, 11 Jan 2006 10:29:42 +0100 (CET) Received: from poseidon.vdsoft.org ([127.0.0.1]) by localhost (poseidon.vdsoft.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79461-10 for ; Wed, 11 Jan 2006 10:29:38 +0100 (CET) Received: from [10.0.0.132] (laptop.home.deltaeng.com [10.0.0.132]) by poseidon.vdsoft.org (Postfix) with ESMTP id 9B5FB47E530 for ; Wed, 11 Jan 2006 10:29:38 +0100 (CET) Message-ID: <43C4D004.90101@vdsoft.org> Date: Wed, 11 Jan 2006 10:29:40 +0100 From: Vladimir Dvorak User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at vdsoft.org Subject: 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 09:29:56 -0000 Hello, I have simple question - is possible to use quotas in jail(8) environment ? I set up my system as follows: 1. this is setting in "main" environment cat /etc/fstab | grep VSERVERS /dev/ad3s1f /VSERVERS ufs rw,noatime,groupquota=/VSERVERS/machine1/quotagroup,userquota=/VSERVERS/machine1/quotauser 2 2 2. this is setting in jail(8) /dev/ad3s1f / ufs rw,noatime,soft-updates,groupquota=/quotagroup,userquota=/quotauser But still cannot use quotas in jail. I thought if I have access to quotagroup and quotauser files, I can simply use quotas advantages. I try root@machine1# /etc/rc.d/quota restart quotaoff: /: Operation not permitted quotaoff: /: Operation not permitted Checking quotas: done. Enabling quotas:quotaon: using /quotagroup on quotaon: /: Operation not permitted quotaon: using /quotauser on quotaon: /: Operation not permitted done. It seems to be impossible ( some kernel restriction ). :-( Is there some way to allow this ? My last idea was to replicate users and groups to "main" system and use quotas from it - but it is not good solution if we have several hundreds users in jail(8). Thank you ! Vladimir Dvorak