I want to allow the execution of a mount script for everybody. I'm usually working with a domain user. While allowing the usage of sudo for my user works, I can't disable the password prompt for a certain command.
My sudoers file is unmodified, except for an additional line at the end:
%domain^users ALL = PASSWD: ALL, NOPASSWD:/usr/local/bin/mount_synology
I executed sudo -k
to delete cached credentials, then I tried /usr/local/bin/mount_synology
but I still get a password prompt. Any idea what's wrong? Also, how would I go about adding multiple allowed commands?