LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2012, 01:35 AM   #1
AlexFr
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
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,093

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Hi,

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.
Eg
Code:
visudo
You can specify which editor to actually use with the EDITOR environment variable.
EG.
Code:
EDITOR=nano visudo
There are plenty of howtos on the web discussing sudo configuration.


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

Original Poster
Rep: Reputation: 0
I found exact instructions here: http://www.garron.me/linux/visudo-co...lt-editor.html
Addind the line
username ALL=(ALL) ALL
solved the problem.
 
  


Reply

Tags
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 06:56 PM.

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