Linux ACL and linuxacl
Common file and directory permission management can only be performed for owners, group users, and other users. After permission distribution is diversified, common file and directory permission management is used to increase complexity, you can use ACL (full name Access Control List) to manage permissions flexibly.
First, check whether the partition supports ACL.
We can see that ACL is supported.
The xfs and ext4 file systems created by CentOS7 by default have the ACL function.
In versions earlier than centos 7, the ext4 file system created manually by default has no ACL function.
Yes, you need to manually add
Tune2fs-o acl/dev/sdb1
Mount-o acl/dev/sdb1/mnt/test
ACL effective sequence: Owner, Custom User, custom group, and others
Implement Multi-User ACL File Permission allocation
/The f1 file li user's read and write permissions under the app soso user's read permission liu user has no permission
F1 user Owner zhang group users and others do not have read and write permissions
Set read/write permissions for li users and view
Set soso User Read Permission and view
The permission is set to correct
The permissions are correct.
Here is the description of ACL user permissions.