How to Reset Plesk Admin Password Using Shell
Passwords are very case sensitive and most of the days it happens that users forgets necessary passwords. Here during this tutorial we going to show a way to reset plesk root password with the help of shell and command prompt.
Reset Plesk Root Password using Shell : Plesk Linux
This can be done with the help of the “ch_admin_passwd” binary
[root@plesklinux root]# cd /usr/local/psa/admin/bin/ [root@plesklinux bin]# ./ch_admin_passwd —help
./ch_admin_passwd: Utility to set Plesk adminstrator’s password
Gets password from the environment variable PSA_PASSWORD
Password length should be from 5 to 16 symbols and must not contain login name, whitespace, quotes or national characters
[root@plesklinux bin]# export PSA_PASSWORD=’newpass’ [root@plesklinux bin]# echo $PSA_PASSWORD newpass [root@plesklinux bin]# ./ch_admin_passwd [root@plesklinux bin]# export PSA_PASSWORD= [root@plesklinux bin]# cat /etc/psa/.psa.shadow newpass [root@plesklinux bin]#
Using Command Prompt Reset Plesk Admin Password: Plesk Windows
Plesk Windows Root Password can also be retrieved and reset using the plesksrvclient binary found in the %plesk_bin% directory.
Open your Windows Command Prompt and type the command as follow and press the Enter button:
cd %plesk_bin%
It will enter in to the directory wherever the Plesk’s Bin folder is found.
In order to get the existing root password, enter the command as follow:
plesksrvclient.exe -get
On a popup window, it will show the existing password. Click the Ok button, to copy it on clipboard.
Enter above command without, to set a new password “-get”:
plesksrvclient.exe <NEWPASS>
For your Plesk Admin login, it will enable you to insert a new desired password.