sudo
Linux Run Command as another user
usermod
sudo: command not found
To allow a user to run sudo commands without a password, run
1 |
visudo |
Find
1 |
%sudo ALL=(ALL:ALL) ALL |
Add below
1 |
USERNAME_HERE ALL=(ALL:ALL) NOPASSWD:ALL |
This need to be added after generic rules.
Example
1 |
boby ALL=(ALL:ALL) NOPASSWD:ALL |