[Samba] File Lock Issue

Matt Ingram mingram at cbnco.com
Fri May 9 12:49:54 GMT 2008

Hi All,

I've seen a few messages similar to my problem, looking back through the 
mailing list but the issue I'm having is a little more unique.

We have a user, who uses both wireless and wired connection.  He uses 
truecrypt, that has the encrypted file sitting on a samba share.  What I 
think is happening is he will unplugged his wired connection and move to 
a meeting room and connect through the wireless (might be worth noting - 
our wireless sits in our DMZ and users have to VPN into the inside of 
our network).  When he connects to the wireless and tries to access his 
truecrypt drive, if complains that the file is already in use - and upon 
checking smbstatus -L the file is indeed locked.

I was looking at the //|reset on zero vc|/ = |no |/option, but that seem 
to be for a connection of the same IP Address.  Once he switches to 
wireless, he will have a different IP Address, so I don't think this 
option will help him.

This server is running Samba Version 3.0.24-2.23-1296-SUSE-CODE10 on 
SUSE SLES 10 and the client is using Windows XP.

I've seen many people asking this... what is the default time for a file 
to be locked if the connection is dropped?  Also, is there a 
configurable option to change that time?

If anyone has any idea for this issue, I'd be grateful to hear them!


Matt Ingram
Intermediate Unix Administrator, IS
Canadian Bank Note Company, Limited

More information about the samba mailing list