I have 6 windows computers (xp,vista,7) that need to access a samba share (Ubuntu 12.04). I am trying to make it so only one client can open a file at a given time. I thought this was pretty standard behavior of file locks, but I can't get it to work.
The way it is right now a file can be open by two users, and changed and saved by either one of them. The last file saved overwrites what ever changes the other user made. At first I thought this was a Samba configuration problem, but I get this behavior even between two windows machines. So far I have only tested:
Windows Xp >>> Windows Vista
Windows XP >> Samba << Windows Vista
and both give the same behavior.
When I tested the Samba configuration, I had set
strict locking = yes and get errors logged like this:
close_remove_share_mode: Could not get share mode lock for file _prod/part_number_list_COPY.xlsx
Eventually all of the files are going to be moved onto the Samba share, so that is the configuration I am most concerned about fixing. Any ideas? Thanks in advance.
I tested an excel file again, and it is now working properly in both above mentioned cases, I am also no longer getting the above mentioned error. I don't know what happened, perhaps a restart fixed it? (also works with
strict locking = no)
Although I still need to find a solution for the CAD/CAM files we use, the software is Vector and it does not seem to be using file locks.
Is there any software that I can use to manage these files, so two people can't open/edit them at a time? Maybe a windows application that forces file locks? Or a dirt simple version control system? (the only ones I have seen at are too complicated for our needs).