Solved

unable to edit using visudo Ubuntu 12.04

Posted on 2013-06-17
3
297 Views
Last Modified: 2013-06-18
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
0
Comment
Question by:aej1973
3 Comments
 
LVL 7

Accepted Solution

by:
PaulNSW earned 300 total points
Comment Utility
What error message do you get when you try to save it?

Press Ctrl and X, it should then prompt to save changes. Once you choose Yes, it should give an error message as to why it cannot save.
0
 
LVL 87

Expert Comment

by:rindi
Comment Utility
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.
0
 

Author Comment

by:aej1973
Comment Utility
Thank you, I had to press ctrm M to append the changes.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now