Run `SUDO` without password

In the Linux terminal , type the following command:

1
sudo visudo

A text editor would popup. Change the following line to:

1
2
- <your-machine-name> ALL=(ALL) ALL
+ <your-machine-name> ALL=(ALL: ALL) NOPASSWD: ALL

Save and exit. Next time you won’t be necessary to enter password when using sudo. Warning: could cause security concerns.

Built with Hugo
Theme Stack designed by Jimmy