0

how to run root commands without password from sudo user

I want my sudo users to run root commands without asking passwords.

Sudo Add a comment
connor
asked Feb 22 2017

Answer

0

You can configure Sudo to allow authorization without any password.

Follow these steps:

  1. Log in to the as root user.
  2. Open the /etc/sudoer file or run visudo to edit the configuration file.
  3. Jump to the configuration line for the specified user and add the ‘NOPASSWD’ option.
    For example, if the user name is user1, add the ‘NOPASSWD’ option as shown in the following example:

Example: user1 ALL=(ALL) NOPASSWD: /usr/bin/d2d_ea,/user/bin/ln

Now you have successfully configured Sudo for authorization without password

Add a comment
linuxhelp
asked Jan 29 2019
Post your Answer