权限 – 拒绝对用户安装的FUSE文件系统的root访问权限
发布时间:2020-07-03 04:55:11 所属栏目: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在共享系统上发出任何声音. (编辑:鲜蔬坊站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- LINUX入门:降低Ubuntu 14.04的内核版本
- Linux:将电子邮件发送到另一个地址而不是/ var
- 使用Linux上的C访问Sony Playstation SixAxis Co
- linux – 如何通过puppet安全地禁用用户密码?
- linux – OpenLDAP是Windows LDAP的可行替代方案
- linux – 了解/ boot / config文件
- linux – 如何获取使用sudo运行的命令的pid
- 用于Selenium Scraping的Mozilla Firefox命令行安
- linux – 可执行文件上的setuid似乎不起作用
- ruby – 什么是一个很好的开源软件包,用于在大型
热点阅读