NOPASSWD for yum
If I have a user (me) in the sudoers as:
user1 ALL=(ALL) ALL
Is it possible to also enter:
user1 ALL=(ALL) NOPASSWD: /usr/bin/yum *
The end result is that the user can still run root commands with a password prompt but run yum without a password prompt.
Is this possible?
I just tested it and it does not seem to work, unless I am doing something wrong. I also want to be able to run yum update with options too (yum -y update).
Responses