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

Acl permission list

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

1. What is a permission list?

A way of setting permissions to add additional names to the permissions of a file

two。 How to view the permission list

Ls-l file

-rw-r--r--. 1 root root 0 Nov 7 09:14 file

| |

If this bit is ".", it means there is no permission list on this person.

If this bit is "+", it means that the permission list exists

3. How to view a list of permissions

Ls-l file

-rw-rw-r-- 1 root root 0 Nov 7 09:14 file

Getfacl file

# file: name of the file## file

# owner: owner of the root## file

# group: all groups of root## files

User::rw-## owner permission

User:student:rw-## specific user rights

Group::r--## all group permissions

The maximum permissions in effect for a specific user in mask::rw-##

Other::r--## other permissions

4. How to set acl permissions

Setfacl

Setfacl-m:: permission filename## setting acl

Setfacl-x: filename## removes the acl of a user or group

Setfacl-bfilename## removes the list of permissions on a file

5.acl default permissions

The default permission is used for a directory, which allows all new files in the directory to inherit this permission. This permission does not take effect on the directory itself and does not affect files that already exist in the directory.

Setfacl-m d:::rwxdirectory## sets default permissions

Setfacl-x d::directory## revokes a default permission in the directory

7. In rhel6 and previous versions, the partition created by the user does not support acl. If necessary, the acl parameter must be loaded.

Mount-o remount,acl device

Vim / etc/fstab

Device mount point type defaults,acl0 0

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

Network Security

Wechat

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

12
Report