How to Setup / Edit Quotas: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page based on "How to Setup Quotas" and "How to edit quotas")
 
(No difference)

Latest revision as of 19:00, 30 June 2016

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