User Tools

Site Tools


immutable

This is an old revision of the document!


Immutable File Permissions

Chattr is a command that can be used to set file attributes that can prevent all users (even root) from deleting a file.

Viewing Immutable permissions

lsattr file
Example output of immutable file:
----i---------- filename

To prevent everyone (even root) from deleting a file:
chattr +i file
This will now make the file 'read-only'.


To undo this:

chattr -i file

immutable.1450810829.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki