Debian Bug report logs - #856995
Unattended passphrase for gpg2 (pinentry-mode loopback)

version graph

Package: debarchiver; Maintainer for debarchiver is Ola Lundqvist <[email protected]>; Source for debarchiver is src:debarchiver (PTS, buildd, popcon).

Reported by: Christian Schrötter <[email protected]>

Date: Tue, 7 Mar 2017 00:48:01 UTC

Severity: minor

Found in version debarchiver/0.11.0

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#856995; Package debarchiver. (Tue, 07 Mar 2017 00:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Christian Schrötter <[email protected]>:
New Bug report received and forwarded. Copy sent to Ola Lundqvist <[email protected]>. (Tue, 07 Mar 2017 00:48:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Christian Schrötter <[email protected]>
To: [email protected]
Subject: Unattended passphrase for gpg2 (pinentry-mode loopback)
Date: Tue, 7 Mar 2017 01:44:37 +0100
Package: debarchiver
Version: 0.11.0
Severity: minor

Dear Maintainer,

starting with Stretch and gpg2 it's impossible to call debarchiver with
enabled archive signing (and $gpgpassfile) from commandline with a
foreign TTY, i.e. a session created by "su <user>".

> gpg: signing failed: Inappropriate ioctl for device
> gpg: signing failed: Inappropriate ioctl for device

It looks like the gpg call should use "--pinentry-mode loopback" OR the
documentation should recommend a new line in ~/.gnupg/gpg.conf:

> pinentry-mode loopback

There is an interesting section at the Arch Wiki at [1] too. The change
in ~/.gnupg/gpg-agent.conf is not required as far as I can see.

-- 
With kind regards,
Christian Schrötter

[1] https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase



Information forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#856995; Package debarchiver. (Tue, 07 Mar 2017 13:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Ola Lundqvist <[email protected]>:
Extra info received and forwarded to list. Copy sent to Ola Lundqvist <[email protected]>. (Tue, 07 Mar 2017 13:33:06 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Ola Lundqvist <[email protected]>
To: Christian Schrötter <[email protected]>, [email protected]
Subject: Re: Bug#856995: Unattended passphrase for gpg2 (pinentry-mode loopback)
Date: Tue, 7 Mar 2017 14:31:48 +0100
[Message part 1 (text/plain, inline)]
Hi

Thank you for the report. I'll adjust the documentation (or code).

Best regards

// Ola

On 7 March 2017 at 01:44, Christian Schrötter <[email protected]> wrote:

> Package: debarchiver
> Version: 0.11.0
> Severity: minor
>
> Dear Maintainer,
>
> starting with Stretch and gpg2 it's impossible to call debarchiver with
> enabled archive signing (and $gpgpassfile) from commandline with a
> foreign TTY, i.e. a session created by "su <user>".
>
> > gpg: signing failed: Inappropriate ioctl for device
> > gpg: signing failed: Inappropriate ioctl for device
>
> It looks like the gpg call should use "--pinentry-mode loopback" OR the
> documentation should recommend a new line in ~/.gnupg/gpg.conf:
>
> > pinentry-mode loopback
>
> There is an interesting section at the Arch Wiki at [1] too. The change
> in ~/.gnupg/gpg-agent.conf is not required as far as I can see.
>
> --
> With kind regards,
> Christian Schrötter
>
> [1] https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase
>



-- 
 --- Inguza Technology AB --- MSc in Information Technology ----
/  [email protected]                    Folkebogatan 26            \
|  [email protected]                   654 68 KARLSTAD            |
|  http://inguza.com/                Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---------------------------------------------------------------
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:11:26 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.