LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2012, 09:51 AM   #1
debianguru85uk
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Rep: Reputation: Disabled
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.

Last edited by debianguru85uk; 10-18-2012 at 09:56 AM.
 
Old 10-18-2012, 10:33 AM   #2
debianguru85uk
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Also just to add I have the following line in smb.conf

lock directory = /var/lock/samba
 
Old 10-19-2012, 08:03 AM   #3
debianguru85uk
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - prevent locking of selected files over network? humbletech99 Linux - Server 2 07-16-2009 04:46 AM
Problem in Samba on Linux about locking the files neel.gurjar Linux - Server 1 04-16-2008 02:47 AM
Samba + File locking HeReigns Linux - Server 0 06-20-2007 05:00 PM
Samba and file locking Phaethar Linux - General 1 12-23-2006 07:03 PM
samba 3.0 locking ash4stuff Linux - Software 0 04-04-2004 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration