Granting read access to the Authenticated Users group for a file

前端 未结 6 978
执念已碎
执念已碎 2021-02-07 21:14

How do I grant read access to the Authenticated Users group for a file? I\'m using s3cmd and want to do it while uploading but I\'m just focusing directly on changing the acl. W

6条回答
  •  佛祖请我去吃肉
    2021-02-07 21:50

    If you want to do it at bucket level you can do -

    aws s3api put-bucket-acl --bucket bucketname --grant-full-control uri=http://acs.amazonaws.com/groups/global/AuthenticatedUsers
    

    Docs - http://docs.aws.amazon.com/cli/latest/reference/s3api/put-bucket-acl.html

提交回复
热议问题