Ceaser Webb (ceaserw) said on 2010-09-16: #6 [email protected]:~$ sudo gedit /etc/sudoers >>> /etc/sudoers: syntax error near line 17 <<< sudo: parse error in /etc/sudoers near line 17 sudo: no valid sudoers visudo will check if the resulting sudoers file conforms to the required syntax. so... –thomas-peter Nov 22 '14 at 9:46 add a comment| up vote 1 down vote If u messed up your sudoers file.You'll need to: Reboot into recovery mode (hit escape during Adv Reply August 1st, 2012 #3 NikTh View Profile View Forum Posts Private Message Visit Homepage Ubuntu Member Join Date Feb 2012 Location el_GR BeansHidden! http://prcflow.com/syntax-error/sudoers-syntax-error.html
You can install it by typing: sudo apt-get install policykit-1 –Koen. Thanks again. UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. http://askubuntu.com/questions/73864/how-to-modify-a-invalid-etc-sudoers-file-it-throws-out-an-error-and-not-allowi
Thanks. –Rob Wilkerson Jan 23 '13 at 14:25 add a comment| up vote 0 down vote I screwed up the sudoers file to find out that I don't remember the root Esker" mean? 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? No Valid Sudoers Sources Found Quitting Centos All users can not use sudo now.
If you close nautilus, press ALT+F2 then run: gksudo nautilus /media You will now have a nautilus running with admin access. Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin What does the following character mean in German: »Ø«? This site is not affiliated with Linus Torvalds or The Open Group in any way. weblink sudo: unable to initialise policy plug-in I recently installed Ubuntu Remix.
You have to repair this before you can install or remove any further software. Pkexec Visudo 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 [email protected]:~$ sudo cat /etc/hosts sudo: parse error in /etc/sudoers near line 24 sudo: no valid sudoers sources found, quitting Sudo package = sudo-1.7.2p1-1ubuntu5.3 The sudoers file /etc/sudoers has never been edited. If so, how? –Lukas Jul 7 at 15:01 add a comment| up vote 13 down vote Type in: pkexec visudo Then change last line #includedir /etc/sudoers To: #includedir /etc/sudoers.d It should
Those are the users partitions. Ceaser Webb (ceaserw) said on 2010-09-17: #10 I only have the CD that I made when I downloaded Ubunto from the internet. Fix Broken Sudoers File Given that ice is less dense than water, why doesn't it sit completely atop water (rather than slightly submerged)? /etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1 The contents of my sudoers file are: ## Sudoers allows particular users to run various commands as ## the root user, without needing the root password. ## ## Examples are provided
How to Fill Between two Curves What does "M.C." in "M.C. How should I fix this? 32 How do I add myself into the sudoers group? 20 How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23? Adv Reply August 2nd, 2012 #5 steeldriver View Profile View Forum Posts Private Message Staff Emeritus Join Date Apr 2012 Beans 6,843 Re: Can't Access Sudoers File in Ubuntu, Kubuntu, Ceaser Webb (ceaserw) said on 2010-09-17: #8 I still received this error in recovery mode. /etc/sudoers Is World Writable
It throws out an error and not allowing me to edit again up vote 161 down vote favorite 65 How do I edit an invalid visudo file? who knew) Chosee the 'Drop to root shell' option run visudo, fix your file Reboot with normal grub option source :- http://mario.net.au/content/recover-etcsudoers-ubuntu-1204 share|improve this answer answered Dec 14 '12 at 10:59 On my machine it turned out that there is no pkexec installed and of course I could not install it because sudo apt-get install pkexec somehow did not work. –running.t Oct http://prcflow.com/syntax-error/sudo-parse-error-in-etc-sudoers.html Simply Riddleculous In the future, around year 2500, will only one language exist on earth?
Linux gdawg-Inspiron-530s 3.2.0-27-generic-pae #43-Ubuntu SMP Fri Jul 6 15:06:05 UTC 2012 i686 i686 i386 GNU/Linux Adv Reply August 1st, 2012 #2 drs305 View Profile View Forum Posts Private Message Staff /etc/sudoers Syntax Error Near Line What Now 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 For future knowledge (maybe): If I understood correctly you applied command I gave you from recovery mode.
Where can I get a file/list of the common and scientific names of species? I'm beginning to think this OS is over my head because I'm not familiar with a lot of terms used. I had same issue but and spent hours to fix and just figured out they are syntax errors. Default Sudoers File If those answers do not fully address your question, please ask a new question. 3 This answer on the question you linked to tells you all you need to know.
Solutions? The users who voted to close gave this specific reason:"Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was 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 \ Understanding memory allocation for large integers in Python Trick or Treat polyglot Dealing with a nasty recruiter Is there any way to bring an egg to its natural state (not boiled)
For future - help - others I mean. –NikTh Oct 30 '12 at 12:14 1 possible duplicate of How to modify a invalid /etc/sudoers file? I had no clue pkexec existed. Thanks –Dave Oct 13 '14 at 6:15 6 But you need to be root.