0

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?

Max
  • 3,523
  • 16
  • 53
  • 71

1 Answers1

5

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

tom  ALL=(oracle) NOPASSWD: /bin/chown tom *
TomH
  • 1,290
  • 7
  • 10