Acl permission list
1. What is a permission list?
A way of setting permissions to add additional names to the permissions of a file
two。 How to view the permission list
Ls-l file
-rw-r--r--. 1 root root 0 Nov 7 09:14 file
| |
If this bit is ".", it means there is no permission list on this person.
If this bit is "+", it means that the permission list exists
3. How to view a list of permissions
Ls-l file
-rw-rw-r-- 1 root root 0 Nov 7 09:14 file
Getfacl file
# file: name of the file## file
# owner: owner of the root## file
# group: all groups of root## files
User::rw-## owner permission
User:student:rw-## specific user rights
Group::r--## all group permissions
The maximum permissions in effect for a specific user in mask::rw-##
Other::r--## other permissions
4. How to set acl permissions
Setfacl
Setfacl-m:: permission filename## setting acl
Setfacl-x: filename## removes the acl of a user or group
Setfacl-bfilename## removes the list of permissions on a file
5.acl default permissions
The default permission is used for a directory, which allows all new files in the directory to inherit this permission. This permission does not take effect on the directory itself and does not affect files that already exist in the directory.
Setfacl-m d:::rwxdirectory## sets default permissions
Setfacl-x d::directory## revokes a default permission in the directory
7. In rhel6 and previous versions, the partition created by the user does not support acl. If necessary, the acl parameter must be loaded.
Mount-o remount,acl device
Vim / etc/fstab
Device mount point type defaults,acl0 0