edit file sudoers
sudo nano /etc/sudoers or sudo visudo
and modify
%sudo ALL=(ALL) ALL
to
%sudo ALL=(ALL) NOPASSWD: ALL
and add following line to the end of the file:
user ALL=NOPASSWD: ALL
Be careful!
When editing sudoers, it’s necessary to be very careful. Any error cause that you will not be able to edit this file anymore and also not to use sudo ;-).
Here are links how to fix it (verified 😉 )
- http://astrails.com/blog/2009/9/29/how-to-fix-a-hosed-etc-sudoers-file-on-mac-osx
- http://askubuntu.com/questions/73864/how-to-modify-a-invalid-etc-sudoers-file-it-throws-out-an-error-and-not-allowi
Leave a Reply