I would like to configure sudo such that users can run some specific commands without entering a password (for convenience) and can run all other commands by entering a password.
This is what I have, but this does not work; a password is always required:
Defaults env_reset Defaults timestamp_timeout = 1
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD: /usr/sbin/pm-suspend, /usr/bin/apt-get, PASSWD: ALL
#includedir /etc/sudoers.d
Note that this is a debian system which uses this adding users to the "sudo" group method.
Thanks.
You should be able to do something like: