В таком случае, надо прописывать команду как
/sbin/ifconfig *
Замечание:
Wildcards in command line arguments should be used with care. Because
command line arguments are matched as a single, concatenated string, a
wildcard such as ‘?’ or ‘*’ can match multiple words.
So, only one wildcard is needed per command.
Таким образом, одной * достаточно.
Учитываем, что
Wildcards
sudo allows shell-style wildcards (aka meta or glob characters) to be used in host names, path names and command line arguments in the sudoers file. Wildcard matching is done via the POSIX glob(3) and fnmatch(3) routines. Note that these are not regular expressions.
Комментариев нет:
Отправить комментарий