This question already has an answer here:
- No password prompt at sudo command 2 answers
Whenever I issue command
sudo apt-get install foo it does not ask for password.
is it because of user groups?
How to make it prompt for password?
Edit: My sudoers file
apple@Ascension:~$ sudo cat /etc/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 # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) 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 #includedir /etc/sudoers.d ALL ALL=(ALL) NOPASSWD:ALL ALL ALL=(ALL) NOPASSWD:ALL ALL ALL=(ALL) NOPASSWD:ALL