Find the answer to your Linux question:
Results 1 to 4 of 4
hello, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Posts
    2

    samba file locking help


    hello,

    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!

    -fiber

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    tis likely that the file is in use by the webserver? Is this update being done localy, or remotely?
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Just Joined!
    Join Date
    Sep 2004
    Posts
    2
    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?

    -fiber

  4. #4
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    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?
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •