gpg-agent 2.1 persistent socket between sessions

Werner Koch wk at
Wed Oct 25 16:54:57 CEST 2017

On Wed, 25 Oct 2017 11:27, laurent.lavaud at said:

> Actually the first time a gpg-agent is launch, it create a socket in /run/user/PID/gnupg/ but when i logout this folder is cleaned by systemd and then if i come back i can't reconnect to the running gpg-agent because the socket has disapear...

It is a feature and not a bug.  I would suggest to

  apt-get install sysvinit-core



The gnupg tarballs has a file
which is an example on how to specify the location of the socket.  The
problem might be that systemd likes to stop all services at user logout.

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

More information about the Gnupg-users mailing list