- How do I make a file undeletable?
How do I make a file undeletable?
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.
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.