From owner-freebsd-jail@FreeBSD.ORG Sun Mar 24 14:28:59 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 94016BBB for ; Sun, 24 Mar 2013 14:28:59 +0000 (UTC) (envelope-from nbari@inbox.im) Received: from us3.route.mx (us3.route.mx [107.21.107.127]) by mx1.freebsd.org (Postfix) with ESMTP id 4F36CD77 for ; Sun, 24 Mar 2013 14:28:58 +0000 (UTC) Received: (route-mx 26996 invoked from network); 24 Mar 2013 14:28:58 -0000 Received: from unknown (HELO [192.168.1.102]) (nbari@inbox.im@route.mx) (envelope-sender ) by us3.route.mx (route-mx) with AES128-SHA encrypted SMTP for ; 24 Mar 2013 14:28:57 -0000 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: zfs quota per user From: Nicolas de Bari Embriz Garcia Rojas In-Reply-To: <20130324151429.52f1752f@fabiankeil.de> Date: Sun, 24 Mar 2013 14:28:52 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <6CE64B34-1433-4969-A6E2-D9E57FAE34A1@inbox.im> References: <20130324151429.52f1752f@fabiankeil.de> To: freebsd-jail@freebsd.org X-Mailer: Apple Mail (2.1503) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Mar 2013 14:28:59 -0000 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) =85 I know that I can do per user something like : zfs create zroot/jail/public/home/user1 zfs set quota=3D1G zroot/jail/public/home/user1 but that's exactly what I want to avoid. 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. this is because I have users stored on a ldap db and I would like just = to migrate does users to a jail in a new server so that new users when = login to the new jail, home is created automatically and quotas applied = with out need to create a dataset per each user. I want to avoid modifying the "ldap_pam" scripts etc.=20 Any ideas ? On Mar 24, 2013, at 2:14 PM, Fabian Keil = wrote: > Nicolas de Bari Embriz Garcia Rojas wrote: >=20 >> Hi, it is possible to have quotas per user inside a jail using zfs? >>=20 >> 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 >>=20 >> any ideas ? >=20 > You can set multiple zfs userquota properties on a single dataset. >=20 > Fabian