First post, by maxtherabbit
- Rank
- l33t
I have a samba 4 NAS setup wide open - everyone maps to guest, no passwords. Please keep your comments about the "security" of this setup to yourself - I literally do not care.
Now that's out of the way, the issue is this: Windows 98 and ME clients can map the shared drive without issue; but when you try to view the contents, explorer will hang up for a very long time. The duration of the hangup appears to be directly proportional to the number of files that windows explorer tries to "preview" and in fact if you run smbstatus on the linux box during the client's hang time you can see that the client is requesting locks on every EXE, DOC, SCR, etc. file in the directory. Essentially any file that explorer would read a resource (icon, explorer bar preview) from when listing a directory.
Eventually the client will un-freeze and you can go about your business, but trying to do any meaningful file management in this condition is not practical, and further the client never releases the majority of its locks. This requires using smbstatus to list the worker PIDs for each process responsible for locking the client's files and kill -9ing them.
WfW 3.11, MS Net Client for DOS 3.0, Windows NT 3.51/4/2k/XP clients all access the same share without issue.
SMB conf file included below
[global]
netbios name = OpenWrt
interfaces = br-lan
server string = Samba on OpenWRT
unix charset = UTF-8
workgroup = WORKGROUP
wins support = yes
bind interfaces only = yes
deadtime = 15
enable core files = no
security = user
invalid users = root
map to guest = Bad User
null passwords = yes
passdb backend = smbpasswd
socket options = IPTOS_LOWDELAY TCP_NODELAY
load printers = No
printcap name = /dev/null
disable spoolss = yes
printing = bsd
mdns name = mdns
preferred master = yes
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/
delete veto files = yes
server min protocol = LANMAN1
lanman auth = yes
ntlm auth = ntlmv1-permitted
[media]
path = /mnt/sda1/media
create mask = 0666
directory mask = 0777
read only = no
guest ok = yes
vfs objects = io_uring
[retro]
path = /mnt/sda1/retro
create mask = 0666
directory mask = 0777
read only = no
guest ok = yes
vfs objects = io_uring