Skip to content

reset admin password without ssh #2059

Closed

Description

@tasiotas

Hi,

I installed Lychee via FTP. How can I reset admin password without ssh access ?

Thank you

Activity

  1. ildyria commented on Nov 20, 2023

    @ildyria
    Member

    You can't. You need to write a small script that you upload yourself and execute it.
    As this is extremely unsafe, such thing will never be implemented in Lychee.

    You can try this script in reset_admin.php which you place in <path_to_lychee>/public/reset_admin.php and then access it from your web. Do be sure to delete the script once done. I have no clue if it works but it is worth a try.

    <?php
    
    exec("cd ..; php artisan lychee:reset_admin", $output, $retval);
    echo "Returned with status $retval and output:\n";
    print_r($output);
  2. tasiotas commented on Nov 20, 2023

    @tasiotas
    Author

    yey, it worked!

    Just had to use create_user --may-administrate instead of reset_admin

    Thank you

  3. tasiotas commented on Feb 5, 2024

    @tasiotas
    Author

    this doesnt work on v5 anymore

    returns:

    Returned with status 255 and output: Array ( )
    

    I don't see any changes to create_user, any ideas?

  4. ildyria commented on Feb 5, 2024

    @ildyria
    Member

    Have you tried lychee:update_user <username> <password> (without the < and > obviously) ?

  5. locked and limited conversation to collaborators on Feb 5, 2024
  6. converted this issue into a discussion #2284 on Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions