User management commands
Useradd userdel usermod
Groupadd groupdel groupmod
Gpasswd can be used as a group administrator to set a group password.
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.
Getfacl filename or the ACL information of the engraved file.
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