How to avoid sudo password prompt?

Question : How  to avoid sudo password prompt ?terminal

Answer  :

First

Assign the permissions to the sudoers file, by running the following command:

chmod 740 /etc/sudoers

Second:

Edit file  /etc/sudoes with  Vi or  gedit or  nano

nano  /etc/sudoers

and   replace

 %admin ALL=(ALL) ALL  

  with

%admin ALL=(ALL) NOPASSWD: ALL

Save  and  exit

Enjoy