![]() |
|
Guide How to Reset the CyberPanel Admin Password From SSH (adminPass) - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: CyberPanel (https://adminsforum.com/Forum-cyberpanel) +---- Forum: CyberPanel Guides & Tutorials (https://adminsforum.com/Forum-cyberpanel-guides-tutorials) +----- Forum: CyberPanel Getting Started Guides (https://adminsforum.com/Forum-cyberpanel-getting-started-guides) +----- Thread: Guide How to Reset the CyberPanel Admin Password From SSH (adminPass) (/Thread-guide-how-to-reset-the-cyberpanel-admin-password-from-ssh-adminpass) |
How to Reset the CyberPanel Admin Password From SSH (adminPass) - JAY - 10-26-2026 How to Reset the CyberPanel Admin Password From SSH (adminPass) Forgot the CyberPanel admin password, or the login page keeps saying it's wrong? If you still have root SSH access, you can set a new one in a few seconds. Before you run the usual one-liner, though, look at what it does: it leaves your new password in a plain-text file. The quick fix Log in to the server as root (SSH, or your provider's VNC console) and run: Code: adminPass 'YourNewStrongPassword'Code: $Code: !Code: https://YOUR-SERVER-IP:8090What adminPass really does We looked at what the command actually does on our server: Code: cat /usr/bin/adminPass
Code: -rw-------Code: mysqlPasswordCode: webadmin_passwdClean up after resetting Remove the plain-text copy and the password from your shell history: Code: shred -u /etc/cyberpanel/adminPass
history -c && history -wCode: HISTCONTROLCode: read -s -p "New admin password: " P; echo
adminPass "$P"; unset POther things the same script can do Code: /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/adminPass.py --helpCode: --passwordCode: --api 1Code: --api 0Code: twoFA = 0Code: api = 0Code: mysql cyberpanel -e "select userName,twoFA,api from loginSystem_administrator"Locked out by 2FA instead? adminPass doesn't touch two-factor authentication. If you lost the phone with your authenticator app, switch 2FA off for the admin user from SSH, log in, and turn it on again with a new device: Code: mysql cyberpanel -e "update loginSystem_administrator set twoFA=0 where userName='admin'"
systemctl restart lscpdStill can't log in?
More CyberPanel guides
Tested on CyberPanel 3.0 (build 8, OpenLiteSpeed edition) on Ubuntu 24.04, October 2026. Menu names can change slightly between versions. |