Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / 教你做linux磁盘配额quota

下面的例如都是以/home这个目录为主的!

<!--[if !supportLists]-->1. <!--[endif]-->使用quotaon –vaug 命令开启quota功能。

v ---详细信息显示。

a ---所有组和用户。

u ---只针对用户。

g ---只针对组。

<!--[if !supportLists]-->2. <!--[endif]-->从新挂载。

例如:

[root@localhost ~]# mount -o remount,usrquota,grpquota /home

<!--[if !supportLists]-->3. <!--[endif]-->quotacheck -cmug 挂载点

<!--[if !supportLists]-->4. <!--[endif]-->使用setquota命令的g或者u参数,默认是对u也就是对用户设置配额。

例如:

[root@localhost ~]# setquota yy 1024 2048 10 20 /home

yy ――用户名。

<!--[if !supportLists]-->1024 <!--[endif]-->――空间大小的软限制。

<!--[if !supportLists]-->2048 <!--[endif]-->――空间大小的硬限制。

<!--[if !supportLists]-->10 <!--[endif]-->――文件数量的软限制。

<!--[if !supportLists]-->20 <!--[endif]--> -―文件数量的硬限制。

5.注意!如果对组进行限制的话,软硬限制是所用组内用户的空间或文件数的总和!

repquota -a -----查看用户的使用情况!

quotaoff -a 关闭quota功能!

别的不管在quota世界里一个block是1k !!!!!

edquota -t 修改软限制的过期时间。浅谈RedHat AS中英文配置让人期盼的Gobuntu 终于出现了相关资讯      linux磁盘配额  quota 
  • 磁盘配额:quota  (今 10:26)
  • Zookeeper权限管理与Quota管理  (01月14日)
  • Linux磁盘配额相关指令  (01/03/2015 15:52:33)
  • Linux教程之磁盘配额(Quota)  (08月24日)
  • 利用Quota对Vsftpd做磁盘配额  (06/05/2015 19:57:24)
  • Linux系统中对磁盘配额(Quota),软  (01/10/2014 09:02:09)
本文评论 查看全部评论 (0)
表情: 姓名: 字数