From 98fe96f2cf02ef3094522cae994b3e5b9ff1d87d Mon Sep 17 00:00:00 2001 From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com> Date: Fri, 21 Aug 2026 07:49:21 +0200 Subject: [PATCH] reverted the change and added an explanation why we assume a POSIX shell for this to work --- Enabling-admin-page.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Enabling-admin-page.md b/Enabling-admin-page.md index 9c59a1e..ddb8c3f 100644 --- a/Enabling-admin-page.md +++ b/Enabling-admin-page.md @@ -64,6 +64,9 @@ echo -n 'MySecretPassword' | argon2 "$(openssl rand -base64 32)" -e -id -k 19456 # Output: $argon2id$v=19$m=19456,t=2,p=1$cXpKdUxHSWhlaUs1QVVsSStkbTRPQVFPSmdpamFCMHdvYjVkWTVKaDdpYz0$E1UgBKjUCD2Roy0jdHAJvXihugpG+N9WcAaR8P6Qn/8 ``` +> [!NOTE] +This command assumes a POSIX shell which removes the single quotes around your string (which have been added to prevent variable interpolation when substituting a `$` in the example). So if you are running a non-POSIX shell you might want to run `echo -n 'MySecretPassword'` to check what is passed and remove the single quotes accordingly. + ### Using the generated PHC string Use the generated PHC string as admin token in your environment variable or by passing it the docker/podman CLI command. For `docker-compose.yml` files follow the instructions below. @@ -72,7 +75,7 @@ If you have configured your Vaultwarden via the `/admin` page, you should paste image -After you set the PHC string, you can login by using the password you have used to generate the PHC string, e.g. `MySecretPassword` in the example above to login. +After you set the PHC string, you can login by using the password you have used to generate the PHC string, e.g. `MySecretPassword` in the example above to login. > [!NOTE] If you can enter the whole `$argon2id$…` PHC string as an admin password you are probably using an outdated version of Vaultwarden that does not support argon2id yet. Make sure you are using at least the [latest version](https://github.com/dani-garcia/vaultwarden/releases/latest).