gcloud无法打开当前工作目录的路径权限被拒绝

我正在尝试遵循一些教程说明来测试Write-Host "Executing Protractor cmdline: & "$TestProtractorPathAndName" $TestProtractorArgs " if (test-path $TestProtractorResultPath) {Remove-Item –path "$TestProtractorResultPath" –recurse} New-Item -ItemType "directory" -path "$TestProtractorResultPath" $args = "$TestProtractorArgs" Write-Host "Run Protractor scripts" Write-Host $TestProtractorResultFile Write-Host $TestProtractorResultFileLabel $process = Start-Process "$TestProtractorPathAndName" $args -Wait - PassThru Write-Host 'Exit code = $($process.ExitCode)' New-OctopusArtifact -Path "$TestProtractorResultFile" -Name "$TestProtractorResultFileLabel" if ($process.ExitCode -eq 0){ Write-Host "Protractor cmdline complete" } else { write-error "Protractor cmdline failed" } (以防万一,请称为gcloud API),但是我一定弄乱了与权限相关的内容,而且似乎什么也没找到在Google上。

每当我尝试执行任何kms命令时,都会遇到相同的错误:

gcloud ...

我尝试后问题仍然存在:

  1. cannot open path of the current working directory: Permission denied
  2. sudo gcloud kms
  3. chown -R $(whoami) ~/.config/gcloud

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

如果有关系的话,VM正在运行Ubuntu 18。

xiaoleikesa 回答:gcloud无法打开当前工作目录的路径权限被拒绝

我认为您应该尝试:

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

或者您可以尝试解除安装Uninstalling Google Cloud SDK的gcloud,然后再次安装Installing Google Cloud SDK

与SO有关的案例link

本文链接:https://www.f2er.com/3116795.html

大家都在问