Review notes 6

Source: Internet
Author: User
  1. User management commands

    Useradd userdel usermod

    Groupadd groupdel groupmod

    Gpasswd can be used as a group administrator to set a group password.

  2. Use of setfacl

    Setfacl-m u: User: mod filename.

    Setfacl-x user cancels the ACL permission of the user.

    Setfacl-B cancels all ACL permissions.

  3. Getfacl filename or the ACL information of the engraved file.

  4. Disk Quota.

1) the disk quota is only valid for the file system. Therefore, you must first create a partition, format it, and then use it for mounting. 2) You must specify related options. For example, Mount-O usrquota,/dev/sdb1

3) create two files, aquota. Group aquota. user, in the corresponding file system. Use quotacheck-auvg. When using this command, SELinux needs to be disabled.

4) The quotaon-auvg account will scan the/etc/mtab file and enable the disk quota function for all file systems with the usrquota and kgquota mounting options. Or quotaoff to disable the disk quota function.

5) use the edquota-u USER command to edit the quota limit of user. Edquota-P user1 user2 creates a disk quota file for user2. Edquota-g grp is used to set the quota file of the group.

6) quota-Uvs user can be used to generate a user's disk quota file. Quota-gvs GRP can be used to display Disk Quota files of a user group. Repquota-avus is used to generate a quota file with the disk quota mark under/etc/mtab.

7) warnquota, when the disk file exceeds the disk quota soft limit, you can mail it to the corresponding user.

You can also use the command line to use the disk quota. For example

Setquota-u user soft hard inode_soft inode_hard/filesystem to set the disk quota.



Review notes 6

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.