1, first we want to understand the role of disk quotas, and what is quota.
Disk quotas can be simply understood as the meaning of how many limits we know that the Linux system is a multiplayer environment, so it is easy to appear when more than one person using a hard disk, if someone takes up a lot of space, so that other users can not use the disk, so we as root should be for the use of hard disk, To set permissions on the users of your hard disk. We can simply understand the quota.
2, the main use of quota:
For Web Services (WWW), IDC domain space on the general will be limited to the site space
For enterprise mailboxes, the use of each user's mailbox can be made soft and hard restrictions
For a file server, you can use for each user, ftp,nts, etc.
We need to be aware that we can set the maximum soft and hard disk quotas for users and groups.
3, Quota's disadvantage:
Only for file system
Linux system needs to support the quota,kernel2.4 version is not supported quota, at present we are basically using the 2.6 kernel, basically support, unless the antique level does not support.
Quota is only valid for ordinary users and cannot be set quota for root
First, the actual combat quota deployment, we through a small case to complete our deployment situation.
1, first look at the system's partition type, as well as the mount situation, as shown in the figure can be seen that each of my partitions are separate partitions, we use/home to do in this combat quota management does not recommend the use of "/" zoning, as shown
2, then we create the test account a small script to complete, the script contents are as follows: