How to get/reset lost Plesk Administrator password in Plesk for Linux

Follow

Comments

12 comments

  • Avatar
    Cesc (Edited )

    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, 

    we have the same

    /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?

  • Avatar
    Noam Harel

    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

  • Avatar
    Artyom Baranov

    @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.

  • Avatar
    markusk

     

    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?

  • Avatar
    Alexandr Redikultsev

    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

  • Avatar
    Alisa Kasyanova

    @New Ancestor
    You are right, this method is described in the article :)

  • Avatar
    Pavel Mikhaylov

    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.

  • Avatar
    Gaurav Sharma (Edited )

    Actually I have successfully reset my password via ssh, but still I can't login.. why???

  • Avatar
    sophiasophos

    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.

  • Avatar
    Ivan Postnikov

    @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.

  • Avatar
    New Ancestor (Edited )

    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.....

  • Avatar
    Ivan Postnikov

    @Gaurav Sharma

    Hello!

    The issue may be caused by different reasons. Use this article to troubleshoot.

    Also, consider contacting Plesk Technical Support.

Please sign in to leave a comment.

Have more questions? Submit a request