Google cloud storage 我的云存储桶权限丢失,如何重置?

Google cloud storage 我的云存储桶权限丢失,如何重置?,google-cloud-storage,Google Cloud Storage,我运行了gsutil.py acl set-R public read gs://dsa资产 现在我看到它覆盖了每个用户的权限,我不能上传新文件,甚至不能删除这个bucket。 如何重置bucket上的权限或删除此bucket?gsutil acl set-R public read gs://bucketName将bucketName和bucketName内所有对象的acl设置为罐装aclpublic read。此ACL授予所有用户对bucket和对象的读取权限,并授予bucket或对象所有者

我运行了gsutil.py acl set-R public read gs://dsa资产 现在我看到它覆盖了每个用户的权限,我不能上传新文件,甚至不能删除这个bucket。
如何重置bucket上的权限或删除此bucket?

gsutil acl set-R public read gs://bucketName
将bucketName和bucketName内所有对象的acl设置为罐装acl
public read
。此ACL授予所有用户对bucket和对象的读取权限,并授予bucket或对象所有者完全控制权

每个ACL都包括对bucket或对象所有者的完全控制。无论他们如何尝试,水桶的所有者将始终完全控制他们所拥有的水桶

如果您发现无法再将文件上载到bucket,则很可能您没有将gsutil与拥有该bucket的帐户一起使用。找出哪个项目拥有bucket,并确保您的帐户位于该项目的owners组中

或者,您可以将gsutil使用的帐户临时切换为项目所有者。最简单的方法是使用
BOTO\u CONFIG
环境变量控制多个配置文件:

$> BOTO_CONFIG=/home/me/.boto.owner gsutil config
# Follow prompts to set up account, use an account that owns the bucket
$> BOTO_CONFIG=/home/me/.boto.owner gsutil acl ch -u otherAccount@gmail.com:FC
$> gsutil do stuff with original account

如果您是bucket中对象的所有者,您应该能够更改ACL back谢谢,我要求bucket的所有者再次授予我所有权,问题得到了解决。