Sudo

Every time I need to setup passwordless sudo, I always forgot how and spend at least half an hour to googling.

So*NO MORE*!

In RHEL 6/7 and Ubuntu Server 14/15/16:

$ sudo visudo

Add a line in this format user⇥ALL=(ALL)⇥NOPASSWD:⇥ALL at the end of the file.

Example

julot    ALL=(ALL)    NOPASSWD:    ALL

Note

Did this only works on tab? Should try using space sometime.