Link to home
Start Free TrialLog in
Avatar of aej1973
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
ASKER CERTIFIED SOLUTION
Avatar of PaulNSW
PaulNSW
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you read the comments in the sudoers file (they are in the screenshot you posted):

#
# 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.
Avatar of aej1973
aej1973

ASKER

Thank you, I had to press ctrm M to append the changes.