Linux ACL and linuxacl

Source: Internet
Author: User

Linux ACL and linuxacl

Common file and directory permission management can only be performed for owners, group users, and other users. After permission distribution is diversified, common file and directory permission management is used to increase complexity, you can use ACL (full name Access Control List) to manage permissions flexibly.

First, check whether the partition supports ACL.

We can see that ACL is supported.

The xfs and ext4 file systems created by CentOS7 by default have the ACL function.

In versions earlier than centos 7, the ext4 file system created manually by default has no ACL function.
Yes, you need to manually add
Tune2fs-o acl/dev/sdb1
Mount-o acl/dev/sdb1/mnt/test

ACL effective sequence: Owner, Custom User, custom group, and others

 

 

Implement Multi-User ACL File Permission allocation

/The f1 file li user's read and write permissions under the app soso user's read permission liu user has no permission

F1 user Owner zhang group users and others do not have read and write permissions

Set read/write permissions for li users and view

Set soso User Read Permission and view

The permission is set to correct

The permissions are correct.

Here is the description of ACL user permissions.

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.