Reset SuperAdmin password on Linux

To reset the SuperAdmin password in the Contrast application:

  1. Shut down Contrast Server.

  2. Open a command prompt and log in using the Contrast service account created during installation. For example:

    sudo -u contrast_service

  3. Go to the $CONTRAST_INSTALLATION directory. (On most systems, this is /opt/Contrast.)

  4. Type the following command:

      export INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -Dreset.superadmin=true -Dsuperadmin.username=contrast_superadmin@<your.email.domain.com> -Dsuperadmin.password=<new password>”
  5. Start the Contrast server by running:

      bin/contrast-server start
  6. When the server comes up, use the password you specified in the command line.

  7. Stop the server (bin/contrast-server stop), start it up as you normally would, and then exit the shell to clear the password from the INSTALL4J_ADD_VM_PARAMS environment variable.