cannot hide hidden files in SMB shares

tobo

Dabbler
Joined
Feb 6, 2015
Messages
32
Hi,

I have a share which is accessed via AFP and CIFS. When I browse it with a Mac, all these hidden files are created, in my case it's especially the preview files for pictures which I want to get rid of (starting with "._")

I tried several things to hide these files in CIFS shares. So I added in the auxiliary parameters (tried for the SMB servicce as well as for that specific share)

veto files = /Temporary Items/.DS_Store/.AppleDB/.TemporaryItems/.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/.Spotlight/.Trashes/.fseventd/._*/
delete veto files = yes
hide dot files = yes

I also activated and de-activated the "show hidden files" option, and restarted the SMB service as well as the server itself. Still, files starting with ._ show up in the mounted share on the client. What can I do?

I am using the most recent version of FreeNAS.

thanks in advance!
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Hi,

I have a share which is accessed via AFP and CIFS. When I browse it with a Mac, all these hidden files are created, in my case it's especially the preview files for pictures which I want to get rid of (starting with "._")

I tried several things to hide these files in CIFS shares. So I added in the auxiliary parameters (tried for the SMB servicce as well as for that specific share)

veto files = /Temporary Items/.DS_Store/.AppleDB/.TemporaryItems/.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/.Spotlight/.Trashes/.fseventd/._*/
delete veto files = yes
hide dot files = yes

I also activated and de-activated the "show hidden files" option, and restarted the SMB service as well as the server itself. Still, files starting with ._ show up in the mounted share on the client. What can I do?

I am using the most recent version of FreeNAS.

thanks in advance!
Post output of 'testparm -s'.
 

tobo

Dabbler
Joined
Feb 6, 2015
Messages
32
Here's the output:
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Load smb config files from /usr/local/etc/smb4.conf

...
Processing section "[photo]"
...
Loaded services file OK.

Server role: ROLE_STANDALONE
# Global parameters

[global]
aio max threads = 2
deadtime = 15
disable spoolss = Yes
dns proxy = No
dos charset = CP437
hostname lookups = Yes
kernel change notify = No
lm announce = Yes
load printers = No
logging = file
max log size = 51200
max open files = 469874
nsupdate command = /usr/local/bin/samba-nsupdate -g
obey pam restrictions = Yes
printcap name = /dev/null
security = USER
server min protocol = SMB2_02
server role = standalone server
server string = FreeNAS Server
time server = Yes
unix extensions = No
workgroup = HOME
idmap config *: range = 90000001-100000000
idmap config * : backend = tdb
acl allow execute always = Yes
create mask = 0666
delete veto files = Yes
directory mask = 0777
directory name cache size = 0
dos filemode = Yes
strict locking = No

veto files = /Temporary Items/.DS_Store/.AppleDB/.TemporaryItems/.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/.Spotlight/.Trashes/.fseventd/._*/

[photo]
aio write size = 0
path = "/mnt/palladium/storage/photo"
read only = No
vfs objects = zfs_space zfsacl streams_xattr
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Here's the output:

[photo]
aio write size = 0
path = "/mnt/palladium/storage/photo"
read only = No
vfs objects = zfs_space zfsacl streams_xattr
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
Can you PM me the full output?
 
Top