sudo NOPASSWD in ubuntu

In Ubuntu, do

1. sudo visudo
2. Go to the last line and add
username  ALL=(ALL) NOPASSWD: ALL


I could not change the default editor to use vim by exporting the EDITOR variable. I had to use nano only, which has some quirks like it asks you the save in DOS Format or Mac Format ( I choose Mac). Btw, while using uxterm, you cannot use nano editor, because the Meta key is  bound by uxterm and you wont be able to save it. I had to xfce4-terminal to do the first step. Phew!

No comments: