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 > Servers >
Share
Shulou(Shulou.com)06/03 Report--
ACL permission Access: access Control: control List: list
Getfacl filename View ACL permissions
Setfacl options file name or directory set ACL permissions
Option:-m to set ACL permissions
-x removes specified user or group ACL permissions
-b remove all ACL permissions
-d set default ACL permissions default default
-k remove the default ACL permission
-R recursively set ACL permissions
Setfacl-mu: user name: rwx + file name sets ACL permissions to the user
In this file, give a user access to read and write execution
Setfacl-mg: group name: rwx + file name sets ACL permissions to the group
In this file, give read and write permissions to a group
Recursive ACL permissions: when the parent directory sets ACL permissions, all child files and subdirectories will have the same ACL permissions. (abide by ACL permission for existing files, and no ACL permission for newly created files)
Setfacl-mu: user name: permission-R + directory name
Default ACL permission: if ACL permission is set to the parent directory, all new child files in the parent directory will inherit the ACL permission of the parent directory. (abide by ACL permission for new files to be created in the future, no description for existing files)
Setfacl-m d: U: user name: permissions + directory name
Delete ACL permission
A) setfacl-x u: user name + file name removes the ACL permission of the specified user
B) setfacl-x g: group name + file name removes ACL permissions for the specified user group
C) setfacl-b + filename removes all ACL permissions for the file
Chattr permissions (you can change the properties of the file and have restrictions on root)
Chattr [+-=] [option] + file name or directory name
: add permissions: delete permissions
=: equal to a permission
Options: I: for files, deleting, renaming, adding and modifying data are not allowed, but
To see.
For a directory, you can only modify the file data under the directory, but you are not allowed to create and delete text
Pieces.
(equivalent to locking up a file or directory)
A: for files, you can only add data to the file, but you cannot delete or modify the data. (you cannot use vim to add or delete data, you can only use echo, such as: echo content > > file name.) for directories, only files can be created and modified in the directory, but deletion is not allowed. (equivalent to locking up existing data)
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.