From owner-freebsd-isp@FreeBSD.ORG Mon Oct 24 16:52:08 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC46616A41F for ; Mon, 24 Oct 2005 16:52:08 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (manor.msen.com [148.59.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46DD143D46 for ; Mon, 24 Oct 2005 16:52:08 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (localhost [127.0.0.1]) by manor.msen.com (8.12.9p2/8.12.9) with ESMTP id j9OGq7Hr060036 for ; Mon, 24 Oct 2005 12:52:07 -0400 (EDT) (envelope-from wayne@manor.msen.com) Received: (from wayne@localhost) by manor.msen.com (8.12.9p2/8.12.9/Submit) id j9OGq6OR060035 for freebsd-isp@freebsd.org; Mon, 24 Oct 2005 12:52:06 -0400 (EDT) (envelope-from wayne) Date: Mon, 24 Oct 2005 12:52:06 -0400 From: "Michael R. Wayne" To: freebsd-isp@freebsd.org Message-ID: <20051024165206.GA91006@manor.msen.com> Mail-Followup-To: freebsd-isp@freebsd.org References: <435D0426.6010107@psknet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <435D0426.6010107@psknet.com> User-Agent: Mutt/1.4.2.1i Subject: Re: Web Hosting - IPs, Quotas and Jails X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2005 16:52:08 -0000 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. /\/\ \/\/