Yubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)

Bryan H's Avatar

Bryan H

11 Aug, 2017 05:29 PM

This comment was split from the discussion: Yubikey: Unable to sign other people's public keys in GPG Keychain (to be tested w gpg 2.1)

I am running into the same issue. Running gpg 2.1 as suggested above.

  1. 1 Posted by Bryan H on 11 Aug, 2017 05:41 PM

    Bryan H's Avatar

    hmm running as root seems to allow for signing using the cli

  2. Support Staff 2 Posted by Steve on 16 Aug, 2017 12:08 PM

    Steve's Avatar

    Hi Bryan,

    could you double check the permissions. Since it is working for root, it sounds like it could be related to that.

    Could you please post the output of the following command executed in Terminal.app
    ls -l ~/.gnupg

    Best,
    steve

  3. 3 Posted by Bryan H on 16 Aug, 2017 04:54 PM

    Bryan H's Avatar

    Hmm could be right. Although it is odd that I can sign git commits with out an issue

    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
    
  4. Support Staff 4 Posted by Luke Le on 16 Aug, 2017 06:09 PM

    Luke Le's Avatar

    Hi Bryan,

    it indeed appears that wrong permissions are at fault. Your pubring.kbx has root:staff

    If you fix those permissions with:

    sudo chown bryan.h:staff ~/.gnupg/pubring.kbx
    

    You should be able to sign keys again.

    Hope that helps.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac