sudoers(5)
manpage says that shell-style wildcards (aka meta or glob characters)
could be used in command line arguments in the sudoers file. They are *
, ?
, [...]
and [!...]
.
My idea is to use some stuff in regular expression style, like /path/to/command -a[v]*
, to mean either command -a
, command -av
and command -avvv...v
in one line (for such commands which changes their's verbosity depending on number of -v
arguments, e.g. tcpdump
). But it doesn't works.
Is there some way to do that, not adding /path/to/command -a -v
several times into sudoers
with different number of -v
in each one?