Skip to main content

Reset the admin password

If you forgot the administrator password and cannot sign in, you can reset it from the server console — the same server where Qubix is installed. The reset runs locally on the box and does not require access to the panel.

Another administrator can help — no console needed

If a second administrator (or a team lead with the right permissions) can still sign in, they can change your password for you in the panel, no server access required. See Users. The console reset below is for the case where no one can get in.

Reset from the server console​

You will need SSH access to the server where Qubix runs, and the Qubix stack must be running.

  1. Connect to the server over SSH (in an interactive session) and run:

    Bash
    curl -sSL https://qubix.pro/reset-password.sh | bash
  2. The tool prints the list of administrator accounts. Type the number of the one whose password you want to reset and press Enter.

  3. Enter the new password — at least 8 characters — and repeat it. The input is hidden as you type. To have a strong password generated for you instead, leave it empty and press Enter; the tool prints the generated password once.

  4. If the administrator you chose has the second factor on, the list marks the account with second factor on, and after the password the tool asks whether to turn the second factor off too — it is needed when the phone and the backup codes are lost. Type y to turn it off: the secret of the authenticator, the backup codes and the code from Telegram go with it. Any other answer, a bare Enter included, keeps the second factor, and sign-in will still ask for a code.

  5. Confirm. When you chose to turn the second factor off, the question reads Reset password and turn off the second factor for …. Within a second the new password takes effect and the old one stops working — there is nothing to restart. Sign in at your panel's address with the same email and the new password. If the second factor was turned off, sign-in no longer asks for a code; turn it on again in My settings → Profile, and when it is required for everyone, the panel asks for it right after sign-in.

Clear the password from your screen

If you let the tool generate a password, it is printed to the console. Copy it, then clear your terminal scrollback and history so it does not linger on the screen or in your shell log.

Reset a specific administrator directly​

To skip the list and target one account by email, pass it as an argument:

Bash
curl -sSL https://qubix.pro/reset-password.sh | bash -s -- --email [email protected]

The rest of the flow is the same — enter the new password (or leave it empty to generate one) and confirm.

Run it in an interactive terminal

The password prompt needs a real terminal. Run the command in an interactive SSH session (ssh -t if needed) — not from a script, cron job, or other non-interactive context, where it cannot read the hidden input.

What's next​