Linux磁盘配额具体配置

Linux大全评论656 views阅读模式

1./etc/fstab中需要设置磁盘限额的文件系统所在行的第四项(mount参数)中添加usrquotagrpquota参数
2.使用mount –o remount 需要限制的文件系统,将mount参数带入/etc/mtab

3.执行quotacheckauvg,在文件系统的根目录下建立aquota.useraquota.group两文件

4.   使用edquota 用户名与edquota –g 组名编辑用户与组的磁盘限额

5.  quotaonauvg打开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] # quotacheckauvg /home

    创建aquota.useraquota.group两文件

配置磁盘限额

 [root @stationxx root] # edquota username

打开磁盘限额功能

企鹅博客
  • 本文由 发表于 2020年5月27日 19:46:29
  • 转载请务必保留本文链接:https://www.qieseo.com/208990.html

发表评论