mount -t nfs vs cifs

∥☆過路亽.° 提交于 2019-12-04 10:44:52

CIFS is not always available (but often is). When it works, NFS works better for unixy clients than CIFS tends to be.

To see if there's CIFS on the server, use the smbclient(1) program, possibly 'smbclient -L servername'.

To use CIFS from unix, you typically need to know a user name and password for the CIFS server, and reference them in the mount command or fstab entry. You can put the password in a file that is protected and use the file for the mount.

If you don't know the CIFS server admin to get a user/pass, you have many problems.

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

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

Generally speaking:

  • NFS is what Unix uses, because it aligns neatly with the Unix permissions model.
  • CIFS is (generally) what Windows uses. (It uses a different permissions model too).

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).

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!