From owner-freebsd-questions Tue Dec 9 03:49:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA25976 for questions-outgoing; Tue, 9 Dec 1997 03:49:38 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from eh.est.is (root@eh.est.is [194.144.208.34]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA25969 for ; Tue, 9 Dec 1997 03:49:29 -0800 (PST) (envelope-from totii@est.is) Received: from est.is (ppp-21.est.is [194.144.208.121]) by eh.est.is (8.8.5/8.8.7) with ESMTP id LAA27027; Tue, 9 Dec 1997 11:48:08 GMT (envelope-from totii@est.is) Message-ID: <348D2FFE.54573BF8@est.is> Date: Tue, 09 Dec 1997 11:48:14 +0000 From: "Žoršur Ivarsson" X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Jason Wells CC: gaof@public.intercom.com.cn, freebsd-questions@FreeBSD.ORG Subject: Re: about quota References: <348BA700.B54144AC@public.intercom.com.cn> <3.0.3.32.19971209073634.007c07a0@jcwells.deskmail.washington.edu> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jason Wells wrote: > > 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?" I ran into this problem on FreeBSD server I am admin for. Local mailer changes ownership of the mail file after update. > > >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! I use pop, and I have got those problems, in the first I thought I could snap on my customers fingers when they where doing something stupid (the quota limit for /var/mail is 30MB/40MB) but as you can belive I got nothing. Pop uses I think /var/mail/tmp in my installation! > > 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. In my installation I have qouta for /var/mail and /home, i.e. different qouta for different filesystem. > > 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 I think this was on the mailinglist several months ago, at same time as I was installing my system here, and ran into this. I just dropt this then but I think there are some hacks available on this matter. -- Žóršur Ķvarsson Thordur Ivarsson Ķsland Iceland --------------------------------------------- FreeBSD has good features, Some others are full of unwanted features! ---------------------------------------------