Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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 *
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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