How To Reset The Plesk Admin Password Through Shell?

Passwords are usually case sensitive. If a user doesn’t remember a password, he might face a really bad situation

Follow the process mentioned below in order to reser the Plesk root password using Shell and Command Prompt

The procedure of resetting the Plesk (Linux Server) root password through Shell:

[[email protected] root]# cd /usr/local/psa/admin/bin

[[email protected] bin]# ./ch_admin_passwd —help

./ch_admin_passwd: Utility for setting the Plesk administrator’s password

This fetches password from the environment variable PSA_PASSWORD

The password must consist of symbols ranging from 5-16 and it is important to avoid using the login name, quotes, national characters or whitespace.

[[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]#

The procedure of resetting the Plesk (Windows Server) root password through Shell:

The Plesk Windows Root Password can also be reset through the plesksrvclient binary that is located in the %plesk_bin% directory.

For this, go to the Windows command prompt, enter the following command and hit enter:

cd %plesk_bin%

This command will take you to the directory where the Plesk Bin Folder is situated.

In order to get the existing root password, enter the command mentioned below:

plesksrvclient.exe –get

The existing password will be displayed in a pop up window. In order to copy it on the clipboard, click on the ‘OK’ button
In order to create a new password, enter the command given above without ‘-get’

plesksrvclient.exe <NEWPASS>

This command will enable you to add a new desired password for the Plesk Admin account.

This entry was posted in Control Panels, Web Hosting and tagged , , , . Bookmark the permalink.