Solved

unable to edit using visudo Ubuntu 12.04

Posted on 2013-06-17
3
298 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
ID: 39255312
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 88

Expert Comment

by:rindi
ID: 39255378
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
ID: 39256338
Thank you, I had to press ctrm M to append the changes.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 Search (Indexing Options) Modify with PS, CMD or Registry. 5 61
apply ddos protection on all network interface 2 86
WEB Farm 6 61
React or Angular? 6 52
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

919 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

17 Experts available now in Live!

Get 1:1 Help Now