Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
The password of the Plesk "admin" user is lost. How to get/reset it?
Answer
Use a one-time login link to log in to Plesk without a password.
To generate the one-time login link:
-
Additional step for Plesk for Windows: start the Command Prompt as Administrator.
-
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 the generated link and open it in a web browser.
-
Additional step for Plesk for Windows: start the Command Prompt as Administrator.
-
Run the command below replacing
<your_new_password>
with your new password of choice and keeping" "
on the sides:# plesk bin admin --set-admin-password -passwd "<your_new_password>"
Comments
23 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
The best way to reset the password is to login to the server root and enter the following command: plesk bin admin --get-login-link it will generate a two links.. ...select the public or the local link...then, press together ctrl + shift + c to copy it....open a browser..paste it on the browser..you will be automatically login on your admin..you can just change the admin password from there.....
@New Ancestor
You are right, this method is described in the article :)
Getting the password did not work in Plesk Onyx if Two Factor Authentcator is activated.
@Kuzma Ivanov maybe it's a good idea to update this post or provide a workaround/solution
@Ralf Göldner
You may temporarily disable two-factor authenticator (https://support.plesk.com/hc/en-us/articles/360007370333-How-to-disable-Google-Authenticator-for-Plesk-via-a-command-line-interface) before getting the password.
This post is really good I also want a solution on How to rest lost Plesk Administrator password in Plesk for Linux windows defender error 577 but after reading this post I get an idea of how to solve it.
Hello @angiliona,
Glad to hear that the article helped.
This article says to use a temporary login and then go to "change password"... however, the change password screen requires the old password to be entered. Am I missing something or is that really not helpful?
I receive message must run as root.
Just FYI, if you receive this error, it actually means the password doesn't meet the password complexity requirements:
Password is incorrect. At least 5 characters, maximum 255, no national characters
trying to retrieve the password without disrupting everyone else
Login to Plesk at https://:8443 using the administrator credentials.
See above message from plesk, I dont have domain, how can i login?
My email: operations@kabokeinc.com
There is no article.
Hello Ken Cline,
To see the required actions, you should expand either the 'Logging in to Plesk without the password' or the 'Resetting Plesk 'admin' password' section. Just click on the name of the section and there will be an answer, for example:
Please sign in to leave a comment.