In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Chattr
Chattr
-: means to subtract a permission
+: means to increase a permission
=:
Options:
I: when used for a file, it means that the file cannot be deleted, cannot be modified, and can only be viewed
When used in a directory, it means that you cannot create or delete any files or directories under this directory. You can only modify existing files.
A: when used for a file, it means that the file cannot be deleted, can be viewed, and data can be added, but it cannot be modified by vim. It is often used to automatically append content in the log.
When used in a directory, it means that no files or directories can be deleted in this directory, only new files or directories can be created, files can be modified but deletion is not allowed.
How to use it:
Chattr + I |-I FILE
Chattr + a |-a FILE
Lsattr
-a: show all files and directories
-d: if the target is a directory, only the attributes of the directory itself are listed, not those of the subfiles
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.