IP Address: 38.107.191.100
Hostname: 38.107.191.100

 

Hiding Files and Folders with Samba

How can I hide files and folders using Samba?

Save to del.icio.us


Under certain circumstances, we need to ensure that a user cannot see or access a file or directory from a share in Samba.

As an example, let say we want to prevent the user from seeing a file named README, and a directory named DATA from a share entitled share.  To accomplish this we need to modify the /etc/samba/smb.conf file and add an entry “veto files”.  Each entry for this option must begin, end, or be separated from another with a slash ( / ).

[share]
path = /home/share
browseable = yes
guest ok = yes
writeable = yes
case sensitive = no
veto files = /README/DATA/

Restart Samba with the command service smb restart, and the file /server/share/README and directory /server/share/DATA should no longer be visible.

Sponsored Ads:

Big Image

Ad Space

Random Articles:

Restore Windows XP ZIP association

How do I restore Windows XP ZIP file association?

Disable Desktop Cleanup Wizard

How can I disable the Desktop Cleanup Wizard prompt?

Recent Articles:

Outbound Call Problems with Cisco Call Manager

Users unable to make outbound 10 digit calls when using MGCP

Reset Websense Manager Password

How can I reset the password for the WebsenseAdministrator?

Disabling SSLv2

How can I disable SSL version 2 in Apache and IIS?