cruegge / pam-gnupg

Unlock GnuPG keys on login
GNU General Public License v3.0
268 stars 12 forks source link

gpg keeps asking for password after setup #6

Closed deadpyxel closed 5 years ago

deadpyxel commented 5 years ago

I've just followed the instructions to setup the GPG unlock for my mutt mail synchronization.

The lines about auth and session have been added to my /etc/pam.d/lightdm, and I have created a ~/.gnupg/gpg-agent.conf with the allow-preset-passphase statement, but still every time I attempt to do anything that is gpg unlock related, the password is asked.

Maybe I messed up something in the setup, so please, tell me which files I need to look at and paste here so we can find what's wrong.

deadpyxel commented 5 years ago

I was using different passwords for my encryption key and user account, editing it has fixed it. Closing this.

vitaliy-kuzmich commented 4 years ago

hmm, @deadpyxel do you want to say that you have equal passwords to your system login, ssh, mail account, gpg account ? :)

deadpyxel commented 4 years ago

no, I mean I was using different system password and GPG password. As far as I understand, you need to have both system and gpg password equal for it to work properly. Please correct me if I am wrong @cruegge .

cruegge commented 4 years ago

No, you're right; the login and gpg passphrase need to be the same, but all others can (and should...) be different.