Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  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 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
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

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


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
[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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration