8

I have synced my AWS s3:bucket to digital ocean spaces. In my s3:bucket, my all folders/files permission is in Private- but anyone will read. After, the sync s3 - spaces, my all folders/files permission is in Private. Because of that anyone not able to read.

So I want to make my all folders/files permission is in Public. Is there a way to change through the control panel of the Digitalocean. But I have lots of data. If anyone has an idea about it?

Please help me out from this. Thanks in advance.

Reza Mousavi
  • 4,420
  • 5
  • 31
  • 48
Dhananjayan K
  • 175
  • 2
  • 11

1 Answers1

32

before move/copy file you have to set acl to public in rclone config (rclone.conf) file like this

[spaces]
acl = public-read

if your files are already in Digital Ocean spaces there is no way to modify permission with rclone, you have to use s3cmd, the setup is very slimier to rclone. After setup success, use these command to change permission.

Make a file public

s3cmd setacl s3://spacename/file.txt --acl-public

Make all the files inside a path public

s3cmd setacl s3://spacename/path/to/files/ --acl-public --recursive

learn how to setup s3cmd for space https://www.digitalocean.com/docs/spaces/resources/s3cmd/

usage https://www.digitalocean.com/docs/spaces/resources/s3cmd-usage/

Community
  • 1
  • 1
Kyaw Kyaw Soe
  • 3,258
  • 1
  • 14
  • 25
  • Thanks for your quick reply. Suppose I will make acl = public before start sync. It will work for all files/folders which I have already in AWS with private permission? – Dhananjayan K Oct 17 '18 at 10:12
  • Yeah. My files are already in "Digital Ocean Spaces". So, I used s3cmd to change the permission private to public. The changing permission process is going on. – Dhananjayan K Oct 17 '18 at 10:14
  • Thanks Kyaw Kyaw Soe. I will try this for next sync. – Dhananjayan K Oct 17 '18 at 10:52