samba file locking help
i am currently migrating my school to linux however some things need to remain in windows. to solve this i am using samba. basically, our setup has a linux web server with a windows share mounted inside the apache document root. we have to keep windows because the system is build heavily of windows permissions.
the problem is that one file, the Student_Bullitin.htm file, needs to be changed nightly but because of file locking i am not able to. for example, when i try moving the file i get:
mv: cannot move `Student Bulletin.htm' to `Student Bulletin.html': Text file busy
does anyone know of a way to fix this? sofar i have done:
kernel oplocks = yes
locking = No
(i have also tried both of them independantly with no luck either).
does anyone know of a solution to this? thanks alot!
tis likely that the file is in use by the webserver? Is this update being done localy, or remotely?
the file is being edited by a 3rd windows computer using windows shares.
but that is a good point, maybe apache is infact the one locking the file and not samba?
as long as the permissons on the file (under linux) are correct, this seems the most likly issue, but i connot ever rember a file in use error, but who knows?