From owner-freebsd-hackers Mon Nov 27 06:40:50 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA03757 for hackers-outgoing; Mon, 27 Nov 1995 06:40:50 -0800 Received: from bigbird.vmicls.com (bigbird.vmicls.com [198.17.96.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA03747 for ; Mon, 27 Nov 1995 06:40:45 -0800 Received: from gonzo by bigbird.vmicls.com (8.6.9/SMI-4.1-vmicls-master-host-1) id JAA18243; Mon, 27 Nov 1995 09:43:15 -0500 From: Jerry.Kendall@vmicls.com (Jerry Kendall) Organization: VMI Communications and Learning Systems Received: by gonzo (5.0/vmi-client-host-1) id AA28992; Mon, 27 Nov 1995 09:43:13 +0500 Date: Mon, 27 Nov 1995 09:43:13 +0500 Message-Id: <9511271443.AA28992.gonzo@vmicls.com> To: hackers@freebsd.org Subject: Re: Quotas? X-Sun-Charset: US-ASCII content-length: 2637 Sender: owner-hackers@freebsd.org Precedence: bulk > From owner-freebsd-bugs@freefall.freebsd.org Sat Nov 25 22:06:43 1995 > 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? > MIME-Version: 1.0 > > 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. ** > Is this info in a FAQ somewhere. I looked for it and found very little info. Jerry