Etc/sudoers Syntax Error Near Line 27
Contents |
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 answers to any questions you might have Meta Discuss the workings and parse error in etc sudoers near policies of this site About Us Learn more about Stack Overflow the company
Sudo Parse Error In Etc Sudoers
Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask
Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin
Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask
/etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1
a question Anybody can answer The best answers are voted up and rise to the top How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23? up vote 18 down vote favorite 4 I am getting this error: sudo: parse error in /etc/sudoers near line 23 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin /etc/sudoers is world writable I was trying to disable password authentication so I don't have to type password every time I want to install something, but I probably changed it in a not very good way. 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 more. How can I fix this error? sudo share|improve this question edited Sep 15 '13 at 17:46 Alaa Ali 15.4k95173 asked Oct 30 '12 at 11:06 Robert Fáber 91113 If you boot in single user mode and use visudo, then it won't let you save an incorrect file, so you will not be able to mess things up further. –hexafraction Oct 30 '12 at 11:18 Thank you, how do I change the file, then? And, how exactly do I boot in single user mode? –Robert Fáber Oct 30 '12 at 11:19 2 @ObsessiveSSOℲ it would be nice to convert the comment to answer and let the questioner to mark it as the best answer. For future - help - oth
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu no valid sudoers sources found quitting centos Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: default sudoers file Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The pkexec Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] Can't Access Sudoers File in Ubuntu, Kubuntu, Xubuntu Having an Issue With Posting ? Do you want to help us debug the posting http://askubuntu.com/questions/209558/how-can-i-fix-broken-sudo-sudo-parse-error-in-etc-sudoers-near-line-23 issues ? < is the place to report it, thanks ! Results 1 to 8 of 8 Thread: Can't Access Sudoers File in Ubuntu, Kubuntu, Xubuntu Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode August 1st, 2012 #1 gdawg View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date May 2010 Location New Mexico, https://ubuntuforums.org/showthread.php?t=2036382 USA Beans 39 DistroUbuntu 10.04 Lucid Lynx Can't Access Sudoers File in Ubuntu, Kubuntu, Xubuntu I managed to somehow mess-up /etc/sudoers file and now I am unable to access it. I added 2 users to the file using 'sudo visudo' command and apparently messed something up. Here are the results of attempts to access file: Code: jane@gdawg-Inspiron-530s:~$ sudo visudo sudo: >>> /etc/sudoers: syntax error near line 9 <<< sudo: >>> /etc/sudoers: syntax error near line 9 <<< sudo: parse error in /etc/sudoers near line 9 sudo: no valid sudoers sources found, quitting... sudo: unable to initialise policy plug-in I recently installed Ubuntu Remix. All help is welcome. 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 Emeritus Join Date Jan 2007 BeansHidden! DistroUbuntu Development Release Re: Can't Access Sudoers File in Ubuntu, Kubuntu, Xubuntu Take a look at psychocat's page on fixing sudo: http://www.psychocats.net/ubuntu/fixsudo GRUB2 Retired. 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! DistroUbuntu 14.04 Trusty Tahr Re: Can't Access Sudoers File in Ubuntu, Ku
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie Why i am getting this error when trying to do su sudo User Name Remember Me? Password Linux - Newbie This Linux forum is for members http://www.linuxquestions.org/questions/linux-newbie-8/why-i-am-getting-this-error-when-trying-to-do-su-sudo-4175479212/ that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing https://www.raspberrypi.org/forums/viewtopic.php?t=57750&p=434924 LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join syntax error our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A syntax error near Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 10-01-2013, 09:47 AM #1 prathamesh7478 LQ Newbie Registered: Feb 2013 Location: Pune Distribution: Unix,Solaris,Ubuntu. Posts: 27 Rep: Why i am getting this error when trying to do su sudo Hi Guys, Can you please help me why i am getting following error when i am trying to accesses one of Production Servers. -bash-4.1$ sudo su - jupiter sudo: >>> /etc/sudoers: syntax error near line 114 <<< sudo: parse error in /etc/sudoers near line 114 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin Thanks, Pat B prathamesh7478 View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by prathamesh7478 10-01-2013, 09:53 AM #2 Fi
line 28(rpi) Post a reply 11 posts by rpi_ayu » Wed Oct 09, 2013 8:15 am when i edited my sudoers file & saved it on raspberry pi its giving me.Code: Select allsudo: parse error in /etc/sudoers near line 26
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin on raspberry pi
i am trying to avoid sudo permissions for a bash which is trying to access a root file i also tried pkexec as like general linux solution but its givingCode: Select allpi@raspberrypi ~ $ pkexec vim.tiny /etc/sudoers
-bash: pkexec: command not found is there any solution for this Last edited by rpi_ayu on Wed Oct 09, 2013 8:49 am, edited 1 time in total. Posts: 30Joined: Tue Sep 24, 2013 10:55 amLocation: Bhopal by FinnAnder » Wed Oct 09, 2013 8:20 am Please could you post the content of your sudoers file?As for your pkexec error, that is because it hasn't been installed (or not properly).I don't know where you got this pkexec from, but if it's on the repositories, you can install it with:sudo apt-get install pkexecHope this helps and I'll have a look at your sudoers file too. --finnian@fxapi.co.ukfxapi.co.uk Posts: 13Joined: Sun Jul 21, 2013 4:50 pm by RaTTuS » Wed Oct 09, 2013 8:42 am sudoedit /etc/sudoers How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.htmlWARNING - some parts of this post may be erroneous YMMV1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX Posts: 8477Joined: Tue Nov 29, 2011 11:12 amLocation: North West UK by rpi_ayu » Wed Oct 09, 2013 8:51 am Code: Select allsudo: parse error in /etc/sudoers near line 26
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin on raspberry pi
still same @Rattus in all the sudo or root operations showing this Posts: 30Joined: Tue Sep 24, 2013 10:55 amLocation: Bhopal by RaTTuS » Wed Oct 09, 2013 10:00 am ok - you have damaged the sudouser file...can you su -i.e. have you a password for root if not ... 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 post may be erroneous YMMV1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX Posts: 8