diff --git a/entrypoint.sh b/entrypoint.sh index 35c6d66..c5e061c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,8 +43,8 @@ if [ "${DOCKER_USER-}" ]; then echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null # Unfortunately we cannot change $HOME as we cannot move any bind mounts # nor can we bind mount $HOME into a new home as that requires a privileged container. - sudo usermod --login "$DOCKER_USER" coder - sudo groupmod -n "$DOCKER_USER" coder + sudo usermod --login "$DOCKER_USER" root + sudo groupmod -n "$DOCKER_USER" root sudo sed -i "/coder/d" /etc/sudoers.d/nopasswd fi