Skip to content

Changing a cPanel account's password in WHM — and what the "sync" option actually changes

How to reset a single cPanel account password from WHM Password Modification, what the "synchronize" checkbox updates (FTP, databases, mail), and what it deliberately does not — so a reset does not lock out services.

Resetting a cPanel account’s password from WHM is a one-screen task, but the screen has a checkbox — “synchronize password” — that decides whether the reset quietly breaks half the account’s services or keeps them working. The cPanel login password is also the system user’s password, and several services derive their credentials from it. Change it without understanding what the sync option touches, and FTP accounts, database users, or scripts using stored credentials can stop authenticating. The fix is to use the right WHM tool, decide on sync deliberately, and verify the services that depend on the password afterward.

What’s happening

A cPanel account’s password is the password of the underlying Linux user. WHM » Account Functions » Password Modification changes it. The account’s main credential is used in several places: cPanel/Webmail login, the main FTP account, the system user for SSH (if shell access is granted), and — by linkage — anything that was set up to reuse it. The “Synchronize password” (sometimes shown as “sync MySQL password” / “sync all services”) option controls how far the change propagates. With it on, cPanel also updates the account’s database user password and other service credentials to match, so everything stays consistent. With it off, only the cPanel/login password changes, and any service still holding the old password keeps using it.

That choice cuts both ways. Sync on is the clean default for a routine reset where the operator controls everything — every service ends up on the new password, nothing is left on the old one. But sync on is exactly what breaks integrations that hard-coded the old database or FTP password: a web app’s wp-config.php, a deployment script, or a cron job authenticating to MySQL suddenly fails because its stored password no longer matches. Sync off preserves those stored credentials (the database user keeps its old password) but leaves the account in a mixed state. Neither is universally right — the decision depends on whether the account’s apps store the password somewhere you will also update. The other subtlety: the main FTP account’s password follows the cPanel password, but additional FTP accounts and additional database users have their own passwords that a main-account reset does not touch unless sync explicitly covers them.

How to verify

Confirm the account and what credentials are tied to it before resetting:

# The account exists and its main user
grep -w <cpaneluser> /etc/userdomains
whmapi1 accountsummary user=<cpaneluser>

# Database users on the account (these may hold the old password)
mysql -e "SELECT User,Host FROM mysql.user WHERE User LIKE '<cpaneluser>%';" 2>/dev/null

Find apps and scripts that hard-code the account/database password, so a sync does not break them silently:

# Stored DB credentials in common app configs (decide before sync)
grep -rl 'DB_PASSWORD\|password' /home/<cpaneluser>/public_html/wp-config.php 2>/dev/null
grep -ri 'password' /home/<cpaneluser>/public_html/*config* 2>/dev/null | head

# Additional FTP accounts that have their own passwords
cat /home/<cpaneluser>/etc/ftpquota 2>/dev/null
ls -la /home/<cpaneluser>/etc/*/passwd 2>/dev/null

After the reset, confirm the services that depend on the password still authenticate:

# Login/auth attempts after the change (cPanel, FTP, mail)
grep -i <cpaneluser> /usr/local/cpanel/logs/login_log 2>/dev/null | tail -20
grep -i <cpaneluser> /var/log/messages 2>/dev/null | tail -20

# DB connectivity if an app's credentials were synced
mysql -e "SHOW GRANTS FOR '<cpaneluser>'@'localhost';" 2>/dev/null

The fix / steps

  1. Use Password Modification, not a shell passwd. Change the password in WHM » Account Functions » Password Modification. This updates cPanel’s own records and the linked services correctly. Running passwd <cpaneluser> at the shell changes the Linux password but leaves cPanel’s stored credential and dependent services out of sync — use the WHM tool so the change is consistent.
  2. Decide on “synchronize” before you click, based on stored credentials. If the account’s apps hard-code the database password (a typical WordPress/CMS site), leaving sync on will break them until you update those configs too — so either turn sync off to preserve the database user’s password, or turn it on and update the app configs in the same maintenance window. The right choice depends on whether you control where the password is stored.
  3. Set a strong password that the client can actually use. Use WHM’s password generator or a strong value, and avoid characters that get mangled when pasted into FTP clients or app configs. The point of the reset is usually security (a suspected compromise) or recovery (a forgotten password) — pick a value that satisfies the reason without creating a new copy-paste failure.
  4. Update application configs if you synced the database password. When sync is on, the account’s database user gets the new password, so any app connecting as that user needs its config updated: WordPress wp-config.php, Laravel .env, a custom app’s connection string. Update each in the same window as the reset, or the site shows a database-connection error the moment the sync completes.
  5. Handle additional FTP and database users separately. A main-account password change does not reset additional FTP accounts or additional database users — they keep their own passwords. If the reset is for a compromise, rotate those too: additional FTP accounts in cPanel » FTP Accounts, additional database users in cPanel » MySQL Databases. The main reset alone leaves those credentials unchanged and, if leaked, still exposed.
  6. Re-test mail authentication if mailboxes reuse the pattern. Individual mailbox passwords are separate from the cPanel account password, so a cPanel reset does not change them — but confirm clients still authenticate, especially if someone previously set a mailbox password to match the account. If a compromise is suspected, reset mailbox passwords in cPanel » Email Accounts as a distinct step.
  7. Clear any cPHulk lock from the failed-login burst. If the reset followed a string of failed logins (a forgotten password or an attack), cPHulk may have locked the account or the source IP. Check WHM » cPHulk Brute Force Protection and clear the lock, or the new password will appear not to work because logins are still being blocked. Verify the user can actually log in once after clearing.
  8. Verify login and dependent services before closing the ticket. Log into cPanel with the new password, connect the main FTP account, and load the website to confirm the database connection still works (if synced and configs updated). Check the login log for clean authentications. A password reset is done when the user can log in and the services that derive from the password still function — not when WHM reports the password changed.

A password reset is complete when the account logs in with the new credential and every service that depends on it — FTP, database, mail — still authenticates. Stack Harbor handles cPanel account password resets and the service-credential cleanup they trigger under cPanel/WHM management — start a conversation when a reset needs to not break a live site.