On 2017-03-12 20:38, Andrei Borzenkov wrote:
12.03.2017 21:37, Carlos E. R. пишет:
On 2017-03-12 06:56, Andrei Borzenkov wrote:
12.03.2017 01:38, Carlos E. R. пишет:
On 2017-03-11 23:25, Richmond wrote:
Why do I get this error? It happens if I use "su - user" to switch to a different user and then try to decrypt a file. I am pretty sure it used to work. And it will work if I log in on the console as the different user. It should prompt for the passphrase in a window.
gpg: CAST5 encrypted data gpg-agent[5394]: command get_passphrase failed: Operation cancelled gpg: cancelled by user gpg: encrypted with 1 passphrase gpg: decryption failed: No secret key
I'm on 42.2 64 bit.
gpg --version gpg (GnuPG) 2.0.24 libgcrypt 1.6.1
But what desktop? It makes a difference.
No.
Yes: gnome and xfce have no native agent any more.
How agent (native or not) for different user is relevant here?
Because some times, like in my case, the lack of a working agent meant that I could not enter the passphrase at all in XFCE.
I wonder - did it ever work before?
Yes, I have used "su -" and then needed to enter passphrases in the past.
Well, I tested on 13.2 and it fails in exactly the same way, without any GUI involved (i.e su - user on tty).
I can confirm that as well, in 42.2. I tried in console. Logged as another user, then su-ed to my normal user, which is also running the XFCE session. I got the same error as the OP. I logged off, then instead did ssh-ed to the same user as before, and tried to sign an email to myself, in Pine. The screen went black with a window in the center asking for the passphrase. However, it is not the agent, because a second post asks again for the passphrase. This is not the purpose of an agent. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))