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

[global]
....
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.

1 Comment

Leave a Reply

Your email address will not be published.

Linux
46
Samba 4 Domain Controller on Ubuntu Server 12.04 LTS

This tutorial will guide you through setting up a Samba 4 Domain Controller using Active Directory on Ubuntu Server 12.04. Samba 4 is the first version of Samba that have full Active Directory support and will allow newer versions of Windows (7 and 8) to join the domain without any …

Linux
3
Samba 4.0 released

Samba 4.0 has been released which includes full Active Directory support. I will be looking into running a small domain controller and will post a few tutorials showing how to get everything setup with both Windows and Linux. Official wiki HOWTO here: https://wiki.samba.org/index.php/Samba4/HOWTO

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.

Close