Second unit user Rights list
1. Definition of permission list
Specify a record table that special users have special permissions on a file
2. Recognition of permission lists
-rw-rw-r--+ 1 root root Oct 21:20 file permission bit has plus permission list open
-rw-r--r--. 1 root root 0 Oct 21:22 westos permission bit number permission list not open
3. View of the Permissions list
Getfaclfile
file:file file name
owner:root file owner
group:root file all groups
user::rw-file Owner permissions
user:test:rw-Special specified user rights
group::r--Group Permissions
MASK::RW permission Threshold
other::r--Other people's rights
4. How to set ACL list
setfac-m u:username: Permissions filename
setfacl-m u:test:rwfile Specifies that the test user can read and write to file files
setfacl-x u:studentfile Remove student user information from the list
setfacl-x g:student File Delete student group information in the list
setfacl-b filename close ACL list
5.masks permission Threshold
If you perform chmod on a file that has a permission list, you will likely modify the mask in the full-limit list
Mask is the maximum permission value that a particular user can get
setfacl-m m: Permissions # #修改该mask的值
6. Default Permissions
when we need to create a new file or directory in the specified directory that has special permissions for the specified user
setfac-m d:u:username: Permissions filename
default permissions do not take effect on existing files
default permissions do not take effect on the directory itself
This article from the "12147236" blog, reproduced please contact the author!
Linux Rookie starter 2 user Rights list