rami.info



Adding Quota Support Under FreeBSD

Posted in by Rami on the February 20th, 2005

Adding Quota Support [FreeBSD]

  1. Add the folloing line to your kernel configuration file:

    options QUOTA

  2. Compile your kernel and reboot

  3. Edit your /etc/fstab file and add userquota and/or groupquota to the options of the filesystem you want to enable quota for, i.e.:

    /dev/ad0s1g /usr ufs rw,groupquota 2 2

  4. To create the needed database files type:

    quotacheck -a

  5. To enable quota type:

    quotaon -a

  6. To edit the quota type:

    edquota -g

  7. To check the quota type:

    quota [username]

  8. To enable quota at boot time add the following to your /etc/rc.conf file:

    quota_enable="YES"

    check_quotas="YES"

Leave a Reply