#3406 File Lock Doesn't Work

1.470
closed-wont-fix
7
2009-05-28
2009-05-28
No

I have created a custom file editor for users and it will be used multiple users to update a specific file. The problem is multiple users can update the same file at the same time overwriting another's changes.

I do have enabled File Locking on Webmin Configuration and set it to "All Files" and also tried with "Only specific Files" option. but nothing seems to be locking the open file and allowing another user to overwrite.

Discussion

  • Linux Addict

    Linux Addict - 2009-05-28
    • priority: 5 --> 7
     
  • Linux Addict

    Linux Addict - 2009-05-28

    Logs below when I change file lock options.

    1243543963.22131.0 [28/May/2009 16:52:43] root 3607eb0489d11ee1b650ff79ef54eba2 10.46.16.137 webmin change_lock.cgi "lock" "-" "-"
    1243543977.22159.0 [28/May/2009 16:52:57] root 3607eb0489d11ee1b650ff79ef54eba2 10.46.16.137 webmin change_lock.cgi "lock" "-" "-"
    1243543991.22201.0 [28/May/2009 16:53:11] root 3607eb0489d11ee1b650ff79ef54eba2 10.46.16.137 webmin change_lock.cgi "lock" "-" "-"

     
  • Jamie Cameron

    Jamie Cameron - 2009-05-28

    Locking doesn't work like that - it only prevents two processes from writing at the same time, and corrupting the file. In your case, the last person to save will have his changes written.

     
  • Jamie Cameron

    Jamie Cameron - 2009-05-28
    • status: open --> closed-wont-fix
     

Log in to post a comment.