Configuring sudo privileges for non-root users

SnapCenter 2.0 and later versions enable a non-root user to install the SnapCenter Plug-ins Package for Linux and to start the plug-in process. You must configure sudo privileges for the non-root user to provide access to several paths.

About this task

You must configure sudo privileges for the non-root user to provide access to the following paths:

Steps

  1. Log in to the Linux host on which you want to install the SnapCenter Plug-ins Package for Linux.
  2. Add the following lines to the /etc/sudoers file by using the visudo Linux utility.
    Example
    Cmnd_Alias SCCMD = sha224:checksum_value== /tmp/sc-plugin
    -installer/snapcenter_linux_host_plugin.bin, 
    /opt/NetApp/snapcenter/spl/installation/plugins/uninstall, 
    /opt/NetApp/snapcenter/spl/bin/spl
    Cmnd_Alias PRECHECKCMD = sha224:checksum_value== /tmp/netapp/Linux_Prechecks.sh
    non_root_user ALL=(ALL) NOPASSWD:SETENV: SCCMD, PRECHECKCMD
    Defaults:non_root_user !visiblepw
    Defaults:non_root_user !requiretty

    non_root_user is the name of the non-root user that you created.

    You can obtain the checksum value from the oracle_checksum.txt file, which is located at C:\ProgramData\NetApp\SnapCenter\Pacakge Repository. If you have specified a custom location, the location will be custom_path\NetApp\SnapCenter\Pacakge Repository.

    Important: The example should be used only as a reference for creating your own data.