Date: Sat, 25 Nov 1995 18:56:24 -0800 (PST) From: Donald Burr <d_burr@ix.netcom.com> To: Alan Batie <batie@agora.rdrop.com> Cc: freebsd-bugs@freebsd.org Subject: Re: Quotas? Message-ID: <Pine.BSF.3.91.951125185241.6790A-100000@ncc-1701-d> In-Reply-To: <m0tJVpq-0002SWC@agora.rdrop.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <user>' for each <user> on your system, set some reassonable quotas, log in as one of the <user>'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. **
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951125185241.6790A-100000>