You use the Plesk administrator username and password to log in to Plesk. By default, the Plesk administrator username is admin.

However, admin is a predictable username, which can be easily guessed and used in brute-force attacks. Along with a strong password, you can set a custom username as an additional layer of protection against brute-force attacks.

To change the Plesk administrator username:

  1. Ouvrez le fichier panel.ini pour le modifier. Ce fichier est disponible ici :

    • (Plesk pour Linux) /usr/local/psa/admin/conf/panel.ini
    • (Plesk pour Windows) %plesk_dir%admin\conf\panel.ini

    Vous pouvez également modifier le fichier depuis l’interface de Plesk à l’aide de l’extension Panel.ini Editor.

  2. Ajoutez les lignes suivantes au fichier panel.ini et enregistrez-le :

    [login]
    allowChangeAdminLogin=true
    

    You can now change the Plesk administrator username in the Plesk interface or via the CLI.

  3. Allez dans Mon profil.

    image admin username

  4. The « Plesk Preferences » section now contains the « Username » text field. Change the default admin username to a custom one, and then click OK.

    Note: To change the Plesk username via the CLI, run the plesk bin admin --set-login <custom_username> command.

You now need to use the custom username to log in to Plesk.