diff options
-rwxr-xr-x | kvmx-create | 5 |
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 |