Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba vs Windows Clients Lock File

Status
Not open for further replies.

ricasthenuke

Programmer
Feb 13, 2006
3
PT
Hi,

I have Samba 3.0 on a CentOS machine, and i'm having problems with the locking files system...

Does samba lock a file when an user open a file? Oplocks, don't lock a file to read only...


Help?

Thanks,
Ricardo
 
And what about this in your smb.conf ?
level2 oplocks = Yes

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi,

i can block winword files, excel files.. but txt no... a windows xp can open the file and another windows xp do the same, and they can write at the same time to the file with level2 oplocks or without level2 oplocks

Ricardo

 
This is the windows XP program that should instruct samba to lock the txt file (as word and excel do)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi,

If you use oplocks=yes, samba detects that a program is using a file, but samba don't lock the file, insted it switch in read mode write mode..

Ricas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top