mount -t nfs和cifs [英] mount -t nfs vs cifs

查看:880
本文介绍了mount -t nfs和cifs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要挂载NFS.经过几次试验和错误,我可以从Linux系统上的NAS挂载NFS文件系统.我们还在评估NFS无法正常工作时是否可以使用CIF.手册页过于混乱,无法在网络上找到任何清晰的解释.我的问题是-如果NFS有问题,可以在原位使用mount -t cifs吗?是否始终提供CIF来替代NFS.

I had a requirement to mount a NFS. After several trial and errors, I could mount a NFS file system from NAS on my Linux system. We were also evaluating if cifs can be used when NFS does not work. man pages were too confusing and could not find any lucid explanation on web. My question is - if NFS is a problem can mount -t cifs be used in place ? Is cifs always available as replacement for nfs.

推荐答案

很难回答,因为它取决于服务器.

It's hard to answer, because it depends on the server.

NFS和CIFS并不是不同的文件系统-它们是用于访问服务器端导出的不同协议.

NFS and CIFS aren't different filesystems - they're different protocols for accessing a server side export.

一般来说:

  • NFS是Unix所使用的,因为它与Unix权限模型完全一致.
  • (通常)CIFS是Windows使用的. (它也使用其他权限模型).

两者之间的主要区别在于CIFS在用户上下文中运行-用户访问CIFS共享. NFS在主机上下文中运行的位置-主机挂载NFS文件系统,并且映射本地用户权限(根据NFS版本和身份验证模式,以多种方式进行).

Key differences between the two are that CIFS operates in a user context - a user accesses a CIFS share. Where NFS operates in a host context - the host mounts an NFS filesystem, and local users permissions are mapped (in a variety of ways, depending on NFS version and authentication modes).

但是,因为-从根本上讲-它们使用不同的许可和授权机制,所以您不能可靠地将NFS导出安装为CIFS.它依赖于支持它的服务器,并处理权限映射.您需要询问拥有该服务器的人以获取详细信息.

But because - pretty fundamentally - they use different permissioning and authorization mechanisms, you can't reliably just mount an NFS export as CIFS. It relies on the server supporting it, and handling the permission mapping. You would need to ask the person who owns that server for details.

这篇关于mount -t nfs和cifs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆