Hey looping, I bumped this to a new thread so we can explore what’s happened.
Have you restarted the device after making the change?
Am I understanding correctly that no
sudo commands are working after this change?
If there’s nothing of value on your install, as in nothing you can’t reinstall easily like Skills, then I’d reflash the image and start with a fresh install.
Otherwise you could plug the Micro SD card into your primary machine and modify the file. You’d need to double check where it’s mounted, this can differ between distributions. On a standard Ubuntu install it would be
/media/user/rootfs. In this case…
To turn on password protection you can run:
echo "pi ALL=(ALL) ALL" | sudo tee /media/user/rootfs/etc/sudoers.d/010_pi-nopasswd
To turn off the password requirement run:
echo "pi ALL=(ALL) NOPASSWD: ALL" | sudo tee /media/user/rootfs/etc/sudoers.d/010_pi-nopasswd
Just make sure to change the “user” to your username.