When using s3fs, files in the mount may have permissions that prevent you from viewing them. The files appear to have mode 0000 because some S3 clients don’t upload the correct metadata.
It is possible to chmod the files, but this may be time consuming and only lasts until the drive is unmounted.
The solution is to set the x-amz-meta-mode metadata.
Using boto, the following code will update the metadata without downloading and reuploading the file:
The mode value is set by the decimal representation of the normal permissions bitmask: