Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Sudo to delegate permission from non-root user to another non-root user

UNIX for Dummies Questions & Answers


Tags
linux, sudo

 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-06-2012   -   Original Discussion by canar
canar canar is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 6 April 2012, 5:03 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Sudo to delegate permission from non-root user to another non-root user

I've been through many threads before i decide to create a separate thread.
I can't really find the solution to my (simple) problem.

Here's what I'm trying to achieve:
As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user.

The only to achieve this is to give "canar" user root permission in sudoers, see below:

Host_Alias LAB = linuxbox
User_Alias LABTRUSTED = canar
Cmnd_Alias LABADMIN = /bin/bash, /bin/su, /bin
LABTRUSTED LAB=(ALL) NOPASSWD: LABADMIN

And run any command:

canar@linuxbox$ sudo -i -u duck 'id'


But basically, this is a huge security hole since canar can run whatever he wants as anyone (including root)
I want to restrict canar user to be able to login as duck user (or as anyone from a given group) without providing root access

Edit:
want to restrict canar user to be able to run an identified command as duck user (or as anyone from a given group) without providing root access

Any help would be welcome!
Linux
~canar
Sponsored Links
    #2  
Old Unix and Linux 04-06-2012   -   Original Discussion by canar
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 November 2017, 9:25 PM EST
Location: Saskatchewan
Posts: 22,512
Thanks: 1,151
Thanked 4,273 Times in 3,946 Posts
Change that (all) to (username)
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can root user run chmod 000 permission shell script? royalibrahim Shell Programming and Scripting 1 05-20-2011 11:04 AM
Cron job initiating ssh AND sudo (from user, not root) eh3civic Shell Programming and Scripting 5 04-08-2011 08:18 AM
How to allow access to some commands having root privleges to be run bu non root user suryashikha UNIX for Dummies Questions & Answers 5 10-30-2009 06:46 AM
cant able to change permission in a DIR as root user vijayq8 Solaris 5 06-01-2009 05:20 PM
Possible to give non root user sudo to "crontab -l" LordJezoX UNIX for Dummies Questions & Answers 4 10-10-2008 03:02 PM



All times are GMT -4. The time now is 02:38 AM.