17 November 2024

Troubles with accessing Samba/SMB share from Windows 10

I have two servers with Samba shares and I had triubles with accessing both of them from my Windows 10 (1809 LTS) PC.

OSTrueNAS 13.0-U6.2Ubuntu 24.04.1 LTS
Samba version4.15.134.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):



Finally I found the "Workstation" service in disabled state. And it can't start. That shouldn't be like this.


Event Viewer helps to identify a dependency that block Workstation service - "mrxsmb10" service.


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 #1
  1. Open Registry "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\DependOnService"
  2. Delete "mrxsmb10" string and save
  3. Reboot



Solution #2
  1. Run CMD as Administrator
  2. Run "sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi"
  3. Run "sc.exe config mrxsmb10 start= disabled"
  4. Reboot

SMB v1 is unsecured protocol. My recommendation - disable SMB v1.
Run these commands in Powershell (from administrator):
Disable-WindowsOptionalFeature -Online -FeatureNameSMB1Protocol
Set-SmbServerConfiguration -EnableSMB1Protocol $false
Set-SmbServerConfiguration -EnableSMB2Protocol $true
sc.exe config mrxsmb20 start= auto

No comments:

Post a Comment