I have been looking for an answer for a while now, but I cannot find it.
I have a shell script located at: /home/myuser/shell.sh, which requires sudo to be run. I want all my users from
%mygroup ALL=(ALL) NOPASSWD: /home/myuser/shell.sh
visudo affects sudo behaviour, so you have to use it.
But don't use
sh /.../shell.sh, make the script executable first
chmod +x /home/myuser/shell.sh
then you'll be able to do
without the password. Then remove all sudo calls in the script.