Hi, I also ran into the problem. I filed a bug report upstream for this a while ago: https://bugs.g10code.com/gnupg/issue781
Not forwarding the XAUTHORITY value from gpgsm/gnupg2 through to the pinentry program is a bug in the gnupg system, IMO, but the best way for Debian to deal with this is probably to stop the gpg-agent when the user logs out again. There's no reason to keep the agent running. Regards, Bernhard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]