Stop password prompt in Ubuntu

Password prompt can be annoying. However, there is a quick way to stop it for all.

open /etc/sudoers file

1
sudo vi /etc/sudoers

change this line

1
%sudo  ALL=(ALL) ALL

into

1
%sudo  ALL=(ALL) NOPASSWD:ALL

to allow assuming any group as well as any user, change the following line

1
%sudo  ALL=(ALL:ALL) ALL

into

1
%sudo  ALL=(ALL:ALL) NOPASSWD:ALL