From owner-freebsd-questions@FreeBSD.ORG Tue Aug 29 06:08:58 2006 Return-Path: X-Original-To: freebsd-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 EAAFB16A4DE for ; Tue, 29 Aug 2006 06:08:58 +0000 (UTC) (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 9AF6143D45 for ; Tue, 29 Aug 2006 06:08:58 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k7T68w38018511; Tue, 29 Aug 2006 01:08:58 -0500 (CDT) (envelope-from dan) Date: Tue, 29 Aug 2006 01:08:57 -0500 From: Dan Nelson To: Philip Hallstrom Message-ID: <20060829060857.GB21198@dan.emsphone.com> References: <20060829001244.G33190@bravo.pjkh.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060829001244.G33190@bravo.pjkh.com> X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-questions@freebsd.org Subject: Re: Does QUOTA work for users not in /etc/password (ie. by UID?) 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, 29 Aug 2006 06:08:59 -0000 In the last episode (Aug 29), Philip Hallstrom said: > I was looking at implementing QUOTA for a server, but all of our > users are stored in a database (ftp/pop/imap authenticates against > the db). They each have their own uid's though so the files are > owned "individually". > > I would think file system quotas would work for this, but from the > docs I've read so far it doesn't say and all the various commands > take a username as an argument, not a uid... > > So without actually trying it out, anyone know if quotas will work > without matching /etc/passwd entries? Quotas work entirely by uid: the quota info is stored at an offset of uid*sizeof(struct dqblk) in quota.user. You can pass uids to edquota or any other quota tool. -- Dan Nelson dnelson@allantgroup.com