From owner-freebsd-questions@FreeBSD.ORG Tue Nov 8 22:47:18 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2953816A41F for ; Tue, 8 Nov 2005 22:47:18 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4268E43D5A for ; Tue, 8 Nov 2005 22:47:16 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jA8MlCtT077896; Tue, 8 Nov 2005 16:47:12 -0600 (CST) (envelope-from dan) Date: Tue, 8 Nov 2005 16:47:12 -0600 From: Dan Nelson To: Derrick MacPherson Message-ID: <20051108224712.GC87007@dan.emsphone.com> References: <437028F8.3020303@mainframe.ca> <1131489502.8762.19.camel@mandarin-04> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1131489502.8762.19.camel@mandarin-04> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: questions@freebsd.org Subject: Re: setting a quotas default X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 22:47:18 -0000 In the last episode (Nov 08), Derrick MacPherson said: > On Mon, 2005-11-07 at 20:26 -0800, Derrick MacPherson wrote: > > i have proftpd getting users out of a mysql DB, and it's set to > > create home dirs automaticaly; how do i get there to be a quota > > automaticaly be placed on the users? > > can this not be done? What I do is just "prefill" the quotas for as many users as you expect to have, using the edquota command. Assuming your uids start at 1000 and you already have user 1000's quotas set: edquota -p 1000 1001-2000 will copy userid 1000's quotas to the next 1000 users to get created. If proftpd can run a script when it creates a user, you could set the quota in there. -- Dan Nelson dnelson@allantgroup.com