using with su/sudo

John Lane gnupg at
Fri Oct 7 12:45:02 CEST 2016

> One possible way is invoking gpg with an option
>  --pinentry-mode=loopback.
Yes, just tried this. It works but you lose the pinentry dialog.
> I created a ticket at the bug tracker.
thanks for creating the ticket.
> With the situation of gpg-agent's allow-loopback-pinentry is default
> now, perhaps, it would be the best (from the user's viewpoint) that
> gpg-agent automatically fallbacks to loopback mode.
I agree, although I think the loopback mode is less clear in what
password it's asking for (especially in keygen). At least it would work.

More information about the Gnupg-users mailing list