Update samba.sh
Fixed: user was unable to write to home share
This commit is contained in:
parent
5823638903
commit
ed0f55b328
5
samba.sh
5
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 </dev/null
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user