Linux Command series ACL max permissions, delete, recursive (__linux)

Source: Internet
Author: User
Tags parent directory

Maximum Effective permissions Mask

Mask refers to specifying the maximum valid permissions, and if root gives the user ACL permission, is required and mask permission "phase"

To get the user's real rights.

Setfacl-m m:rx filename

Permissions to mask are r-x, using the "M:RX" format



2. Remove ACL permissions

Setfacl-x u: User name filename

Remove ACL permissions for a specified user

Setfacl-x g: Group name File name

Remove ACL permissions for a specified group

Setfacl-b file name

Remove all ACL permissions under a file



3. Recursive ACL permissions (set ACLs on existing files for the directory)

Recursion: Parent directory has, subdirectories have

setfacl-m u: User name: Permission-r filename



4. Default ACL permissions (ACL for files after the directory)

If ACL permissions are set on the parent directory, new files created in the parent directory also inherit ACL permissions from the parent directory

Setfacl-m d:u: User: Permission name file name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.