1 min read

S3: Change ACL of Files in Folder to Public

I have a storage bucket on Linode, which by default, when uploading via their UI, sets the ACL to Private.

To quickly set all files within a folder to Public recursively, use s3cmd and execute this command:

s3cmd -c .s3cfg setacl s3://your-bucket-name/folder-name/ --acl-public --recursive

Here’s a sample output:

s3://your-bucket-name/fonts/AmpleSoftPro/: ACL set to Public  [2 of 29]
s3://your-bucket-name/fonts/AmpleSoftPro/AmpleSoftPro-Bold.eot: ACL set to Public  [3 of 29]
s3://your-bucket-name/fonts/AmpleSoftPro/AmpleSoftPro-Bold.ttf: ACL set to Public  [4 of 29]

...