[pkg-gnupg-maint] Bug#793994: gnupg2: gpg2 / use-agent does not clearly states that the tty has the wrong owner

xavier renaut xavier.reportbug-debian..natch.2015.07.29.11.46.46 at pecos.8d.com
Wed Jul 29 16:06:27 UTC 2015


Package: gnupg2
Version: 2.0.28-3
Severity: minor

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

after su to a user from root or another user, the tty is still owned by the user calling su.
gpg does not warn about it and complain that operation is cancelled

su - user1 # from root

gpg2 -r user1 -e test.txt

$ gpg2 -d test.txt.gpg 

You need a passphrase to unlock the secret key for
user: "user1"
4096-bit RSA key, ID 8B826A29, created 2015-07-16 (main key ID 269B8B97)

gpg-agent[14770]: command get_passphrase failed: Operation cancelled
gpg: cancelled by user
gpg: encrypted with 4096-bit RSA key, ID 8B826A29, created 2015-07-16
      "user1"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key



   * What exactly did you do (or not do) that was effective (or
     ineffective)?

agent or no agent has no effect

   * What was the outcome of this action?

i cant decrypt.

   * What outcome did you expect instead?

a message saying the tty XXX is not owned by the user.



work around : script /dev/null # creates a new tty correctly owned


*** End of the template - remove these template lines ***


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (449, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnupg2 depends on:
ii  dpkg             1.18.1
ii  gnupg-agent      2.0.28-3
ii  install-info     5.2.0.dfsg.1-4
ii  libassuan0       2.1.2-2
ii  libbz2-1.0       1.0.6-7
ii  libc6            2.19-11
ii  libcurl3-gnutls  7.38.0-2
ii  libgcrypt20      1.6.2-3
ii  libgpg-error0    1.16-2
ii  libksba8         1.3.2-1
ii  libreadline6     6.3-8
ii  zlib1g           1:1.2.8.dfsg-2

Versions of packages gnupg2 recommends:
ii  libldap-2.4-2  2.4.39-1.1+b1

Versions of packages gnupg2 suggests:
pn  gnupg-doc   <none>
pn  parcimonie  <none>
pn  xloadimage  <none>

-- no debconf information



More information about the pkg-gnupg-maint mailing list