Date: Mon, 24 Oct 2005 12:52:06 -0400 From: "Michael R. Wayne" <wayne@staff.msen.com> To: freebsd-isp@freebsd.org Subject: Re: Web Hosting - IPs, Quotas and Jails Message-ID: <20051024165206.GA91006@manor.msen.com> In-Reply-To: <435D0426.6010107@psknet.com> References: <435D0426.6010107@psknet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 24, 2005 at 11:56:22AM -0400, Troy Settle wrote: > > Anyways, here's where I need some help. I want to create a 3rd jail for > Frontpage services. FP doesn't have any built in quota support that > I've seen, so I'll need to depend on file system quotas. The problem > with this, is that quotas do not seem to work in a jailed environment. > Can anyone recommend a solution/workaround to this? This can be (mostly) made to work. Mount the filesystem on the host machine with quotas enabled, pointing to a file reachable by the jail. Example /etc/fstabs: /dev/da0s1d /JAIL_NAME/home ufs rw,nosuid,nodev,userquota=/JAIL_NAME/usr/quotas/JAIL_NAME.home 2 2 In the jail, use /dev/da0s1d /home ufs rw,nosuid,nodev,userquota=/usr/quotas/JAIL_NAME.home,noauto 2 2 Remember that you only have a single namespace (numberspace?) for UIDs so do not re-use them in other jails. /\/\ \/\/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051024165206.GA91006>
