开发者

s3cmd sync not setting ACL to public

I'm trying to use s3cmd on ubuntu 10.04 to sync with a local folder. This is working great for getting the contents from the local drive out to S3. However, I want the file ACL to be "public", yet all the files are coming through without it.

In my .s3cfg file, I set:

acl_public = True

I've tried:

s3cmd sync -P --delete-removed "$TARGETFOLDER" "s3://$BUCKET/"

I've also tried:

s3cmd sync --acl-public --del开发者_开发问答ete-removed "$TARGETFOLDER" "s3://$BUCKET/"

And, for kicks, also tried this:

s3cmd sync -P --acl-public --delete-removed "$TARGETFOLDER" "s3://$BUCKET/"

Any ideas?

Update

I have set the ACL on the target bucket as Read/Write/Full-Control for authenticated users and administrator, and read-only for Everyone.


I tried it out right now. Making things public while synching can definitely be achieved with the acl-public option:

s3cmd sync --acl-public s3://source-bucket/ s3://target-bucket/


Problem solved. Turns out the files were accessible all along and being set as "public-read", but S3 Organizer in Firefox was not reflecting this through the ACL permissions popup window.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜