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

/etc/sudoers Syntax Error Near Line 17

Contents

that worked. Weird though, I had to edit /etc/sudoers first, then it found the errors in the other file and opened that for me. What should I expect to see/do after the 2nd step? How necessary are specialty malts in an extract brew? http://lwdrm.com/syntax-error/etc-sudoers-syntax-error-near-line-10.php

Dear fellas, If you cant open the sudoers file then just make a newfile in home dir and then sudo paste it in /etc with name sudoers. Is it ethical to offer female candidates a higher wage to achieve a more diverse work environment? If you boot to the live CD as I said you will see the places menu like this: http://cache.gawker.com/assets/images/lifehacker/2009/11/ubuntu_places.jpg See how there are partitions named 'system restore' and '13gb filesystem'. How fast is Time running in Majora's Mask?

Fix Sudoers File

What is knot theory about, exactly? How to concentrate during conference talks where the quality of the presentation is poor? Browse other questions tagged linux debian debian-wheezy sudo or ask your own question. I was saved with this: reboot hold shift key while booting to have option for recovery mode (enter it) enter command line as root (second last option at my grub menu)

Does any organism use both photosynthesis and respiration? Then press F10 to boot this temporarily modified boot entry. more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science No Valid Sudoers Sources Found Quitting Centos I then tried the terminal: sudo apt-get install-f Then I received this: syntax error near line 17 <<< sudo: parse error in /etc/sudoers near line 17 sudo: no valid sudoers sources

[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: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin Strange craters in Afghanistan Magic mirror madness Why is the natural log of infinity, divided by infinity, equal to infinity over infinity? Rohit R (rr0hit) said on 2010-09-16: #5 do sudo gedit /etc/sudoers paste the contents of the file here close gedit without any changes to the file. http://askubuntu.com/questions/612731/sudoers-file-corrupted 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.

Here are the results of attempts to access file: Code: [email protected]:~$ sudo visudo sudo: >>> /etc/sudoers: syntax error near line 9 <<< sudo: >>> /etc/sudoers: syntax error near line 9 <<< Default Sudoers File For example, a user who can run a program that can save a file to an arbitrary location as root can gain full root access (they can install their own /etc/sudoers, I should have known better. UNIX is a registered trademark of The Open Group.

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

I had no clue pkexec existed. What is an Infatuated Word™? Fix Sudoers File If you click one it will mount. /etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1 The ‘Q’ option should be used with extreme care because if visudo believes there to be a parse error, so will sudo and no one will be able to sudo again

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 http://lwdrm.com/syntax-error/etc-sudoers-syntax-error-near-line-25.php Or is it? If you come across a file that is not writable by root you should think one, two and three times before you change access rights and start editing it. Why do governments not permanently restrain super villains? /etc/sudoers Is World Writable

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? I did sudo vim /etc/sudoers and added the following to it: Cmnd_Alias GEM_INSTALL = /usr/bin/gem install * Cmnd_Alias GEM_UNINSTALL = /usr/bin/gem uninstall * vitaly ALL=NOPASSWD GEM_INSTALL vitaly ALL=NOPASSWD GEM_UNINSTALL The intention was to grant You can then change it to look like mine, > save the new > file and reboot to your installed system. > > -- > If this answers your question, please his comment is here Magic mirror madness How to align operators using alignat or someother environment?

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! Pkexec vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. History Link existing bug Create bug report Link to a FAQ Create a new FAQ To post a message you must log in.

You should apply the command from your Desktop environment (nor Recovery mode or Console) or else you should be run nano instead .

Are we in a low CO2 period, compared to the last 590 million years? it will check the file syntax before 'commiting' it. I also couldn't 'su root' since my root user doesn't have a password. Etc Sudoers Syntax Error Near Line What Now My standard editor (emacs) prevents me from editing the file, while vi makes it very clear it is non-writable but lets me bypass.

Now I can no longer use any sudo commands as the below error is thrown. This site is not affiliated with Linus Torvalds or The Open Group in any way. Thanks a lot both –Bizmate Apr 14 at 17:05 add a comment| up vote 2 down vote Folowing solution is for remote servers, it works! http://lwdrm.com/syntax-error/etc-sudoers-syntax-error-near-line-26.php 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.

Never do that! :) Use the visudo command. Tried both suggestions and neither worked. 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 Choose to drop to a root terminal.

up vote 20 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 Can you teleport or Dimension Door out of your clothes? Hot Network Questions Why do governments not permanently restrain super villains? Unix & Linux Stack Exchange works best with JavaScript enabled current community blog chat Server Fault Meta Server Fault your communities Sign up or log in to customize your list.

Though shouldn't visudo give an error message explaining the error? –Matthew Mitchell Sep 18 '14 at 17:13 debian gave me error ">>> /etc/sudoers: syntax error near line 32 <<<" Shortest path between two points with n hops Can you teleport or Dimension Door out of your clothes? e What now? How to replace 8-sided dice with other dice Simple geometry.

North by North by North by South East Is a north-facing window recommended outside of the northern hemisphere? I have 4G of RAM and so I'm usually running dozens of programs and its a pain to close and reopen them all after boot. 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 All users can not use sudo now.

Saved my bacon. Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. Is this what I need. share|improve this answer edited Mar 9 '13 at 8:16 BuZZ-dEE 6,675114263 answered Mar 9 '13 at 7:12 magisterludi 111 add a comment| up vote 1 down vote pkexec visudo then revert

See the manpage for details. –Eliah Kagan Jul 3 '12 at 0:12 As for giving specific permission, please note that this is only useful for very simple commands/apps, because Gedit its a graphical application and cannot be applied with no Desktop environment. Do Indexes activate inmediately? What is the mechanism for the hydrolysis of the boron-alkoxide complex in NaBH4 reduction?