Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The error reported by windows client is like this ERROR: 0x80070021 The process cannot access the file because another process has locked a portion of the file.

I google it and hit samba bug report 8481 . Which is very similar to this problem. Another link also mentions a similar issue.

But, instead of NFSv3, my NFS backend is using NFSv4, provided by OpenSolaris ZFS file system.

I try to mount -t nfs4 -o nolock fileserver:/export/home /home, but it says no such option "nolock". nolock is only valid for NFSv3, not NFSv4.

  1. fileserver: an OpenSolaris file server.
  2. Linux server: Debian Lenny. Running samba service and mount /home to fileserver:/export/home
  3. Windows client: it can browse the directories shared by the linux server, but cannot copy any files.
share|improve this question
up vote 5 down vote accepted

From what I found googling, this is a problem caused on NFS level, to fix it edit /etc/samba/smb.cfg and in the [global] section add the option:

strict locking = no
share|improve this answer
thank BeeJee, the problem was solved. – wcy Feb 17 '13 at 4:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.