LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-01-2002, 01:52 PM   #1
Rubicone
Member
 
Registered: Oct 2001
Posts: 36

Rep: Reputation: 15
Arrow Help Editing Sudoers File


I need to allow 3 users designated as the leaders for vaious projects the ability to add new users. Now this can be achieved using the sudo command (eg. sudo -u jsmith useradd). But for this to work the sudoers file needs to be edited and I don't know quite how to do that. If anyone has knowledge and can provide some examples with screenshots that would be great. TIA.
 
Old 05-02-2002, 07:46 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,626

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
Please do not post the same question in more than one forum. To answer you question:
Code:
User_Alias     LEADERS = jsmith, jeremy, rubicone
LEADERS        ALL=/usr/sbin/useradd
There are many other options, but that should get you started.

--jeremy
 
Old 05-03-2002, 02:50 AM   #3
mrm
LQ Newbie
 
Registered: May 2002
Posts: 2

Rep: Reputation: 0
Use visudo!

Just like you shouldn't edit /etc/passwd directly, you should look at using visudo - visudo locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for parse errors.

`man visudo` for more info.
 
  


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
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 06:03 PM
Help editing /etc/sudoers amer_58 Linux - Newbie 3 07-22-2005 04:17 AM
sudoers file cactus-bob Linux - Newbie 2 03-11-2004 12:24 PM
help with sudoers file ogden2k Linux - Security 4 03-11-2003 11:39 AM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 07:17 PM


All times are GMT -5. The time now is 10:13 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration