[Samba] File Lock Timeout

Stringer Leon (West Midlands Ambulance Service NHS Trust) leon.stringer at nhs.net
Fri Jan 12 15:21:10 GMT 2007


I've seen posts (but no answers) about clearing a file lock on a Samba share. Presumably this kind of thing happens when the program abnormally terminates and doesn't close its open files.

I've got a file that smbstatus reports as:

1216   DENY_WRITE 0x20089     RDONLY     NONE             /shares/share1/Files/december.xls   Fri Jan 12 12:51:30 2007

Trying to open this in Excel says it's locked for editing by the user who reports that they definitely don't have it open.

So I'm guessing this lock will eventually time out. But after how long? I can't find any documentation on this. But it looks like it's longer than 2 hours!

Thanks for any help,


Information in this message  may contain  confidential and  privileged
information.  If you are not  the intended recipient please accept our
apologies; please do not disclose,  copy or distribute  information in
this e-mail or take any  action in reliance on its  contents: to do so
is strictly prohibited and may be unlawful. Please inform us that this
message  has  gone  astray  before  deleting it.  Thank  you for  your
NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail 

More information about the samba mailing list