Mount S3 (s3fs) on EC2 with dynamic files - Persistent Public Permission

前端 未结 2 1079
春和景丽
春和景丽 2021-01-14 06:52

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 p

2条回答
  •  囚心锁ツ
    2021-01-14 07:27

    s3fs#[bucketname] [mountpoint] fuse defaults,noatime,allow_other,uid=222,gid=48,use_cache=/tmp,default_acl=public-read 0 0

    For me this line work wihtout setting x-amz-meta-mode! take care of : uid=222 is for my server ec2-user and gid=48 is for my server apache group.

    All the script php is executed with apache group. That's why i think you need to put the gid to 48.

    see also Change user ownership of s3fs mounted buckets

提交回复
热议问题