From 0e48c164638be70b82c14cfa498d8bb8a761ba93 Mon Sep 17 00:00:00 2001 From: Faraz Fallahi Date: Thu, 30 Mar 2017 07:14:11 -0500 Subject: [PATCH] Disable creation of Thumbs.db (#51) * Disable creation of Thumbs.db and desktop.ini and a few others * Add .AppleDouble * Disable creation of Thumbs.db #51 (tweaked) --- samba.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index 1194d8f..f298e67 100755 --- a/samba.sh +++ b/samba.sh @@ -76,7 +76,9 @@ share() { local share="$1" path="$2" browsable=${3:-yes} ro=${4:-yes} \ echo " browsable = $browsable" >>$file echo " read only = $ro" >>$file echo " guest ok = $guest" >>$file - echo " veto files = /._*/.DS_Store/" >>$file + echo -n "   veto files = /._*/.apdisk/.AppleDouble/.DS_Store/" >>$file + echo -n ".TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/" >>$file + echo "Network Trash Folder/Temporary Items/Thumbs.db/" >>$file echo " delete veto files = yes" >>$file [[ ${users:-""} && ! ${users:-""} =~ all ]] && echo " valid users = $(tr ',' ' ' <<< $users)" >>$file