Resetting a cPanel account password restores access when the existing password needs to be replaced. This article explains how to reset that password with passwd from a root SSH session on a cPanel & WHM server.

Before you start

You need root access to the server and the exact cPanel account username. An ordinary hosting user should use the account’s password-change interface or contact support.

Reset the account password

  1. Connect to the cPanel server using SSH as root.
  2. Confirm the cPanel username for the account you intend to change.
  3. Run the command below, replacing cpuser with that username.
passwd cpuser

Enter a new password at the prompt, then enter it again to confirm. Password characters are not displayed while you type.

Specify the account name explicitly. In a root shell, $USER normally refers to root, so passwd $USER can change the wrong account’s password.

Check the result

Read the command output and confirm that the password update succeeded. On cPanel servers, the output may also list the linked services whose passwords were updated, such as FTP or the account’s database credentials.

If the command reports an error or rejects the password, resolve the reported issue before treating the reset as complete. Verify the affected account’s access and update stored credentials for clients that use a changed linked password.

Share the replacement password with the authorised account holder through an appropriate secure channel.