How to Fix cPanel Password Reset Not Working
Posted about 5 months ago 4.4kQuick Solutions (5 Minutes)
Emergency: If locked out completely, use WHM access
1. Reset via WHM (Hosting Provider)
WHM provides full control:
# Login to WHM (usually :2087)
# Navigate to:
Home → List Accounts → Modify Account
# Enter new password twice
# Check: "Send email notification"
# Click: "Change"
2. SSH Reset (Technical)
If you have SSH access:
# Reset password for user:
passwd username
# Via WHM API:
whmapi1 passwd user=username password=newpassword
# Force password change on next login:
chage -d 0 username
Common Problems & Fixes
1. Reset Email Not Received
Check these places:
- Spam/Junk folder
- Email filters/rules
- Check MX records are working
- Verify email in cPanel account
2. Password Strength Requirements
# Password must have:
- 8+ characters
- 1 uppercase letter
- 1 lowercase letter
- 1 number
- 1 special character (!@#$%^&*)
# Example valid password: Hosting@2024!
Server Configuration
1. Check Password Policies
# View password policies:
grep PASS /etc/login.defs
# Check PAM configuration:
cat /etc/pam.d/system-auth
# Minimum password age (cannot change too frequently):
chage -l username
2. Fix Mail Server for Reset Emails
# Test email sending:
echo "Test reset email" | mail -s "Test" your@email.com
# Check mail queue:
mailq
# Restart mail services:
service exim restart
service dovecot restart
Troubleshooting Guide
| Symptom | Root Cause | Solution |
|---|---|---|
| "Invalid token" error | Reset link expired | Request new reset within 2 hours |
| Password accepted but login fails | Browser caching old password | Clear browser cache completely |
| Email arrives late | Mail queue backlog | Check and clear mail queue |
| Special characters rejected | Encoding issue | Use only ! @ # $ % ^ & * |
Success: Password reset functionality restored. Consider enabling two-factor authentication for added security.