Forgot Password Recovery
Step-by-step guide to recover access when you've forgotten your password.
Overview
If you've forgotten your Mist password, you can reset it using the mist-cli command-line tool. This tool provides direct database access to change user passwords without requiring dashboard access.
Server Access Required
You need SSH or direct access to the server where Mist is installed to use this method.
Quick Recovery Steps
1. SSH into Your Server
Connect to your server where Mist is installed:
ssh user@your-server-ip2. Reset Password Using CLI
Run the password reset command:
sudo mist-cli user change-password --username YOUR_USERNAMEYou'll be prompted to enter and confirm your new password:
Enter new password:
Confirm new password:
✓ Password changed successfully for user 'YOUR_USERNAME'3. Log Back In
Navigate to your Mist dashboard and log in with your new password:
https://your-mist-domain.comDetailed Instructions
For Admin Users
If you're the admin and forgot the admin password:
# SSH to server
ssh user@your-server-ip
# Reset admin password
sudo mist-cli user change-password --username admin
# Enter and confirm new password when promptedExample session:
$ sudo mist-cli user change-password --username admin
Enter new password: ****************
Confirm new password: ****************
✓ Password changed successfully for user 'admin'For Other Users
If you're helping another user who forgot their password:
# First, list all users to verify the username
sudo mist-cli user list
# Output:
# Users:
# ----------------------------------------------
# ID Username Email Role
# ----------------------------------------------
# 1 admin admin@example.com owner
# 2 developer dev@example.com member
# ----------------------------------------------
# Reset the specific user's password
sudo mist-cli user change-password --username developerNon-Interactive Mode
If you need to reset a password in a script or automation, you can provide the password directly:
sudo mist-cli user change-password --username admin --password NewSecurePass123Security Notice
Using the --password flag will expose the password in:
- Shell history
- Process list (visible via
pscommand) - Log files
Use this method only when necessary and clear your shell history afterward:
history -cTroubleshooting
CLI Command Not Found
Error:
mist-cli: command not foundSolution:
Check if the CLI is installed:
ls -la /usr/local/bin/mist-cliIf not found, rebuild and install the CLI:
cd /opt/mist/cli
sudo go build -o mist-cli
sudo cp mist-cli /usr/local/bin/
sudo chmod +x /usr/local/bin/mist-cli
# Verify installation
mist-cli versionPermission Denied
Error:
Error: open /var/lib/mist/mist.db: permission deniedSolution:
Run the command with sudo:
sudo mist-cli user change-password --username adminDatabase Not Found
Error:
Error: database file not found at /var/lib/mist/mist.dbSolution:
Verify Mist is installed and running:
# Check service status
sudo systemctl status mist
# Check if database file exists
ls -la /var/lib/mist/mist.db
# If service is not running, start it
sudo systemctl start mistUser Not Found
Error:
Error: User 'johndoe' not foundSolution:
List all users to find the correct username:
sudo mist-cli user listUsernames are case-sensitive, so ensure you're using the exact username as shown in the list.
Passwords Don't Match
Error:
Error: Passwords do not matchSolution:
When entering passwords in interactive mode, make sure you type the same password twice. If you keep getting this error:
- Copy your desired password to clipboard
- Paste it when prompted for "Enter new password"
- Paste it again when prompted for "Confirm new password"
Or use non-interactive mode:
sudo mist-cli user change-password --username admin --password YourNewPassword123Security Best Practices
After Password Reset
- Clear shell history if you used non-interactive mode:
history -cUse a strong password:
- At least 12 characters
- Mix of uppercase, lowercase, numbers, and symbols
- Avoid common words or patterns
Consider using a password manager like:
- Bitwarden
- 1Password
- KeePassXC
Prevent Future Lockouts
Store passwords securely:
- Use a password manager
- Keep encrypted backup of credentials
- Document recovery procedures
Set up multiple admin accounts:
# Create a backup admin account (via dashboard)
# Or add an additional user with owner role- Keep SSH access secure:
- Use SSH keys instead of passwords
- Document server access procedures
- Maintain backup access methods
Alternative Recovery Methods
If You Don't Have Server Access
If you cannot access the server directly, you'll need to:
- Contact your hosting provider or system administrator
- Access the server console through your cloud provider's dashboard (AWS, DigitalOcean, etc.)
- Use server recovery mode if available
If CLI is Not Available
If the CLI tool is not installed or not working, you can reset the password directly in the database:
Advanced Users Only
Direct database manipulation can corrupt your data. Use the CLI method when possible.
# Connect to database
sqlite3 /var/lib/mist/mist.db
# Generate password hash (use a temporary Go script or online bcrypt generator)
# Then update the database
UPDATE users SET password_hash = 'YOUR_BCRYPT_HASH' WHERE username = 'admin';
.quitTesting the New Password
After resetting your password:
- Open your browser and navigate to Mist dashboard
- Clear browser cookies (recommended):
- Chrome: Settings → Privacy → Clear browsing data → Cookies
- Firefox: Settings → Privacy → Clear Data → Cookies
- Log in with your username and new password
- Verify access to all dashboard features
Common Scenarios
Scenario 1: Locked Out as Only Admin
# SSH to server
ssh user@server
# Reset your admin password
sudo mist-cli user change-password --username admin
# Log back into dashboard
# https://your-mist-domain.comScenario 2: Reset Password for Another User
# List users first
sudo mist-cli user list
# Reset specific user's password
sudo mist-cli user change-password --username developer
# Notify the user of their password resetScenario 3: Bulk Password Reset
# Reset multiple users (requires bash loop)
for user in developer tester; do
sudo mist-cli user change-password --username $user --password TempPassword123
echo "Reset password for $user"
done
# Notify users to change their temporary passwordsGetting Help
If you're still having trouble recovering access:
Check Documentation
- CLI Tool Guide - Complete CLI documentation
- User Management - User roles and permissions
- Authentication - Login and security
Community Support
- GitHub Issues: github.com/trymist/mist/issues
- Discord: discord.gg/kxK8XHR6
Provide This Information
When asking for help, include:
# Mist version
curl http://localhost:8080/api/updates/version
# Service status
sudo systemctl status mist
# CLI version
mist-cli version
# User list (remove sensitive info)
sudo mist-cli user listRelated Documentation
- CLI Tool Guide - Full CLI documentation
- User Management - Managing users and roles
- Common Issues - Other troubleshooting guides
