[sudo-users] sudoers config

Carville, Stephen scarville at LANDAM.com
Thu May 8 16:02:05 EDT 2008


> -----Original Message-----
> From: sudo-users-bounces at courtesan.com [mailto:sudo-users-
> bounces at courtesan.com] On Behalf Of dave.parson at daimler.com
> Sent: Thursday, May 08, 2008 11:39 AM
> To: sudo-users at sudo.ws
> Subject: [sudo-users] sudoers config
> 
> I am not new to sudo, however I have been unable to find the proper
way
> to
> configure sudoers for the following task.
> 
> As user "dave"
> 
> sudo - l some_user kill 12345 (no password required for this action).
> 
> The intent is to allow user "dave" to run the kill command as some
> other
> user (not root in this case) and not require a password. It's the
entry
> in
> sudoers that I am having trouble coming up with.

Try

dave		ALL = (some_user) NOPASSWD:/path/to/kill

The command would be:

$ sudo -u some_user kill 12345

> David
> 
> 
> 
> If you are not the intended addressee, please inform us immediately
> that you have received this e-mail in error, and delete it. We thank
> you for your cooperation.
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
> 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 269.23.10/1421 - Release Date:
> 5/7/2008 5:23 PM



More information about the sudo-users mailing list