Forum Moderators: bakedjake

Message Too Old, No Replies

SAMBA file locking

Cannot lock files during read/write

         

Gjohn

3:16 pm on Mar 2, 2005 (gmt 0)



I have samba-2.2.5-10 running on Red Hat Linux 8.0 .

A Shared folder is visible from Windows XP pro.
(As Mapped drive)
The files inside the shared folder is to be written by
Windows XP C# APPlication and read by Linux Java APPlication .
When the C# APP locks the file for Read/write the Java APP can read the the same file.(There is no effect on the lock.)It happens vice versa also.
It is assumed that
when the file is locked for read/write the other machine should not be able to open the file for either reading or writing.

Why is this happening?

MattyMoose

7:48 pm on Mar 2, 2005 (gmt 0)

10+ Year Member



You may want to go over [url=http://de.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html], in particular the example in that section.

The whole Samba book is very long, but incredibly useful.