How CentOS 6 modifies disk quota limits

  
                

In order to avoid excessive use of disk space by the administrator, the administrator will limit the disk space to avoid affecting the system operation. However, in some cases, because the disk quota limit is unreasonable, the disk space is not enough. Need to modify the disk quota, the following small series will introduce you how to modify the disk quota limit of CentOS 6.

CentOS to build five users, require disk quotas for each user a quota of 10MB (hard) and 8MB (soft)

Environmental

[root@localhost ~]# uname -a

Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# nl /etc/issue

1 CentOS release 6.5 (Final)

2 Kernel \ on an \\m

1 , build 5 users vbirdN

[root@linuxidc ~]# vi au.sh

#! /bin/bash

groupadd vbirdgroup

for username in vbird1 vbird2 vbird3 vbird4 vbird5

do

useradd -G vbirdgroup $username

echo “password”

Copyright © Windows knowledge All Rights Reserved