tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/56184-yubikey-unable-to-sign-other-peoples-public-keys-in-gpg-keychain-to-be-tested-w-gpg-21GPGTools: Discussion 2018-02-16T10:49:10Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/431936252017-08-11T17:41:11Z2017-08-11T17:41:14ZYubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)<div><p>hmm running as root seems to allow for signing using the cli</p></div>Bryan Htag:gpgtools.tenderapp.com,2011-11-04:Comment/431936252017-08-16T12:08:40Z2017-08-16T12:08:40ZYubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)<div><p>Hi Bryan,</p>
<p>could you double check the permissions. Since it is working for root, it sounds like it could be related to that.</p>
<p>Could you please post the output of the following command executed in Terminal.app<br>
<code>ls -l ~/.gnupg</code></p>
<p>Best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/431936252017-08-16T16:54:23Z2017-08-16T16:54:23ZYubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)<div><p>Hmm could be right. Although it is odd that I can sign git commits with out an issue</p>
<pre>
<code>srwx------ 1 bryan.h staff 0 Aug 16 09:30 S.gpg-agent
srwx------ 1 bryan.h staff 0 Aug 16 09:30 S.gpg-agent.browser
srwx------ 1 bryan.h staff 0 Aug 16 09:30 S.gpg-agent.extra
srwx------ 1 bryan.h staff 0 Aug 16 09:30 S.gpg-agent.ssh
srwx------ 1 bryan.h staff 0 Aug 16 09:42 S.scdaemon
drwx------ 3 bryan.h staff 102 Aug 11 10:05 crls.d
-rw------- 1 bryan.h staff 237 Feb 28 15:45 gpg-agent.con
-rw------- 1 bryan.h staff 113 Aug 10 10:59 gpg-agent.env
-rw-------@ 1 bryan.h staff 17 Aug 11 10:52 gpg.conf
-rw------- 1 bryan.h staff 42 Aug 11 10:46 options
drwx------ 10 bryan.h staff 340 Aug 14 10:50 private-keys-v1.d
-rw------- 1 bryan.h staff 31200 Aug 10 10:42 pubring.gpg
-rw------- 1 bryan.h staff 31200 Aug 10 10:42 pubring.gpg~
-rw-r--r-- 1 root staff 394583 Aug 11 10:49 pubring.kbx
-rw-r--r-- 1 root staff 394261 Aug 11 10:45 pubring.kbx~
-rw------- 1 bryan.h staff 600 Aug 10 10:12 random_seed
-rw------- 1 bryan.h staff 7 Aug 16 09:42 reader_0.status
-rw------- 1 bryan.h staff 8474 Apr 25 2016 secring.gpg
-rw------- 1 bryan.h staff 962 Jan 10 2017 sshcontrol
-rw------- 1 bryan.h staff 49152 Aug 11 10:14 tofu.db
-rw------- 1 bryan.h staff 1520 Aug 11 10:49 trustdb.gpg</code>
</pre></div>Bryan Htag:gpgtools.tenderapp.com,2011-11-04:Comment/431936252017-08-16T18:09:24Z2017-08-16T18:09:24ZYubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)<div><p>Hi Bryan,</p>
<p>it indeed appears that wrong permissions are at fault. Your pubring.kbx has root:staff</p>
<p>If you fix those permissions with:</p>
<pre>
<code>sudo chown bryan.h:staff ~/.gnupg/pubring.kbx</code>
</pre>
<p>You should be able to sign keys again.</p>
<p>Hope that helps.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/431936252018-02-16T10:49:09Z2018-02-16T10:49:09ZYubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)<div><p>Closing, since no further user feedback was received. Should your problem persist, feel free to re-open this discussion any time.</p>
<p>All the best, steve</p></div>Steve