Resetting a User Password in Beadmin Panel

Step-by-step guide to restoring account access

If you’ve forgotten your Beadmin panel password or are unable to log in for any reason, you can reset it. This guide will walk you through the steps to safely regain access to your account.

There are two ways to reset your password:

  • Using the “Reset Password” feature;
  • Via the server terminal.

Resetting a User Password via the “Reset Password” Feature

Warning

This method is only available if an SMTP relay is configured in the panel. Instructions on setting up SMTP relay can be found here.

Go to the panel login screen and click “Reset Password”.

file

Enter the email address of the user whose password you want to reset.

file

An email with a password reset link will be sent to the specified address.


Resetting a Password via the Terminal

Connect to your server via SSH.

Note

Instructions on how to connect to your server via SSH are available here.

In Beadmin, user data is stored in a SQLite database located at /var/lib/beadmin/data.sqlite. To make changes, first install sqlite3:

apt install sqlite3 -y

User passwords are stored in an encrypted form. To change a password directly in the database, you first need to generate a hash for the new password. Run the following command:

python3 - <<'EOF'
import bcrypt
pw = b"Newpass"
print(bcrypt.hashpw(pw, bcrypt.gensalt()).decode())
EOF

Note

Replace Newpass with the password you want to set.

The output will look something like this:

$2b$12$dM8jH35tJjVgF5os8dvn4.ujXA8cNe8KKFz5/ZdJx4xiWtVX/GS6y

Save this output, as you’ll need it to update the database.

Connect to the database:

sqlite3 /var/lib/beadmin/data.sqlite

Update the user’s password with the following command:

UPDATE users
SET password='$2b$12$dM8jH35tJjVgF5os8dvn4.ujXA8cNe8KKFz5/ZdJx4xiWtVX/GS6y'
WHERE email='user_name';

Note

Replace password with the generated hash, and email with the user’s email address whose password you’re resetting.

Exit the database:

.exit

The password reset is now complete, and you can log in to the panel using the new password.


Help

If you encounter any issues or need assistance, please submit a support request via our ticket system, and we’ll be happy to help.

Need help?Our engineers will help you free of charge with any question in minutesContact us