How to limit concurrent file access on a Samba share?
Posted
by
JPbuntu
on Ask Ubuntu
See other posts from Ask Ubuntu
or by JPbuntu
Published on 2012-06-29T21:19:39Z
Indexed on
2012/06/29
21:24 UTC
Read the original article
Hit count: 204
samba
|file-sharing
I have a Ubuntu 12.04 file server running Samba. There are 6 windows machines that access the server, as well as two people that will occasionally access files remotely.
The problem that I am having is that the CAD/CAM software we are using doesn't seem to request file locks, meaning if two people open a file at the same time, the first person to close the file will get their changes overwritten if the second person saves the file. I tried changing the smb.conf to strict locking = yes
but this doesn't seem to have any effect.
File locking with excel seems to work fine, so I know that Samba is using the file locks...if they were put on the file in the first place.
Is there a way (either in Samba or Ubuntu) to only allow one user to have a file open at a time? If not does anyone have any suggestions for managing a problem like this?
© Ask Ubuntu or respective owner