Setting storage limits for users and groups
Imposing limits on the amount of storage a user can consume is an effective way to manage resources and ensure they are made available to everyone fairly, especially in a multiuser environment. This recipe shows you how to enable quotas and set limits by users and groups.
This recipe requires a CentOS system with administrative privileges provided by logging in with the
root account or using
sudo. It assumes
/home mounts its own filesystem.
How to do it...
Follow these steps to set up quotas and specify storage limits:
- Open the
/etc/fstabfile for editing:
- To enable user quotas, which enforce usage limits based on user accounts, add
uquotato the mount options for
/home. For group ...