Date: Tue, 29 Aug 2006 01:08:57 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Philip Hallstrom <freebsd@philip.pjkh.com> Cc: freebsd-questions@freebsd.org Subject: Re: Does QUOTA work for users not in /etc/password (ie. by UID?) Message-ID: <20060829060857.GB21198@dan.emsphone.com> In-Reply-To: <20060829001244.G33190@bravo.pjkh.com> References: <20060829001244.G33190@bravo.pjkh.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060829060857.GB21198>