Extra socket forwarding - SUCKS

Werner Koch wk at gnupg.org
Mon Feb 9 11:27:26 CET 2026


Hi!

On Fri,  6 Feb 2026 11:17, John Runyon said:
> Ok, can we talk about how much of a pain it is to forward the extra socket
> as a result of putting it in /run?

The problem is if there is no /run/user directory.  I think systemd
creates these directories; on other systems

--8<---------------cut here---------------start------------->8---
[ ! -d /run/user ] && mkdir /run/user
awk -F: </etc/passwd '$3 >= 1000 && $3 < 65000 {print $3}' \
  | ( while read uid rest; do
        if [ ! -d "/run/user/$uid" ]; then
          mkdir /run/user/$uid
          chown $uid /run/user/$uid
          chmod 700 /run/user/$uid
        fi
      done )
--8<---------------cut here---------------end--------------->8---

in /etc/rc.local might be helpful.  And of course you need to

  loginctl enable-linger USER

once for each desired user.  The socket directories are created by GnuPG
on-the-fly - but not the top directories to to insufficent permissions.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20260209/2b09b1a5/attachment.sig>


More information about the Gnupg-users mailing list