Hello,
I recently switched from Windows 7 to Windows 10. Now my OpenWrt Samba share sometimes works and sometimes doesn't. What I mean is... the share appears automatically in Network Neighborhood in Windows 10 file explorer but when I click on it then it won't let me see the files.
I have tried all sort of options of Server/Client min and max protocol in smb.conf. I tried turning SMBv1 and Netbios on and off in Windows but that gives inconsistent results I don't understand.
I installed wsdd2 and turned off Netbios/SMBv1 and it was working earlier but after a reboot it's broken again.
I have set the "Function Discovery Provider Host" and "Function Discovery Resource Publication" services to Automatic (Delayed Start).
Right now it's working again after I re-enabled Netbios and SMBv1. SMB2 and SMB3 are also enabled.
Here is my smb.conf:
[global]
netbios name = OPENWRT
interfaces = br-lan
server string = Samba on OpenWRT
unix charset = UTF-8
workgroup = WORKGROUP
bind interfaces only = yes
deadtime = 15
enable core files = no
security = user
map to guest = Bad User
passdb backend = smbpasswd
socket options = IPTOS_LOWDELAY TCP_NODELAY
load printers = No
printcap name = /dev/null
disable spoolss = yes
printing = bsd
mdns name = mdns
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/
delete veto files = yes
[root]
path = /
valid users = root
create mask = 0644
directory mask = 0755
read only = no
guest ok = no
guest only = no
[usb]
path = /mnt/usb
valid users = root
create mask = 0644
directory mask = 0755
read only = no
guest ok = no
guest only = no
This is my /etc/config/samba4
config samba
option workgroup 'WORKGROUP'
option charset 'UTF-8'
option description 'Samba on OpenWRT'
config sambashare
option path '/'
option name 'root'
option users 'root'
option create_mask '0644'
option dir_mask '0755'
option read_only 'no'
option guest_ok 'no'
option guest_only 'no'
config sambashare
option path '/mnt/usb'
option name 'usb'
option users 'root'
option create_mask '0644'
option dir_mask '0755'
option read_only 'no'
option guest_ok 'no'
option guest_only 'no'
/etc/config/system
config system
option hostname 'OpenWrt'
option timezone 'UTC'
option ttylogin '0'
option log_size '64'
option urandom_seed '0'
config timeserver 'ntp'
option enabled '1'
option enable_server '0'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server '2.openwrt.pool.ntp.org'
list server '3.openwrt.pool.ntp.org'
But when I do # Get-SmbConnection
from powershell I see..
ServerName ShareName UserName Credential Dialect NumOpens
---------- --------- -------- ---------- ------- --------
OPENWRT root WIN10-PRO\user WIN10-PRO\user 3.1.1 2
Osmc 4tb1 WIN10-PRO\user WIN10-PRO\user 3.1.1 2
Doesn't that mean it is using SMB3? So turning on SMBv1 should not have made any difference? But SMB2 and SMB3 are also enabled so maybe it was turning on Netbios that made the difference?
From OpenWrt Terminal I see that wsdd2 process is running:
root@OpenWrt:~# ps | grep wsdd
1721 root 852 S /usr/bin/wsdd2 -i br-lan -N OPENWRT -G WORKGROUP -b vendor:raspberrypi,model:Raspberry_Pi_4_Model_B_Rev_1.1,sku:4-model-b
4335 root 1220 S grep wsdd
root@OpenWrt:~#
I want to get this to work reliably with wsdd2 and SMB2 or SMB3 so I can turn off SMB1/Netbios again. This is working fine with wsdd on other Raspberry Pis in my LAN.
Is there anything wrong with my set up?
Cheers,