How To Change/reset/update cPanel password from command line?

Run this command from bash:

ALLOW_PASSWORD_CHANGE=1 /scripts/realchpass User Password

 

Here,

  • User is the username you wish to change for.
  • Passwordis the new password.

 

So, replace them with credentials of your choice, such as root and 12345.

 

Example

ALLOW_PASSWORD_CHANGE=1 /scripts/realchpass root 12345

 

This will change your cPanel's root account password to 12345. 

 

Note: 

Please do not actually use 12345 as it's insecureand extremely easy to crack.

So choose the passwords which are much more secure.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)