+ -
当前位置:首页 → 问答吧 → NFS服务器:no_root_squash和root_squash。

NFS服务器:no_root_squash和root_squash。

时间:2008-11-22

来源:互联网

1、鸟哥的私房菜简体中文  http://linux-vbird.hillwood.cn/linux_server/0330nfs.htm
     鸟哥的私房菜繁体中文  http://linux.vbird.org/linux_server/0330nfs.php
2、http://www.l-penguin.idv.tw/article/nfs-automount.htm
3、http://man.ddvip.com/linux/debian/nfs/nfs-conf-4.html
      no_root_squash:登入 NFS 主机使用分享目录的使用者,如果是 root 的话,那么对于这个分享的目录来说,他就具有 root 的权限!这个项目『极不安全』,不建议使用!
    root_squash:在登入 NFS 主机使用分享之目录的使用者如果是 root 时,那么这个使用者的权限将被压缩成为匿名使用者,通常他的 UID 与 GID 都会变成 nobody 那个系统账号的身份;


IT168:http://server.it168.com/a2008/1016/208/000000208085_1.shtml
  (3)no_root_squash:当登录NFS主机使用共享目录的使用者是root时,其权限将被转换成为匿名使用者,通常它的UID与GID都会变成nobody身份。
  (4)root_squash;如果登录NFS主机使用共享目录的使用者是root,那么对于这个共享的目录来说,它具有root的权限。


哈哈.........
两种截然不同的答案!
man exports:
     root_squash
              Map  requests  from  uid/gid 0 to the anonymous uid/gid. Note that this does not apply to any other
              uids that might be equally sensitive, such as user bin.

       no_root_squash
              Turn off root squashing. This option is mainly useful for diskless clients.

看来正确的应该是:
      no_root_squash:登入 NFS 主机使用分享目录的使用者,如果是 root 的话,那么对于这个分享的目录来说,他就具有 root 的权限!这个项目『极不安全』,不建议使用!
    root_squash:在登入 NFS 主机使用分享之目录的使用者如果是 root 时,那么这个使用者的权限将被压缩成为匿名使用者,通常他的 UID 与 GID 都会变成 nobody 那个系统账号的身份。

作者: marsaber   发布时间: 2008-11-22

不论如何这个no_root_squash是不建议使用的,太不安全了

作者: kns1024wh   发布时间: 2008-11-22

嗯,搜了些资料,参差不齐啊!
所以,在这里勘正一下,给新手看看。

作者: marsaber   发布时间: 2008-11-25

呵呵,现在好多网站只会转东西,根本不考虑是否正确。经常GOOGLE到的结果是几十上百个一模一样的结果!

作者: Au_Hank   发布时间: 2008-11-26

相关阅读 更多