Granting read access to the Authenticated Users group for a file

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

    If you're willing to use Python, the boto library provides all the functionality to get and set an ACL; from the boto S3 documentation:

    b.set_acl('public-read')
    

    Where b is a bucket. Of course in your case you should change 'public-read' to 'authenticated-read'. You can do something similar for keys (files).

提交回复
热议问题