fix: Samba permissions

This commit is contained in:
Kroese 2025-03-03 21:31:07 +01:00 committed by GitHub
parent 974d087466
commit 4cbffd0679
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,6 +99,10 @@ for dir in "${dirs[@]}"; do
addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
done
# Fix Samba permissions
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores
if ! smbd; then
error "Samba daemon failed to start!"
smbd -i --debug-stdout || true