LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12: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, 06:46 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
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, 01: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



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 05:03 PM
Help editing /etc/sudoers amer_58 Linux - Newbie 3 07-22-2005 03:17 AM
sudoers file cactus-bob Linux - Newbie 2 03-11-2004 11:24 AM
help with sudoers file ogden2k Linux - Security 4 03-11-2003 10:39 AM
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 06: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
Open Source Consulting | Domain Registration