Hiding folders and files with Samba
In this recipe we will learn how to hide files and folders with Samba.
Managing a network often implies the need to hide files and folders from users for a wide variety of reasons. It is the purpose of this recipe to show you how easily this can be achieved.
Getting ready
To complete this recipe you will require a working installation of the CentOS 6 operating system with root privileges. It is assumed that Samba is already installed and it is configured to run as a standalone server.
How to do it...
The typical method of hiding files is to use a dot (.) as the first character in the filename. However, in circumstances where a user has specified the option to see such files, then our intentions can be circumvented. It is for this reason that we will also be using the veto files
option.
To begin, log in as root and simply open your current Samba configuration file by typing:
vi /etc/samba/smb.conf
Within the
[global]
section of the Samba configuration file, add...