[Samba] Hide empty Samba shares?

Sam Bulka sambul7165 at gmail.com
Sat Sep 1 13:52:38 MDT 2012


When a partition mounted to a shared by Samba folder is dismounted, Samba  
keeps sharing that empty folder. It creates a security hazard, since files  
can still be saved to that empty folder, and overwritten next time (lost)  
when the original partition is auto mounted again to the same folder. Its  
also confusing for most users to browse empty shares - no normal person  
would understand why they are still there.

Is it possible to configure Samba to hide corresponding shares, once the  
attached drive is dismounted or switched off? If not, is there any reason  
or logic, why such basic functionality is not offered?


More information about the samba mailing list