Forgot the admin password: reset it from the server
On this page
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>:2087with the password you believe is right. - You lost the password saved at installation.
Causes
- The password was changed or mistyped, or a password manager fills in an old one.
- The username is different — the administrator username is
rootunless another one was chosen at installation. - The address list or two-factor sign-in blocks you, not the password (see the fixes below).
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
- Connect to the server with SSH as root (or use your provider's web console).
- 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.
- The command answers
Password updated for root.No such user: …means the username is different. - Sign in at
https://<server>:2087with 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!'.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- Cannot log in to the control panel or admin panel
Fix "Invalid username or password", "Your IP is temporarily blocked" and "This account is suspended" when signing in to the control panel or the admin panel.
- Lost your two-factor phone: sign in without the code
You lost the phone with your authenticator app or the code is not accepted. Use a recovery code, or have two-factor sign-in turned off from the server.
- My IP is blocked: too many failed logins (how to unblock)
Your address was blocked after failed logins or by the Protection Shield and the panel, site, email or SSH stopped working. Find and lift the block.