title: gcloud cannot open path of the current working directory permission denied
body: <p>I am trying to follow some tutorial instructions to test a <code>gcloud API</code> (called <code>kms</code> in case it matters) but I must have messed up something related to permissions and I don't seem to find anything on google.</p>
  
  <p>Any time I try any <code>gcloud ...</code> command I get the same error:</p>
  
  <pre><code>cannot open path of the current working directory: Permission denied
  </code></pre>
  
  <p>The issue persists after I tried:</p>
  
  <ol>
  <li><code>sudo gcloud kms</code></li>
  <li><code>chown -R $(whoami) ~/.config/gcloud</code></li>
  <li><code>chown -R $(whoami) /snap</code></li>
  </ol>
  
  <p>and all possible combinations of the above steps.</p>
  
  <p>In case it matters, the VM is running Ubuntu 18.</p>