How to deploy disk quotas under Linux (quota)

Source: Internet
Author: User
Tags file system web services linux

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.