Skip to content

ACL

If need to set or get an ACL without uplaoding a file you can use the subcomand acl, for example to make an object private:

sh
s3m acl <s3 provider>/<bucket>/object -a private

To retrive the existing ACL:

sh
s3m acl <s3 provider>/<bucket>/object  | xmllint --format -

notice the usas for xmlllint to pretty print the output

When streaming, a canned ACL for the object can be defined if using option -a/--acl <acl>, for example to make the object public:

sh
s3m /path_to/file <s3 provider>/<bucket>/file -a public-read

Released under the BSD License.