Windows11 CLI中执行GCP gsutil命令失败的问题求助
Windows11 CLI中gsutil命令权限问题求助
问题现象
- 执行
gsutil ls时出现以下错误:
ServiceException: 401 Anonymous caller does not have storage.buckets.list access to the Google Cloud project. Permission 'storage.buckets.list' denied on resource (or it may not exist).
- 执行
gsutil mb [BUCKET NAME]时出现以下错误:
Creating [BUCKET NAME]... You are attempting to access protected data with no configured credentials. Please visit https://cloud.google.com/console#/project and sign up for an account, and then run the "gcloud auth login" command to configure gsutil to use these credentials.
已确认信息
- 已成功执行
gcloud auth login登录账号,但问题仍未解决 - 所用IAM账号拥有存储Owner权限,在Google控制台可正常完成相关存储操作
已尝试操作
- 安装Google SDK
- 执行
gcloud init初始化配置 - 执行
gcloud auth login(登录成功) - 执行目标gsutil命令(均失败)
内容的提问来源于stack exchange,提问作者Arud Seka Berne S
相关产品推荐
相关产品推荐

