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

Attachment: openpgp-digital-signature.asc
Description: PGP signature

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to