Dave's Brain

Browse - Computer Tips - How do I make a file undeletable?

Date: 2011apr19
OS: Linux

Q.  How do I make a file undeletable?

A.  Use chattr to set the immutable extended attribute flag:

chattr +i myfile
chattr -R +i myfolder
There is an undeletable flag but it doesn't work.

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.