Forgot the admin password: reset it from the server

For server administrators · Updated 2026-10-29

On this page
  1. Symptoms
  2. Causes
  3. Fix
  4. Good to know
  5. Still not working?

The admin panel has no "forgot password" link: a reset by email would let anyone who controls that mailbox take over the server. Instead, anyone with root access to the server can set a new password with one command.

Symptoms

  • "Invalid username or password." on https://<server>:2087 with the password you believe is right.
  • You lost the password saved at installation.

Causes

  1. The password was changed or mistyped, or a password manager fills in an old one.
  2. The username is different — the administrator username is root unless another one was chosen at installation.
  3. The address list or two-factor sign-in blocks you, not the password (see the fixes below).
Note: the admin panel password is separate from the server's own root password. Changing one does not change the other.

Fix

Find the username

The installer saved the admin username (and the password, if it was generated) in /root/panel-install-summary.txt. On the server, as root:

cat /root/panel-install-summary.txt

If the password was changed later, the file still shows the old one; set a new one as below.

Set a new password

  1. Connect to the server with SSH as root (or use your provider's web console).
  2. Run, with your admin username and a new password:
    sahaab passwd root 'New-Strong-Passw0rd!'

    The password needs at least 8 characters with at least 3 of: lowercase letters, uppercase letters,

    digits and symbols. Put it in single quotes so the shell does not change symbols.

  3. The command answers Password updated for root. No such user: … means the username is different.
  4. Sign in at https://<server>:2087 with the new password, then open Password & Language (section Account) and choose your own password there.

If two-factor sign-in is the problem

Enter one of your recovery codes instead of the app's code. Without the phone and the codes, turn two-factor sign-in off from the server:

sahaab 2fa:disable root

Then sign in and turn it on again under Two-Factor Auth.

If the admin panel's address list blocks you

sahaab admin:allow-ip clear

removes the list (Admin panel access by IP on Brute Force Protection). To allow only your address instead, run sahaab admin:allow-ip 203.0.113.10.

If your address is blocked after failed attempts

Wait 15 minutes (the default block time), or see My IP is blocked.

Good to know

  • For a customer account, do not use this command: set the password in the admin panel on the account page (Change password), so the SFTP, FTP and other logins of the account change too.
  • A reseller who forgot the password asks the administrator, who can set a new one with the same command and the reseller's username.

Still not working?

If sahaab is not found, the panel is installed in /usr/local/sahaab; run php /usr/local/sahaab/bin/sahaab passwd root 'New-Strong-Passw0rd!'.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.