Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vparitskiy/a8175172a16978d6f5966e1ff8634314 to your computer and use it in GitHub Desktop.
Save vparitskiy/a8175172a16978d6f5966e1ff8634314 to your computer and use it in GitHub Desktop.
s3cmd examples to add and remove public-read access for s3 buckets, folders and objects within.
## You may choose to remove --recursive if is required only for the bucket or folder and not for objects within.
s3cmd setacl --acl-private --recursive s3://mybucket-name
s3cmd setacl --acl-private --recursive s3://mybucket-name/folder-name
s3cmd setacl --acl-private --recursive s3://mybucket-name/folder-name/object-name
s3cmd setacl --acl-public --recursive s3://mybucket-name
s3cmd setacl --acl-public --recursive s3://mybucket-name/folder-name
s3cmd setacl --acl-public --recursive s3://mybucket-name/folder-name/object-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment