I am trying to enable passwordless sudo for updating yum on a RHEL box. I have the following line in sudo visudo.
myuser ALL=(ALL) NOPASSWD: /usr/bin/yum update
After doing this under myuser I am still unable to update yum without giving my sudo password.
/usr/bin/env sudo yum -y update
sudo yum -y update
The reason why I need this done is because in Capistrano 3 it says this is the best way. It does not seem to allow a prompt of sudo anymore.