sudo command with no password in linux!

Created at: 2019-09-09 01:17:18 Updated at: 2019-11-01 03:04:04

in Linux

How to avoide repetation of sudo command in linux.

Just follow bellow steps to avoide repation.

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.
ubuntu ALL=(ALL) NOPASSWD:ALL