How to Setup / Edit Quotas

From DISI
Jump to: navigation, 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