From 83560c217278edfc73cbd9de859ee511d889cb8c Mon Sep 17 00:00:00 2001 From: Christopher Hopper Date: Thu, 17 Mar 2022 13:15:05 +1100 Subject: [PATCH] Invoke chmod once per directory to fix permissions --- images/commons/fix-permissions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/images/commons/fix-permissions b/images/commons/fix-permissions index 72254a8a7..5bd2b62cf 100755 --- a/images/commons/fix-permissions +++ b/images/commons/fix-permissions @@ -2,5 +2,4 @@ # Fix permissions on the given directory to allow group read/write of # regular files and execute of directories. find -L "$1" -exec chgrp 0 {} + -find -L "$1" -exec chmod g+rw {} + -find -L "$1" -type d -exec chmod g+x {} + +find -L "$1" -exec chmod g+rwX {} +