From 2a66fae2047cc01d3dabe30196fec068777c2acc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 26 Jun 2017 15:01:22 +0100 Subject: [PATCH] Fix stray permissions --- src/freedombone-utils-setup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 629e8ba2..7d8d6959 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -488,6 +488,10 @@ function disable_ctrl_alt_del { } function lockdown_permissions { + if [ -d /root/.npm ]; then + find /root/.npm -name package.json -exec chmod 700 {} \; + fi + # All commands owned by root if [ -d /root/.cache/yarn ]; then rm -rf /root/.cache/yarn