*BSD News Article 63938


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!news.gan.net.au!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!news.mathworks.com!solaris.cc.vt.edu!usenet
From: mmead@neon.Glock.COM (matthew c. mead)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Default Quota?
Date: 21 Mar 1996 17:02:21 GMT
Organization: Glock Telecommunications
Lines: 34
Message-ID: <MMEAD.96Mar21120221@neon.Glock.COM>
References: <31505B47.438A@awinc.com>
NNTP-Posting-Host: neon.glock.com
NNTP-Posting-User: mmead
In-reply-to: Paul Archard's message of Wed, 20 Mar 1996 11:23:51 -0800

In article <31505B47.438A@awinc.com> Paul Archard <paul@awinc.com> writes:

> Hi all,

> Sorry in advance if this is a stupid question ;-)

> I am attempting to install quotas on our 2.1 installation which 
> is running as a mail server - (bad idea?)

> The problem is, there are about 10,000 users in the password 
> file, and I want to set a default quota limit of about 2.5 meg 
> per user.  I don't really feel like doing a separate quota for 
> each user!

> It seems to me that there must be a way to specify a default 
> quota limit, but I can't find any documentation on this. Can 
> someone please help me out?

	You have to specify it for each user.  However, this isn't very
difficult.  You can write a shell script that grabs all the names from the
password file and then runs edquota -p <protouser> <name from passwd file>
on every name it finds.  The <protouser> is just some random user that you
use to store default quota information.  This makes doing a batch job of
quota setups very easy to perform, as you don't have to edit all of them by
hand :-)  Hope this helps... if you need more info let me know....



-matt
-- 
Matthew C. Mead

mmead@Glock.COM
http://www.Glock.COM/~mmead/