Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-05-2012, 01:35 AM   #1
LQ Newbie
Registered: May 2010
Posts: 24

Rep: Reputation: 0
sudo doesn't work

Trying to execute sudo, I get this answer: user is not in the sudoers file. How can I fix this to make sudo working for me?
Old 07-05-2012, 01:44 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

you need to configure sudo by editing the sudoers file (/etc/sudoers). It is best to do this "safely" (locks the file and checks for simple syntax errors) using visudo as root.
You can specify which editor to actually use with the EDITOR environment variable.
EDITOR=nano visudo
There are plenty of howtos on the web discussing sudo configuration.

1 members found this post helpful.
Old 07-05-2012, 04:55 AM   #3
LQ Newbie
Registered: May 2010
Posts: 24

Original Poster
Rep: Reputation: 0
I found exact instructions here:
Addind the line
username ALL=(ALL) ALL
solved the problem.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo doesn't work anymore slack_dude Ubuntu 4 08-01-2007 10:33 AM
sudo doesn't work slack_prad Linux - General 2 02-21-2007 07:38 AM
sudo doesn't work oomfoofoo Debian 3 08-13-2005 07:34 AM
sudo doesn't work mla Linux - Software 1 10-01-2003 08:24 PM
sudo doesn't work mla Linux - Software 4 10-01-2003 07:34 PM

All times are GMT -5. The time now is 09:22 PM.

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