Search our database

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 login into 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.

 

Reference:

How to SSH into your cloud or web server

Basic command and tutorial guide on text file editor on SSH

 

Affordable but Powerful Cloud Hosting Package

Check out IPServerOne’s Cloud Hosting Packages.
Contact us @ +603-6259-5625 or email @ sales@ipserverone.com

Tags: ,