【问题标题】:gcloud cannot open path of the current working directory permission deniedgcloud 无法打开当前工作目录的路径权限被拒绝
【发布时间】:2020-03-08 06:25:28
【问题描述】:

我正在尝试按照一些教程说明来测试gcloud API(称为kms,以防万一),但我一定搞砸了与权限相关的东西,而且我似乎在谷歌上找不到任何东西。

任何时候我尝试任何gcloud ... 命令时都会遇到同样的错误:

cannot open path of the current working directory: Permission denied

我尝试后问题仍然存在:

  1. sudo gcloud kms
  2. chown -R $(whoami) ~/.config/gcloud
  3. chown -R $(whoami) /snap

以及上述步骤的所有可能组合。

如果重要的话,VM 运行的是 Ubuntu 18。

【问题讨论】:

标签: permissions gcloud


【解决方案1】:

我觉得你应该试试:

sudo chown -R $(whoami):staff ~/.config/gcloud/
sudo chown -R $USER /Users/$USER/bin/google-cloud-sdk

或者您可以尝试卸载 gcloud,Uninstalling Google Cloud SDK,然后重新安装,Installing Google Cloud SDK

相关SO案例link

【讨论】:

    猜你喜欢
    • 2018-10-01
    • 1970-01-01
    • 2018-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-29
    • 1970-01-01
    相关资源
    最近更新 更多