[Samba] NT_STATUS_SHARING_VIOLATION when trying to delete files

Jeremy Allison jra at samba.org
Sat Jul 1 00:33:15 GMT 2006

On Fri, Jun 23, 2006 at 03:25:37PM -0600, Peeler, Wade M. wrote:
> I searched the archives already and couldn't find an answer to this.
> I'm running an automated process via a cron job on a SUSE Linux
> Enterprise Server 9 box.  The cron runs a Perl script, which uses the
> SmbClientParser module.  The Perl script grabs files from clients
> running Windows 2000.  The files on the client computers are created by
> in-house MFC applications on those computers.
> Occasionally, when the Perl script tries to delete files from the client
> computers, it gets an NT_STATUS_SHARING_VIOLATION and is unable to
> delete the file.  I sometimes even get this error long after the
> software on the client that created the file has exited.  However,
> sometimes everything works just fine and the Perl script is able to
> delete the files without problems.
> Does anybody know what causes this, or at least can point me in the
> right direction towards solving this problem?

Something on the Windows box still has the file open. You need to
track it down on the Windows side I think.


More information about the samba mailing list