在Linux中启用磁盘配额:
1 quota
修改/etc/fstab为分区启用磁盘配额,在挂载选项那一栏增加 usrquota,grpquata
再重新加载分区mount -o remount
在你挂载的分区增加用户和组磁盘配额配置文件,如/usr/local/aquota.user aquota.group
quotacheck -mc /usr/local/aquota.usr aquota.group
2 quotaon
3 edquota
edquota -u username
edquota -g groupname
edquota -p exampleuser user1 user2 user3
edquota -g -p examplegroup group1 group2 group3
4 repquota
5 quotaoff
阅读(690) | 评论(0) | 转发(0) |