Edit /etc/nsswitch.conf and /etc/resolv.conf files

Do anyone know how I could edit files like - /etc/nsswitch.conf and /etc/resolv.conf files in Iinux. Got readonly error after editing in vi - lab.



Try as root user.

@Cyril_A Please use of below commands

login as root : sudo su - ( you have to go to that directory again) or sudo command file name
This happens because the file which you are editing belongs to root user, So other user cann’t access to write, untill they have been assigned with permission…