Vi edit error : Read-only file, not written; use ! to override

sometimes I use Vi for edit some files like devcot.conf and apache.conf , after edit I when I type
Code:
:wq
I see this error

Code:
Read-only file, not written; use ! to override

, but with mcedit I can edit this file without error
 
mcedit ignores the permissions. Vi nicely warns you about it. You can always override it with :w!.
 
Back
Top