sudo visudo # to open /etc/sudoers file in edit mode
username ALL=(ALL) NOPASSWD: ALL # add this line to the end of the file
sudo visudo # to open /etc/sudoers file in edit mode
username ALL=(ALL) NOPASSWD: ALL # add this line to the end of the file