LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-07-2013, 01:14 AM   #1
Vineeth Zacharia
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
Filtering of Users in Sudoers File


I have four users :

admin1_user
admin2_user
gen1_user
gen2_user

admin1_user & admin2_user are in USER_ALIAS admin. gen1_user & gen2_user are in USER_ALIAS general.

How can I achieve the following criteria so that I can make changes in sudoers file:

"admin" should have all root access and can access every other user in admin as well as in general.
"general" should only be able to access users in general and shouldn't be able to access root as well as users in admin.

For eg : from admin1_user ---> he should be able to :

sudo su -

sudo su - admin2_user

sudo su - gen1_user etc.

& from gen1_user ---> he should be able to :

sudo su - gen2_user

& not allow the following :

sudo su -

sudo su - admin1_user

sudo su - admin2_user
 
Old 11-07-2013, 07:19 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Have you read the man pages?

http://manpages.ubuntu.com/manpages/...sudoers.5.html

http://manpages.ubuntu.com/manpages/...n8/sudo.8.html
 
  


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
[SOLVED] Help Urgent : Filtering of Users in Sudoers File unSpawn Linux - Kernel 7 11-07-2013 04:06 PM
Allow users to chmod certain directories via sudoers file johnmccarthy Linux - General 18 02-22-2013 08:55 AM
[SOLVED] After modifying /etc/sudoers file, new users can not run specified commands mansour Linux - Newbie 15 04-13-2011 11:04 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

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

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