LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File locking over Samba (https://www.linuxquestions.org/questions/linux-software-2/file-locking-over-samba-130087/)

rtaft 12-30-2003 11:02 AM

File locking over Samba
 
I'm using samba, and I have multiple OS's accessing files, including a program on the server itself. When the file is being sent over samba, I want it to be locked so the server's program can't read it. Once transfer is complete, it releases the lock and the server can read it. Likewise, I need the server to lock the file when it is reading it so no clients can modify the file while it's being read.

My main questions are:

How would I do this (any language)?
Can this even be done over Samba from a Windows client AND Linux client?


All times are GMT -5. The time now is 02:17 PM.