Forked from alexclifford/s3_set_object_public.sh
Last active
February 16, 2023 01:24
-
-
Save allaniftrue/55940dfec7ad3670d6daa1378ba113a2 to your computer and use it in GitHub Desktop.
Make S3 object public and private via s3cmd command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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