When I run sudo
as a normal unprivileged user, it asks for my password, not the root password. That's often convenient, but it reduces the amount of information someone would have to have in order to run commands as root. So how can I make sudo
ask for the root password instead of the invoking user's password?
I know it'd be done with a line in /etc/sudoers
, but I can never seem to properly parse the BNF grammar in the man page to figure out exactly what to write.
Best Answer
Ok, here it is again so you can set the checkmark.
In
/etc/sudoers
, add this line:to turn on the rootpw flag, making sudo ask for the root password.