Before setting ACL permissions, we recommend you read Managing S3 Access Control Lists (ACLs).
s3cmd [-c CONFIGFILE] setacl s3://BUCKET/OBJECT [--acl-grant=PERMISSION:{USER_VAST_ID|GROUP}] [--acl-revoke=PERMISSION:{USER_VAST_ID|GROUP}]CONFIGFILE | Configuration file. Defaults to $HOME/.s3cfg |
BUCKET | Name of bucket |
OBJECT | Name of object |
--acl-grant | Grant stated permission for stated user or group. |
--acl-revoke | Revoke stated permission for stated user or group |
PERMISSION | Type of permission to grant:
|
USER | A user to which you want to grant the permission. Can be specified as: .
|
GROUP | Two pre-defined groups are supported: 'http://acs.amazonaws.com/groups/global/AllUsers' 'http://acs.amazonaws.com/groups/global/AuthenticatedUsers' |
Example
Grant write permission to object myfile.asp in bucket mybucket to the user whose VID is 6.
$ s3cmd -c vast.s3cfg setacl s3://mybucket/myfile.asp --acl-grant=write:6