Skip to content

Commit 04f7822

Browse files
authored
fix: Samba permissions (#263)
1 parent 4f5a54d commit 04f7822

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM scratch
2-
COPY --from=qemux/qemu-arm:3.02 / /
2+
COPY --from=qemux/qemu-arm:3.03 / /
33

44
ARG VERSION_ARG="0.00"
55
ARG DEBCONF_NOWARNINGS="yes"

src/samba.sh

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ for dir in "${dirs[@]}"; do
9999
addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
100100
done
101101

102+
# Fix Samba permissions
103+
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock
104+
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores
105+
102106
if ! smbd; then
103107
error "Samba daemon failed to start!"
104108
smbd -i --debug-stdout || true

0 commit comments

Comments
 (0)