Date: Thu, 11 May 2000 04:56:52 GMT From: mike@sentex.net (Mike Tancsa) To: webmaster@wmptl.com (Nathan Vidican) Cc: questions@freebsd.org Subject: Re: Quotas: the simple way Message-ID: <391a1a39.855627547@mail.sentex.net> In-Reply-To: <SEN.957983359.403897996@news.sentex.net> References: <SEN.957983359.403897996@news.sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10 May 2000 14:29:19 -0400, in sentex.lists.freebsd.questions you wrote: > Assuming I have the kernel configured properly, and lines something >similar to this in /etc/fstab: > >/dev/da1s1e /home ufs rw 2 >2 >/dev/da1s1f /mail ufs rw 2 >2 /dev/da1s1f /mail ufs rw,userquota 2 > > What would I need to do, both to /etc/fstab, and to /mail to enforce a For /var/mail there are two things you need to do. One, you need to use a local mailer that honours quotas. Something like procmail is a good replacement Mlocal, P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9P, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u Then edquota sampleuser gets you Quotas for user sampleuser: /var/mail: blocks in use: 0, limits (soft = 10, hard = 20) inodes in use: 0, limits (soft = 0, hard = 0) WOuld mean that the user can permanently store 10M of data and can periodically go above to upto 20. But once above 10, they have to bop it down below 10 in 7 days. >40Meg user quota, allowing a single user to reach an absolute maximum of >ten megabytes? Sorry, you want the user to have 40M total, or 10M total ? Or do you mean you dont want the whole group getting more than 40M ? ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?391a1a39.855627547>