权限 – 拒绝对用户安装的FUSE文件系统的root访问权限
发布时间:2020-07-03 13:57:50 所属栏目:Linux 来源:互联网
导读:让我先介绍一下我的设置细节: 我在x86_64 arch上运行Fedora 13.我使用sshfs挂载了一个远程目录: jim@localsite $sshfs jim@remotesite:/home/jim /home/jim/remotemount 现在,如果su为root并尝试读取挂载点下的内容,我得到: root@localsite $ls -l /home/j
让我先介绍一下我的设置细节: 我在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在共享系统上发出任何声音. (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- sed – 我应该使用cut或awk来提取字段和字段子字符串吗?
- ARM系统模式与arm管理员模式有何不同?
- Another app is currently holding the yum lock
- 如何在linux中使用cx_freeze来创建一个在windows中使用的包
- linux – sqlplus:加载共享库时出错:libsqlplus.so:无法
- Linux中date命令的各种实用方法--转载
- linux – 将给定文件的第一个字母转换为小写
- linux脚本与netcat在x小时后停止工作
- linux – 为什么我们在x86上需要zone_highmem?
- webserver – Angstrom Linux上的Web服务器根目录(BeagleBo