title: Using gpg4win in Cygwin | WARNING: unsafe permissions on homedir
body: <p>I finally managed to configure a yubikey 4 on windows using gpg4win and cygwin. I can run the following command in Cygwin and my yubikey prompts for pin and starts blinking then it does its job properly. </p>
  
  <pre><code>echo "$(uname -a)" | gpg --encrypt --sign --armor --default-key $KEYID --recipient $KEYID  | gpg --decrypt --armor
  </code></pre>
  
  <p>However, when I want to use it for git signing, it gives me this error:</p>
  
  <pre><code>WARNING: unsafe permissions on  homedir c:\users\***\AppData\Roaming\gnupg
  </code></pre>
  
  <p>I have proper signingKey and program settings in my .gitconfig</p>
  
  <p>Any body knows how to change permission on .gnupg folder?</p>