Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to run sudo command without password


Its really frustrating to run Sudo commands in terminal , since you need to provide password of the respective user for command execution. In this post we will be quickly discussing how to run Sudo Command without password.run sudo command without password


Quick way to run sudo command without password

Step1: Check current user on the terminal using below command:

[email protected]:~$ whoami
manmohan
[email protected]:~$

In my case we need to configure for manmohan user so that, we can able to run sudo command without password ubuntu.

Step2: Edit the sudo’eres configuration.

Now we need to change sudo configuration.

sudo visudo

and below lines at the end of the file. Please do not forgot to replace manmohan with your username.

manmohan ALL=(ALL) NOPASSWD: ALL

Your terminal will look like this:

run sudo command without password

Step 3: Save the file.

Now to save the files press ctrl+x. System will ask about the file select /etc/sudoers and enter Y in the confirmation. Thats all now you don’t need to enter password for user manmohan for sudo command.

Step 4: Perform a test to run sudo command without password.

[email protected]:~$ sudo service ssh restart
[email protected]:~$

The post How to run sudo command without password appeared first on UX Techno.



This post first appeared on UxTechno, please read the originial post: here

Share the post

How to run sudo command without password

×

Subscribe to Uxtechno

Get updates delivered right to your inbox!

Thank you for your subscription

×