linux · tech · tips

How to allow a user to run commands as another specific user with sudo

I seem to be unable to remember how to configure sudo, so here a little reminder for future me: if I want to allow alice to run commands as bob without specifying a password, the config is something like this:

alice  ALL = (bob) NOPASSWD: ALL

Hopefully it will help some other admin out there :)

Advertisements