-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何实现0770挂载权限 #5
Comments
您好,owncloud的用户id是什么?也是apacheID吗? |
我通过查看源码,解决了这个问题,最终挂载的语句是 |
哦,是的,可以通过umask来设置合适的权限 |
设置umask后,全部文件和文件夹都使用了统一权限。基于文件夹755文件644原则,我再设置chmod 644 。。。。.jpg后此文件权限并没改变,这是为何呢? |
加上-o mp_umask=007 ,如( -o mp_umask=027,权限就变成777-027=750(rwxr-x---))。这个只对挂载目录有效 |
使用OwnCloud Docker容器+阿里云OSS搭建自己的云盘服务 on Centos 7 |
我使用ossfs my_bucket /mnt/disk -ourl=oss-cn-beijing.aliyuncs.com -o allow_other -o mp_umask=027挂载目录,挂载不成功!求解! |
-ouid=995 -ogid=995 -o mp_umask=007 -o allow_other 挂载加上uid和gid就好了 |
我使用owncloud搭建私有云盘,把data目录指向ossfs的目录,如果使用allow_other,会变成777权限,owncloud会报错,不允许权限。如果不使用allow_other,但是把用户ID改为apacheID,就会变成700权限,就会导致无法访问的问题。
The text was updated successfully, but these errors were encountered: