sudo

Linux Run Command as another user
usermod
sudo: command not found

To allow a user to run sudo commands without a password, run

visudo

Find

%sudo   ALL=(ALL:ALL) ALL

Add below

USERNAME_HERE    ALL=(ALL:ALL) NOPASSWD:ALL

This needs to be added after generic rules.

Example

boby    ALL=(ALL:ALL) NOPASSWD:ALL

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *