ACL access permission settings in Linux

Source: Internet
Author: User

Noun Explanation: acl:access control List for flexible rights management

Everyone knows that Linux in each user's permissions set is very rigorous, in daily life often have a variety of needs, take the user this piece, in the company divided into departments and individuals, some files are to the entire department can be viewed, some files are only management can be viewed, But in general Linux in the folder only three kinds of permissions are divided into owners, all groups, other corresponding read and write execution permissions, these permissions are relatively inflexible, not able to meet the actual production requirements, so today to introduce a new permission called ACL, to achieve flexible rights management, Use ACLs to meet your various DIY setup issues.

The command parameter for the ACL is Setfacl [-BKNDRLP] {-m|-m|-x|-x ...} file ...

650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/19/12c1617495026ab06af176f97357912a.png-wh_500x0-wm_3 -wmp_4-s_594334954.png "title=" Qq20171119184309.png "alt=" 12c1617495026ab06af176f97357912a.png-wh_ "/>

such as the operation of the command is to caobiao this user to add read and write permissions only to 2.txt this document.

After the setup is successful, we'll check

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/19/762d35ac815740bf244b5d5b14b07073.png-wh_500x0-wm_3 -wmp_4-s_2603281029.png "title=" Qq20171119184554.png "alt=" 762d35ac815740bf244b5d5b14b07073.png-wh_ "/>

User This line is the right we have just set for Caobiao this user.

Then we switch to caobiao this user to see if the permissions on the file are set correctly.

650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/19/47aae925967041b0a49b42f630c9e32a.png-wh_500x0-wm_3 -wmp_4-s_1887374950.png "title=" Qq20171119184811.png "alt=" 47aae925967041b0a49b42f630c9e32a.png-wh_ "/>

This is the permission setting for the view to succeed, and then the Write permission is set.

650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/19/9cfa9bd734fdefe54daab7643df735f5.png-wh_500x0-wm_3 -wmp_4-s_88622533.png "title=" Qq20171119184910.png "alt=" 9cfa9bd734fdefe54daab7643df735f5.png-wh_ "/>

I went to 2.txt this file to write the ABC content, and finally demonstrated the success of the write.

There are also folders under which you see which files have special ACL permissions.

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/19/0feec301fa7e214e6e461d2ae38ae70a.png-wh_500x0-wm_3 -wmp_4-s_3165800219.png "title=" Qq20171119185015.png "alt=" 0feec301fa7e214e6e461d2ae38ae70a.png-wh_ "/>

2.txt followed by a + unlike other files, it is understood that the file is an ACL permission file.

The above is the base operation for ACL settings.

This article is from the "12113659" blog, please be sure to keep this source http://12123659.blog.51cto.com/12113659/1983308

ACL access permission settings in Linux

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.