Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Jun 2005 08:12:03 +0200
From:      =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
To:        DrVince <drvince@anonymnet.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Jail and disk space
Message-ID:  <42A3E933.2000702@cs.tu-berlin.de>
In-Reply-To: <20050605065237.M7642@anonymnet.net>
References:  <20050605065237.M7642@anonymnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42A3E933.2000702>