From 0c0a8e626355a7a9907b06a8be4f98896efaa05a Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 21 Apr 2021 18:18:27 +0200 Subject: [PATCH] bundles/scansnap: chown files to nobody-nogroup --- bundles/scansnap/files/scan.sh | 2 ++ nodes/home/nas.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/scansnap/files/scan.sh b/bundles/scansnap/files/scan.sh index 751acf1..7b86a41 100644 --- a/bundles/scansnap/files/scan.sh +++ b/bundles/scansnap/files/scan.sh @@ -13,4 +13,6 @@ ocrmypdf -l deu ${OUTFILE}.pdf ${OUTFILE}.OCR.pdf rm -f ${OUTFILE}_*.tiff rm -f ${OUTFILE}.pdf +chown nobody:nogroup "${OUTFILE}.OCR.pdf" + mv "${OUTFILE}.OCR.pdf" "/srv/scansnap/${DATE}.pdf" diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 1828969..1cc12ef 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -119,9 +119,7 @@ nodes['home.nas'] = { '172.19.138.0/24(ro,all_squash,anonuid=65534,anongid=65534,no_subtree_check)', }, '/srv/scansnap': { - # uid 121 -> saned - # gid 120 -> scanner - '172.19.138.0/24(rw,all_squash,anonuid=121,anongid=120,no_subtree_check)', + '172.19.138.0/24(rw,all_squash,anonuid=65534,anongid=65534,no_subtree_check)', }, }, },