I use s3cmd to upload files to Amazon s3. It is a super application. The only problem is I still need to log into the web interface and change the permissions of the file to "Authorized Users" and grant Read on it.

Is there a way I can change the permissions via a terminal and have it be Authorized Users?

Any ideas?

有帮助吗?

解决方案

You should use Bucket Policy. Set Bucket Policy on that bucket which set Public Read permission on the object. So what every you upload from s3cmd it will set read permission on that object automatically.

I am a developer of Bucket Explorer (Amazon S3 Tool). If s3cmd does not have option to set S3 Bucket Policy then you can try Bucket Explore. and This tool also have feature of Bucket Default, using this feature you can set desire permission automatically on newly uploaded s3. files.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top