From 0d73a62669da1e760d8ec9823022def532b4a5b3 Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Fri, 27 Dec 2013 15:25:08 -0800 Subject: [PATCH] Make sure the umask is 022. Without this various things get installed as root and are unusable once running as a normal user. This is unfortunately the case of all Python packages, as they don't use `install' or a package format that preserves file permissions. This also affects various other random files created during initial setup, such as /etc/polkit-1/rules.d/50-libvirt-$USER.rules and others. --- stack.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack.sh b/stack.sh index d54a652928..19ab903b5c 100755 --- a/stack.sh +++ b/stack.sh @@ -98,6 +98,9 @@ export_proxy_variables # Destination path for installation ``DEST`` DEST=${DEST:-/opt/stack} +# We are going to be installing various packages that need to be +# world-readable, so ensure our umask isn't too strict. +umask 022 # Sanity Check # ------------