[PLUG] Samba vs nfs

max.reid at saikonetworks.com max.reid at saikonetworks.com
Sat Feb 5 18:15:19 UTC 2005


Quoting David Phillips <redhat at crisponions.com>:

> I recently built a share on my linux server that I am sharing with
> windows machines via samba.  I would also like to share this share with
> my linux machines as well.  Problem is, if I mount the share via smbfs
> it only allows read/execute access to users and only root has write
> permissions, windows clients can write to the share without problems.  I
> need my linux users to be able to write to this share as well.
> 
> What I was wondering if it is possible to share a folder using 2
> different methods.  From my server can I share the folder via samba and
> also share the folder to my linux machines using nfs, or will I risk
> possible data corruption.

The problem with multiprotocol filesharing has to do with the differences 
between locking mechanisms in NFS and CIFS when two users are accessing the 
same file simultaneously using the different protocols.  If your kernel and 
samba implementation supports CIFS opportunistic locking, you shouldn't have 
this problem...

This feature has been available for some time on proprietary systems like 
Netapp Filers and some commericial *nix implementations for some time, so it's 
pretty mature and fairly common practice these days.

Regards,
Max






More information about the PLUG mailing list