[sudo-users] Runas_default

Agustin, Mario B mario.b.agustin at lmco.com
Mon Jan 31 12:50:08 EST 2005


Question for all you SUDOERS.

I've created the following:

User_Alias	MYTEAM = mario, rich, monica
Host_Alias	50 = unix50,unix51, unix52
Runas_alias	MB = mba

MYTEAM	50 = ( MYTEAM ) NOPASSWD: ALL

Defaults:MYTEAM	runas_default = MB

What I want to do here is anyone on MYTEAM should be able to execute all
the commands "mba" can without the password.  What I also want to do is
I don't want the users in MYTEAM having to do a sudo -u mba to execute
all the commands "mba" can do.  Is this the right way to do it?   The
current configuration should allow the users in MYTEAM to just do a sudo
[ command ] without the -u option.  Is this the correct way of doing
that?

Any help is appreciated.

Mario



More information about the sudo-users mailing list