View Single Post
Old 15th June 2019
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 57
Default

Quote:
Originally Posted by hitest View Post
I still do like to use sudo occasionally, but , ran into trouble trying to edit my existing /etc/sudoers file. I did what was suggested and could not save the file?!
/etc/sudoers may have read-only permissions, in which case you'd need to add an exclamation mark to the vi :wq command to allow vi to write to the file, eg. :wq!

You should use visudo to edit the sudoers file, not plain vi.

Last edited by johnR; 15th June 2019 at 12:13 PM.
Reply With Quote