google-cloud-platform - gsutil acl ch -u AllUsers :R gs://<bucket>/file. js 不起作用

标签 google-cloud-platform gcloud

我正在尝试使用命令 gsutil acl ch -u AllUsers:R gs://<bucket>/file.js授予 file.js 读取权限它给出的错误为 CommandException: AllUsers:R gs://<bucket>file.js is an invalid change description.

最佳答案

allUsers 不是 AllUsers:

https://cloud.google.com/storage/docs/gsutil/commands/iam

所以:

gsutil acl ch -u allUsers:R gs://<bucket>/file.js

关于google-cloud-platform - gsutil acl ch -u AllUsers :R gs://<bucket>/file. js 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66639920/

相关文章:

google-cloud-platform - GCP Cloud Run 通过单独项目中的 2 个服务帐户使用短期凭证调用另一个项目云功能

python - 如何创建有条件的组织政策约束? - GCP

python-3.x - 在 gcloud 上将基于 python 的命令行脚本作为 cronjob 运行

javascript - 谷歌视觉API

google-compute-engine - Google Container Engine Kubernetes服务LoadBalancer是否将流量发送到无响应的主机?

docker - 无法从 Google Compute Engine 访问 Google Container Registry

node.js - 如何为 nodejs 配置 Google App Engine 只运行 npm start,而不运行 npm install?

google-compute-engine - 如何检查 Google VM 实例是否已经具有 gcloud 的凭据

python - 由于缺少程序,从 python 运行 bash 脚本失败

node.js - 如何在 Electron 中实现 Google Text to Speech?