This commit is contained in:
@ -19,7 +19,7 @@ if [ "${DOCKER_USER-}" ]; then
|
|||||||
|
|
||||||
sudo usermod --login "$DOCKER_USER" "$USER_HOME"
|
sudo usermod --login "$DOCKER_USER" "$USER_HOME"
|
||||||
sudo groupmod -n "$DOCKER_USER" "$USER_HOME"
|
sudo groupmod -n "$DOCKER_USER" "$USER_HOME"
|
||||||
sudo printf "user: $DOCKER_USER\ngroup: $DOCKER_USER\n" > /etc/fixuid/config.yml
|
#sudo printf "user: $DOCKER_USER\ngroup: $DOCKER_USER\n" > /etc/fixuid/config.yml
|
||||||
|
|
||||||
sudo chown -R "$DOCKER_USER":999 /home/coder
|
sudo chown -R "$DOCKER_USER":999 /home/coder
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ ssh-agent bash
|
|||||||
|
|
||||||
# We do this first to ensure sudo works below when renaming the user.
|
# We do this first to ensure sudo works below when renaming the user.
|
||||||
# Otherwise the current container UID may not exist in the passwd database.
|
# Otherwise the current container UID may not exist in the passwd database.
|
||||||
eval "$(fixuid -q)"
|
# eval "$(fixuid -q)"
|
||||||
|
|
||||||
su "$(id -un 1000)"
|
su "$(id -un 1000)"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user