Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th June 2006, 11:35 AM
marisdembovskis's Avatar
marisdembovskis Offline
Registered User
 
Join Date: Mar 2006
Location: Gulbene - Latvia - Europe
Age: 30
Posts: 292
Thumbs down XP via Samba locks the file, Lin usr brakes the lock with opening file and file =RW !

I read
http://www.faqs.org/docs/samba/ch08.html

I test and play with all the lock variants
locking
strict locking
oplocks
veto oplock files
My configuration now:
oplocks = yes
level2 oplocks = Yes
strict locking = yes


And the situation is following:
I have x86_64 FC5 server Samba and NFS on it + XP user + Lin user.

1.Xp user opens water.xls via Samba
2.Samba locks the file.
3.Lin user opens the file water.xls after 20 seconds via NFS.
4.As Samba has locked the file, Lin users see (water.xls READ ONLY)
SO far seems everything is working really FINE. Problems start when we go further on.
5.Lin users after 5 minutes tries to open water.xls to edit it, in the same time XP user is still working with it.
6.Lin user opens water.xls and it is WRITABLE. , however XP user still edits it.
7.The result is corrupted file, not saved file, information lost for XP user, time lost for XP user.
What happened?

Problem:


Samba locks the file fine, however after one Lin user try to open the file lock is broken by Lin user. So next time Lin users opens the file – file is not locked, because samba lock ir broken.
But Samba lock is made: by XP user opening file or by XP user saving file.
So for example, to ensure that file is locked Xp user needs to save file each time (it locks file again, if it was unlocked), when Lin user opens the file (unlocks it).


It is is possible to open file on Lin first time Read Only, then close it. And after a three seconds open it and now it is writable. So Lin user can hack the file just with two times opening the locked file. Not good, right? In real life it means: that file is editing Xp user, then comes Lin user first time, after a time Lin users hopes, that file is not edited any more and he opens the file, however in 30% the file is still editing by XP user. The Lin users does changes and save all, but XP user looses his job.


Thanks for help to everyone!
Are there any ideas how to solve this?

Maris
__________________
Jesus will back you UP!
Maris Dembovskis
Your life is the same as you.
---
my box=F 10 Toshiba R200 = nice & cool
was using ubuntu for a year, return to Fedora. :) Faster.
Reply With Quote
  #2  
Old 30th June 2006, 12:09 PM
marisdembovskis's Avatar
marisdembovskis Offline
Registered User
 
Join Date: Mar 2006
Location: Gulbene - Latvia - Europe
Age: 30
Posts: 292
any ideas folks?
__________________
Jesus will back you UP!
Maris Dembovskis
Your life is the same as you.
---
my box=F 10 Toshiba R200 = nice & cool
was using ubuntu for a year, return to Fedora. :) Faster.
Reply With Quote
  #3  
Old 4th July 2006, 09:14 AM
marisdembovskis's Avatar
marisdembovskis Offline
Registered User
 
Join Date: Mar 2006
Location: Gulbene - Latvia - Europe
Age: 30
Posts: 292
OK.
What I did: (Actually it was one Linux guru idea who also is good friend of mine)
Instal SFU35SEL_EN.exe (it is MIcrosoft utility for Win clients tu understand UNIX). Package was !!! 217 MB !!!
http://www.microsoft.com/technet/int...u/default.mspx
http://www.microsoft.com/windows/sfu...ds/default.asp
Installed in standart way.
So now Lin users can not break the lock if they open document couple times. File all the time is read only, except nobody is writing to it! (Specially Win users via Samba)

Thanks a lot folks!
I you got similar situation, that Lin users break the Samba lock, try that SFU package.

__________________
Jesus will back you UP!
Maris Dembovskis
Your life is the same as you.
---
my box=F 10 Toshiba R200 = nice & cool
was using ubuntu for a year, return to Fedora. :) Faster.

Last edited by marisdembovskis; 4th July 2006 at 09:19 AM.
Reply With Quote
Reply

Tags
brakes, file, lin, lock, locks, opening, samba, usr

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
opening file on DVD pedora Using Fedora 4 21st August 2008 04:00 AM
creating lock file in /var/lock/subsys gold Using Fedora 1 19th December 2007 04:15 PM
Samba : upload file fast but download file slow pratchaya Servers & Networking 0 7th May 2007 05:26 PM
Anybody know if FC6 kde uses new file locks? skellert Using Fedora 1 3rd November 2006 04:38 AM
Opening file with associated program Shakes Programming & Packaging 7 4th November 2005 08:35 AM


Current GMT-time: 11:18 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat