diff --git a/base-image/Dockerfile b/base-image/Dockerfile
index 385b2d3b..0cab6dda 100644
--- a/base-image/Dockerfile
+++ b/base-image/Dockerfile
@@ -184,6 +184,8 @@ ONBUILD RUN echo "Checking for pip 'requirements.txt'..." \
         ${NB_PYTHON_PREFIX}/bin/pip install --no-cache -r requirements.txt \
         ; fi
 
+ONBUILD USER root
+
 ONBUILD COPY resources/layer-cleanup.sh /usr/local/bin
 ONBUILD RUN chmod +x /usr/local/bin/layer-cleanup.sh
 
@@ -192,6 +194,7 @@ ONBUILD RUN for script in $(find "resources" -type f -name "install.sh"); do \
         echo "Executing $script"; \
         bash "$script"; \
         layer-cleanup.sh; \
+        chown -R ${NB_USER}:${NB_USER} ${HOME}; \
     done
 
 ONBUILD USER ${NB_USER}