0 Members and 1 Guest are viewing this topic.
Write protecting a file using chattr commandLet say you want to write protect the file called data.txt so that no other users can change it including root user, enter (you must login as the root user to use chattr command):# chattr +i data.txtTo remove i attribute, enter:# chattr -i data.txt