In Luc Lan <swimm3r@gmx.com> wrote:
gpg --version | head -n 2 gpg (GnuPG) 2.4.9 libgcrypt 1.11.2
tin -V 2>&1 | grep GP +HAVE_ISPELL -HAVE_METAMAIL -HAVE_PGP -HAVE_PGPK +HAVE_GPG
looks ok, but somehow pgp.c:pgp_available() fails. it can't read neither ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.kbx nor ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.gpg (tired in that order). as your quoted error messages says: "... can't open /home/user/.gnupg/pubring.gpg" ^^^^^ which looks a bit uncommon (username = "user"?) I guess you have set $GNUPGHOME (or $PGPPATH) to "/home/user/" but it should be left blank (if the pubring is below ~/.gnupg/ and your username is not "user").
On Sun, Jan 04, 2026 at 05:42:16PM +0100, Urs Janßen wrote:
In Luc Lan <swimm3r@gmx.com> wrote:
gpg --version | head -n 2 gpg (GnuPG) 2.4.9 libgcrypt 1.11.2
tin -V 2>&1 | grep GP +HAVE_ISPELL -HAVE_METAMAIL -HAVE_PGP -HAVE_PGPK +HAVE_GPG
looks ok, but somehow pgp.c:pgp_available() fails.
it can't read neither ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.kbx nor ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.gpg (tired in that order).
as your quoted error messages says: "... can't open /home/user/.gnupg/pubring.gpg" ^^^^^ I did not want to share my linux username. sorry for that.
which looks a bit uncommon (username = "user"?) I guess you have set $GNUPGHOME (or $PGPPATH) to "/home/user/" but it should be left blank (if the pubring is below ~/.gnupg/ and your username is not "user").
_______________________________________________ tin-users mailing list tin-users@tin.org http://lists.tin.org/cgi-bin/mailman/listinfo/tin-users
Now I discovered that gnupg is configured as "use-keyboxd" (in ~/.gnupg/common.conf). And when I try to list the keys it shows: gpg --list-keys [keyboxd] I think thats why the pubring.kbx is missing. But why tin is looking only for .gpg?
On Sun, Jan 04, 2026 at 06:57:27PM +0200, Luc Lan wrote:
Now I discovered that gnupg is configured as "use-keyboxd" (in ~/.gnupg/common.conf). I think thats why the pubring.kbx is missing.
*shrug* I don't know anything about keyboxd.
But why tin is looking only for .gpg?
that's not what the code does. tin tries ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.kbx first and if that is not readable (wrong permissions or not present) ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.gpg and if that also fails an error message with the last filename tried is issued.
On Sun, Jan 04, 2026 at 07:55:58PM +0100, Urs Janßen wrote:
On Sun, Jan 04, 2026 at 06:57:27PM +0200, Luc Lan wrote:
Now I discovered that gnupg is configured as "use-keyboxd" (in ~/.gnupg/common.conf). I think thats why the pubring.kbx is missing.
*shrug* I don't know anything about keyboxd.
But why tin is looking only for .gpg?
that's not what the code does. tin tries ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.kbx first and if that is not readable (wrong permissions or not present) ${GNUPGHOME:-"${PGPPATH:-"$HOME"}"}/.gnupg/pubring.gpg and if that also fails an error message with the last filename tried is issued.
_______________________________________________ tin-users mailing list tin-users@tin.org http://lists.tin.org/cgi-bin/mailman/listinfo/tin-users
The error message is still displayed. The env check: $ echo $GNUPGHOME $ echo $PGPPATH $ echo $HOME /home/luc So, both GNUPGHOME and PGPPATH are not defined, so it will go with HOME. The permission check: ~/.gnupg$ ls -la total 48 drwx------ 6 luc luc 4096 Jan 5 09:46 . drwx------ 44 luc luc 4096 Jan 5 09:47 .. -rw-r----- 1 luc luc 13 Jan 5 09:38 common.conf drwx------ 2 luc luc 4096 Aug 15 17:13 crls.d -rw-r--r-- 1 luc luc 19 Jan 5 09:42 gpg.conf drwx------ 2 luc luc 4096 Jan 5 09:43 openpgp-revocs.d -rw-r--r-- 1 luc luc 210 Jan 4 15:46 otrust.lst drwx------ 2 luc luc 4096 Jan 5 09:43 private-keys-v1.d drwxr-x--- 2 luc luc 4096 Jan 4 21:02 public-keys.d -rw-r--r-- 1 luc luc 1236 Jan 5 09:43 pubring.kbx -rw------- 1 luc luc 600 Jan 4 15:00 random_seed -rw------- 1 luc luc 1400 Jan 5 09:43 trustdb.gpg So, pubring.kbx is present and it is readable by all. But something is fishy with ~/.gnupg dir permissions.
I am using tin 2.6.4, from AUR repo (https://aur.archlinux.org/packages/tin). And I tried to search for -pubring.kbx- in the source files of that package, and it was not found. So, I tried to find only -pubring-, and it was found in -pgp.c- : if defined(HAVE_GPG) /* gpg */ define PGP_PUBRING "pubring.gpg" I will try to compile the latest version (2.6.5) -- Luc
participants (2)
-
Luc Lan -
Urs Janßen