Before setting ACL permissions, we recommend you read Managing S3 Access Control Rules (ACLs).
s3cmd [-c CONFIGFILE] setacl s3://BUCKET[/OBJECT] [--acl-grant=PERMISSION:{USER|GROUP}] [--acl-revoke=PERMISSION:{USER_VAST_ID|GROUP}]
CONFIGFILE |
Configuration file. Defaults to $HOME/s3cf |
BUCKET |
Name of bucket |
--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: Connecting to the VAST CLI.
|
GROUP |
Two pre-defined groups are supported: 'http://acs.amazonaws.com/groups/global/AllUsers' 'http://acs.amazonaws.com/groups/global/AuthenticatedUsers' |
Grant full control to the predefined group AuthenticatedUsers to access the bucket mybucket.
$ s3cmd setacl s3://mybucket --acl-grant='full_control:http://acs.amazonaws.com/groups/global/AuthenticatedUsers'
Grant read permission to the predefined AllUsers group to access the bucket mybucket.
$ s3cmd setacl s3://mybucket --acl-grant='read:http://acs.amazonaws.com/groups/global/AllUsers'
Grant user with VAST ID 14 write permission to the bucket mybucket:
$ s3cmd setacl s3://mybucket --acl-grant='write:14
Comments
0 comments
Article is closed for comments.