[pkg-gnupg-maint] Bug#950836: gpg-agent: generator 90gpg-agent and user with no home crontask generate annoying logs

lwafflard laurent.wafflard at centralelille.fr
Fri Feb 7 09:30:59 GMT 2020


Package: gpg-agent
Version: 2.2.12-1+deb10u1
Severity: normal

Dear Maintainer,

Every day I receive some logs after cron.daily execution like these

	systemd[2626]: gpgconf: running /usr/bin/gpg-agent failed (exitcode=2): General error
	systemd[2626]: gpgconf: fatal error (exit status 1)

Some cron tasks are executed as «nobody» user, which have no home. When executing the script «/usr/lib/systemd/user-environment-generators/90gpg-agent» as nobody, gpgconf break with these lines. To reproduce, you can also as root

	sudo -u nobody gpgconf --list-options gpg-agent

Is it possible to update the user-environment-generator ? Redirect stderr would be sufficient ?

	if [ -n "$(gpgconf --list-options gpg-agent | \
=>
	if [ -n "$(gpgconf --list-options gpg-agent 2>/dev/null | \

Masking globally all gpg services/socket as suggested in /usr/share/doc/gpg-agent/README.Debian is ineffective as generator executed on each new session.

Regards,
L.Wafflard


-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gpg-agent depends on:
ii  gpgconf                     2.2.12-1+deb10u1
ii  libassuan0                  2.5.2-1
ii  libc6                       2.28-10
ii  libgcrypt20                 1.8.4-5
ii  libgpg-error0               1.35-1
ii  libnpth0                    1.6-1
ii  pinentry-curses [pinentry]  1.1.0-2

Versions of packages gpg-agent recommends:
ii  gnupg  2.2.12-1+deb10u1

Versions of packages gpg-agent suggests:
pn  dbus-user-session  <none>
ii  libpam-systemd     241-7~deb10u2
pn  pinentry-gnome3    <none>
pn  scdaemon           <none>

-- no debconf information


More information about the pkg-gnupg-maint mailing list