Hide a folder in Samba

To hide a folder in Samba you must edit the smb.conf file (/etc/samba/smb.conf). ┬áTo hide a folder globally put the following into the [global] section or into the relevant share section if it’s just for a single share.

eg. To hide Lost+Found in all Samba shares

hide files = /lost+found/

Reboot the Samba service or wait for a minute until the configuration reloads automatically.

Hidden folder in Samba still showing

Open a share and check that the folder is hidden. This only marks the folder as hidden so if ‘Show hidden files and folders’ is ticked, the folder will still be visible but slightly transparent. Untick this option and the folder will be hidden from view.

One thought on “Hide a folder in Samba

Leave a Reply

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.