I'm trying to achieve same result as the answer from that existing SF question without having to enter the password for the original user, that is, I'm userA, and I want to be able to run a command as userB without having to enter the passwords for any of these users.

Can somehow provide an example to assist me please?

link|improve this question

feedback

1 Answer

up vote 5 down vote accepted

Just add a NOPASSWD tag. So, using the example in the previous question, you would do:

tom  ALL=(oracle) NOPASSWD: /bin/chown tom *
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.