In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The second book
two。 List of user permissions
1. Definition of permission list
A record table that specifies that a special user has special permissions on a file
two。 Identification of permission list
-rw-rw-r--. The permission bit has a plus sign and the permission list is open.
-the rw-r--r--+ permission is Yes. , permission bit is off
3. View of permission list
Getfacl file
# file: name of the file# file
# owner of owner:root# file
# all groups of group:root# files
User:rw-# file owner permissions
User:test:rw-# special user specified permissions
Group:r--# group permissions
Mask:rw-# permission threshold
Other:r--# other permissions
4. How to set the acl list
Setfacl-m u:username: permission filename
Setfacl-m u:test:rw / mnt/file# specifies that test users can read and write file files
Setfacl-x u:student file# removes student user information from the list
Setfacl-x g:student file# removes student group information from the list
Setfacl-b file # close the list
5.mask permission threshold
If you chmod a file with a permission list, it is likely to modify the mask in the file permission list
Mask is the maximum permission value that a special user can get.
Setfacl-m m: permission filename # to modify the value of the mask
6. Default permissions
Set when we need to create a new file or directory in the specified directory with special permissions for the specified user
Setfacl-m d:u:username: permission filename
The default permissions do not take effect on existing files or on the directory itself
# # Kernel automatic execution cancels x execution permissions of files
# # default has a default effect on the permissions of directories under the directory. First, inherit the default permissions.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.