I have two servers with Samba shares and I had triubles with accessing both of them from my Windows 10 (1809 LTS) PC.
OS | TrueNAS 13.0-U6.2 | Ubuntu 24.04.1 LTS |
Samba version | 4.15.13 | 4.19.5 |
Samba config | ea support = No kernel share modes = No path = /mnt/RAID1/NAS posix locking = No read only = No smbd max xattr size = 2097152 vfs objects = fruit streams_xattr shadow_copy_zfs ixnas zfs_core aio_fbsd fruit:resource = stream fruit:metadata = stream nfs4:chown = true ixnas:dosattrib_xattr = false | comment = Torrent Server path = /torrents read only = yes browsable = yes guest ok = yes public = yes create mask = 0775 directory mask = 0775 force create mode = 0775 force directory mode = 0775 |
The error I got - "Network Error: Windows cannot access"
Windows configuration (Get-SmbClientConfiguration):
Details about Workstation server (sc.exe qc lanmanworkstation). mrxsmb10 failed to start (error 1060), but I don't need SMB v1.
The simplest solution - exclude mrxsmb10 from dependencies of Workstation service.
Solution #2
Solution #1
- Open Registry "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\DependOnService"
- Delete "mrxsmb10" string and save
- Reboot
- Run CMD as Administrator
- Run "sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi"
- Run "sc.exe config mrxsmb10 start= disabled"
- Reboot
SMB v1 is unsecured protocol. My recommendation - disable SMB v1.
Run these commands in Powershell (from administrator):
Disable-WindowsOptionalFeature -Online -FeatureNameSMB1ProtocolSet-SmbServerConfiguration -EnableSMB1Protocol $falseSet-SmbServerConfiguration -EnableSMB2Protocol $truesc.exe config mrxsmb20 start= auto
No comments:
Post a Comment