Posts
read more
Make a File Immutable
You can use the chattr command (as root) to make a file “unalterable” so that even the root user cannot modify or delete it without using the chattr command to revert the change. This is done by using chattr’s +i and -i flags.
chattr changes a file’s attributes on a Linux file system.
Set the flag as root:
# chattr +i xrdp-notes.txt# lsattr xrdp-notes.txt----i---------e------- xrdp-notes.txt