I'm using jgit to create a remote in s3. When I do a jgit push s3 master
it creates the files in s3 as owned by just my aws user (the one that did the push).
I want these files to also have 'Authenticated users' permissions.
I have tried the following:
- Setting
acl: authenticated-read
in the ~/.jgit file (this throws error as only 'public' or 'private' is supported from what I can tell. - modify the acl after the push via
s3cmd
:s3cmd --add-header=x-amz-acl:authenticated-read setacl --acl-private s3://my.bucket/repo/*
. This seems to have no impact on the ACL of the files (its like nothing ran, no error though)
How do I do one of the following:
- Configure jgit to set 'Authenticated users' acl when pushing to s3 (I'd prefer this)
- Use s3cmd (or another existing command line tool) to set the acl of existing files to 'Authenticated users'