zfs quota per user
freebsd-listen at fabiankeil.de
Sun Mar 24 15:05:41 UTC 2013
Nicolas de Bari Embriz Garcia Rojas <nbari at inbox.im> wrote [quoting adjusted]:
> On Mar 24, 2013, at 2:14 PM, Fabian Keil <freebsd-listen at fabiankeil.de> wrote:
> > Nicolas de Bari Embriz Garcia Rojas <nbari at inbox.im> wrote:
> >> Hi, it is possible to have quotas per user inside a jail using zfs?
> >> I don't want to create a zfs file system for each user I just want to apply,
> >> let's say a quota of 100M per account. (like UFS quotas) but within a jail
> >> any ideas ?
> > You can set multiple zfs userquota properties on a single dataset.
> within a jail ?
> let's say I have a jail and a dataset /home and what to give 1GB of space to users, something like:
> /home/user1 (1GB quota)
> /home/user2 (1GB quota)
> I know that I can do per user something like :
> zfs create zroot/jail/public/home/user1
> zfs set quota=1G zroot/jail/public/home/user1
> but that's exactly what I want to avoid.
quota and userquota are different properties.
The details are in the zfs man page.
> I would like to at least only create zroot/jail/public/home with a quota of 1GB
> and that automatically all created users inherit that quota per home.
> with out need to manually have to create the user home and set a quota.
You can set userquotas in advance using numeric IDs
(or user names, if you can predict them).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 196 bytes
Desc: not available
More information about the freebsd-jail