Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我安装了桶,一切正常。我的Fstab是这样的
mybucket /path/to/mountpoint fuse.s3fs _netdev,allow_other 0 0
但是当我点击 Owncloud 主页时,它告诉我必须将 chmod 0770 设置为目录。但是 S3fs 挂载根本无法更改。
删除 allow_other 也不起作用,因为只有 root 可以访问挂载。
好吧,在您发布问题后 10 个月过去了,但我刚刚发现自己处于同样的情况,这是为需要它的人提供的解决方案:
在/etc/fstab文件中添加自动挂载条目:
/etc/fstab
s3fs#YOUR_S3_BUCKET_NAME /YOUR_MOUNTPOINT fuse allow_other,use_cache=/tmp/cache,uid=apache,gid=apache,umask=007 0 0
在上述情况下,它以apache用户和组的所有权安装它。umask=007做的伎俩并设置您需要的文件夹的权限。
apache
umask=007