Linux ACL and linuxacl
To support ACL permissions, you must support partitions (ACL permissions are granted by default)
Dumpe2fs-h/dev/sda3 ==> dumpe2fs is a command to query the details of a specified partition.
-H => only the information in the super block is displayed, and the details of the disk block group are not displayed.
Temporarily enable the partition ACL permission
Mount-o remount, acl/==> allow the root partition to temporarily support ACL permissions (no more after restart)
Enable permanently
Vim/etc/fstab: Change ults to ults, acl
Restart mount-o remount ==> re-mount. You can also restart
Bytes --------------------------------------------------------------------------------------------
View and set ACL Permissions
Getfacle file name ==> view acl Permissions
Setfacl [Option] File Name
Option:
-M: sets ACL permissions.
-X: deletes the specified ACL permission.
-B: delete all acl permissions.
-D: Set the default acl permission.
-K: Delete the default acl permission.
-R recursively sets acl Permissions
Example: setfacle-m u: user1: rx/test ==> format: u: [user name]: [permission] set the user acl permission to rx for the test directory