gpg-agent and X

Werner Koch wk at
Fri Mar 5 15:59:21 CET 2021

On Fri,  5 Mar 2021 10:16, Klaus Ethgen said:

> While this setup work well on my Devuan machine, I have some troubles on
> the Gentoo one, that I don't get solved.

I am also using Devuan without problems.  Did you used

  touch /var/lib/elogind/USERNAME

to avoid elogin stealing the socket directory?

> Anyone an idea, why it is not working correctly and why the agent is
> refusing to accept the DISPLAY setting when started via pam?

I have no idea.  I don't know whether this is of any help, but you can

  gpg-connect-agent 'getinfo std_session_env' /bye

to show the environment of a new session.  If you run that in the
context of PAM it might give a hint.  Or use debug-pinetry in
gpg-agent.conf which should also show the envars.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list