sudo command without password in linux!

Created at: 2019-09-09 01:17:18 Updated at: 2020-05-10 12:50:05

in Linux, ubuntu

How to avoide repetation of sudo command in linux.

Just follow bellow steps to avoide repation.

sudo command without password

Create file or edit if exist

sudo visudo -f /etc/sudoers.d/90-cloudimg-ubuntu

Change username as per your suite

# ubuntu user is default user in cloud-images.
# It needs passwordless sudo functionality.

Now you can try

sudo su