From owner-freebsd-hackers Sun Sep 1 21:59:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1013C37B400; Sun, 1 Sep 2002 21:59:37 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9BE743E65; Sun, 1 Sep 2002 21:59:36 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0170.cvx21-bradley.dialup.earthlink.net ([209.179.192.170] helo=mindspring.com) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17ljJH-00034O-00; Sun, 01 Sep 2002 21:59:35 -0700 Message-ID: <3D72EFF1.1EABD92F@mindspring.com> Date: Sun, 01 Sep 2002 21:58:25 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Patrick Thomas Cc: Robert Watson , freebsd-hackers@FreeBSD.org Subject: Re: setting quotas _inside_ a jail for users _inside_ a jail References: <20020901181045.S58763-100000@utility.clubscholarship.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Patrick Thomas wrote: > No, sorry I think that I was misunderstood - here is my situation: > > - I have a host machine with no users - just root. > - on that host machine I have a vn-backed FS 500 megs in size > - on that vn-backed FS, I run a jail - and no other jails share that > vn-backed FS (although other jails may share the underlying actual disk FS > that the vn is on...) This is the magic part: quotas are per-UID, per-FS, but Robert is correct about their relationship to jails. What you failed to communicate to Robert is that you have also arbitrarily defined FS's to be per-jail, which, in the limit, will (effectively) make quota per-UID, per-jail. Most people don't use vn-backed FSs for jails. > Now, I die in a car accident and nobody ever logs into the host system > again or touches anything on the _host system_. > > Can the root user of the _jail running on the host system_ set up quotas > for her users ? Let's assume the root user and all her other users don't > even know it is a jail - as far as they are concerned, it's just their > freebsd machine. The answer is "yes". The method of doing this was already posted in this thread. You have to do evil things to the fstab within the jail itself, and outside the jail, but if you wave the correct dead chicken, it works. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message