Skip to content
Snippets Groups Projects
Commit 2a66fae2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Fix stray permissions

parent ec486586
No related branches found
No related tags found
No related merge requests found
...@@ -488,6 +488,10 @@ function disable_ctrl_alt_del { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment