Link to home
Start Free TrialLog in
Avatar of redhat_786
redhat_786

asked on

Difference between NFS and Samba Server

I want to know the difference between NFS and Samba Server. I think we can do the same thing as NFS do using Samba Server and what is difference between their security.
Avatar of ripvannwinkler
ripvannwinkler

NFS is a network file system for *nix boxes to share files between each other.  Samba is entirely designed to provide windows computers access to unix file systems.  They are completley separate resources, but can easily be implemented in such a way that Windows computers can access NFS exports.  I've seen this done particularly for mainframe Unix exports.

NFS exports are secured by accounts on the *nix box that is exporting the files.  Samba can provide security by *nix account, or can validate user permissions via a windows domain.  

If you are sharing from *nix to *nix, use NFS.  If you are trying to share to a windows network, use samba.  When using samba, it is usually more convenient to validate permissions through the domain.
Avatar of redhat_786

ASKER

Thanks for this information but I want to know why they were made separately because we can share the resources using Samba alone. Like we can mount remote shares using smbmount and access the files within it. We can access the samba service from the *nix machines using smbclient also. What's special in NFS and what are the security differences?
NFS was around before the days of linux, and definitely before the days of samba.  NFS is the native *nix network file system.  Samba's core purpose was to bridge the differences between windows network file systems, and *nix network file systems.  Yes you can use samba to share and mount files on linux, but NFS is noticably quicker on larger files, and more stable.  I'm not sure there's any added security, as both samba and nfs use *nix accounts to authenticate to other *nix machines.  Samba is not intended to share files between *nix boxes, and it would be overkill to do so.  If you are sharing only between *nix boxes, use nfs.
Thanks again but tell me would there be any other matter which would discourage me about using Samba instead of NFS for sharing files and resources. Thanks in advance for your cool help. And can you tell me any site which would help me to differentiate these.
ASKER CERTIFIED SOLUTION
Avatar of martijnt
martijnt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Satisfactory Answer
2 Points?  That's not a very good way to get people to help you in the future...
Sorry but I gave 20 points for this. Believe me. I don't actually know how to give the 20 points to the correct answer. Is there anyway to increase this?
Read the faq on how to post another question for awarding points.  I'm not sure on the specific requirements, but I know it can be done.  Aside from that, don't worry about the points, just glad we could help.