<html><head></head><body><div class="ydp4ae6b137yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr" data-setdir="false">Hi Bernhard,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> It seems that the problem was caused by "sudo su":</div><div dir="ltr" data-setdir="false"> For some reason on Linux Redhad 8, "sodu su" does not behave as in the earlier version.<br></div><div dir="ltr" data-setdir="false"> There is no difference between "sudo su - XYZ" and "sudo su XYZ".<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> Actually, I failed to generate the key pair when I logged on the system and then sudo-ed su to the working ID. I had to log on the system as the working ID to generate the key pair successfully.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> Again, I had to decrypt the files by logging on the system as the working ID.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> The behavior of sudo in Redhad 8 may be due to some configuration issues.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> Thank you for reply!</div><div dir="ltr" data-setdir="false"> Shaoping</div><div dir="ltr" data-setdir="false"><br></div><div><br></div><div class="ydp4ae6b137signature"><div><div> </div></div></div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_7308333470" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Monday, October 24, 2022 at 11:29:58 AM EDT, Bernhard Reiter <bernhard@intevation.de> wrote:
</div>
<div><br></div>
<div><br></div>
<div>Hello Shaoping Xie,<br clear="none"><br clear="none">> gpg: public key decryption failed: Permission denied<br clear="none"><br clear="none">if your keypair has a passphrase set,<br clear="none">did an interactive pinentry come up?<br clear="none"><br clear="none">(If you want to run unattended, one method is to not set a passphrase<br clear="none">and secure the system accordingly.)<div class="yqt6797100850" id="yqtfd27913"><br clear="none"><br clear="none">> I was puzzled at the output from “gpg –export-secret-key”.</div><br clear="none"><br clear="none">Probably the same problem.<br clear="none"><br clear="none">Regards,<br clear="none">Bernhard<br clear="none"><br clear="none">-- <br clear="none"><a shape="rect" href="https://intevation.de/~bernhard " target="_blank">https://intevation.de/~bernhard </a> +49 541 33 508 3-3<br clear="none">Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998<br clear="none">Geschäftsführer Frank Koormann, Bernhard Reiter<div class="yqt6797100850" id="yqtfd94089"><br clear="none"></div></div>
</div>
</div></body></html>