Quota configuration in linux

Source: Internet
Author: User


Recently, many linux enthusiasts have said they do not know how to configure quota. Now I will share my experiences with you. First, check the disk's file system df-l to see if the system has enabled quota,
1. mount-o remount, usrquota, or kgquota/home (it is best not to select/if you need to enable the file system of quota /)
2. Enable automatic mounting upon startup. This format will appear in vim/etc/fstab ....... /home default is added later to make it ........ /home default, usrquota, or enter ntsysv in the terminal to select quota
3. Run quotacheck www.2cto.com to run the quotacheck-avug command. If the command fails, run quotacheck-avugm again.
4. Enable quotaquotaon-avug or quotaon-uv/home (the file system you specified)
5. Edit the disk quota of edquota-u by using the edquota user name. Modify the soft and hard values after blocks (I will not describe soft and hard here) edquota-p user name 1-u user name 2 copy the user name 1 settings to user name 2 edquota-t to modify the grace period
6. repquota-avus outputs configuration information in the form of a list. Author Wu shuqiang 123

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.