From owner-freebsd-bugs Sat Nov 25 18:53:34 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA06828 for bugs-outgoing; Sat, 25 Nov 1995 18:53:34 -0800 Received: from ncc-1701-d.starfleet.gov (ix-sb1-04.ix.netcom.com [204.32.201.36]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA06821 for ; Sat, 25 Nov 1995 18:53:29 -0800 Received: (from d_burr@localhost) by ncc-1701-d.starfleet.gov (8.6.11/8.6.9) id SAA06806; Sat, 25 Nov 1995 18:56:25 -0800 Date: Sat, 25 Nov 1995 18:56:24 -0800 (PST) From: Donald Burr X-Sender: d_burr@ncc-1701-d To: Alan Batie cc: freebsd-bugs@freebsd.org Subject: Re: Quotas? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org Precedence: bulk On Sat, 25 Nov 1995, Alan Batie wrote: > I'm building a new 2.1.0 system, and it appears that quotas are not > functional. I do have "options QUOTA" in the config file, but I have > imposed quotas on a filesystem, and can go in and create files exceeding > the quota. "quota -v" shows nothing until I run quotacheck, at which > point "quota -v" shows the correct values, but I can still use additional > space, and the values are not updated until the next "quotacheck". Ok, well, in the /etc/rc file, look for lines that look like this: -----CUT HERE # Check the quotas if [ "X${check_quotas}" = X"YES" ]; then echo -n 'checking quotas:' quotacheck -a echo ' done.' quotaon -a fi -----CUT HERE They MAY or MAY NOT be commented-out; if they are, then remove the comments. This code runs the quota checker at startup, and turns quota's on -- from there, the system (kernel) keeps track of quotas by itself. But, you now have to tell it which FILESYSTEMS to enable quotas for. Look in /etc/fstab. For each filesystem you want to enable quotas for, add a "userquota" and/or "groupquota" entry to the 4th field of the fstab. Note the example below, this comes from my freebsd box... I have quota's on only ONE filesystem, that is /dev/sd0s2b (which is mounted under /home). -----CUT HERE /dev/sd0a / ufs rw 1 1 /dev/sd0s2e /usr ufs rw 1 1 /dev/sd0s1 /dos msdos rw 0 0 /dev/cd0a /cdrom cd9660 ro 0 0 /dev/wd0s1a /news ufs rw 1 1 /dev/sd0s2f /news/in.coming ufs rw 1 1 /dev/sd0s2b /home ufs rw,userquota,groupquota 1 1 proc /proc procfs ro 0 0 /dev/wd0s1b none swap sw 0 0 -----CUT HERE Then just REBOOT, run 'edquota ' for each on your system, set some reassonable quotas, log in as one of the 's and try being a disk hog. You'll quickly find out that this is not very possible. Donald Burr [d_burr@ix.netcom.com], PO Box 91212, Santa Barbara CA 93190-1212 TEL (805)564-1871 / FAX 564-2315 / WWW http://www.geopages.com/WallStreet/2072 PGP Public Key available by request (send e-mail) or on Public Key Servers. ** Uphold your right to privacy - Use PGP. **