CyberPanel – Change/Reset Admin Password

We can change CyberPanel admin password through the Dashboard as well as through the command line.

CyberPanel Change Admin Password using Dashboard

This is the easiest option to change the admin password. Go to the CyberPanel Dashboard and click on the “Edit Profile” link for the admin user.

Cyberpanel Dashboard User Profile Edit
Cyberpanel Dashboard User Profile Edit

In the “Modify User” screen, select the “admin” account and provide the new password in the Password field. Then click on the “Modify User” button.

Cyberpanel Dashboard User Profile New Password
Cyberpanel Dashboard User Profile New Password

Once the password is updated in the backend database, a success message will be shown.

Cyberpanel User Profile Edit Success
Cyberpanel User Profile Edit Success

That’s it, we have changed the admin account password successfully.

CyberPanel Reset Admin Password from Command Line

This method is useful if you have forgotten your password and can’t access the CyberPanel Dashboard. Login to the server as “root” user and run the command adminPass new_password to reset the admin password.

Cyberpanel Change Admin Password Command Line
Cyberpanel Change Admin Password Command Line

Few important points:

  1. The command will be shown in the bash history thus exposing your admin password. You should clear the bash history using the history -c command.
  2. If your new password has special characters, especially “!” then it’s better to put the password between single quotes. In general, it’s always better to pass command line parameters in quotes.
  3. I personally prefer this method to change the admin password, it’s quick and works seamlessly.

Leave a Comment

Your email address will not be published. Required fields are marked *