Is it possible to enable sudo -u only for specific users

sudo

I am trying to figure this out, but have not found a proper answer to this yet:

Is it possible to add a user to /etc/sudoers only with the rights to use sudo -u for specific users?

Best Answer

Yes you can specify the users in the sudoers file

To let youruser run any command as the user specificuser do this:

youruser      ALL = (specificuser)    ALL