s3cmd [-c CONFIGFILE] info s3://BUCKET[/OBJECT]CONFIGFILE | Configuration file. Defaults to $HOME/.s3cfg |
BUCKET | Name of bucket in which object is stored |
OBJECT | Name of object for which to return ACL |
Example
Get ACL of file vast.s3cfg as part of full metadata output.
$ s3cmd -c vast.s3cfg info s3://bucket1/vast.s3cfg
s3://bucket1/vast.s3cfg (object):
File size: 176
Last mod: Mon, 24 Jun 2019 19:40:27 GMT
MIME type: text/plain
Storage: STANDARD
MD5 sum: 9de54b7b7a89d9526b32305a331dea6a
SSE: none
Policy: none
CORS: none
ACL: vastuser: FULL_CONTROL
x-amz-meta-s3cmd-attrs: atime:1561405102/ctime:1561405019/gid:1000/gname:vast data/md5:9de54b7b7a89d9526b32305a331dea6a/mode:33204/mtime:1561405019/uid:1000/u name:vastdata