Date: Mon, 27 Nov 1995 09:43:13 +0500 From: Jerry.Kendall@vmicls.com (Jerry Kendall) To: hackers@freebsd.org Subject: Re: Quotas? Message-ID: <9511271443.AA28992.gonzo@vmicls.com>
next in thread | raw e-mail | index | archive | help
> 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 <d_burr@ix.netcom.com>
> X-Sender: d_burr@ncc-1701-d
> To: Alan Batie <batie@agora.rdrop.com>
> 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 <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. **
>
Is this info in a FAQ somewhere. I looked for it and found very little info.
Jerry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9511271443.AA28992.gonzo>
