Applicable to:
- Plesk for Linux
Question
A password of the Plesk "admin" user is lost.
How to get/reset it?
Answer
Connect to a Plesk server via SSH and use the instructions applicable to your Plesk version.
Note: The commands presented below do not change the password for MySQL "admin" user. To restore the password for MySQL "admin" user, visit this KB article.
-
Getting the password
For security reasons, the command to retrieve a Plesk "admin" password has been removed in Plesk Onyx.
Use a one-time login link to log in to Plesk without a password. To generate a one-time login link:
-
Run the following command to generate two links: One - to access Plesk by its hostname, another - by server IP address:
# plesk login
Note: If a server hostname is not resolvable from the Internet, hostname link will not be generated.
-
Copy one of the generated links and open it in a web-browser.
-
-
Resetting the password
Run the command below replacing ***** with your new password and keeping ' ' on the sides:
# plesk bin admin --set-admin-password -passwd '*****'
-
Getting the password
Run the command below to get a Plesk "admin" password:
-
Plesk 12.x
# plesk bin admin --show-password
-
Plesk 11.x / Plesk 10.x
# /usr/local/psa/bin/admin --show-password
-
-
Resetting the password
Run the command below replacing ***** with your new password and keeping ' ' on the sides:
-
Plesk 12.x
# plesk bin admin --set-admin-password -passwd '*****'
-
Plesk 11.x / Plesk 10.x
# /usr/local/psa/bin/init_conf -u -passwd '*****'
-
Comments
10 comments
plesk 12.5-
when i do:
plesk bin admin --show-password
i get:
Due to security reasons the option '-show-password' is no longer supported. Use '--get-login-link' to generate a one-time login link
you should update your article
Hello Noam,
This message is displayed starting Plesk Onyx. In Plesk 12.5 option --show-password works as intended.
If you are sure that version of your Plesk is 12.5 and you have this message, please contact our technical support for further investigation.
Actually I have successfully reset my password via ssh, but still I can't login.. why???
@Gaurav Sharma
Hello!
The issue may be caused by different reasons. Use this article to troubleshoot.
Also, consider contacting Plesk Technical Support.
this implies to be valid for 'the Plesk "admin" user' only - but what if i have multiple users with administrator role?
does this also cause the effect that trying to use the "forgotten password" link at login returns:
"Error: Identification failed: invalid username or email address specified. Please try again."?
so administrator users can't reset their password at all anymore without being given ssh-access?
@markusk
Indeed this article is applicable to build-in admin only.
However, in case there is a server access for built-in admin, to reset the password to additional, go to Tools & Settings > Additional Administrator Accounts > <Account Name> and set a new password.
As for the error "Error: Identification failed: invalid username or email address specified. Please try again.", it is a known Plesk bug, you may find the description and workaround here.
It is really very needed guidance for the online buyers regarding the best quality provider as well as leading brands of Antivirus softwares which all are really very productive tio secure the system from each and every external attacker.
@sophiasophos,
Hi! There is a list of Plesk partners that provide hosting services you may choose from.
As for the antiviruses, Plesk provides its own set of security options and it is a server's administrator's choice which antivirus software to use according to his/her own preferences.
There's nothing to do when plesk can´t connect to mysql
I've had to change mysql admin password to connect mysql and phpmyadmin because script to autoinstall has the same error to connect
Now,
/usr/local/psa/bin# /usr/local/psa/bin/sw-engine-pleskrun plesk_password_changer.php `cat /etc/psa/.psa.shadow`
[2018-12-18 08:22:23][FATAL_ERROR] [MYSQL ERROR] Given <password> is incorrect. Access denied for user 'admin'@'localhost' (using password: YES)
/usr/local/psa/bin# /usr/local/psa/bin/init_conf -u -passwd
[2018-12-18 20:35:38.212] ERR [panel] Cannot load settings: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
How can I do?
Hi @Cesc,
Use the solution from the following article in order to bring Plesk back online: https://support.plesk.com/hc/en-us/articles/213364309
it will sync the password to the old one. note that in case it is required to connect via admin user via some external utility, it is possible to just use hash from /etc/psa/.psa.shadow as a plain text, it should work
Please sign in to leave a comment.