I have been trying to run a simple command using sudo, but everytime i run the command i am getting a password prompt. I am root user of that system. Here is the command i am running to invoke sudo
sudo -E -u nonrootusername /opt/xyz/bin/run_cmd -stop
and here is my entry in sudoers file
%ynonrootuasername ALL=(ALL) NOPASSWD: /opt/xyz/bin/run_cmd -stop
Is invoking sudo -u the root cause of my troubles?