I am trying to use :wq
to save a text file I have edited in Vim, but when I enter :wq
I get the error
E45: 'readonly' option is set (add ! to override)`
When I add !
to :wq
like :wq!
, I get this:
"/etc/dhcp/dhcpd.conf"
"/etc/dhcp/dhcpd.conf" E212: Can't open file for writing
The file I want to edit is dhcpd
on the /etc/dhcpd
path.
How can I do this?