Google Cloud Storage ACL confusion

本秂侑毒 提交于 2019-12-23 07:49:14

问题


I'm the owner of a Google Cloud project, with a Google Cloud Storage bucket inside. All our backups are moved to this bucket. When I try to retrieve some of the backups, I get a permission denied. I'm not able to do anything but to list the bucket.

When I try to reset the bucket ACL with

gsutil acl ch -u xxx@yyy.zzz:FC gs://abc/**

i get the following error.

CommandException: Failed to set acl for gs://abc/1234.sql. Please ensure you have OWNER-role access to this resource.

Which makes no sense, since I'm the project and bucket owner.


回答1:


I gave myself "Storage Admin" and "Storage Object Admin/Creator/Viewer" in IAM rights and I'm now able to access all files.



来源:https://stackoverflow.com/questions/41878922/google-cloud-storage-acl-confusion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!