linux-- file permissions ACL (Access Control List)

Analyzing sequence permissions: If eligible, not down permission determination.

  1. View owner rights
  2. Check ACL permissions
  3. View all rights group
  4. Check ACL permissions
  5. Other permissions

ACL tool:

  • setfacl: set the file permissions list for the user, or other groups
  • getacl: View a list of file ACL usage: getacl file name

setfacl: Help

Set user access is prohibited: setfacl -mu: username permission file name

Add users read and write permissions:

Add a set of permissions:

 

Set the default ACL attributes: a folder

Deletes the specified permissions: delete user permissions pi

Batch delete ACL from the file: -X option

Copy the files are copied to another file ACL

ACL backup and recovery:

ACL mask set of attributes:

. 1 [ 23 is : 03 : 59 the root @ centos7 Data] #ll F1   
 2 -rwxrw-R & lt - + . 1 the root the root . 11 -Mar . 17  22 is : 29 F1
 . 3 [ 23 is : 04 : 01 the root @ centos7 Data] #setfacl - m mask :: r f1 # set the mask property, will replace the original owning group permissions, removal of the owner, the owner may not exceed mask authority, more than partially invalid.
. 4 [ 23 is : 04 : 27 the root @ centos7 Data] #ll F1
 . 5 -rwxr - R & lt - + . 1 the root the root . 11 -Mar . 17  22 is :29 f1
6 [23:04:30 root@centos7 data]#

Authority to determine the order of:


 View a list of file permissions:

 

 

Guess you like

Origin www.cnblogs.com/franc/p/12513681.html