How To “Sudo” Without Password In Ubuntu

< Back to the Title Topic

How To “Sudo” Without Password In Ubuntu

If it is too troublesome to key in your password each time you run a “sudo” command, you can disable it by amending your configuration file on your web server.

Step 1 – Access and log in to your web server via SSH.

Step 2 –  Run the following command on your server’s SSH terminal.

sudo visudo

Step 3 – Add the following code at the bottom of the file, replace “username” with your username.

username ALL=(ALL) NOPASSWD: ALL

Step 4 – Save and exit.

Previous How to install telnet in a Linux server
Next How to Access Your Linux Instance via SSH