[sudo-users] executing a command as another user w/o password

Tony G. tonysk8 at gmx.net
Thu Jun 2 22:45:36 EDT 2011

try with:
user1    ALL=(user2)  NOPASSWD: /bin/kill*

On Thu, Jun 2, 2011 at 8:29 PM, <kz0twk-unix at yahoo.com> wrote:

> greeting,
> i need to setup sudo so that user1 can issue a command as user2 without
> entering a password. i tried the following entry in the sudoers file:
> user1    ALL=(user2)  NOPASSWD: /bin/kill
> but when logged in as user1 and execute the command
> sudo -u user2 -i /bin/kill -15 3948
> i get prompted for the password. why does this not work or what do i need
> to do to make it work.
> thanks,
> rj
> ____________________________________________________________
> 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


More information about the sudo-users mailing list