I'm trying to change the password that get's asked when doing sudo.I'm in Ubuntu.Doing 'sudo passwd' or 'sudo passwd root' does give me the two new password questions, and it successfully changes passwords.But then I can still use my old password when doing sudo again for something else.I do have a user with the exact same password, don't know if that makes a difference.I enabled root user, and I can see the new password does work with the root user.So root password is changed but not the password for sudo.How to change sudo password?
Changing root password does not change sudo password
linux;ubuntu;root;sudo
You're changing root's password. sudo wants your user's password.To change it, try plain passwd, without arguments or running it through sudo.Alternately, you can issue:$ sudo passwd <your username>