Home > Linux, Redhat > Samba share from a NFS mount file locking issue

Samba share from a NFS mount file locking issue

A recent problem that came up was accessing Samba from a Windows machine. Samba server was exporting an NFS mounted device to its users. The users would receive a “The process cannot access the file because another process has locked a portion of the file.” This created a big headache as files could be accessed, but writes failed. You could still create a new file and delete it, but modifying it would get this error.

After some research, the solution to this problem was to modify the global section of smb.conf and change or add:
[global]
strict locking = no

Samba works on NFS-Shares if you switch off strict locking.

Categories: Linux, Redhat
  1. Jason
    October 4, 2013 at 11:27 pm

    Thank you so much! I have been looking everywhere for this!

  2. Tiago de Aviz
    June 23, 2014 at 5:34 pm

    This post just saved my bacon. Thanks.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: