1

[all variants] How to hide Samba shares upon volume dismount?

view story
linux-howto

http://ubuntuforums.org – I configured Samba server on a Linux machine and can browse its shares on Win7 PC and another Linux PC. But when I dismount a shared volume on Linux server, its still remain visible as a shared drive in Win Explorer - Network (I don't assign a drive letter to it), and I can browse this empty share folder. If I stop Samba, the shared drives disappear - at times after reloading Explorer - or if not, the folders are no longer browsable. So my question is, how to configure Samba server via terminal to automatically hide shared folders on a client PC (Windows or Linux), when the volume is u (Hardware)