How
to prevent/protect a file from being deleted even by root?
There
is only one way to protect file from being deleted,
with one command in your terminal.
with one command in your terminal.
Yes,
you can change the attributes of the file to read-only.
The
command is:
$ chattr +i filename
And
to disable it:
$ chattr -i filename
No comments:
Post a Comment