Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2007 09:11:32 -0400
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        Anton - Valqk <lists@lozenetz.org>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: User Quota inside jail?
Message-ID:  <20071025091132.6ef704aa.wmoran@collaborativefusion.com>
In-Reply-To: <47209044.3080307@lozenetz.org>
References:  <47209044.3080307@lozenetz.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Anton - Valqk <lists@lozenetz.org>:

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071025091132.6ef704aa.wmoran>