Issue
Sorry for the newb factor but I just created a hello world file and then did chmod 444 on it. I want to make sure nobody can edit its contents.
However if you use w! in vim, then you can override those chmod permissions and write something to that file.
Does the "!" have precedence over chmod? How can I prevent someone from forcing a change to a read only file?
Solution
you could use the linux commond :
chattr +i yourfilename
that means you couldn't change the file or delete the file . I advice you to search lsattr and chattr in google.
Answered By - wliment