[sudo-users] switch to another user

Jamie Beverly jamie.beverly at yahoo.com
Fri May 8 13:46:48 EDT 2009


In /etc/sudoers
Host_Alias MYHOSTS = *.example.com

User_Alias KIRK_USERS = spock

Cmnd_Alias SHELLS = /bin/bash, /bin/sh, /bin/csh, /bin/tcsh

KIRK_USERS MYHOSTS = (kirk) NOPASSWD: SHELLS

# end of sudoers

Then Spock would run:
sudo -u kirk -s


Sent from my iPhone

On May 8, 2009, at 5:29 AM, Bernard Fay <bernard.fay at gmail.com> wrote:

Hi,

Using sudo, is it possible to allow a regular user to switch to another
regular user without a password?

In other words spock needs to switch to user kirk, and only kirk, without a
password.

I try to do something like sudo kirk or sudo -i kirk.

Is it possible? If yes how?

Thanks
Bernard
____________________________________________________________
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