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