I want to reset the password for cPanel in my Amazon Lightsail account.
Resolution
To reset the password for a cPanel website hosted in Lightsail, use cPanel, WebHost Manager (WHM), or the command line.
Reset your password in cPanel
To reset your password from the cPanel log in page, complete the following steps:
- Open the cPanel login page at https://example-ip:2083.
Note: Replace example-ip with your server's IP address.
- Choose Reset Password.
- Enter your user name, and then choose Reset Password.
- Enter your email address, and then choose Send Security Code.
- In your email inbox, look for a message that contains a security code.
- On the cPanel login window, in the Security Code text box enter the code that you received, and then choose Submit.
- Enter the new password in both the New Password and the Confirm Your Password fields.
- Choose Set Password.
To reset your password from the cPanel dashboard, complete the following steps:
- Log in to cPanel at https://example-ip:2083 with your username and password.
Note: Replace example-ip with your server's IP address.
- Under Preferences, choose Password & Security.
- Enter the new password in both the New Password and the Confirm Your Password fields.
- Choose Change your password now.
Reset a password in WHM
To reset the password from WHM's Account Information section complete the following steps:
- Log in to WHM at https://example-ip:2087 with your username and password.
Note: Replace example-ip with your server's IP address.
- Select Account Information, and then choose List Accounts.
- From the list of accounts, choose the cPanel account that requires a password reset.
- Choose the plus sign [+].
- Under Change Password, enter your new password, and then choose Change.
To reset the password from WHM's Account Functions menu, complete the following steps:
- Log in to WHM at https://example-ip:2087.
Note: Replace example-ip with your server's IP address.
- Select Account Functions and then choose Password Modification.
- From the list of accounts, choose the cPanel account that requires a password reset.
- Enter your new password in both the New Password and the Confirm Password fields, and then choose Change Password.
Reset a password in the command line
Important: The passwd command updates the password for every linked service, such as MySQL, File Transfer Protocol (FTP), Mail, PostgreSQL, or System.
To use the passwd command in the command line to reset the password, complete the following steps:
-
Use SSH to connect to Lightsail.
-
Use passwd to change the password:
Note: Replace example-user with the name of the user that requires a new password.
passwd example-user
-
Enter your new password after New UNIX password and Retype new UNIX password.
Verify a new password
To verify that your cPanel password is reset, open the cPanel log in page at https://example-ip:2083 and replace example-ip with your server's IP address. Then, enter your user name and the new password. If you can log in, then the password is reset.