Parse Error In /etc/sudoers Near Line 97
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 fix broken sudoers file policies of this site About Us Learn more about Stack Overflow the
Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin
company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered /etc/sudoers.d/50_stack_sh: syntax error near line 1 Ask 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 Is World Writable
a question Anybody can answer The best answers are voted up and rise to the top How to modify a invalid /etc/sudoers file? It throws out an error and not allowing me to edit again up vote 159 down vote favorite 64 How do I edit an invalid visudo file? Here is what happens: $ sudo visudo >>> /etc/sudoers: syntax error near line no valid sudoers sources found quitting centos 28 <<< sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting sudo visudo share|improve this question edited Oct 11 '14 at 16:47 KasiyA 13.9k1458110 asked Oct 30 '11 at 19:15 YumYumYum 3,3992477119 2 great question considering this page creates that error help.ubuntu.com/community/RootSudoTimeout –user128334 Sep 21 '13 at 18:14 add a comment| 13 Answers 13 active oldest votes up vote 235 down vote accepted +50 On a modern Ubuntu system (and many other GNU/Linux distributions), fixing a corrupted sudoers file is actually quite easy, and doesn't require rebooting, using a live CD, or physical access to the machine. To do this via SSH, log in to the machine and run the command pkexec visudo. If you have physical access to the machine, SSH is unnecessary; just open a Terminal window and run that pkexec command. Assuming you (or some other user) are authorized to run programs as root with PolicyKit, you can enter your password, and then it will run visudo as root, and you can fix your /etc/sudoers. If you need to edit one of the configuration files in /etc/sud
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki
Pkexec
Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official
Default Sudoers File
Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! no valid sudoers sources found quitting ubuntu Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] Can't Access http://askubuntu.com/questions/73864/how-to-modify-a-invalid-etc-sudoers-file-it-throws-out-an-error-and-not-allowi Sudoers File in Ubuntu, Kubuntu, Xubuntu Having an Issue With Posting ? Do you want to help us debug the posting 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 https://ubuntuforums.org/showthread.php?t=2036382 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, 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 2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://unix.stackexchange.com/questions/206355/problem-with-sudoers-file-syntax-error-at-line-82-but-cannot-find-exactly-what about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 top Problem with sudoers file. Syntax error at no valid line 82, but cannot find exactly what? [closed] up vote -5 down vote favorite I ssh'ed into my new Linux machine (no physical access) and I have root credentials. However, I cannot run sudo commands because of some error in the sudoers file made by someone else who logged in as root as well earlier. I used visudo to add my username to the list and the file permissions are currently: -r--r----- 1 root root 3419 May 29 11:57 /etc/sudoers no valid sudoers I get the following error message : >>> /etc/sudoers: syntax error near line 82 <<< sudo: parse error in /etc/sudoers near line 82 sudo: no valid sudoers sources found, quitting Please have a look and let me know what you guys think is the problem. 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 at the bottom of the file for collections ## of related commands, which can then be delegated out to particular ## users or groups. ## ## This file must be edited with the 'visudo' command. ## Host Aliases ## Groups of machines. You may prefer to use hostnames (perhap using ## wildcards for entire domains) or IP addresses instead. # Host_Alias FILESERVERS = fs1, fs2 # Host_Alias MAILSERVERS = smtp, smtp2 ## User Aliases ## These aren't often necessary, as you can use regular groups ## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname ## rather than USERALIAS # User_Alias ADMINS = jsmith, mikem ## Command Aliases ## These are groups of related commands... ## Networking #Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool ## Installation and management of software #Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum ## Services #Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig ## Updating the locate database #Cmnd_Alias LOCATE