From a70ab7d64dc26c56a33e294e27cb90a5f6c98bb7 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Sat, 11 Apr 2026 10:24:57 -0400 Subject: [PATCH] lxc patch 6 --- 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 0616f01..0ae03e0 100644 --- a/home/scripts/lxc/lab-create.sh +++ b/home/scripts/lxc/lab-create.sh @@ -64,7 +64,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 "$USER" 2>/dev/null || true +useradd -m -s /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}:${USER}" "/home/${USER}/.ssh"