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

kz0twk-unix at yahoo.com kz0twk-unix at yahoo.com
Thu Jun 2 21:29:23 EDT 2011


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



More information about the sudo-users mailing list