Webhosting Blog

Reset Admin password in plesk


In order  to reset the admin password on a plesk server (linux) you can follow following steps:

1) Login to the server as root.

2) Go to directory /usr/local/psa/admin/bin/.

[root@server~]# cd /usr/local/psa/admin/bin/

3) We will use ch_admin_passwd binary, it  is a utility to set Plesk adminstrator’s password. Issue a help in order to know the exact usage.

[root@server 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 should not contain login name,

whitespace, quotes or national characters

Usage: ./ch_admin_passwd

-h, —help

display this help and exit

We must export the variable before running the binary. We will unset the variable when we are done.

4) Now lets export the variable value for the admin password.

[root@server bin]# export PSA_PASSWORD=’mynewpassword’

5) View the variable value.

[root@server bin]# echo $PSA_PASSWORD

mynewnewpassword

6) Now lets use the utility to change the password.

[root@server bin]# ./ch_admin_passwd

7) Export the variable value with the new password.

[root@server bin]# export PSA_PASSWORD

8 ) Check new assigned password in the shadow file.

[root@server bin]# cat /etc/psa/.psa.shadow

mynewpassword

Advertisements

One response

  1. how can you log into root if you forgot your password?

    October 31, 2014 at 10:44 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s