<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<blockquote type="cite" cite="mid:4634150.niJfEyVGOH@daneel">
<pre wrap="" class="moz-quote-pre">Typo? In any case, avoid the weird debug-level setting. Use "debug ipc"
instead. Also set log-file so that the logs don't end up in some random place
(or nowhere).</pre>
</blockquote>
Yes typo. I removed it alltogether for now:<br>
<br>
<span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">pinentry-program
/usr/bin/pinentry-qt</span><span
style="color:#000000;background-color:#ffffff;"> </span><br>
<span style="color:#000000;background-color:#ffffff;">enable-ssh-support</span><span
style="color:#000000;background-color:#ffffff;"> </span><br>
<span style="color:#000000;background-color:#ffffff;">ttyname
$GPG_TTY</span><span
style="color:#000000;background-color:#ffffff;"> </span><br>
<span style="color:#000000;background-color:#ffffff;">default-cache-ttl
60</span><span style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">max-cache-ttl
120</span><br>
</span><br>
<blockquote type="cite" cite="mid:4634150.niJfEyVGOH@daneel">
<pre wrap="" class="moz-quote-pre">Very likely gpg-agent fails to start pinentry-qt or pinentry-qt fails to start
because there's no window manager running. Try using pinentry-curses or
pinentry-tty instead of pinentry-qt if you are anyway using the terminal.</pre>
</blockquote>
In fact gpg-agent seems to be able to call pinentry-qt, as when I
use pass or browserpass, it works and I get a pretty pinentry
window...<br>
<br>
That said, switching to pinentry-tty does not solve the problem with
pam.<br>
In fact I can see pinentry-tty working with pass and failing with
sudo in the same terminal session:<br>
<br>
<pre>$ pass perso/ameli.fr
Please unlock the card
Number: 10 955 601
Holder: Franck Routier
PIN:
*************************
$ sudo su
Insert authentication card for user `franck'
Trying authentication as user `franck'...
[sudo] password for franck: </pre>
<br>
Franck
</body>
</html>