TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:6775] Quotas?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 29 Jun 1999, Yaron wrote:

> I'm using kernel 2.2.10 with Red Hat, uh, 5.2 I think... can't get quotas
> to work. I can't find any way to create the quota.users and quota.group
> files, creating empty ones gives an error ("quotaon: using
> /quota/quota.group on /dev/hdd2: Invalid argument"). Running edquota just
> brings up an empty file and I don't remember the format by heart... and in
> any case, it has nothing to update!

Make sure the filesystems you want to enable quotas on have the
proper flags set in /etc/fstab, like:

/dev/hda2  /home  ext2  defaults,usrquota,grpquota  1   2

which enables both user and group quotas for the /home
partition. Then, put a line like

/usr/sbin/quotaon -avug

in one of your startup scripts, somewhere.

Then, on a root cronjob, do

/usr/sbin/quotacheck -aug > /dev/null 2>&1

and you're all set. Feel free to use /usr/sbin/repquota -avug
to do a nicely-formatted table listing of all of the quotas.

You'll generally want a line like

/usr/sbin/quotaoff -a

in one of your shutdown scripts, as well.


- --
/------------------------->
| JellyD / Joshua Becker
| jellyd@jellyd.org

-----BEGIN PGP SIGNATURE-----
Version: GNUPG v0.4.3 (GNU/Linux)
Comment: For info finger gcrypt@ftp.guug.de

iD8DBQE3eb7WcmkpI69BOLwRAqglAJ4rTySp5g3uR/YJf2BT9OFhNWnATQCfdIBf
IQkTz1G/6J5QGBNkbmRzkAg=
=i9H4
-----END PGP SIGNATURE-----