Home > Syntax Error > /etc/sudoers Syntax Error Near Line 23

/etc/sudoers Syntax Error Near Line 23

Contents

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 share|improve this answer answered Jul 3 '14 at 9:41 ajile 1283 It worked when i logged in using super user (su -) and executed above steps.. If you have physical access to the machine, SSH is unnecessary; just open a Terminal window and run that pkexec command. Posts: 2826Joined: Tue Oct 11, 2011 8:38 pm by rpi_ayu » Thu Oct 10, 2013 4:42 am @jojopi , Thanks for your detailed explanation about editing sudoers file with some caution http://lwdrm.com/syntax-error/etc-sudoers-syntax-error-near-line-10.php

Thanks a LOT! What's the fastest way to generate a 1 GB file containing only random numbers? The time now is 03:41 AM. What's the fastest way to generate a 1 GB file containing only random numbers?

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

sudo share|improve this question edited Sep 15 '13 at 17:46 Alaa Ali 15.9k95375 asked Oct 30 '12 at 11:06 Robert Fáber 101113 If you boot in single user mode asked 1 year ago viewed 1818 times active 1 year ago Blog How We Make Money at Stack Overflow: 2016 Edition Related 9using sudo on GUI applications35What is the proper sudoers Is there any advantage in a railgun/coilgun having multiple barrels?

Should it be "runs" or "run" in the following sentence? Controlling jet engine thrust on airliners Why do solar planes have many small propellers instead of fewer large ones? Are we in a low CO2 period, compared to the last 590 million years? Default Sudoers File 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!

I added 2 users to the file using 'sudo visudo' command and apparently messed something up. /etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1 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. centos sudo openstack devstack share|improve this question asked Mar 18 '14 at 7:32 Pensu 59811232 1 Are you running through a VM? http://askubuntu.com/questions/612731/sudoers-file-corrupted share|improve this answer edited Sep 15 '13 at 16:52 Kevin Bowen 10.6k114859 answered Sep 15 '13 at 1:09 Igor Parra 1445 add a comment| up vote 2 down vote You can

Thanks –Dave Oct 13 '14 at 6:15 6 But you need to be root. Pkexec How to concentrate during conference talks where the quality of the presentation is poor? All users can not use sudo now. I just ran it through /usr/sbin/visudo -c -f and got parse error in xxxx near line 78 (not 82) If we look on this line we see the error.

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

share|improve this answer edited Aug 16 '13 at 6:30 answered Oct 30 '11 at 19:45 Eliah Kagan 56.8k17164257 5 pkexec /usr/sbin/visudo worked on debian 7 –marinara Mar 5 '14 at check my site If you press enter at the "What now?" prompt, it gives you the options:Code: Select allOptions are:
(e)dit sudoers file again
e(x)it without saving changes to sudoers file
Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin Then you can edit the installed system's sudoers file with sudo nano -w /mnt/etc/sudoers. /etc/sudoers Is World Writable If I wanted to send mail to the USS Enterprise, how would I address it?

On Raspbian, like you, I see just "What now?" without the preceding explanation. http://lwdrm.com/syntax-error/etc-sudoers-syntax-error-near-line-25.php Why do governments not permanently restrain super villains? 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 Even seemingly simple functionality opens the door to full root access. No Valid Sudoers Sources Found Quitting Centos

I will used visudo from now on. 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. Ask a question Edit question Subscribers Subscribe Subscribe someone else • Take the tour • Read the guide © 2004-2016 CanonicalLtd. • Terms of use • Contact Launchpad Support • navigate here asked 1 year ago viewed 1263 times active 1 year ago Blog How We Make Money at Stack Overflow: 2016 Edition Related 2“no valid sudoers sources found, quitting” error, how to

It is in the last two lines of the default /etc/sudoers file. Pkexec Command Not Found Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront? Added a file as suggested into etc/sudoers.d/ directory USING A REGULAR TEXT EDITOR (D-O-N-T__D-O__T-H-A-T!!!).

Is it possible to turn a 3d rotation matrix (4x4) into its component parts (rotation, scale, etc.)?

How do you combine the elements in Sheldon's T-shirt? Therefore I can't fix my sudoers file and am effectively stuck. $ sudo nano /etc/sudoers >>> /etc/sudoers: syntax error near line 39 <<< sudo: parse error in /etc/sudoers near line 39 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 Etc Sudoers Syntax Error Near Line What Now Ubuntu Logo, Ubuntu and Canonical Canonical Ltd.

If you click one it will mount. It will also work with whatever text editor you want. have you a password for root if not ... http://lwdrm.com/syntax-error/etc-sudoers-syntax-error-near-line-26.php Not the answer you're looking for?

Another reason to ditch nano ;) –pehrs Mar 24 '11 at 10:08 +1 for visudo. 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 How does Professor McGonagall knows about the Golden Trio's conversation? 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?

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 It wasn't a problem with the stack.sh script, as you can run something (as the stack user) like "sudo yum update" and it will produce the same problem. Browse other questions tagged ubuntu sudo or ask your own question. Look for a line with "linux = " or "kernel = " and simply add an "single" to the end of that line.

share|improve this answer answered Jul 1 '15 at 15:22 18446744073709551615 276129 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Where do the white lines come from in my composite? I was allowed to enter the airport terminal by showing a boarding pass for a future flight. Alphabetically permute a string If I wanted to send mail to the USS Enterprise, how would I address it?

What should I expect to see/do after the 2nd step? User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. How to align operators using alignat or someother environment? George Van Tuyl (gvantuyl) said on 2012-02-23: #14 I have a new Ubuntu-10.04.04 LTS 64 bit install completely updated.

If you open the folder with the really long hexadecimal name you will start to see your OS files on the internal drive. If you Ctrl-o again the file is saved with error, nano closes and command prompt appears again. It's easy enough to validly deny yourself. –Joshua Oct 5 '15 at 22:02 Can visudo be used by scritps? Nautilus will also open and show the contents of the partitions root, but its only running as a user so isn't much use to us.

Now I can no longer use any sudo commands as the below error is thrown. What's the fastest way to generate a 1 GB file containing only random numbers? 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 I get the following error message