Passwords are very case sensitive and most of the times it happens that users forgets important passwords. Here in this tutorial we are going to show how to reset plesk root password using shell and command prompt.

Reset Plesk Root Password with Shell : Plesk Linux

This can be done using the “ch_admin_passwd” binary

[[email protected] root]# cd /usr/local/psa/admin/bin/
[[email protected] bin]# ./ch_admin_passwd —help

./ch_admin_passwd: Utility to set Plesk adminstrator’s password

Gets password from the environment variable PSA_PASSWORD

Password should be from 5 to 16 symbols and must not contain login name, whitespace, quotes or national characters

[[email protected] bin]# export PSA_PASSWORD=’newpass’
[[email protected] bin]# echo $PSA_PASSWORD newpass
[[email protected] bin]# ./ch_admin_passwd
[[email protected] bin]# export PSA_PASSWORD=
[[email protected] bin]# cat /etc/psa/.psa.shadow
newpass
[[email protected] bin]#

Reset Plesk Admin Password Using Command Prompt: Plesk Windows

Plesk Windows Root Password can also be retrieved and reset with the help of the plesksrvclient binary located in the %plesk_bin% directory.
Open your Windows Command Prompt and type the following command and hit the Enter button:

cd %plesk_bin%

It will enter in to the directory where the Plesk’s Bin folder is located.
In order to get the existing root password, enter:

plesksrvclient.exe -get

It will show the existing password on a popup window. To copy it on clipboard click the Ok button.
To set a new password, enter above command without “-get”:

plesksrvclient.exe <NEWPASS>

It will enable you to insert a new desired password for your Plesk Admin login.
cPanel Web Hosting