Skip to content

Instantly share code, notes, and snippets.

@allaniftrue
Forked from alexclifford/s3_set_object_public.sh
Last active February 16, 2023 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allaniftrue/55940dfec7ad3670d6daa1378ba113a2 to your computer and use it in GitHub Desktop.
Save allaniftrue/55940dfec7ad3670d6daa1378ba113a2 to your computer and use it in GitHub Desktop.
Make S3 object public and private via s3cmd command line
s3cmd setacl s3://bucket/path/to/file --acl-public
s3cmd info s3://bucket/path/to/file
s3cmd setacl s3://bucket/path/to/file --acl-private
# S3CMD SET ALL FILES IN FOLDER TO PRIVATE
s3cmd setacl s3://bucket/path/to/file --acl-private --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment