LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-11-2011, 12:50 PM   #1
nomikos
LQ Newbie
 
Registered: Nov 2008
Location: Concepción, Chile
Distribution: Centos 5.5 (server) / Zenwalk; Linux Mint (desktop)
Posts: 29

Rep: Reputation: 4
Talking I screwed up sudoers and I haven't root access.


This is the hard way to learn when you MUST use visudo. That's right. I did something stupid like:

Quote:
$ sudo vi /etc/sudoers
and now have:

Quote:
$ sudo
>>> /etc/sudoers: syntax error near line 79 <<<
sudo: parse error in /etc/sudoers near line 79
sudo: no valid sudoers sources found, quitting
So what if I have locked the root account (passwd -l root) and now I can't do su to fix sudoers file???

Last edited by nomikos; 02-11-2011 at 01:34 PM.
 
Old 02-11-2011, 01:21 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,630

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Boot from a live CD and fix the sudoers file.
 
Old 02-11-2011, 01:25 PM   #3
nomikos
LQ Newbie
 
Registered: Nov 2008
Location: Concepción, Chile
Distribution: Centos 5.5 (server) / Zenwalk; Linux Mint (desktop)
Posts: 29

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by AlucardZero View Post
Boot from a live CD and fix the sudoers file.
Thanks for your answer. Is not that easy. The screwed up was in a VPS.
 
Old 02-12-2011, 11:42 AM   #4
nomikos
LQ Newbie
 
Registered: Nov 2008
Location: Concepción, Chile
Distribution: Centos 5.5 (server) / Zenwalk; Linux Mint (desktop)
Posts: 29

Original Poster
Rep: Reputation: 4
Talking Update

http://www.howtoforge.net/forums/sho...012#post251012
Thanks.-
 
  


Reply

Tags
sudoers


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is it necessary to add root to sudoers? Mr. Alex Linux - Newbie 5 01-08-2011 12:50 PM
Using sudoers to allow non-root eject xflow7 Slackware 2 06-03-2009 08:27 PM
sudoers - how to give access to certain directories? trey85stang Linux - Enterprise 4 05-23-2009 02:30 PM
Sudoers - root question armandino Linux - General 4 03-05-2009 06:57 AM
I've screwed up my access as root mike150160 Linux - Newbie 10 04-08-2006 03:43 PM


All times are GMT -5. The time now is 02:21 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