LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2008, 08:49 AM   #1
afaheem1988
LQ Newbie
 
Registered: Aug 2008
Location: UP, India
Distribution: fedora 8
Posts: 8

Rep: Reputation: 0
Question how a user can be added to sudoers file.


how a user can be added to sudoers file
 
Old 08-04-2008, 08:51 AM   #2
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
run the command visudoer.
It will allow you to edit the file. Of course you likely have to have privledges.
 
Old 08-04-2008, 09:03 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
Quote:
Originally Posted by checkmate3001 View Post
run the command visudoer.
It will allow you to edit the file. Of course you likely have to have privledges.
Actually the command should just be visudo, at least from my experience on most distributions.
 
Old 08-06-2008, 09:30 PM   #4
robogymnast
Member
 
Registered: Dec 2005
Location: Boston, USA
Distribution: Kubuntu, Debian
Posts: 78

Rep: Reputation: 16
Also, be sure that to become root you use
Code:
su -
so that you inherit root's path (visudo is in /usr/sbin)

Last edited by robogymnast; 08-10-2008 at 11:30 PM. Reason: grammar
 
Old 08-10-2008, 07:10 PM   #5
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
trickykid: Thanks for correcting me on that one. My mistake.
 
Old 08-10-2008, 07:15 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Most distro's have a group named "wheel" and you just need to make the user a member of the wheel group. Then look for the line near the end of the sudoers file with "%wheel". On a new installation you may need to uncomment the line.

Change the line like:

Code:
# Uncomment to allow people in group wheel to run all commands
# %wheel  ALL=(ALL) ALL
and remove the "# " to uncomment the line:
Code:
# Uncomment to allow people in group wheel to run all commands
%wheel  ALL=(ALL) ALL

Last edited by jschiwal; 08-10-2008 at 07:17 PM.
 
  


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
user is not in the sudoers file after clean install Mark_667 Red Hat 3 02-11-2008 11:16 AM
Debian user not in sudoers file... phantom_cyph Linux - General 3 04-08-2007 01:08 PM
How to automatically add smb user when unix user added Winanjaya Linux - Newbie 3 01-07-2007 11:17 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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