Best Answer: How Do I Make a File Undeletable in Linux?
Contents to Make a File Undeletable by Any System User, Including Root, You Need to Make It Unmodifiable Using Using the Chattr Command. This Command Changes...
Contents
To make a file undeletable by any system user, including root, you need to make it unmodifiable using using the chattr command. This command changes file attributes on a Linux file system.
How do I make a file Undeletable?
Method 1. Deny Security Permission to Make Files Undeletable
- Right-click the file or document in your PC > choose “Properties”.
- In Security, tab “Edit” to change permission > select “Add and enter Everyone”.
- Press “OK” and select the group to change Full control permission to Deny.
- Press “Yes” to confirm.
6 сент. 2016 г.
Must Read
How do I prevent a file being deleted in Linux?
I know an useful commandline utility called “chattr” that is used to prevent files and folders from accidental deletion or modification in Linux. Chattr, short for Change Attribute, applies/removes certain attributes to a file or folder in your Linux system.