Ad

caden
asked Feb 08 2017
Answer
If a file called test is created, to protect that file, run the below command,
# chattr +i test
Now this file is read-only file. Cant able to write or remove including for root user.
To view the permissions, use lsattr command.
To remove the permission which is set, just give - instead of + in that command.
# chattr -i test

jagannatharumugam
asked Feb 12 2017
edited Oct 05 2018
how to use chatter command
How to use Chatter command to secure my files.. and shall i use it from normal user.....???