- "userquota" should be set in the options of /etc/fstab for the filesystem where you want you want quotas enabled.
/dev/sd0a /usr/local ffs rw,userquota 1 1
- Make sure your quota-enabled filesystem is mounted
- Run /etc/rc.d/quota start to generate an automatic "quotacheck -a" command
- "edquota -f FILESYSTEM USER" will open up vi and have you fill out the quota file
Quotas for user qtest:
/usr/local: blocks in use: 0, limits (soft = 20, hard = 10)
inodes in use: 0, limits (soft = 100, hard = 150)
- "quotaon -a" to turn quotas on for every filesystem with the userquota option
- Finally, try running repquota -a to see a report of all the quotas and test it out! Here's my attempting to exceed my quota of 100K
Error: bar: Disc quota exceeded; bar: WARNING: FILE TRUNCATED.
I found a few issues with quotas-
quota(1) - check your own quotarepquota(8) - check everyone's quotaquotaon(8) - enable quotasedquota(8) - edit the quota filequotacheck(8) - see if a user is exceeding his quota
- The userquota options and the log options are mutually exclusive, so WAPBL and quotas don't work together. (I think there is a plan to fix this)
- After really using quotas, I was unable to umount my fs but fstat didn't show anything using it