GPG homedir path length limit

Werner Koch wk at gnupg.org
Mon Jan 16 20:16:28 CET 2017


On Sun, 15 Jan 2017 00:39, gnupg at jelmail.com said:
> Just experimenting in a sandbox homedir, I noticed that the homedir path
> needs to be below a certain size.

That is because on most Unix systems the file name for local socket is
limited in size.  Local sockets are used for communication between the
components (e.g. gpg and gpg-agent).


The suggested solution is to create the socket in the /var/run
directory:  Make sure that 

  /var/run/user/$(id -u)

exists before starting gpg or gpg-agent the socket will be created
there.  Only is you use a non-default home directory (GNUPGHOME) you
need to manually create a sub-directory by using

  export GNUPGHOME=/foo/bar
  gpgconf --create-socketdir

To view the current directory used for the sockets, use:

  gpgconf --list-dirs socketdir


Shalom-Salam,

   Werner

-- 
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: </pipermail/attachments/20170116/24bbdc6e/attachment.sig>


More information about the Gnupg-users mailing list