From 6cd706b33d344f6a068c0b83155b29116f4efd00 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Sat, 11 Apr 2026 10:42:56 -0400 Subject: [PATCH] lxc patch 9 --- home/scripts/lxc/lab-create.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/scripts/lxc/lab-create.sh b/home/scripts/lxc/lab-create.sh index 5cf3793..caef912 100644 --- a/home/scripts/lxc/lab-create.sh +++ b/home/scripts/lxc/lab-create.sh @@ -65,7 +65,8 @@ cat "$KEYFILE" | lxc-attach --clear-env -n "$CONTAINER" -- /bin/bash -c " # create host user # useradd -m -s /bin/bash -G labmates "$USER" 2>/dev/null || true -useradd -m -s /bin/bash -G labmates -U "$USER" 2>/dev/null || true +# useradd -m -s /bin/bash -G labmates -U "$USER" 2>/dev/null || true +useradd -m -s /run/current-system/sw/bin/bash -G labmates -U "$USER" 2>/dev/null || true mkdir -p "/home/${USER}/.ssh" cp "$KEYFILE" "/home/${USER}/.ssh/authorized_keys" chown -R "${USER}:" "/home/${USER}/.ssh"