yum install quota
mount -o remount,usrquota /dev/sda5 /home
quoatcheck -cugm /home
edquota -u xing or edquota -g group name
quotaon /home
#test by below
dd if=/dev/zero of=bigfile bs=1M count=100?
vi /etc/fstab
# apply current user nance to others users
edquota -up nancy michael randy donna
#apply current group to other groups
edquota -gp wheel sales
# check quota reports
quotarep -a
#apply mj's quota to all users in system
edquota -p mj `awk -F: '$3 > 499 {print $1}' /etc/passwd'
#put quotacheck in cron
quotacheck command at 2:00 A.M. every Saturday:
0 2 * * 6 /sbin/quotacheck -avug
转载于:https://blog.51cto.com/johnnyxing/199479