Can’t use sudo without password on Ubuntu 12

passwordsudoubuntu-12.04

Maybe my question is stupid but I'm really stuck…

My OS is Ubuntu 12.04
My sudoers:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL
dart    ALL=(ALL) NOPASSWD: ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Some console commands output:

$ id dart
uid=1000(dart) gid=1000(dart) groups=1000(dart),24(cdrom),30(dip),46(plugdev),107(lpadmin),124(sambashare)
$ sudo ls /root/
[sudo] password for dart: 

Why system asking password for sudo? How can I avoid it?

Best Answer

You're probably in the sudo or admin group, try putting the dart NOPASSWD: entry at the end of your sudoers file. Sudoers will match the last entry in the file which corresponds either to a user or a group, and as sudoers and admin come afterwards, and they ask for a password, so you're being prompted for a password.