Force the first argument, but allow more, on a sudoed script
Hi all,
I want to allow to user A the execution of a script from user B, but fixing the first argument (i.e., user A can execute the script ONLY if its first argument is X), and allowing to add 0 or more arguments. I've tried with:
Cmnd_Alias ALIAS1 = /path/to/script X *
A ALL=NOPASSWD: ALIAS1
, but it doesn't work if I pass just the first parameter, and it does work if I pass two or more (it seems like the * means "one or more parameters", instead of "zero or more"). Any hint?
Thanks
|