aej1973
asked on
unable to edit using visudo Ubuntu 12.04
Hello, I am trying to edit my sudoers file on my Ubuntu machine but I am unable to do this. When I run the command sudo visudo I get a screen as the one shown in my attachment. Once I add a line in the file I am not able to save it. Can someone let me know what I need to do? Thank you.
A
visudo.PNG
A
visudo.PNG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, I had to press ctrm M to append the changes.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
According to that you should create a file in the folder /etc/sudoers.d/ in which you have your changes to the original sudoers file.