Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the list of ACL permissions in Linux? How do I use it?

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Linux

Linux, whose full name is GNU/Linux, is a set of Unix-like operating system that is free to use and spread freely. It is a multi-user, multi-task, multi-thread and multi-CPU operating system based on POSIX and Unix. With the development of the Internet, Linux has received support from software enthusiasts, organizations and companies all over the world. In addition to maintaining a strong momentum of development in servers, it has made great progress in personal computers and embedded systems. Users can not only intuitively obtain the implementation mechanism of the operating system, but also modify and improve Linux according to their own needs to maximize meet the needs of users.

What is the ACL permission list? Why use ACL lists?

Traditional permissions have only three identities (owner,group,other) with three kinds of permissions (rdhow.x), and there is no way to simply set the permission requirements for a certain user or a certain group. at this time, we need to use ACL (file access control list, Acess Control List) mechanism.

Note: as a result, ACL has been added to almost all common Linux file system mount parameters (ext2/ext3/ext4/xfs, etc.) by default, but rhtl6.0 and previous versions do not support acl by default.

View permission list set permission list getfaclsetfacl-m set permissions-x delete specified user-b close list function

When deleting using the setfacl-x command, the list function cannot be turned off, only the set users and permissions can be deleted.

Mask threshold in facl

The mask threshold is the maximum valid permission that a specified user can obtain.

* * using chmod to reduce file permissions after setting the facl list is likely to damage mask

Mask setting: setfacl-m m: permission value TAG

**

You can only change the user permissions in the current interface. When you create a new file, you do not have the permissions previously set.

**

Facl's default permission * * defalut permission feature is only set for directories, only for new files or directories in the directory, but not for the directory itself, and does not take effect for the original files in the directory. Defalut permission setting method set-m DVR u: specify user: specify permission directory

Only for directories, only for new files or directories in the directory, no effect for the directory itself, no effect for the existing files in the directory |

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report