I am trying to give user a privilege to change other users' passwords, BUT excluding root's password.
I have edited the /etc/sudoers file with
visudo and appended the following line:
It works now, the user "myuser" can change passwords by command
sudo passwd otheruser, BUT they can also change root's password!
How can I exclude the option of changing root's password?