Say our username is
mike
and our host is
alpha
To add specific commands (say /bin/binary1 and /bin/binary2) that we would be able to run through sudo without a password, we can do the following:
Run
sudo visudo -f /etc/sudoers.d/mike
and add the following to it:
mike alpha=(root:root) NOPASSWD: /bin/binary1,/bin/binary2

