This question already has an answer here:
I have an
/etc/sudoers with the following:
glens ALL=NOPASSWD:/usr/sbin/service php5-fpm glens ALL=(ALL:ALL) ALL
And I'm trying to run the command:
sudo /usr/sbin/service php5-fpm restart
However, I'm still prompted for my password.
This AskUbuntu question/answer suggests I have the correct syntax, but I'm still prompted.