Update samba.sh

Fixed: user was unable to write to home share
This commit is contained in:
Jonathan Fenske 2018-04-30 16:45:28 -05:00 committed by GitHub
parent 5823638903
commit ed0f55b328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 </dev/null
fi
fi