sudo without password

Typing password for sudo commands is an awful experience. So here’s what we should do to stop linux asking for password:

1. Backup the sudoers file:

cp /etc/sudoers /etc/sudoers.old

2. Open the sudoers file for edit:

visudo

3. Edit sudoers file:

username ALL=(ALL) NOPASSWD: ALL