[sudo-users] working with Arugments

Todd C. Miller Todd.Miller at courtesan.com
Tue Jul 8 11:02:01 EDT 2008


In message <4872C2B0.7030803 at mindspring.com>
	so spake Phillip Bruce (pbbruce):

> I have setup sudo using
> 
> # sudo -V
> Sudo version 1.6.8p9
> 
> 
> The question I have is setting up a CMD ALIAS:
> 
> Cmnd_Alias      SNAPCREATECOMN = /usr/bin/rsh flr14 snap create 
> dbtst_ora_common
> 
> As you can see that the command I have setup. But the command requires 
> additional aruguments that I need to pass.
> In this case, something like this:
> 
> /usr/bin/rsh flr14 snap create dbtst_ora_common snap_test1
> 
> I know I can explicidly specify that option in that command string but I 
> want the user to be able to specify their own
> without having to modify the sudoers file every time.

You could try:

Cmnd_Alias      SNAPCREATECOMN = /usr/bin/rsh flr14 snap create \
				 dbtst_ora_common *

 - todd



More information about the sudo-users mailing list