s3cmd setacl to grant 'Authenticated Users'

Posted by rynop on Stack Overflow See other posts from Stack Overflow or by rynop
Published on 2012-09-24T21:36:34Z Indexed on 2012/09/24 21:37 UTC
Read the original article Hit count: 230

Filed under:
|

I'm using jgit to create a remote in s3. Problem I'm having is when I do a jgit push s3 master it creates the files in s3 as owned by me.

I want to keep the files private, and be read/write by 'Authenticated users'.

I'd like to be able to either set acl: authenticated-read in the ~/.jgit file OR be able to modify the acl after the push: s3cmd --add-header=x-amz-acl:authenticated-read setacl --acl-private s3://my.bucket/repo/*

Neither of these work.

How do i use jgit and push to s3 and keep it private, and let anyone with auth read/write?

© Stack Overflow or respective owner

Related posts about jgit

Related posts about s3cmd