Granting read access to the Authenticated Users group for a file

前端 未结 6 962
执念已碎
执念已碎 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:55

    Here is an example command that will set the ACL on an S3 object to authenticated-read.

    aws s3api put-object-acl --acl authenticated-read --bucket mybucket --key myfile.txt
    

    .

提交回复
热议问题