LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-15-2006, 12:37 AM   #1
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Rep: Reputation: 15
not able to use sudo


When I type

sudo command

and enter the password, the following line gets displayed:

username not in subdoers file. This incident will be reported.


the command doesn't get executed.

Please help.

Last edited by Carunkumar; 12-15-2006 at 12:38 AM.
 
Old 12-15-2006, 01:49 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use the "visudo" command as root to edit the sudoers file. First make yourself a member of the wheel group.
The sudoers file is well commented and all you will have to do is remove the comment before a line that lets members of the wheel group use sudo.
change the line:
Code:
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

to

%wheel        ALL=(ALL)       ALL
If you are unfamiliar with "vi", all you need to do is first use the cursor keys to move to the start of the line and press the 'x' key twice to delete the "# " characters. Then press ":wq" to save and quit vi.

Last edited by jschiwal; 12-15-2006 at 01:52 AM.
 
Old 12-17-2006, 01:29 PM   #3
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
thanks a lot !
 
Old 12-20-2006, 03:05 PM   #4
suhaib
Member
 
Registered: Oct 2006
Location: East London
Distribution: OpenSUSE 11.3
Posts: 53

Rep: Reputation: 15
This was also useful for me to. However after a restart, it was commented out again? Did I not save and exit correctly or could've an update over-ridden the edit?

EDIT: I jus used ZZ. For some reason :q doesn't quit?

Last edited by suhaib; 12-20-2006 at 04:25 PM.
 
  


Reply



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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Sudo without having to type "sudo?" Mitch G Linux - Security 3 09-28-2006 02:16 PM
sudo kaplan71 SUSE / openSUSE 4 09-26-2005 10:42 AM
need help with sudo mla Linux - Software 4 10-02-2003 11:05 AM
sudo? nabil Linux - Security 1 02-12-2001 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration