RHCE test disk quota

Source: Internet
Author: User
RHCE test disk quota 1. create users who need to limit the quota 2. modify the configuration file and add the quota parameter modification configuration file # vim/etc/fstab; after ULTS ults, add usrquota (quota for the user) and maid (quota for the group). 3. the configuration takes effect. Method 1: # init...

RHCE test disk quota
1. create a user who needs to limit the quota

2. modify the configuration file and add the quota parameters.
Modify the configuration file # vim/etc/fstab; add usrquota (quotas for users) and kgquota (quotas for groups) after ULTS ults)

3. configuration takes effect
Method 1: # restart init 6
Method 2: # mount-o remount/mnt/sdb2 (mount point)
4. scan and load partitions
# Quotacheck-cumg mount point (if the mount point is successful, two files, aquota. group and aquota. user, will be generated under the mount point)


 
5. edit a user or group
# Edquota-u User name
Set soft and hard limits on the number of partitions or files

6. enable the disk quota and add write permissions to the Mount point by other users.


 
7. test switching between common users (function implementation)

Note: If you are prompted to have no permission at # quotacheck-cumg mount point, disable selinux.
User Group verification:
Add user u2 to group zu1 # usermod-g zu1 u2
Edit Group quota # edquota-g zu1

 
Author: "Darren-pan"

Related Article

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.