From 545be9f9987708d5672bb736c3d41e32640a059d Mon Sep 17 00:00:00 2001 From: Robert Gingras Date: Mon, 10 Nov 2025 10:44:05 -0500 Subject: [PATCH 1/2] ignore ssh quoting semantics by spliting commands --- .../var-lib-vz-snippets/create-container-new.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh index 9f3e9579..d896dda1 100755 --- a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh +++ b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh @@ -240,7 +240,8 @@ if [ -f "/var/lib/vz/snippets/container-public-keys/$PUB_FILE" ]; then fi fi -run_pct_exec $CONTAINER_ID bash -c 'passwd -d root; passwd -l root' > /dev/null 2>&1 +run_pct_exec $CONTAINER_ID passwd -d root > /dev/null 2>&1 +run_pct_exec $CONTAINER_ID passwd -l root > /dev/null 2>&1 CONTAINER_IP="" attempts=0 @@ -356,4 +357,4 @@ if [[ -n "${CMD[*]}" ]]; then tmux new-session -d -s "$CONTAINER_NAME" "$QUOTED_CMD" fi -exit 0 \ No newline at end of file +exit 0 From dc6fca300bdb07ff11e6f9115b08f5b3949130b6 Mon Sep 17 00:00:00 2001 From: Robert Gingras Date: Mon, 10 Nov 2025 10:44:47 -0500 Subject: [PATCH 2/2] Ignore ssh quoting semantics by spliting commands (2/2) --- .../intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh index 89eefbca..cfd76b4b 100755 --- a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh +++ b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh @@ -136,7 +136,8 @@ if [ -f "/var/lib/vz/snippets/container-public-keys/$PUB_FILE" ]; then fi # Generate a random root password for the container -pct exec $CONTAINER_ID -- bash -c 'passwd -d root; passwd -l root' > /dev/null 2>&1 +pct exec $CONTAINER_ID -- passwd -d root > /dev/null 2>&1 +pct exec $CONTAINER_ID -- passwd -l root > /dev/null 2>&1 CONTAINER_IP="" attempts=0