How do I unlock KeePassXC at login? #5879
Replies: 9 comments 19 replies
-
This solution assumes that the KPXC password is stored in a 3rd party Secret Service keyring such as Gnome-keyring. That's what In the latter case, you can still use a keyfile without an additional password (I think): There was some discussion of implementing a PAM module for this (in issue #6055 and others), but nothing implemented yet. The team's consensus is that using (only) one's login password to unlock KPXC is poor practice. (Thought this was worth mentioning given that this Q&A is aimed at the end users.) |
Beta Was this translation helpful? Give feedback.
-
How would you do this for |
Beta Was this translation helpful? Give feedback.
-
I've created a script which unlocks KeePassXC at login using password from keyring: |
Beta Was this translation helpful? Give feedback.
-
can someone please help me with this ? i've been looking for hours for a solution and i can't find antyhing that actually works |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
While waiting for version 2.8 with fingerprint unlocking capabilities, I created a script for Windows users. You can find it here: KeePassXC-AutoUnlock-Login-Windows. |
Beta Was this translation helpful? Give feedback.
-
If you're using a desktop environment (DE) and just want KeePassXC to unlock the database without relying on temporary unlocks (as with
This command unlocks the database while discarding any output. The current discussion on this issue seems to be overcomplicating things given the assumptions above. This method avoids the circular dependency problem and doesn't require storing passwords in third-party keyrings. |
Beta Was this translation helpful? Give feedback.
-
I've done gone ahead and done this little project to automate this, at least using system keychains (that means KeePassXC can't be Secret Service provider), and came up with this: https://github.com/erenfro/keepassxc-unlocker |
Beta Was this translation helpful? Give feedback.
-
What about mapping a keyboard shortcut to a command that copies keepassxc password from keyring to clipboard? After you press the keyboard shortcut, you can paste it into keepassxc password prompt. This keyboard shortcut is also useful for entering sudo password. I don't understand why you would want to use keepassxc as libsecret provider. A secret service provider is messed up by applications. I want my keepassxc database to be clean. I tried to love the combination of pam_gnupg and pass, but it is very slow to search pass. keepassxc-unlocker script is very complex. On the other hand, a simple command is very simple. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are using Linux your can use secret-tool such as:
secret-tool lookup name keepass | keepassxc --pw-stdin --keyfile /path/to/keyfile /path/to/database.kdbx
Beta Was this translation helpful? Give feedback.
All reactions