Wind Network (ithov.com) original article: In the process of managing Linux systems, for some important key documents, configuration files and important personal data, often do not want users to make arbitrary changes, this time we need to the file to protect the rights to prevent tampering with the file, We can change the properties of the file to 600.
Add the I attribute to the important file, even if the root user cannot modify or delete the file directly to effectively prevent accidental modification or http://www.aliyun.com/zixun/aggregation/18137.html "" "" "" "" "" ". The specific orders are as follows:
# chattr +i passwd
Add the attribute of I to the passwd file
Remove the I attribute using the following command:
# chattr–i passwd
Remove the properties of the passwd file I and make changes to the file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.