Date: Sun, 01 Sep 2002 21:58:25 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Patrick Thomas <root@utility.clubscholarship.com> Cc: Robert Watson <rwatson@FreeBSD.org>, freebsd-hackers@FreeBSD.org Subject: Re: setting quotas _inside_ a jail for users _inside_ a jail Message-ID: <3D72EFF1.1EABD92F@mindspring.com> References: <20020901181045.S58763-100000@utility.clubscholarship.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D72EFF1.1EABD92F>