I have a Raspberry Pi which is using samba
and ntfs-3g
in order to share a USB external hard drive on my home network. On the hard drive, there are some files which are marked with the "Hidden" Windows file attribute. However, when I access the share on a Windows PC, the files do not show as hidden. As a result, I see many hidden files such as desktop.ini
, thumbs.db
, as well as directories like $RECYCLE.BIN
and System Volume Information
, even though my Windows setting in Folder Options is set to not show hidden files.
I know that samba
is not correctly transferring the Hidden attribute because if I view the Properties of a file that should be hidden, the Hidden check-box is not selected:
These are the current contents of my smb.conf
file:
#### GLOBAL CONFIG #####
workgroup = WORKGROUP
netbios name = raspberrypi
server string = %h
wins support = yes
dns proxy = no
security = share
null passwords = yes
guest account = nobody
interfaces = eth0 lo
bind interfaces only = yes
#### PUBLIC SHARE #####
[Mazda6]
comment = Media Drive
path = /media/HDD
browseable = yes
guest ok = yes
writeable = yes
public = yes
available = yes
create mask = 0666
directory mask = 0777
How can I have files that are marked with the Hidden file attribute on the NTFS drive to be shown as Hidden when viewed through the samba
share on a Windows PC?