I was reading the this question over on Ask Ubuntu and they suggest adding the following line to etc/sudoers
so that you're not prompted to enter your password each time you run sudo
%admin ALL=(ALL) NOPASSWD:ALL
Is this a security risk and if so, what are some ways people can exploit this?
admin
group, you're already in trouble. It's rather easy to create an alias that executes malicious code that will be executed the instead of the actualsudo
command.