Quota Clear Up

Discussion in 'Server Operation' started by linutzy, Aug 22, 2005.

  1. linutzy

    linutzy New Member

    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?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    For a DEBIAN Setup, follow the steps on the DEBIAN Howto.
     
  3. falko

    falko Super Moderator Howtoforge Staff

    As always, it depends... :p
    If you have a large / partition with all your websites and mailboxes on it, then do this:
    Code:
    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.
     
  4. tom

    tom Member

    Why you are speaking about two different quotafiles? (Perfect Setup and ISPC quota setup)

    and
    In the manpage of quota it says:
    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
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, it depends on the quota version that ships with your linux distribution.
     

Share This Page