[Translating] 20150123 How to make a file immutable on Linux.md

This commit is contained in:
Gore Liu
2015-05-18 09:21:55 +08:00
parent 6f3206b9d6
commit 9d8d4ca45f

View File

@@ -1,3 +1,5 @@
Translating by goreliu ...
How to make a file immutable on Linux
================================================================================
Suppose you want to write-protect some important files on Linux, so that they cannot be deleted or tampered with by accident or otherwise. In other cases, you may want to prevent certain configuration files from being overwritten automatically by software. While changing their ownership or permission bits on the files by using chown or chmod is one way to deal with this situation, this is not a perfect solution as it cannot prevent any action done with root privilege. That is when chattr comes in handy.