LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-09-2005, 03:37 PM   #1
sajjad02
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
SUDO - allow user joe to SU to usera


How do I allow regular user Joe to SU to only userA, noone else should be able to su to userA and joe won't be allowed to SU to root or anyone else besides userA. Also How do I allow John to su to root, besides john noone can su to root. Thanks.

Host_Alias SVR = HP1
User_Alias ADMIN = joe
Cmnd_Alias SU= /usr/bin/su

ADMIN SVR = (prod1) SU, !root (is this the right systax?)

ADMIN SVR = (SU) root

Thanks again.
 
Old 03-10-2005, 01:25 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
From man sudoers:
ADMIN SVR= /usr/bin/su userA

EDIT: Oops, didn't read it quite through.
john ALL = /usr/bin/su
this would also let john give flags to su.

Last edited by makuyl; 03-10-2005 at 01:45 PM.
 
  


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
sudo wont allow user sh4d0w13 Linux - Newbie 2 08-17-2005 06:39 PM
Sudo User Error ! LinuxRam Linux - Security 6 08-28-2004 10:03 PM
How to allow userA to su another user satimis Red Hat 3 07-05-2004 09:40 AM
SUDO as *non-root* user spratty Linux - Newbie 3 05-19-2004 03:35 AM
Slack 9.1, kernel 2.6.3-r3, Epson Scanner and libusb no worky for Joe user. finegan Slackware 1 02-16-2004 12:49 AM

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

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