PDA

View Full Version : Sonos fails to mount Samba share /music



lpoulsen
10th October 2017, 06:17 PM
I have a largish Sonos system at my house. For the last 1-2 months Sonos won't mount my music library, which lives on my Fedora server. After much searching I think this must be an incompatibility of SMB protocol versions.

I have learned (just yesterday) that Sonos ONLY implements SMB1 (a.k.a. LANMAN1) version of SMB. Following the WannaCry attack, the Linux community appears to have moved aggressively to curtail the use of SMB1.

I am running F26 with samba-4.6.8-0-fc26. I suspect that a recent system upgrade has turned SMB1 off by default (essentially compiling in "server min protocol = SMB2").

Is this correct?

If so, how can I turn SMB1 back on? I have tried without success to put an explicit "server min protocol = SMB1" or "server min protocol = LANMAN1" in /etc/samba/smb.conf, but nothing changes.

I hate to have to buy a separate NAS to host this one share; especially because I live behind a NAT firewall with port 445 forwarded to the Fedora system; this would leave me unable to connect to the music library when I am off-site..

kldixon
10th October 2017, 06:35 PM
https://forums.fedoraforum.org/showthread.php?t=315709
https://www.theregister.co.uk/2017/09/04/linux_4_13_released/
http://lkml.iu.edu/hypermail/linux/kernel/1709.0/01021.html


$ man mount.cifs
$ man fstab

lpoulsen
11th October 2017, 12:36 AM
1) The share is hosted on my Linux server.
2) It can be mounted by every other system I have, using the same credentials
3) The system that fails to mount it is my house's sound system, built by SONOS
(see http://www.sonos.com/). This is an embedded system; it may run Linux
under the hood, but if so, no Linux user interface is exposed.

So the Linux commands suggested by kldixon do not help me.

However, I found out that the fix consists of adding the following line to /etc/samba/smb.conf
(in the [global] section):
ntlm auth = yes