I try to allow all users in the admin group to run the file jaras SUDO without a password, I edited the sudoers file (using visudo) and tried several commands, but it still offers me a password every time
Content /etc/sudoers:
Defaults env_reset
root ALL=(ALL) ALL
%sudo ALL=(ALL) ALL
%admin ALL=(ALL) ALL
admin ALL=(ALL) NOPASSWD: /opt/myapp/
admin ALL=(ALL) NOPASSWD: /opt/myapp/myapp.jar
admin ALL=(ALL) NOPASSWD: java -jar /opt/myapp/myapp.jar
Daveb source
share