Jail and disk space

Björn König bkoenig at cs.tu-berlin.de
Mon Jun 6 06:13:50 GMT 2005


DrVince wrote:

> Could I use quota to limit jails?

You can add each user of a jail to a specific jail group and use group 
quotas at the host environment. These words as shell commands:

insidethejail# pw addgroup jail01 -g 8001 -M `grep -v '^#' 
/etc/master.passwd | cut -d: -f1 | tr '\n' ','`

outsidethejail# pw addgroup jail01 -g 8001 && edquota -g jail01

This is obviously not a safe limitation as long as the root user of a 
jail is able to remove users from this group.

Björn


More information about the freebsd-questions mailing list