<div dir="ltr"><span style="font-size:12.800000190734863px">Hi </span><div style="font-size:12.800000190734863px"><table id="gmail-m_-8805961497990005995gmail-:2b1" class="gmail-m_-8805961497990005995gmail-aoP gmail-m_-8805961497990005995gmail-aoC" style="width:798px;font-size:13px"><tbody><tr><td class="gmail-m_-8805961497990005995gmail-aoY"></td><td id="gmail-m_-8805961497990005995gmail-:29u" class="gmail-m_-8805961497990005995gmail-I5"><form id="gmail-m_-8805961497990005995gmail-:29r" method="POST" enctype="multipart/form-data"><div id="gmail-m_-8805961497990005995gmail-:29v" class="gmail-m_-8805961497990005995gmail-aoD gmail-m_-8805961497990005995gmail-hl"><div id="gmail-m_-8805961497990005995gmail-:2b8" class="gmail-m_-8805961497990005995gmail-oL gmail-m_-8805961497990005995gmail-aDm gmail-m_-8805961497990005995gmail-az9"><br></div></div></form></td></tr></tbody></table></div><div style="font-size:12.800000190734863px">I'm using GnuPG 2.0.29 on Solaris. This specific version is being used because it's the only one we could get installed and working.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I'm trying to generate keys  from a user I have su'd to, but I get the following error:</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><div><font face="arial, helvetica, sans-serif">gpg-agent[23024]: command get_passphrase failed: Permission denied</font></div><div><font face="arial, helvetica, sans-serif">gpg: problem with the agent: Permission denied</font></div><div><font face="arial, helvetica, sans-serif">gpg: Key generation canceled.</font></div></div><div style="font-family:Calibri;font-size:14.666666984558105px"><br></div><div style="font-size:12.800000190734863px">I believe that thus occurs because when pinentry-curses is invoked by gpg-agent, the tty is owned by the original user I logged into via SSH, not the user I switched to via su.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I've seen various workarounds online, but most are relevant to GNU/Linux, not Solaris (e.g. run the "script" command with the -c option, which doesn't exist on Solaris). Others have suggested using the loopback pinentry-mode, which doesn't seem to exist in version 2.0.29 of gpg-agent , as far as I can tell.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Has someone got a workaround? I need to be able to use "su" as we are not allowed to log into the user directly. I'm also stuck with Solaris and the specified version of GnuPG</div><div><br></div></div>