LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-09-2013, 03:02 AM   #1
ranjithm
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
When i sudo to root from my login , it is thrown error


Hi,

error details " sudo: parse error in /etc/sudoers near line 159
sudo: no valid sudoers sources found, quitting "

cheers
 
Old 01-09-2013, 03:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,395

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
right, so becaome root without using sudo, and look at that line and fix it.
 
1 members found this post helpful.
Old 01-09-2013, 08:38 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045Reputation: 4045
This indicates that you edited the sudoers file without using visudo, which is strongly recommended. This renders the sudo system on your machine unusable, so you have to either follow acid_kewpie's advice and use su to become root or you have to use a live-CD to fix the errors in the file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux AMI - Error: sudo: must be setuid root fortran Linux - Server 3 03-21-2012 09:45 AM
Disable root login, but still be able to sudo -s after logged with another user (ssh) ytd Linux - General 12 04-25-2010 11:34 AM
I hate sudo - but don't need to login as root ForYouAndI.com Ubuntu 36 06-05-2007 12:44 PM
Keep getting thrown back to the login screen on SuSE 10.2 ejp Suse/Novell 7 05-08-2007 10:40 PM
getting thrown to the login prompt after killing X jdaniel Linux - General 5 09-26-2003 03:21 PM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration