For example, there is a line defining the rule in sudoers file:
%wheel ALL=(ALL) NOPASSWD: $HOME/bin/ls
is it valid? If not, is there an equivalent way to achieve this goal?
Thanks.
For example, there is a line defining the rule in sudoers file:
%wheel ALL=(ALL) NOPASSWD: $HOME/bin/ls
is it valid? If not, is there an equivalent way to achieve this goal?
Thanks.
It is invalid. If you want to keep environment variables when running command via sudo
, uncomment/add the following line, for e.g:
Defaults env_keep += "VBOX_APP_HOME"