Linux File System ACLs permission Control (1)

Source: Internet
Author: User

The Linux File System grants the owner (owner), owning group (owning group), and other) the rwx permissions defined for each type of users are independent of each other. Although Linux supports special file permissions in Linux, it is necessary to control permissions in Windows to be precise to users and groups. For example, to allow a file to be modified by a special user, allows a group of users to view and so on) as flexible, these are obviously not enough. Fortunately, Linux also supports ACLs permission control. In Linux, ACLs is supported in file systems such as ReiserFS, Ext2, Ext3, JFS, and XFS.

Modify the file ACL: setfacl-m u: tux: rw file allows tux to Read and Write file files.

View file ACL: getfacl file

When you use the ls-l command to view the ACL file, there will be a "+" next to it, and the group permission will change with the ACL mask permission ).

After an ACL is used for a file, the permission role has the following types:

Minimize ACL:

Owning user

Owning group

Other

Extended ACL:

Can contain several objects: named user sets the access permissions of individual users), named group sets the access permissions of individual groups)

Contains a mask that limits the permissions of named users and named groups)

Example:

Owner user: rwx

Named user: name: rwx

Owning group: rwx

Named group: nam e: rwx

Mask: rwx

Other: rwx

Permissions defined in owner and other are always valid. other permissions may be valid or hidden.

Whether the value of the named user and named group takes effect depends on the value and the value of the mask. That is, the value must have this permission to take effect.

The value of the mask is generally the same as that of the owning group. You can modify the value of the owning group to modify the mask.


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.