Nov 28 2006

Samba/Windows problem: content of folder does not refresh

Published by pj at 11:55 pm under samba, opensource

Problems like:

  • files not disappearing when you delete it through a samba share on a windows machine
  • “new folder” command requires manual F5 (refresh) before it appears

Can be easily solved by adding:

refresh = 1

To your smb.conf configuration file. (global section)

Same issue earlier reported:

Other keywords:

  • windows directory contents do not refresh
  • sync bug in windows samba share
  • samba share does not update
  • samba folder does not appear to be valid
  • samba refresh
  • apache deleted windows share refresh
  • samba directories not refreshing
  • new folder does not appear until refresh f5
  • samba folder refresh

12 Responses to “Samba/Windows problem: content of folder does not refresh”

  1. lologpon 19 Dec 2006 at 10:05 am

    ca ne fonctionne pas….

  2. pjon 19 Dec 2006 at 10:50 am

    Lologp: can you elaborate?

    It did work for me, as confirmed by the samba team .. you can try asking them on the samba IRC channel on irc.openprojects.net

    Regards,

    Pitr

  3. guwapoon 30 Dec 2006 at 6:22 am

    for what version is this?

    using 3.0.14a-Debian, this option doesn’t exist and therfor don’t do anything :(

  4. pjon 30 Dec 2006 at 12:59 pm

    This was on version “samba 3.0.22-1ubuntu4″

  5. guwapoon 02 Jan 2007 at 9:37 am

    ok. just skimed over the changelogs/docs but didn’t find anything in that direction. gonna try my luck in the irc channel then. thanks.

    btw: this is apparently a windows issue. you can “solve” this by adding net paths (like \\theserver\folderA) as a net disk ( –> y:\). This issue additionally comes when leaving the explorer to long open.

  6. pjon 02 Jan 2007 at 1:34 pm

    I will post my samba config in a new post, hang on.

  7. lpaulicaon 15 Mar 2007 at 6:54 pm

    I think that the problem is related with the fact that the name of the share is the same as the path to the system directory.For example:

    Share with the refresh problem (require F5 on new folders):

    [Test]
    path = /samba/Test
    read only = no
    create mask = 0600
    directory mask = 0700

    Share without the refresh problem:

    [Test-Share]
    path = /samba/Test
    read only = no
    create mask = 0600
    directory mask = 0700

    Am I right?

  8. lpaulicaon 15 Mar 2007 at 7:04 pm

    I think that the problem is related with the fact that the name of the samba share has the same name as the path on the system. For example:

    This share require refresh (F5):

    [Test]
    path = /samba/Test
    read only = no
    create mask = 0600
    directory mask = 0700

    This share doesn’t require refresh:

    [Test-Share]
    path = /samba/Test
    read only = no
    create mask = 0600
    directory mask = 0700

    Am I right?

  9. The Aetherealon 04 Nov 2007 at 5:36 pm

    I just ran in to the same problem, and yes lpaulica, you are correct. I had a share named “files” and a directory names files. I change the share name to “fileshare” and it now works correctly. Thank you.

  10. ddtechon 26 Feb 2008 at 1:06 am

    I just confirmed this on CentOS 4.4 Samba ver 3.0.10-1.4E.9

    If my Share name is the same as the name of the folder that is shared, I have to press F5 to see any changes. If the Share name and folder name are different it works fine.

  11. Johanon 01 Sep 2008 at 1:43 pm

    I think its a webmin problem do you create your shares in Webmin?

  12. Johanon 01 Sep 2008 at 1:50 pm

    lpaulica is correct

Trackback URI | Comments RSS

Leave a Reply