How to change cPanel password from command line?

cPanel password of a domain can be changed from command line using cPanel script.1. Login to your server as root via SSH.

2. Execute the following script for random cPanel password

/scripts/chpass [username]

cpanel generate the random password for your cPanel account.

3. Execute the following script for your password from the command line.

/scripts/chpass [username] [password]

Replace [UserName] with the cPanel user name of the domain & [password] with the new password.

3. Synchronizing the new password with FTP password;

In cPanel/WHM servers, whenever a new account is created in WHM, by default a FTP account is created. The cPanel password and FTP password are synchronized. Use the following command to synchronize the new password with FTP password.

/scripts/ftpupdate

Bookmark the permalink.

Comments are closed.