How to get or reset password for admin account in Plesk

Created:

2016-11-16 12:56:42 UTC

Modified:

2017-06-26 19:01:56 UTC

25

Was this article helpful?


Have more questions?

Submit a request

How to get or reset password for admin account in Plesk

Applicable to:

  • Plesk for Linux

Symptoms

The password for the admin user in Plesk has been lost. How to get it?

Resolution

First of all, connect to the server using SSH.

For Plesk Onyx
To improve security, the ability to retrieve the Plesk administrator password was removed in Plesk Onyx. Instead, run the plesk login command in the command line to generate a temporary token link.

To update the admin password, please visit this documentation page

For Plesk versions 10.x-12.x :

Use the ${PRODUCT_ROOT_D}/bin/admin utility to prompt the password for the "admin" user:

# /usr/local/psa/bin/admin --show-password

Use ${PRODUCT_ROOT_D}/bin/init_conf to reset the password for the "admin" user:

# /usr/local/psa/bin/init_conf -u -passwd new_password

Or

# plesk bin init_conf -u -passwd  new_password

To avoid any issues with password that has special characters like #,!, etc, the password can be update through variable:

# NEW_PASS='new_password'

# plesk bin init_conf -u -passwd $NEW_PASS

If the init_conf utility cannot connect to the Plesk database, follow the steps from article #213364309 "Cannot log into Plesk due to incorrect admin password" to reset the Plesk database password.

For Plesk versions up to 9.x :

The Plesk admin password is stored in a hidden file on the server. Use this command to get it:

# cat /etc/psa/.psa.shadow

This authenticates the "admin" user by trying to authorize access to the Plesk database using the password provided.

Additional information

How to retrieve the Plesk admin password on Windows

Have more questions? Submit a request
Please sign in to leave a comment.