Ubuntu – make samba share visible in Windows “Network”

sambawindows

tl;dr Shared files are accessible, but server isn't visible in Windows listing.

I've got printers and some directories shared via Samba, but they do not appear in the listing when a Windows user opens their "Network". They can type "\computername\" and hit enter to see the shared printers and directories, but I'd like to make it easy to see the server listed along with other icons in their Network panel.

This used to work (ubuntu 13-something, I think), but recently (ubuntu 15.04) it doesn't. So something must have changed with the default configuration. It's probably a simple setting in smb.conf, I just don't know where to look. Any hints?

Best Answer

I want to add this here, in case someone else comes looking. The issue with network discovery is the old way was tied to SMB1. The new way WS-Discovery, does not yet appear to be implemented in SAMBA. Windows does not yet support Zerconf so AVAHI does not work for Windows.

Falling back to SMB1 while disabling SMB2/3 is not the answer.

Someone named stilez wrote an article describing the situation here: https://www.ixsystems.com/community/resources/how-to-kill-off-smb1-netbios-wins-and-still-have-windows-network-neighbourhood-better-than-ever.106/

And the article provides a link to a python script wsdd.py(https://github.com/christgau/wsdd/blob/master/src/wsdd.py), which provides the missing functionality. Running the script caused my SAMBA AD servers to instantly appear on Win 10 boxen.

Related Question