Adding sudo Users with Root Privileges on a UNIX Client

You can install the Commvault software as a sudo user with root privileges. The sudo user must be added to the /etc/sudoers file.

Before You Begin

  • For HP-UX, AIX, and Solaris computers, install sudo on the client before adding a sudo user.

  • On Solaris computers, edit the /etc/default/login configuration file and set the "PATH=" variable to the directory where sudo is installed.


  1. Log on to the client computer as root.

  2. Open the /etc/sudoers configuration file in editable mode by using the following command:

  3. Add the sudo user.

    • If you want users to perform all UNIX commands as root users, enter the following:

      sudouser ALL=(ALL) ALL

      To remove the password prompt during the computer login, specify NOPASSWD: ALL as follows:

      sudouser ALL=(ALL) NOPASSWD: ALL
    • If you want users to only run Commvault commands as root users, enter the following:

      ## Allow users to install and run Commvault commands Cmnd_Alias DVDINSTALLCMDS =/DVD_Mount_Location/cvpkgadd Cmnd_Alias DVDUNINSTALLCMDS =/usr/bin/cvpkgrm ## Path to the Commvault Installation directory Cmnd_Alias INSTALLDIRCMDS =Installation_Directory/* ## Path to the scripts and binaries needed for the push install Cmnd_Alias CVPUSH =/bin/sh, /bin/bash, /opt/seed/*, /opt/commvault/*, /opt/commvault/installer/*, /opt/commvault/Base/*, /usr/bin/commvault, /usr/local/bin/commvault, /usr/bin/cvpkgrm, /usr/local/bin/cvpkgrm sudouser ALL = DVDINSTALLCMDS, DVDUNINSTALLCMDS, INSTALLDIRCMDS, CVPUSH, /bin/sh, /usr/bin/commvault


  • In the above, DVD_Mount_Location and Installation_Directory are placeholders. Enter the actual directories when using the above commands.

  • The default Commvault installation directory is /opt/commvault. If your setup uses an alternate installation directory, use that alternate directory in the above commands.