|
|
发表于 2004-10-12 17:52:34
|
显示全部楼层
1.在/home加上user quota功能,在/other和/public中加入組的quota功能
[root@shlinux root]# cat /etc/fstab
/dev/hda13 / ext3 defaults 1 1
/dev/hda5 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home ext3 defaults,usrpquota 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=utf8,noauto,ro,exec 0 0
/dev/hda11 /other ext3 defaults,grpquota 1 2
none /proc proc defaults 0 0
/dev/hda10 /public ext3 defaults,grpquota 1 2
/dev/hda12 /tmp ext3 defaults 1 2
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda9 /var/ftp ext3 defaults 1 2
/dev/hda8 /var/www ext3 defaults 1 2
/dev/hda1 swap swap defaults 0 0
添加紅色的部份..
2.quotacheck -ugv
-v quotacheck reports its operation as it progresses. Normally it
operates silently.
-u Only user quotas listed in /etc/mtab or on the filesystems spec-
ified are to be checked. This is the default action.
-g Only group quotas listed in /etc/mtab or on the filesystems
specified are to be checked.
3.(限為100M左右)
edquota -u sp02001
此處只會自動顯示一行哦..因為在/etc/fstab中只有一個加了usrquota
Disk quotas for user sp02001 (uid 9001):
Filesystem blocks soft hard inodes soft hard
/dev/ide/host0/bus0/target0/lun0/part7 83392 102400 112640 13 0 0
4.此處會顯示在/etc/fstab中加入了grpquota的文件系統
edquota -g mis
Disk quotas for group mis (gid 9000):
Filesystem blocks soft hard inodes soft hard
/dev/ide/host0/bus0/target0/lun0/part11 10517380 0 0 28014 0 0
/dev/ide/host0/bus0/target0/lun0/part10 1452 0 0 138 0 0
5.quotaoff -ugav
6.quotaon -ugav
7.samba服務重啟一下...因為我作了samba |
|