From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 26 22:32:51 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CA6E16A401 for ; Wed, 26 Apr 2006 22:32:51 +0000 (UTC) (envelope-from spork@bway.net) Received: from mail.bway.net (xena.bway.net [216.220.96.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5BBF43D45 for ; Wed, 26 Apr 2006 22:32:50 +0000 (GMT) (envelope-from spork@bway.net) Received: (qmail 45201 invoked by uid 0); 26 Apr 2006 22:32:50 -0000 Received: from unknown (HELO office-dhcp-26.bway.net) (spork@bway.net@216.220.107.26) by smtp.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Apr 2006 22:32:50 -0000 Date: Wed, 26 Apr 2006 18:23:59 -0400 (EDT) From: Charles Sprickman To: hackers@freebsd.org Message-ID: <20060426182348.O4513@sporker.bway.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Jail Quotas - quota.user hard link X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 22:32:51 -0000 Hello all, I have a question about using quotas in a jail with FreeBSD 6.x. So far I have had no problems on a test box with setting quotas from the host using a numeric UID (ie: edquota -u 20000 where UID 20000 is a user that only exists in a jail). That seems to "just work". The problem comes when I want the jailed users to be able to see what their current usage is. I have a few jails on one partition, so the problem is that the quota.user file is outside the jail. Making a hard link to /jails/quota.user from /jails/jailX/quota.user starts to solve the problem. Only one jail actually needs this capability. Is there any problem with this technique of making a hard link to the real quota.user? One other note... I do null mount ports into two jails from another jail that is used strictly for package building (all on the same filesystem). Are there any weird nullfs/quota interactions to be aware of? Thanks, Charles ___ Charles Sprickman NetEng/SysAdmin Bway.net - New York's Best Internet - www.bway.net spork@bway.net - 212.655.9344