Re: Extra socket forwarding - SUCKS

Werner Koch via Gnupg-users <[email protected]> Mon, 09 Feb 2026 11:27:26 +0100
Newsgroups gmane.comp.encryption.gpg.user
Message-ID <[email protected]>
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

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users
openpgp-digital-signature.asc (application/pgp-signature, 284 B)
-----BEGIN PGP SIGNATURE-----

iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaYm2jhsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQetDBAQC7
rc7eB11jhHFht0VH4Cy6ilGxaxDRTgGjt/AZD2MPtwD7BtjWUhNL8vHh4x8OmYnq
UpABSNVWo9HdvPQwkxWZJw8=
=v76t
-----END PGP SIGNATURE-----