Nov 28 2006
Samba/Windows problem: content of folder does not refresh
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:
- directory content refresh issues http://lists.samba.org/archive/samba/2005-August/109739.html
- creating new file or folder does not appear until hitting refresh http://lists.samba.org/archive/samba/2006-September/124973.html
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
ca ne fonctionne pas….
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
for what version is this?
using 3.0.14a-Debian, this option doesn’t exist and therfor don’t do anything
This was on version “samba 3.0.22-1ubuntu4″
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.
I will post my samba config in a new post, hang on.
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?
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?
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.
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.
I think its a webmin problem do you create your shares in Webmin?
lpaulica is correct