Manage or Restore the Password and Permissions for the Root User Account
This page provides instructions for managing the default "root" user account.
Reset the Default Administrator Account
When you install YouTrack for the first time, you set the username and password for the default administrator account. This account is assigned the System Admin role in the Global project.
If you forget the credentials for the default administrator account, or have inherited an installation configured by another administrator, you can reset the username and password for the account to their default values. You can also set the system properties for the default administrator when you restore the account.
You can also use this procedure when two-factor authentication is enabled and the default administrator no longer has access to the authentication app that is paired with the account. Resetting the default administrator account to its default state also disables two-factor authentication.
If you've forgotten your root password, you can restore it using the
-Djetbrains.youtrack.admin.restore=true command. For more information, see Configuration Parameters.
To restore the root account:
Stop YouTrack:docker exec <containerId> stop
Execute the following command:docker run --rm -it \ -v <path to conf directory>:/opt/youtrack/conf \ jetbrains/youtrack:<version> \ configure -J-Djetbrains.youtrack.admin.restore=true
<path to conf directory>with the full path to the conf directory in the Docker container.
<version>with the current version and build of your YouTrack server.
Start YouTrack:docker start <containerId>
When YouTrack starts, the username and password for the default administrator account are reset to their default values (
The permissions that are granted to this account are reset to their defaults as well.
Log in to the application and change the system administrator password.
If you installed YouTrack with a ZIP installation, use the following procedure.
To restore your root password:
Stop YouTrack with the command:<YouTrack Installation Directory>/bin/youtrack.sh stop
Start YouTrack with the command:<YouTrack Installation Directory>/bin/youtrack.sh start --J-Djetbrains.youtrack.admin.restore=true
Make sure to use the double dash before the
Joption to apply the JVM property only to the current run and not affect any subsequent restart of the YouTrack service.
The default system administrator credentials are reset to "root" user with the password "root".
Log in to YouTrack as the "root" user. Change the system administrator password.