From d277c510fe52fd371241f8a3b04e9b880c3fad74 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 7 Mar 2021 20:12:33 -0700 Subject: [PATCH] install.sh: make sure installed files have correct permissions If the user building girocco and running the 'make install' command has an excessively strict umask (e.g. 0077), files that have been created may lack the needed read/execute access for group/other as required for proper functioning of the web/chroot facilities. Make sure the necessary permissions are always set during the "finalizing permissions" stage. Signed-off-by: Kyle J. McKay --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 1177059..6aae1b0 100755 --- a/install.sh +++ b/install.sh @@ -1291,6 +1291,8 @@ done echo "*** Finalizing permissions and moving into place..." +chmod -R a+r "$basedir" "$webroot" "$cgiroot" >/dev/null 2>&1 || : +find "$basedir" "$webroot" "$cgiroot" -type f -perm -u=x -exec chmod a+x '{}' + >/dev/null 2>&1 || : chown -R -h "$cfg_mirror_user""$owngroup" "$basedir" "$webroot" "$cgiroot" [ -z "$cfg_httpspushurl" ] || chown -R -h "$cfg_mirror_user""$owngroup" "$cfg_certsdir" -- 2.11.4.GIT