[How To] Change/reset/update cPanel password from command line

If you do not have access to WHM then cPanel password for a particular account can be updated from shell with root access.

The following steps should help you to change  / reset / update cPanel password of particular account from shell:

1) Access the server as a root user through SSH

2) Execute following command

/scripts/chpass username password


username : cPanel account username

password : new password you wish to set

Note: Password should not contain special characters

3) Synchronize the new password with the default FTP user


 If any feedback, queries are always welcome!

Share on Facebook4Share on Google+0Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Pin on Pinterest0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan

Loves Linux, Blogging, Traveling, Hiking and sharing Knowledge!


  1. Bhaai thank you.. use me aya tera blog post 🙂

  2. very great post, thanks very much I've changed about 300 accounts passwords, if you the perl error:

    "Cant modify constant item in scalar assignment..."

    just put the line:


    into the /scripts/chpass file and its done!

    thanks very much Abhijit ! Regards

Leave a Reply

Your email address will not be published. Required fields are marked *