1/ vim /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sat Apr 21 02:17:00 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=7e5005d7-ce45-45b9-a187-83e845c8ef51 / ext4 defaults,usrquota,grpquota 1 1
UUID=99dab9ab-fe16-4207-aa06-dcd894effe31 /boot ext4 defaults 1 2
UUID=81832f78-e75c-43b7-a8dc-2f5f3e956ce5 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
添加 defaults,usrquota,grpquota 这一快
2/ quotacheck -cugvm /
对/应用一下quota
3/ quotaon -a
4/edquota -u test100
Disk quotas for user liuyi (uid 500):
Filesystem blocks soft hard inodes soft hard
/dev/sda2 40 0 40 11 0 0
5/ su test100
阅读(1691) | 评论(0) | 转发(0) |