Results 1 to 3 of 3

Thread: How to hide Samba shares upon volume dismount?

  1. #1
    Join Date
    Aug 2010
    Beans
    6

    How to hide Samba shares upon volume dismount?

    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 unmounted from the folder on the server? Does it require running some extra script or just editing Samba config file?

    As a separate question, how to delete obsolete Samba shares from Win Explorer after shutting down Linux machine or Samba daemon, if they persist? Any command I can run on Linux machine to do that?
    Last edited by zamar28; August 19th, 2012 at 09:45 PM.

  2. #2
    Join Date
    Aug 2010
    Beans
    6

    Re: How to hide Samba shares upon volume dismount?

    I'm surprised standard Samba package doesn't have such feature... Why leave empty folders around the network?

  3. #3
    Join Date
    Aug 2010
    Beans
    6

    Re: How to hide Samba shares upon volume dismount?

    Is there a dedicated Samba forum anywhere on the net? Or a mailing list?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •