From ed0f55b3282a457306455d32f6405768ecaa467b Mon Sep 17 00:00:00 2001 From: Jonathan Fenske Date: Mon, 30 Apr 2018 16:45:28 -0500 Subject: [PATCH] Update samba.sh Fixed: user was unable to write to home share --- samba.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index d8d1800..3f0c26d 100755 --- a/samba.sh +++ b/samba.sh @@ -101,6 +101,9 @@ share() { local share="$1" path="$2" browsable="${3:-yes}" ro="${4:-yes}" \ echo -n ".TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/" >>$file echo "Network Trash Folder/Temporary Items/Thumbs.db/" >>$file echo " delete veto files = yes" >>$file + [[ $share == "homes" ]] && + echo " force user = %S" >>$file && + echo " force group = %S" >>$file [[ ${users:-""} && ! ${users:-""} =~ all ]] && echo " valid users = $(tr ',' ' ' <<< $users)" >>$file [[ ${admins:-""} && ! ${admins:-""} =~ none ]] && @@ -243,4 +246,4 @@ elif ps -ef | egrep -v grep | grep -q smbd; then else [[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D exec ionice -c 3 smbd -FS