LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba Server on Debian problem with Mac with different file content (https://www.linuxquestions.org/questions/linux-server-73/samba-server-on-debian-problem-with-mac-with-different-file-content-4175641307/)

Slarti_ 10-28-2018 09:32 AM

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

ferrari 11-07-2018 12:13 PM

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

Slarti_ 11-18-2018 06:59 AM

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


ferrari 11-18-2018 11:58 AM

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


All times are GMT -5. The time now is 10:11 PM.