I am running Bullseye with non "pi" account and wanted to require my user to always type in a sudo password. I used sudo visudo -f /etc/sudoers.d/010_pi-nopasswd and changed
myaccount ALL=(ALL) NOPASSWD: ALL
myaccount ALL=(ALL) PASSWD: ALL
That worked fine. Now I've decided that I'm sick of typing in my password so I want to change it back to no password. But I changed the line, using visudo, back to myaccount ALL=(ALL) NOPASSWD: ALL and it's still requiring a password. I've logged out/back in and rebooted. No change. I never saw any visudo errors (in fact, I wondered what a visudo error looked like so I intentionally mistyped something in the file and I got the normal syntax error, then typed x to exit without saving. So I know visudo is doing its syntax checker). Any assistance is appreciated. Scott.