Fix stray permissions

This commit is contained in:
Bob Mottram 2017-06-26 15:01:22 +01:00
parent ec48658600
commit 2a66fae204
1 changed files with 4 additions and 0 deletions

View File

@ -488,6 +488,10 @@ function disable_ctrl_alt_del {
} }
function lockdown_permissions { function lockdown_permissions {
if [ -d /root/.npm ]; then
find /root/.npm -name package.json -exec chmod 700 {} \;
fi
# All commands owned by root # All commands owned by root
if [ -d /root/.cache/yarn ]; then if [ -d /root/.cache/yarn ]; then
rm -rf /root/.cache/yarn rm -rf /root/.cache/yarn