How Do You See if the quota Has been Properly Enabled?

Problem scenario
You are running Linux. You think quotas are not properly configured. You run "repquota -au" and see soft and hard limits. You see grace periods. But you are not sure if quotas are enabled or not. What should you do?

Run this:

sudo quotaon -ap

To enable groups, run this:

sudo quotaon -ag

To enable user quotas, run this:

sudo quotaon -au

We tend to think user quotas make more sense because files have groups associated with them of the user that created them. But only one user can be associated with one such group. Conceptually it seems easier to grasp if you user user quotas than group quotas.

Leave a comment

Your email address will not be published. Required fields are marked *