Page 1 of 1

Prevent storage of .DS_Store, etc.?

PostPosted: Mon Nov 27, 2017 2:05 am
by dhoelzer
Is there any way to prevent the storage of .DS_Store and the other miscellaneous files that Macs create? I tried adding a veto to the samba configuration, but it doesn't seem to have any effect.

Thanks!

Re: Prevent storage of .DS_Store, etc.?

PostPosted: Mon Nov 27, 2017 8:24 am
by Jocko
Hi dhoelzer,

Yes, we can do it. Your issue is samba conf is overwritten at each time you edit an user account or a share.

So I go to add some veto directives by default. Can you confirm me the list. I assume it is : .DS_Store ; .Trashes ; .TemporaryItems

Re: Prevent storage of .DS_Store, etc.?

PostPosted: Mon Nov 27, 2017 11:09 am
by dhoelzer
Jocko wrote:Hi dhoelzer,

Yes, we can do it. Your issue is samba conf is overwritten at each time you edit an user account or a share.

So I go to add some veto directives by default. Can you confirm me the list. I assume it is : .DS_Store ; .Trashes ; .TemporaryItems



Yes, that's the list of what I'm rejecting... Also, ._*

How do I set it up so that the vetos are re-added every time?

Re: Prevent storage of .DS_Store, etc.?

PostPosted: Mon Nov 27, 2017 11:32 am
by Jocko
Ok,

dhoelzer wrote:How do I set it up so that the vetos are re-added every time?
You can not as smb.conf file it created by running a firmware script.

So I go to edit it for including them and send you to see if your issue is fixed

---edit---
I need to do the same thing with afp server

Re: Prevent storage of .DS_Store, etc.?

PostPosted: Mon Nov 27, 2017 2:23 pm
by dhoelzer
Jocko wrote:Ok,

dhoelzer wrote:How do I set it up so that the vetos are re-added every time?
You can not as smb.conf file it created by running a firmware script.

So I go to edit it for including them and send you to see if your issue is fixed

---edit---
I need to do the same thing with afp server


Thank you very much! Which firmware script is it?

Re: Prevent storage of .DS_Store, etc.?

PostPosted: Tue Nov 28, 2017 10:32 am
by Jocko
Hi dhoelzer,

I sent you a pm to install a patch.

Check if it works like you want.

Re: Prevent storage of .DS_Store, etc.?

PostPosted: Wed Dec 27, 2017 12:00 am
by dhoelzer
Jocko wrote:Hi dhoelzer,

I sent you a pm to install a patch.

Check if it works like you want.


Thanks for the patch! Sorry for the delay. I've been away for a few weeks.

Still, I'd be very interested to know where I can edit the smb.conf to permanently filter these files.

In the meantime, it looks like I'll have to set up a cronjob to delete them.