Home > Syntax Error > Visudo /etc/sudoers Syntax Error Near Line 28

Visudo /etc/sudoers Syntax Error Near Line 28

Contents

If you are so inexperienced with the > OS why did > you go messing with the sudoers file? > > -- > If this answers your question, please go to I guess its messed up pretty bad. /etc/sudoers: syntax error near line 17 <<< sudo: parse error in /etc/sudoers near line 17 sudo: no valid sudoers sources found, quitting --- On share|improve this answer answered Mar 24 '11 at 8:39 pehrs 7,3451737 My sudoers file has the same permissions (-r--r-----) but still I can edit it when doing sudo nano. Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. have a peek here

How can I fix this error? have you a password for root if not ... This site is not affiliated with Linus Torvalds or The Open Group in any way. Thanks –Dave Oct 13 '14 at 6:15 6 But you need to be root.

Fix Broken Sudoers File

See requiretty above. # Defaults !visiblepw Defaults env_reset Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \ LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \ LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \ If it was I would use "visudo" /var/log/auth.log shows the following: Feb 23 14:09:15 A-Server sudo: xxxadmin : parse error in /etc/sudoers near line 24 ; TTY=pts/1 ; PWD=/home/xxxadmin ; COMMAND=cat Interlace strings Simply Riddleculous Problems associated with booking flights inside another set of flights? Lost all ability to do elevated privileges, INCLUDING, editing the offending file.

You can install it by typing: sudo apt-get install policykit-1 –Koen. Also, see askubuntu.com/a/73872/5078 for info on using pkexec for recovery (via PolicyKit). –belacqua May 22 '14 at 22:36 add a comment| Not the answer you're looking for? UNIX is a registered trademark of The Open Group. No Valid Sudoers Sources Found Quitting Centos Thanks Ubuntu Greek Forums Trusty Tahr BFQ Linux KernelsTrusty Tahr BFS/BFQ Linux kernels Adv Reply August 2nd, 2012 #4 gdawg View Profile View Forum Posts Private Message 5 Cups of

This setting should also be # changed in order to be able to use sudo without a tty. Download as text --- On Thu, 9/16/10, rohit

Run mount -n -o remount,rw / and then visudo. Pkexec Visudo Read past end of file to recover data Why is the size of my email about a third bigger than the size of its attached files? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Ask Ubuntu works best with JavaScript enabled FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Council FC Agenda Forum Governance Forum

Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin

Why can't the second fundamental theorem of calculus be proved in just two lines? other Those are the users partitions. Fix Broken Sudoers File My 21 yr old adult son hates me Securing a LAN that has multiple exposed external at Cat 6 cable runs? /etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1 Posts: 30Joined: Tue Sep 24, 2013 10:55 amLocation: Bhopal by Vorteggs » Wed Oct 09, 2013 2:02 pm rpi_ayu wrote:@finif i can access my /etc/sudoers script so this question will not

Why can't the second fundamental theorem of calculus be proved in just two lines? http://gmailpush.com/syntax-error/visudo-syntax-error-what-now.html Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Yet Another, Another Prime Generator Coding Standard - haphazard application Securing a LAN that has multiple exposed external at Cat 6 cable runs? NikTh's method produced this result: Code: [email protected]:~$ pkexec gedit /etc/sudoers Cannot open display: Run '/usr/bin/gedit --help' to see a full list of available command line options. ** (gedit:2533): WARNING **: Command /etc/sudoers Is World Writable

Posts: 6Joined: Tue Oct 08, 2013 9:23 am by jojopi » Wed Oct 09, 2013 3:54 pm Vorteggs wrote:By the way it seems that running visudo for the first time is It won't let you save a malformed file. then either boot to single user modeor put the sd card into a linux box and edit the file directly How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.htmlWARNING - some parts of this Check This Out Not the answer you're looking for?

You should apply the command from your Desktop environment (nor Recovery mode or Console) or else you should be run nano instead . /etc/sudoers Syntax Error Near Line What Now more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed If sudo doesn't work, pkexec sometimes does.

If you close nautilus, press ALT+F2 then run: gksudo nautilus /media You will now have a nautilus running with admin access.

Why does typography ruin the user experience? share|improve this answer edited Aug 16 '13 at 6:30 answered Oct 30 '11 at 19:45 Eliah Kagan 56.5k17163256 5 pkexec /usr/sbin/visudo worked on debian 7 –marinara Mar 5 '14 at share|improve this answer edited Apr 8 at 9:58 muru 70k12127178 answered Feb 21 '13 at 18:23 Andrej Burcev 13112 1 I've noticed that removing the leading # from #includedir causes Default Sudoers File Many users go snooping in that file as it allows you to add commands which do not require a password for sudo, if it gets messed up then sudo cannot be

I am a newbie to Ubuntu, I got sick of Windows :) So far I've found some people suggesting booting in single user mode, but I'm afraid of messing things up Question information Language: English Edit question Status: Answered For: Ubuntu sudo Edit question Assignee: No assignee Edit question Last query: 2010-09-18 Last reply: 2016-02-11 Related bugs Link existing bug Related FAQ: share|improve this answer edited Feb 9 '15 at 17:03 muru 70k12127178 answered Jul 31 '12 at 4:42 gemue2010 21022 thank you friend –Dominic Jul 31 '12 at 17:33 add this contact form In principle, this could be another Linux or a live flash, not necessarily Windows.

Using "están" vs "estás" when refering to "you" Using Elemental Attunement to destroy a castle Positional Bathroom Etiquette What does the following character mean in German: »Ø«? up vote 18 down vote Had the same problem, sudo: >>> /etc/sudoers: syntax error near line 25 <<< sudo: parse error in /etc/sudoers near line 25 sudo: no valid sudoers sources First you need write permission to edit sudoers, so run mount -o remount,rw / Then use visudo and revert your mistake. Posts: 30Joined: Tue Sep 24, 2013 10:55 amLocation: Bhopal by rpi_ayu » Wed Oct 09, 2013 10:34 am @finif i can access my /etc/sudoers script so this question will not be

Hot Network Questions How or where should I add a required connection string for a feature in Helix? Trick or Treat polyglot What is mathematical logic? Ceaser Webb (ceaserw) said on 2010-09-17: #10 I only have the CD that I made when I downloaded Ubunto from the internet. deer in German: Hirsch, Reh Are basis vectors imaginary in special relativity?

Rohit R (rr0hit) said on 2010-09-16: #4 do sudo gedit /etc/sudoers paste the contents of the file here close gedit without any changes to the file. Questions: -Are there any other ways to fix it without restarting ubuntu? -If it is so easy to lock yourself out of sudo when modifying the sudoers file (everybody can do What are the alternatives to compound interest for a Muslim? Tango Icons © Tango Desktop Project.

It'll let you fix your problems with the file and save. Then you could mount it with sudo mount /dev/sda1 /mnt. My standard editor (emacs) prevents me from editing the file, while vi makes it very clear it is non-writable but lets me bypass. I had to deviate some from psychocat's instructions.