Skip to content

Instantly share code, notes, and snippets.

@tankibaj
Created January 27, 2021 02:47
Show Gist options
  • Save tankibaj/fefce86b726388cd3cad501ba321d7ba to your computer and use it in GitHub Desktop.
Save tankibaj/fefce86b726388cd3cad501ba321d7ba to your computer and use it in GitHub Desktop.

This setting is done in the /etc/sudoers file, which drives sudoers to use default security policy plugin for the sudo command under the user privilege specification section.

To allow a user (naim in the example below) to run all commands using sudo without a password, open the sudoers file:

echo 'naim ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers

OR

sudo visudo

And add the following line:

naim ALL=(ALL) NOPASSWD: ALL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment