Continuing 2.3 weirdness

Ingo Klöcker kloecker at kde.org
Wed Dec 8 09:27:24 CET 2021


On Mittwoch, 8. Dezember 2021 04:49:12 CET Robert J. Hansen via Gnupg-users 
wrote:
> Let's start by nuking the .gnupg directory and shutting down all GnuPG
> daemons:
> 
> rjh at ripley:~$ rm -rf .gnupg
> rjh at ripley:~$ /usr/local/bin/gpgconf --kill all
> rjh at ripley:~$ ps ax|grep [g]pg-agent
> 
> rjh at ripley:~$ /usr/local/bin/gpgconf --launch gpg-agent
> rjh at ripley:~$ ps ax|grep [g]pg-agent
>   229366 ?        SLs    0:00 /usr/bin/gpg-agent --supervised
> 
> Wait, what?  Why was /usr/bin/gpg-agent (system-provided, version 2.2)
> used instead of 2.3?

I make different observations (using self-compiled gpg installed to /opt/
gnupg/master with a non-standard GNUPGHOME):
$ echo $PATH | grep /opt/gnupg/master
-> no output
$ GNUPGHOME=$(mktemp -d --tmpdir gnupg.XXXXXXXXXX) \
  /opt/gnupg/master/bin/gpgconf --launch gpg-agent
-> use a new temporary GNUPGHOME
$ ps ax | grep [g]pg-agent
 7337 ?        Ss     0:00 gpg-agent --homedir /tmp/gnupg.hq2lhQi4eF --use-
standard-socket --daemon
$ ls -l /proc/7337/exe
lrwxrwxrwx 1 ingo users 0 Dez  8 09:13 /proc/7337/exe -> /opt/gnupg/master/
bin/gpg-agent*

Observations:
* Here gpgconf launches the correct gpg-agent.
* Here gpgconf is launched with different command line arguments.

Do you probably have a global gnupg configuration file in /etc?

$ /opt/gnupg/master/bin/gpgconf --list-config
-> no output -> no global configuration file

Or use the brand new (post-2.3.3) --show-configs option which lists all 
configuration files with all options:
$ GNUPGHOME=/tmp/gnupg.hq2lhQi4eF /opt/gnupg/master/bin/gpgconf --show-configs
### Dump of all standard config files
### GnuPG 2.3.4-beta24 (b124bca59)
### GNU/Linux
### Libgcrypt 1.9.4-unknown
### GpgRT 1.43
###

sysconfdir:/etc/gnupg
bindir:/opt/gnupg/master/bin
libexecdir:/opt/gnupg/master/libexec
libdir:/opt/gnupg/master/lib64/gnupg
datadir:/opt/gnupg/master/share/gnupg
localedir:/opt/gnupg/master/share/locale
socketdir:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8
dirmngr-socket:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8/S.dirmngr
keyboxd-socket:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8/S.keyboxd
agent-ssh-socket:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8/S.gpg-
agent.ssh
agent-extra-socket:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8/S.gpg-
agent.extra
agent-browser-socket:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8/S.gpg-
agent.browser
agent-socket:/run/user/1000/gnupg/d.61urptbn5qmwuf71byjbhrh8/S.gpg-agent
homedir:/tmp/gnupg.hq2lhQi4eF

###
### global config "/etc/gnupg/common.conf": not installed
###
###
### local config "/tmp/gnupg.hq2lhQi4eF/common.conf": not installed
###

###
### global config "/etc/gnupg/gpg-agent.conf": not installed
###
###
### local config "/tmp/gnupg.hq2lhQi4eF/gpg-agent.conf": not installed
###

###
### global config "/etc/gnupg/scdaemon.conf": not installed
###
###
### local config "/tmp/gnupg.hq2lhQi4eF/scdaemon.conf": not installed
###

###
### global config "/etc/gnupg/dirmngr.conf": not installed
###
###
### local config "/tmp/gnupg.hq2lhQi4eF/dirmngr.conf": not installed
###

###
### global config "/etc/gnupg/gpg.conf": not installed
###
###
### local config "/tmp/gnupg.hq2lhQi4eF/gpg.conf": not installed
###

###
### global config "/etc/gnupg/gpgsm.conf": not installed
###
###
### local config "/tmp/gnupg.hq2lhQi4eF/gpgsm.conf": not installed
###

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20211208/cc28e5b3/attachment.sig>


More information about the Gnupg-users mailing list