List of ACL permissions in Linux
What is the 1.ACL permission list? Why use ACL lists?
Traditional permissions have only three identities (owner,group,other) with three kinds of permissions (rdhow.x), and there is no way to simply set the permission requirements for a certain user or a certain group. at this time, we need to use ACL (file access control list, Acess Control List) mechanism.
Note: as a result, ACL has been added to almost all common Linux file system mount parameters (ext2/ext3/ext4/xfs, etc.) by default, but rhtl6.0 and previous versions do not support acl by default.
2 commands relating to facl
View permission list set permission list getfaclsetfacl-m set permissions-x delete specified user-b close list function
When deleting using the setfacl-x command, the list function cannot be turned off, only the set users and permissions can be deleted.
Mask threshold in facl
The mask threshold is the maximum valid permission that a specified user can obtain.
* * using chmod to reduce file permissions after setting the facl list is likely to damage mask
Mask setting: setfacl-m m: permission value TAG
**
You can only change the user permissions in the current interface. When you create a new file, you do not have the permissions previously set.
**
Facl's default permission * * defalut permission feature is only set for directories, only for new files or directories in the directory, but not for the directory itself, and does not take effect for the original files in the directory. Defalut permission setting method set-m DVR u: specify user: specify permission directory
Only for directories, only for new files or directories in the directory, no effect for the directory itself, no effect for the existing files in the directory |