Reference:
http://linux.vbird.org/linux_basic/0420quota/0420quota-fc4.php
1. vi /etc/fstab,加上 usrquota,grpquota (沒有空白)
Ex: /dev/sdb1 /data ext3 defaults,usrquota,grpquota 1 1
2. mount -o remount /data
3. quotacheck -avug -m
4. quotaon -avug
5. edquota -u user1
EX: (單位是 Kbyte)
Disk quotas for user user1 (uid 501):
Filesystem blocks soft hard inodes soft hard
/dev/sdb1 0 45000 50000 0 0 0
6. 查詢單一帳號 quota
指令:quota -u user1
7. 查詢所有帳號 quota
指令:repquota -a
沒有留言:
張貼留言