Configure Sudo for Authorization Without Password When Using SSH Public Key Authentication

When using SSH public key authentication, the Linux Backup Server does not store the user credentials. You can configure Sudo to allow authorization without any password.

Follow these steps:

  1. Log in to the Linux node as root user.
  2. Open the /etc/sudoer file or run visudo to edit the configuration file.
  3. Navigate to the configuration line for the specified user and add the ‘NOPASSWD’ option.

    For example, if the user name is backupadmin, add the ‘NOPASSWD’ option as shown in the following example:

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

  4. Log in to the user shell and type the following command to verify that the authorization does not require any password:

    sudo -v

You have successfully configured Sudo for authorization without password when you are using the SSH public key configuration.


Copyright © 2018. All rights reserved.

Rate This Page
The content on this page was useful to me. Disagree strongly Agree strongly
Submit rating and optional comments about this page