Welcome 微信登录

首页 / 操作系统 / Linux / 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 RHEL 5与RHEL 6---PXE 网络引导配置Linux磁盘配额-Quota实验记录(图文详解)相关资讯      Linux教程 
  • Linux教程:如何在命令行中查看目  (07/28/2014 12:22:23)
  • Linux 修改root密码  (11/03/2012 07:53:38)
  • su - root 与su root的区别  (06/06/2012 00:39:40)
  • Linux进程间通信:消息队列  (01/28/2013 09:43:00)
  • U盘安装Linux开机无法启动解决方法  (10/07/2012 08:55:52)
  • Windows 7/Linux 同步时间  (05/15/2012 06:17:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数