Linux facl (File access control list)

Source: Internet
Author: User

There are three types of permissions for files

Other permissions that belong to the Master permission group permission

Now there is a scenario where user A wants to share the file with user B not in the same group, but does not want to modify other permissions, and Facl is working.

Facl can add an extended permission to the file, only need to add user B to the file extension permission list and give permission.

Facl usage:

Get File Facl

Getfacl file name
file : Facl.txt    # owner:eko# GROUP:EKOUSER::RW-user:tom:rwx        //  Here to the user Tom assigned a rwx permission group::rw-mask::rwxother::r--

Add Facl to a file

Setfacl-m u: User name: Permissions eg:    -M u:tom:rwx

Cancel Facl

Setfacl-x u: User name eg    -x U:tom

Linux facl (File access control list)

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.