LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba not locking files (https://www.linuxquestions.org/questions/linux-networking-3/samba-not-locking-files-4175432902/)

debianguru85uk 10-18-2012 09:51 AM

Samba not locking files
 
Hello,

I created the following samba share but for some reason samba is not locking the files open by other users. For example user dave open a file in the share and user slav does not get the notification that opened file is already being used by another user. I even added the locking options to the global but no luck.

[share]
comment = Main share
path = /share
guest ok = no
writable = yes
create mask = 0775
directory mask = 0755
browsable = yes
write list = dave slav
force group = users
oplocks = yes
level2 oplocks = yes
strict locking = yes
locking = yes

System I am using is Ubuntu 12.04 LTS 64bit Server.

Thanks for any help or advise.

debianguru85uk 10-18-2012 10:33 AM

Also just to add I have the following line in smb.conf

lock directory = /var/lock/samba

debianguru85uk 10-19-2012 08:03 AM

Hi everyone,

I managed to solve the problem.

I was doing the test using notepad file.

File lock only works if application supports it.

I did the test using Excel file and I can confirm that there are no issues.

Thank you all.


All times are GMT -5. The time now is 05:35 PM.