Difference between revisions of "Gsutil acl ch"
Jump to navigation
Jump to search
↑ https://cloud.google.com/storage/docs/gsutil/commands/acl
Line 8: | Line 8: | ||
Grant anyone on the internet WRITE access to the bucket example-bucket: | Grant anyone on the internet WRITE access to the bucket example-bucket: | ||
− | * <code> gsutil acl ch -u | + | * <code>gsutil acl ch -u [email protected]:WRITE gs://example-bucket</code> |
+ | |||
+ | Grant the group OWNER access to all jpg files in example-bucket: | ||
+ | |||
+ | * <code>gsutil acl ch -g [email protected]:O gs://example-bucket/**.jpg</code> | ||
== See also == | == See also == |
Revision as of 09:14, 1 August 2022
gsutil acl ch
Ch Examples
gsutil acl ch -u AllUsers:R gs://example-bucket/example-object
Grant anyone on the internet WRITE access to the bucket example-bucket:
gsutil acl ch -u [email protected]:WRITE gs://example-bucket
Grant the group OWNER access to all jpg files in example-bucket:
gsutil acl ch -g [email protected]:O gs://example-bucket/**.jpg
See also
gsutil acl [ get | set | ch ]
gsutil
[config | singurl | mb | iam | cp | ls | acl | defacl | ubla | du | cors | --help
],$HOME/.boto, Cloud Shell
Advertising: