How to Setup / Edit Quotas

From DISI
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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