How to avoid sudo password prompt?

by

Please shareShare on Facebook0Share on Google+0Tweet about this on Twitter0Share on LinkedIn0Share on Reddit0Digg thisShare on StumbleUpon0Share on VKBuffer this page

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