From owner-freebsd-questions Mon Dec 8 23:36:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA09135 for questions-outgoing; Mon, 8 Dec 1997 23:36:52 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from jason01.u.washington.edu (root@jason01.u.washington.edu [140.142.70.24]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA09129 for ; Mon, 8 Dec 1997 23:36:50 -0800 (PST) (envelope-from jcwells@u.washington.edu) Received: from saul7.u.washington.edu (root@saul7.u.washington.edu [140.142.82.2]) by jason01.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.05) with ESMTP id XAA34878; Mon, 8 Dec 1997 23:36:42 -0800 Received: from S8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by saul7.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.04) with SMTP id XAA25045; Mon, 8 Dec 1997 23:36:42 -0800 (PST) Message-Id: <3.0.3.32.19971209073634.007c07a0@jcwells.deskmail.washington.edu> X-Sender: jcwells@jcwells.deskmail.washington.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Tue, 09 Dec 1997 07:36:34 +0000 To: =?iso-8859-1?Q?=22=DEor=F0ur_Ivarsson=22?= , gaof@public.intercom.com.cn From: Jason Wells Subject: Re: about quota Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <348BF2E5.E79D3A19@est.is> References: <348BA700.B54144AC@public.intercom.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id XAA09131 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk At 13:15 12/8/97 +0000, Žoršur Ivarsson wrote: >Gao Fei wrote: >> >> I have some questions about quota. >> I edquota one user's quota to 1M,but his can get mail larger than 1M. >> then this user get mail, system tell him/her quota exceed. >> another strange thing, if this user get 800K mail,when he/she get >> mail,system >> also tell him/her quota exceed,it seemed,when one user get mail,system >> copy >> his mail.so his/her quota exceed. >> Please tell me why? > >Sendmail is running as 'root' and writes to the /var/mail throug local >mailer that runns as 'root'. If you look in /var/mail at your mail file you will see it is owned by yourself. Since you have ownership of it, it should count against your quota. We have observer that this is not the case. So we ask, "What is going on?" >Root has no quotas and therefor does not limit what user gets from >Sendmail. If root makes a file owned by someone else and that file causes a quota violation, the user will get nabbed. FWIW. You can establish a quota on root like any other user. It is not a very good idea though. >When user fetches his mail, his mail is copied to temporary file, under >users name, that has quota, that has exeded! This answer uses IRIX semantics. (I may be making a big mistake here. Bare with me. The man pages seem to agree with what I will say.) Quota establishes a quota on a per filesystem basis. Take a peek at your /etc/fstab. More than likely this system has established a seperate /var filesystem. Also more that likely is that this system has not placed a quota on /var. There is no quota to violate on /var whatsoever. When the user fetches mail, the data is copied into the /usr filesystem from the /var filesystem. The /usr filsystem DOES have quota. Bingo, the user gets nabbed for having more than one meg of storage. Now. About the 800k of mail question. The user may have 200k of other files, which, when added to 800k exceed the quota. ::shrug:: It apears that FreeBSD does not have a 'number of files' limit. Have fun, Jason Wells