How to Setup / Edit Quotas

From DISI
Revision as of 19:00, 30 June 2016 by Benrwong (talk | contribs) (Created page based on "How to Setup Quotas" and "How to edit quotas")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to setup quotas

change "quota" option in /etc/fstab to "usrquota,grpquota"
remount "mount -o remount /srv/home"
chcon -v -u system_u -t home_root_t /srv/home
quotaon -uv /srv/home

How to edit quotas

The limits can’t be a float

xfs_quota -xc 'limit bsoft=2500g bhard=2700g fischer' /srv/work

Check:

xfs_quota -xc 'report -h' 

If it’s not an xfs file type use edquota -u user


To edit ext4 quotas:

edquota -u username

Also you can check by this

quota -s username

or

repquota /nfs/work -s