歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux磁盤配額具體配置

Linux磁盤配額具體配置

日期:2017/2/28 16:04:04   编辑:Linux教程
1.在/etc/fstab中需要設置磁盤限額的文件系統所在行的第四項(mount參數)中添加usrquota、grpquota參數 2.使用mount –o remount 需要限制的文件系統,將mount參數帶入/etc/mtab中

3.執行quotacheck –auvg,在文件系統的根目錄下建立aquota.user及aquota.group兩文件

4. 使用edquota 用戶名與edquota –g 組名編輯用戶與組的磁盤限額

5. 用quotaon –auvg打開quota功能

具體步驟:

•首先在/etc/fstab中加入quota參數

/dev/hda7 /home ext3 defaults,usrquota,grpquota 0 0

usrquota :對用戶作磁盤限額

grpquota :對組作磁盤限額

•使用remount將參數帶入/etc/mtab中

[root @stationxx root] # mount –o remount /home

•建立磁盤限額配置文件

[root @stationxx root] # quotacheck –auvg /home

創建aquota.user及aquota.group兩文件

•配置磁盤限額

[root @stationxx root] # edquota username

[root @stationxx root] # edquota –g groupname

•打開磁盤限額功能

[root @stationxx root] # quotaon –auvg

Copyright © Linux教程網 All Rights Reserved