Home > Parse Error > Parse Error In Etc Sudoers Near Line 23

Parse Error In Etc Sudoers Near Line 23

Contents

Psychocat's method had me boot into recovery mode, select "drop to root shell prompt", enter "mount -o rw, remount /" and response is "mount: special device remount does not exist". It won't let you save a malformed file. Then press "e" on the "Ubuntu" entry to edit it. Then reboot and its done. http://back2cloud.com/parse-error/parse-error-in-etc-sudoers-near-line.php

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 Do I need to do this? 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 I have a new guy joining the group.

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

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 sudo-load) that would make sure the syntax is OK before loading the config into memory thus avoid this sort of problems. Please click the link in the confirmation email to activate your subscription. All users can not use sudo now.

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 However once I restarted it i can no longer run sudo. 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 Pkexec If you have a related situation where you have to perform additional system administration commands as root to fix the problem (also uncommon in this circumstance, but common in others), you

What to do with my pre-teen daughter who has been out of control since a severe accident? asked 4 years ago viewed 203192 times active 1 month ago Linked 11 How to rename sudoers back to its original naming? 3 sudo: can't open /etc/sudoers: Permission denied 2 “no Thanks to all for your excellent help. this page Also another way to fix it if you have the root password is to simply do 'su' then edit the file. –Max Mar 24 '11 at 9:07 @user64204 Interesting...

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 Default Sudoers File Then you could mount it with sudo mount /dev/sda1 /mnt. DistroUbuntu 14.04 Trusty Tahr Re: Can't Access Sudoers File in Ubuntu, Kubuntu, Xubuntu Hi , please open a terminal and run Code: pkexec gedit /etc/sudoers copy-paste below code inside (DELETE everything Do I need to do this?

/etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1

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 https://answers.launchpad.net/ubuntu/+source/sudo/+question/125653 If you are so inexperienced with the OS why did you go messing with the sudoers file? Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin 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: /etc/sudoers Is World Writable I'm beginning to think this OS is over my head because I'm not familiar with a lot of terms used.

Here is what happens: $ sudo visudo >>> /etc/sudoers: syntax error near line 28 <<< sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting sudo http://back2cloud.com/parse-error/parse-error-in-etc-sudoers.php To do this via SSH, log in to the machine and run the command pkexec visudo. Regards, Glen Adv Reply August 2nd, 2012 #7 NikTh View Profile View Forum Posts Private Message Visit Homepage Ubuntu Member Join Date Feb 2012 Location el_GR BeansHidden! This is the reason you should always use visudo when you modify the sudoers file. No Valid Sudoers Sources Found Quitting Centos

How should I fix this? 31 How do I add myself into the sudoers group? 18 How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23? Are there any circumstances when the article 'a' is used before the word 'answer'? It will also work with whatever text editor you want. http://back2cloud.com/parse-error/parse-error-in-sudoers.php I'm not a idiot when it comes to computers.

[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. Sudo: Parse Error In /etc/sudoers Mac This is covered by my earlier answer... 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

Are illegal immigrants more likely to commit crimes?

Hot Network Questions Windows is missing in GRUB! see more linked questions… Related 2“no valid sudoers sources found, quitting” error, how to fix it?7How disable mysql command in sudoers file?1Do I have to do a new installation?0I can't add What's difference between these two sentences? Pkexec Command Not Found No root prompt, nothing.

Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Browse other questions tagged 14.10 sudo or ask your own question. It throws out an error and not allowing me to edit again Related 2“no valid sudoers sources found, quitting” error, how to fix it?2How can add the line into etc/sudoers file?-1ERROR: http://back2cloud.com/parse-error/parse-error-in-etc-sudoers-d.php actionparsnip (andrew-woodhead666) said on 2012-02-23: #15 I suggest you boot to liveCD and edit the file there, reset it back to mine which is default and the system will be fine

Not the answer you're looking for? 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 share|improve this answer answered Jan 13 '13 at 4:41 Markus Ressel 211 add a comment| up vote 1 down vote I found the bug. share|improve this answer edited Mar 9 '13 at 8:16 BuZZ-dEE 6,625104163 answered Mar 9 '13 at 7:12 magisterludi 111 add a comment| up vote 1 down vote pkexec visudo then revert

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 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 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 If you open the folder with the really long hexadecimal name you will start to see your OS files on the internal drive.