Adding Quota Support Under FreeBSD
Adding Quota Support [FreeBSD]
-
Add the folloing line to your kernel configuration file:
options QUOTA
-
Compile your kernel and reboot
-
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
-
To create the needed database files type:
quotacheck -a
-
To enable quota type:
quotaon -a
-
To edit the quota type:
edquota -g
-
To check the quota type:
quota [username]
-
To enable quota at boot time add the following to your /etc/rc.conf file:
quota_enable="YES"
check_quotas="YES"