This can be done is 3 quick steps:
- Edit sudoers file:
sudo nano /etc/sudoers
- Find a line which contains
- Below that line add:
username ALL=(ALL) NOPASSWD: ALL, where username is your passwordless sudo username; Save your changes.
You’re done. From now on, your user will be able to execute
without providing a sudo password.
Hey, if you’ve found this useful, please share the post to help other folks find it