How to allow Sonos access to sound files on Samba share on buster (newer openHabian)

openHabian 3.4.5

After several hours I’ve discovered how to allow Sonos (S1) to once again access a Samba share containing sound files on openHab. This had been working fine on OH 3.3.0, but since I created a new setup with a more recent openHabian based on Buster as preparation for upgrading to OH4, Sonos was no longer able to find sound files in the Samba share I’d created.

It appears that smb1, or NT1 as Samba calls it, is disabled by default in the newer version of Samba included with Buster (the newer Debian release on the latest openHabian), and yet Sonos S1 only uses smb1 (if you upgrade to S2 this problem goes away, apparently, but I’m not willing to do that right now.)

The solution is to add the following line to /etc/samba/smb.conf in the [global] section:

server min protocol = NT1