this post was submitted on 14 Nov 2023
2 points (100.0% liked)

Self-Hosted Main

511 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

Hey there, i recently started to build my own homeserver. I am running homarr to have a nice visual Interface for all my things. Unfortunatly it seems like i have mistyped my password and after loging out i am unable to log Back in. Is there any ay to reset my password, or should i simply remove the container from my docker compose and add it again? Thank you in advance !

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

Not possible at the moment. delete the sqlite file on your host then it should show you the setup again

[–] [email protected] 1 points 1 year ago (1 children)

Hi, maintainer of Homarr here. As others have pointed out, you currently must delete the sqlite database to reset it. This is not recommended to do in future releases as we will build a script to reset it.

[–] [email protected] 1 points 1 year ago

Does OP have any chance of finding a password hash in the container and cracking that?

[–] [email protected] 1 points 11 months ago

I faced this issue just now, if you are willing to get your hands dirty, do can do this:

  1. Create a new user with the new password from the UI
  2. Backup the SQLite database, just copying it should be enough.
  3. Open the database with sqlite, I used the cli:

sqlite3 db.sqlite
  1. Get the password hash and salt from the new user (assuming it to be test) and note these values, they will look like random characters

    select password from user where name='test'; select salt from user where name='test';

  2. Set the above values to the original user (assuming it to be admin)

    update user set password='', salt='' where name='admin';

I did all the above just to avoid setting up everything again. You be the judge if its worth the trouble. I am new to homarr so I am not sure if there is an easier hack for this, without setting up everything again.

You can do this from an sqlite UI editor as well I guess.