You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 00:52:02