aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create5
1 files changed, 3 insertions, 2 deletions
diff --git a/kvmx-create b/kvmx-create
index 43e5a82..70812ff 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -460,8 +460,9 @@ EOF
$APT_INSTALL sudo -y
echo "%sudo ALL=NOPASSWD: ALL" | $SUDO tee $WORK/etc/sudoers.d/local > /dev/null
- # Root password
- echo 'root:root' | kvmx_sudo_run chroot $WORK/ chpasswd
+ # Scrambled root password
+ #echo 'root:root' | kvmx_sudo_run chroot $WORK/ chpasswd
+ echo "root:$(head -c 40 /dev/urandom | base64)" | kvmx_sudo_run chroot $WORK/ chpasswd
# Initial user
if ! grep -q "^$user:" $WORK/etc/passwd; then