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 = OpenWrtinterfaces = br-lanserver string = Samba on OpenWRTunix charset = UTF-8workgroup = WORKGROUPwins support = yesbind interfaces only = yesdeadtime = 15enable core files = nosecurity = userinvalid users = rootmap to guest = Bad Usernull passwords = yespassdb backend = smbpasswdsocket options = IPTOS_LOWDELAY TCP_NODELAYload printers = Noprintcap name = /dev/nulldisable spoolss = yesprinting = bsdmdns name = mdnspreferred master = yesveto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/delete veto files = yesserver min protocol = LANMAN1lanman auth = yesntlm auth = ntlmv1-permitted[media]path = /mnt/sda1/mediacreate mask = 0666directory mask = 0777read only = noguest ok = yesvfs objects = io_uring[retro]path = /mnt/sda1/retrocreate mask = 0666directory mask = 0777read only = noguest ok = yesvfs objects = io_uring