I tried changing my sudoers.d file to remove authentication from my pc by typing %admin ALL=(ALL) NOPASSWD:ALL without using visudo. However, after doing that anywhere where the sudo command is used, it says that the password that I've entered is incorrect. I tried correcting it, by logging with my username to virtual terminal and running sudo visudo and typing %<username> ALL=(ALL) ALL in vain.
How do I get sudo to recognize my password?
admingroup is only there for historic reasons (the relevant group now issudo), and your changes should have had no effect. Are you sure it's not a simple case of How do I reset a lost administrative password? – steeldriver Dec 20 '15 at 19:23