From d0b2e2fb6117fbd25d8d71edefadc25b92248d05 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 15 Nov 2020 17:33:25 +0100 Subject: [PATCH] nodes/home.nas: fix permissions cronjobs --- nodes/home/nas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 1711ceb..e85ed97 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -32,8 +32,8 @@ nodes['home.nas'] = { 'cron': { # Ensure every user is able to read and write to the NAS dataset. 'chown_nas': '0 3 * * * root chown -R :nas /storage/nas/', - 'chmod_nas_group': '0 4 * * * root chmod -R g+rw /storage/nas', - 'chmod_nas_others': '0 4 * * * root chmod -R o-rwx /storage/nas', + 'chmod_nas_directories': '0 4 * * * root find /storage/nas/ -type d -exec chmod 0775 {} \;', + 'chmod_nas_files': '0 4 * * * root find /storage/nas/ -type f -exec chmod 0664 {} \;', }, 'groups': { 'nas': {},