[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

where

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

/scripts/ftpupdate

 If any feedback, queries are always welcome!

Share on Facebook4Share on Google+4Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Digg thisPin on Pinterest0Share on Reddit0Email this to someonePrint this page
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 where 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 /scripts/ftpupdate  If any feedback, queries are always welcome!

Review Overview

User Rating: 4.9 ( 2 votes)

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing knowledge!

3 comments

  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:

    $ENV{'ALLOW_PASSWORD_CHANGE'} = '1';

    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 *

CAPTCHA Image