PDA

View Full Version : Quota Clear Up


linutzy
22nd August 2005, 08:48
The following steps are from the perfect debian setup page:

touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug



This is from the ispconfig.com site:

Edit the file /etc/fstab and look for the entry, in which the directory /home is mentioned, e.g.
/dev/hda6/home ext2 default 1 2
Add the words usrquota and grpquota as follows:
/dev/hda6 /home ext2 defaults,usrquota,grpquota 1 2
Create the files aquota.user and aquota.group in the directory /home:
touch home/aquota.user
and
touch /home/aquota.group
Change the properties of the new files:
chmod 600/home/aquota.*
Reboot the server:
shutdown -r now
After the restart you have to do the following:
quotacheck -avugm
and
quotaon -avug


I take it both steps are the same correct?

till
22nd August 2005, 10:48
For a DEBIAN Setup, follow the steps on the DEBIAN Howto.

falko
22nd August 2005, 11:15
The following steps are from the perfect debian setup page:

touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug



This is from the ispconfig.com site:

Edit the file /etc/fstab and look for the entry, in which the directory /home is mentioned, e.g.
/dev/hda6/home ext2 default 1 2
Add the words usrquota and grpquota as follows:
/dev/hda6 /home ext2 defaults,usrquota,grpquota 1 2
Create the files aquota.user and aquota.group in the directory /home:
touch home/aquota.user
and
touch /home/aquota.group
Change the properties of the new files:
chmod 600/home/aquota.*
Reboot the server:
shutdown -r now
After the restart you have to do the following:
quotacheck -avugm
and
quotaon -avug


I take it both steps are the same correct?

As always, it depends... :p
If you have a large / partition with all your websites and mailboxes on it, then do this:
touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug

If you have a partition for /home with your users' web sites on it, then do the same for /home.

tom
23rd April 2006, 11:35
Why you are speaking about two different quotafiles? (Perfect Setup and ISPC quota setup)

touch /quota.user /quota.group > (Perfect Setup)
and
touch /home/aquota.user /home/aquota.group > (ISPC quota setup)

In the manpage of quota it says:
aquota.user or aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
---------------------
quota.user or quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)

So the use of the quotafiles seems to depence on the quota version and not directly on an OS but OS can have diffenrent versions of quota.

right?

tom

till
23rd April 2006, 15:29
Yes, it depends on the quota version that ships with your linux distribution.