<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3279&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Cannot see gpg-agent process]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3279</link>
		<description><![CDATA[The most recent posts in Cannot see gpg-agent process.]]></description>
		<lastBuildDate>Sat, 25 Jan 2020 17:56:42 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Cannot see gpg-agent process]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=19683#p19683</link>
			<description><![CDATA[<p>I&#039;m having what seems to be an issue with <span class="bbc">gpg-agent</span>. I am trying to call <span class="bbc">gpg</span> from a backup script via the following command:</p><p><span class="bbc">gpg --quiet --batch --for-your-eyes-only --no-tty --decrypt [file]</span></p><p>Yet when the script from from <span class="bbc">cron</span>, gpg reports the following error in the log:</p><p><span class="bbc">gpg: using character set &#039;utf-8&#039;<br /># off=0 ctb=85 tag=1 hlen=3 plen=524<br />:pubkey enc packet: version 3, algo 1, keyid 146694F411D7B1DA<br />data: [4096 bits]<br />gpg: public key is 146694F411D7B1DA<br />gpg: using subkey 146694F411D7B1DA instead of primary key 52933AE5BC1A10E8<br />gpg: pinentry launched (26320 gnome3:curses 1.1.0 - - -)<br /># off=527 ctb=d2 tag=18 hlen=2 plen=126 new-ctb<br />:encrypted data packet:<br />length: 126<br />mdc_method: 2<br />gpg: decryption failed: No secret key</span></p><p>I&#039;m using a subkey to encrypt the file <span class="bbc">gpg</span> is trying to decrypt, but using the main makes no difference. The script runs perfectly fine from the command line. I have this same setup on my laptop which runs MX Linux and has no problems running the script from cron. On my MX Linux laptop running the following command gets me:</p><p><span class="bbc">ps aux | grep gpg-agent<br />/usr/bin/gpg-agent --sh --daemon --write-env-file /home/mx_user/.cache/gpg-agent-info</span></p><p>However on my Devuan box I get nothing returned. I must use <span class="bbc">sudo</span> if order to see the process, and its owner is not root.</p><p><span class="bbc">sudo ps aux | grep gpg-agent<br />gpg-agent --homedir /home/devuan_user/.gnupg --use-standard-socket --daemon</span></p><p>I&#039;m not sure if this is related to the issue of gpg not working correctly in <span class="bbc">cron</span>, but I beleive I have the appropriate options in the <span class="bbc">gpg</span> command.</p><p>Any ideas of what might be wrong here?</p>]]></description>
			<author><![CDATA[dummy@example.com (Youkai)]]></author>
			<pubDate>Sat, 25 Jan 2020 17:56:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=19683#p19683</guid>
		</item>
	</channel>
</rss>
