Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot delete fie due to sharing violation

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am having trouble deleting a group of files on an NT server due to an error message that says there is a sharing violation. So far I have restarted the machine that the files resided on, and I have also gone as far as to move the files to an entirely different machine (also an NT server) and i getting the same sharing violation error on that machine. I am certain that the files are not in use. Can someone please help.

Thanks...
 
Thanks for the response. These files are word documents. It is as if the file's attributes are screwed up. I get the error even when I move the files to a different nt server.
 
Hi Friend,

You can try using Server Manager facility to determine if files are actually in use. YOu could also use Netwatch from the Resource Kit ...

Yeah, Baby!
AP
 
Hi,

Could be down to opportunistic file locking, The following is from out in house KB. I had a similar prob last year.

In a NT install you may encounter file locking on files after the users have logged out. This is due to Opportunstic File locking, and this had to be turned off with the following procdure.

On the server that holds the file, run regedit and find the following

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

and add the following

DWORD EnableOpLockForceClose = 1
DWORD EnableOpLocks = 0

Log all user off and now go to a command prompt, and enter the following

NET STOP SERVER

when the service has stopped and put you back to a command prompt.

NET START SERVER


If aint broken, dont try n fix it!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top