Forgot Default Password in Frappe?
- Atul
- Technology , Web , Free software , The big o community , Frappe
- May 22, 2025
Table of Contents
Forgot Default Password in Frappe?
If you’ve forgotten the default login password for Frappe, here are the common ways to resolve this:
Default Credentials to Try First
- Username:
Administrator
- Password:
admin
or the site name you created during installation
If Default Credentials Don’t Work
Method 1: Reset via Command Line
# Navigate to your frappe-bench directory
cd /path/to/frappe-bench
# Reset Administrator password
bench --site [site-name] set-admin-password [new-password]
# Example:
bench --site mysite.local set-admin-password mynewpassword
Method 2: Create New Administrator User
# Create a new user with Administrator role
bench --site [site-name] add-user [email] --first-name [name] --last-name [name] --password [password] --user-type "System User"
# Then assign Administrator role via the web interface or:
bench --site [site-name] set-user-role [email] "Administrator"
Method 3: Database Direct Access (Advanced)
If you have database access:
-- Connect to your site's database
-- Update the Administrator user password (this is a hashed password for 'admin')
UPDATE `tabUser` SET password = '$pbkdf2-sha256$29000$N2YMwVgLAQBgzBkjxBhDSA$g1yLUmVwI2gF8NkP2kgP2kgP2kgP2kgP2kgP2kg' WHERE name = 'Administrator';
Method 4: Check Installation Logs
Sometimes the password was displayed during installation. Check:
- Installation terminal output
- Log files in your frappe-bench directory
Prevention for Future
After regaining access:
- Change the Administrator password to something secure
- Create additional administrator users
- Document your credentials securely