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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-04-2008, 08:49 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2008
Location: UP, India
Distribution: fedora 8
Posts: 8
Rep:
|
how a user can be added to sudoers file.
how a user can be added to sudoers file
|
|
|
|
08-04-2008, 08:51 AM
|
#2
|
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 297
Rep:
|
run the command visudoer.
It will allow you to edit the file. Of course you likely have to have privledges.
|
|
|
|
08-04-2008, 09:03 AM
|
#3
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
Quote:
Originally Posted by checkmate3001
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.
|
|
|
|
08-06-2008, 09:30 PM
|
#4
|
|
Member
Registered: Dec 2005
Location: Boston, USA
Distribution: Kubuntu, Debian
Posts: 78
Rep:
|
Also, be sure that to become root you use 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
|
|
|
|
08-10-2008, 07:10 PM
|
#5
|
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 297
Rep:
|
trickykid: Thanks for correcting me on that one. My mistake.
|
|
|
|
08-10-2008, 07:15 PM
|
#6
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|