I'm trying to setup sudo without no password but still I get prompted for password, I'm using ubuntu, here is the relevant line from the sudoers configuration file :
gandalf ALL=(ALL:ALL) NOPASSWD: ALL
|
I'm trying to setup sudo without no password but still I get prompted for password, I'm using ubuntu, here is the relevant line from the sudoers configuration file :
|
||||
|
I believe the correct is:
Put it in the end of the file |
||||
|
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.
sudois designed to facilitate passwordless operation easily and even has ready-to-go commented configuration lines in/etc/sudoersto allow a whole group of users to run any command asrootwithout being prompted for a password. There are some adverse security implications of doing this--any program can perform actions as root without you being notified!--but an actual attacker, with the ability to run programs as (non-root) you, can already capture your password as you enter it forsudo(and then runsudowith it). – Eliah Kagan Jul 27 '12 at 17:43