Search code examples
google-cloud-platformgcloud

gsutil acl ch -u AllUsers:R gs://<bucket>/file.js Not working


I am trying to use command gsutil acl ch -u AllUsers:R gs://<bucket>/file.js to give read access to file.js It giving an error as CommandException: AllUsers:R gs://<bucket>file.js is an invalid change description.


Solution

  • allUsers not AllUsers:

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

    So:

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