权限 – 拒绝对用户安装的FUSE文件系统的root访问权限
发布时间:2020-12-13 17:24:32 所属栏目:Linux 来源:网络整理
导读:让我先介绍一下我的设置细节: 我在x86_64 arch上运行Fedora 13.我使用sshfs挂载了一个远程目录: jim@localsite $sshfs jim@remotesite:/home/jim /home/jim/remotemount 现在,如果su为root并尝试读取挂载点下的内容,我得到: root@localsite $ls -l /home/
让我先介绍一下我的设置细节:
我在x86_64 arch上运行Fedora 13.我使用sshfs挂载了一个远程目录: jim@localsite $sshfs jim@remotesite:/home/jim /home/jim/remotemount 现在,如果su为root并尝试读取挂载点下的内容,我得到: root@localsite $ls -l /home/jim/remotemount ls: cannot access remotemount: Permission denied root@localsite $ls -l /home/jim total 0 drwxrwx---. 1 jim jim 90 Oct 1 12:00 bin drwxrwx---. 1 jim jim 90 Oct 1 12:00 dev d?????????? ? ? ? ? ? remotemount drwxrwx---. 1 jim jim 90 Oct 1 12:00 tmp 看到root无法访问remotemount目录是相当奇怪的.这是预期的行为吗?如果是这样,为什么?如果没有,任何关于如何修复它的线索将会有所帮助.谢谢. 解决方法
这是设计在保险丝中作为安全措施.使用
sshfs挂载文件系统时,请传递-o allow_root或-o allow_other选项.
它可以防止root在共享系统上发出任何声音. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |