# Locked out of vault, copy password hash directly in database

**URL:** <https://vaultwarden.discourse.group/t/locked-out-of-vault-copy-password-hash-directly-in-database/5101>\
**Category:** Help\
**Created:** [September 13, 2026, 7:58pm UTC](https://vaultwarden.discourse.group/t/locked-out-of-vault-copy-password-hash-directly-in-database/5101 "2026-09-13T19:58:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ap0](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ap0](https://vaultwarden.discourse.group/u/ap0)\
**Post date:** [September 13, 2026, 7:58pm UTC](https://vaultwarden.discourse.group/t/locked-out-of-vault-copy-password-hash-directly-in-database/5101/1 "2026-09-13T19:58:13Z")

</div>

Hello everybody,

I am self hosting Vaultwarden. Today I changed my master password to one that vaultwarden extension (Firefox) generated. As soon as I changed it, i was logged out of the Firefox extension.

I wasn’t expecting that and of course, I then had no chance to know the very cryptic long password. I was also logged out of every Bitwarden App on my phone and tablet.

So, currently I don’t have access to my vault. There is no solution in the admin page.

Having access to the database I thought I could replace the password hash. I created a new temporary user with a password I know. I then opened the sqlite database and copied the password hash (table: users, field: pasword\_hash) from the temporary user to my existing one.

Unfortunately the login is still not working. I don’t know that maybe still is missing. So I also tried to set field salt from the temporary user. Still without luck.

I still can login using the temporary user but not my main vault. Is there something else that I am missing or is it just not possible what I am trying to do?

---

<div class="post-metadata">

**Author:** ![stefan0xC](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/stefan0xc/32/1765_2.png) [@stefan0xC](https://vaultwarden.discourse.group/u/stefan0xC)\
**Post date:** [September 14, 2026, 6:25am UTC](https://vaultwarden.discourse.group/t/locked-out-of-vault-copy-password-hash-directly-in-database/5101/2 "2026-09-14T06:25:09Z")

</div>

Without an earlier backup from your database it’s probably not possible.

> **[Bitwarden Security Whitepaper | Bitwarden](https://bitwarden.com/help/bitwarden-security-white-paper/)**
>
> The Bitwarden Security Whitepaper highlights the security and compliance program, elaborating on security principles like password hashing and key derivation.

---

<div class="post-metadata">

**Author:** ![ap0](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ap0](https://vaultwarden.discourse.group/u/ap0)\
**Post date:** [September 14, 2026, 7:22am UTC](https://vaultwarden.discourse.group/t/locked-out-of-vault-copy-password-hash-directly-in-database/5101/3 "2026-09-14T07:22:28Z")

</div>

I was afraid of that.

But today I got extremely lucky when I opened my work notebook where I also have installed the Bitwarden extension in Firefox.

Yesterday, after messing inside the database without being able to change the password\_hash successfully, I stopped the Vaultwarden docker container out of frustration. I didn’t think about the extension on my work notebook. Today I opened the extension and was able to login with my old password because the extension wasn’t able to sync with the server. I was able to export all my passwords to a JSON file.

@stefan0xC still thank you for clarification that it wouldn’t have worked anyway.

---

<div class="post-metadata">

**Author:** ![Partridge2562](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@Partridge2562](https://vaultwarden.discourse.group/u/Partridge2562)\
**Post date:** [September 20, 2026, 12:35pm UTC](https://vaultwarden.discourse.group/t/locked-out-of-vault-copy-password-hash-directly-in-database/5101/4 "2026-09-20T12:35:28Z")

</div>

A happy ending but a warning to make regular backups. Since you are using docker it’s easy to add a docker based backup solution like the one I linked to in [this post](https://vaultwarden.discourse.group/t/backup-of-vault-or-database/4247/2).
