LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2018, 09:32 AM   #1
Slarti_
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
Samba Server on Debian problem with Mac with different file content


Hello,

I have a Debian samba server and a MacOS High Sierra.

When I open a file directly on the Debian Samba server and I change the content, the changes cannot be seen when I access the same file through Samba on my Mac.

To verify, I open the file on Unix and I see the changes.

Any ideas, please?

Thank you,
Slarti
 
Old 11-07-2018, 12:13 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Quote:
When I open a file directly on the Debian Samba server and I change the content, the changes cannot be seen when I access the same file through Samba on my Mac.
What you seem to be describing here is expected behaviour, as caching is used. If you delay opening the changed file by several seconds, do you then get the updated version of the file?

See if the answer in this similar thread helps...
https://community.centrify.com/t5/Ce...lem/td-p/13609

In particular....
Quote:
I finally did get this working. It was a combination of adding the other oplocks parameter (oplocks = no) along with adding the "csc policy = disable" to my shares. After adding those to the server I actually had to reboot any clients that had accessed the shares previously. Once rebooted, they all started refreshing immediately and working perfectly.
I'll leave you to investigate further.

https://www.linuxtopia.org/online_bo...ocking_08.html
 
1 members found this post helpful.
Old 11-18-2018, 06:59 AM   #3
Slarti_
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you very much for this. It worked.

For anyone else: I edited the smb.conf and in the section for my share I did following:
Code:
[www]
    comment = Da Web
    path = /var/www
    create mask = 0775
    directory mask = 0775
    writable = yes
    browseable = yes
    oplocks = no
    csc policy = disable
 
Old 11-18-2018, 11:58 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
I'd completely forgotten about this thread. Anyway, glad to have been of guidance.
 
  


Reply



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
CUPS/Samba print and file server vs. Android and Mac OS X kikinovak Slackware 1 11-13-2012 06:59 AM
Can't log in to Debian file/print server via samba from Win7 sabresong Linux - Server 3 05-27-2012 12:12 PM
generating tmp file in samba server while saving file from win7 in samba server centos123 Linux - Server 15 11-05-2011 05:05 AM
LXer: File Server Configuration in Debian Using Samba LXer Syndicated Linux News 0 05-03-2007 01:46 AM
File server on Debian Sarge with Samba, SSH and vsftpd? MagicMike Linux - Networking 0 02-26-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:57 PM.

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