How to avoid sudo password prompt?

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

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

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0