Granting read access to the Authenticated Users group for a file

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

    This doesn't seem to be possible with s3cmd. Instead I had to switch to the aws cli tools.

    Here are the directions to install them: http://docs.aws.amazon.com/cli/latest/userguide/installing.html

    It's possible to set the acl to read by authenticated users during upload with the command:

    aws s3 cp  s3:/// --acl authenticated-read
    

    Plus a whole load of other combinations you can check out here: http://docs.aws.amazon.com/cli/latest/reference/s3/index.html#cli-aws-s3

提交回复
热议问题