How to change cPanel password through command line on CentOS Linux server ?

How to change cPanel password through command line on CentOS Linux server ?

Many a times we need to change cPanel password for a user. The easy, faster and effective way is through command line. You can directly change cPanel password through command line too. For this you should have root access for SSH.

To change cPanel password through command line :

1). First login to SSH as root.

2). You have to run the below given command to change cPanel password :
/scripts/chpass [cpanel-username] [password-you-want-to-change]
You might get this error :
warn [realchpass] Insecure passing of password on ARGV.
ERROR: /usr/local/cpanel/scripts/realchpass
interface. You can force a password
change through this script by setting
the environment variable
‘ALLOW_PASSWORD_CHANGE=1’.
if you get this error, then run this command and follow the procedure again.
export ALLOW_PASSWORD_CHANGE=1
3). Now, if you want to synchronize the FTP password too then run this command :
/scripts/ftpupdate
Author
bhawanisingh
Views
3,204
First release
Last update
Rating
0.00 star(s) 0 ratings
Top