Skip to main content

Use s3cmd to batch set folder acl

Published 1 min readMarkdown

Install

brew install s3cmd

Set acl

Make one file public

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

Make all the files at a folder public recursively

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

Make one file private

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

Make all the files at a folder private recursively

s3cmd setacl s3://spacename/path/to/folder/ --acl-private --recursive

Reference

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

No comments yet. Be the first to comment.