Sonos and Samba on Ubuntu 20.04

November 02, 2020 — ~redtrumpet

Googling around, one easily finds a bunch of complaints, that Sonos devices only support SMBv1, which is pretty outdated and supposedly insecure. If you use a recent Samba installation, SMBv1 is disabled by default, e.g. in Ubuntu 20.04. Most posts claim that putting the line

ntlm auth = ntlmv1-permitted

in the Samba configuration /etc/samba/smb.conf will reenable SMBv1, so that your Sonos can access your music library. I have found that this does not work, at least with Ubuntu 20.04. Maybe something was different with 18.04?

To enable SMBv1 on Ubuntu 20.04, you can use the line

server min protocol = NT1

This works, and you don't even need the ntlm auth parameter.

Thanks to Nelson, who wrote about the same thing in this blog post.

tags: sonos, computers