[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 FacebookShare on Google+Tweet about this on TwitterShare on StumbleUponShare on LinkedInShare on TumblrDigg thisPin on PinterestShare on RedditEmail 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 ...

Review Overview

User Rating: 4.9 ( 2 votes)
0

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing the 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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>