Ubuntu: “Sudo without password” does not work



Question:

I want to enable a user to run sudo without password. I used visudo to append the line to config file

idiot ALL=(ALL) NOPASSWD: ALL  

Yet sudo still asks password as usual. Why?


Solution:1

Problem solved. I assumed that the line

#includedir /etc/sudoers.d  

Is commented out, because the symbol in the front. But no, it is still working and overriding my config. You should add your changes after the line or check the contents of /etc/sudoers.d directory.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »