Reset SuperAdmin password on Linux
To reset the SuperAdmin password in the Contrast application:
Shut down Contrast Server.
Open a command prompt and log in using the Contrast service account created during installation. For example:
sudo -u contrast_service
Go to the $CONTRAST_INSTALLATION directory. (On most systems, this is /opt/Contrast.)
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>”
Start the Contrast server by running:
bin/contrast-server start
When the server comes up, use the password you specified in the command line.
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.