jjkeijser / cifs-over-ssh

Tutorial on how to use CIFS/SMB over SSH in Windows
Apache License 2.0
28 stars 3 forks source link

Offline Files do not work #4

Closed regisdenice closed 8 months ago

regisdenice commented 8 months ago

Offline files do not work

Details:

Reproducing error: Given that my Window Explorer is open on the remote SMB folder Given that I right-clicked a folder and selected "Always available offline" When I click on Sync Center > View sync partnerships > Sync Then I get errors for all files : "The process cannot access the file because this file is in use by another process"

Can you make it work on your side ? Did I forget something ?

jjkeijser commented 8 months ago

This is the first time I've used the 'offline file' feature; on Windows 11 Ent it works fine , when connecting to a non-Samba share. Can you check whether it works for you when you're connected directly to the share (i.e. not using cifs-over-ssh) ?

It might very well be that you need to enable opportunistic locking in Samba for offline files to work.

I cannot test this with Windows 7 easily, as that OS has been obsoleted several years ago.

regisdenice commented 8 months ago

You were indeed right @jjkeijser :smiley: :+1: the problem was on the server side.

The problem did not come from cifs-over-ssh but from my Samba server. The Samba server was configured to do not allow remote client to shadow files. It's a pretty weird default feature, but so be it.

On my Samba server I changed the default SMB settings to:

Thank you :white_heart: