Using S3FS and FUSE to mount a S3 bucket to an AWS EC2 instance, I encountered a problem whereby my S3 files are being updated, but the new files doesn't adopt the proper permission.
The ACL rights that the new files had were "---------" instead of "rw-r--r--". I've ensured that the bucket is mounted properly by:
sudo /usr/bin/s3fs -o allow_other -o default_acl="public-read" [bucketname] [mountpoint]
and creating an automount in /etc/fstab:
s3fs#[bucketname] [mountpoint] fuse defaults,noatime,allow_other,uid=1000,gid=1000,use_cache=/tmp,default_acl=public-read 0 0
and password file in /etc/passwd-s3fs with the right permissions.
My setup is Ubuntu 13.04, PHP5, AWS SDK.
After 2 days of experimenting, I've found a solution (for php) in the provided answer below.