Keepassxc: Pam module to auto-unlock default db with login password

Created on 17 Mar 2019  路  6Comments  路  Source: keepassxreboot/keepassxc

Summary

I've seen numerous questions here and there on how to make it unlock a password db on login without providing a password manually. I personally don't like the solutions proposed (like using a password stored in gnome keyring or kwallet which unlocks on login automaticly).

Desired Behavior

keepassxc should provide a pam module to unlock a "default" password db (like ~/.config/Passwords.kdbx) with the login password.

Possible Solution

kwallet-pam does exactly that for default kwallet db. Its source code can be used as a working example.

new feature

All 6 comments

Is there a PAM module that can execute arbitrary dbus commands? If so, you can just configure it to issue the dbus commands to open and unlock the database of your choosing.

@droidmonkey
Lol I was just now reading the pam_script repo :)

Great minds think alike! If you get something working we can include it as an example in our wiki.

After looking deeper into the sources: both kwallet and gnome keyring pam modules do the unlocking job on a daemon, the gui part acts on behalf of the daemon. Since keepassxc is a self-contained gui program it is not that _straightforward_ to implement unlock with pam _correctly_.

Feel free to close the issue, I'm kinda satisfied as far lol.

Was this page helpful?
0 / 5 - 0 ratings