From 690fc3cbe0e830a7fc7e8653b2a4808670362687 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 1 Jan 2016 16:04:59 +0100 Subject: avoid slashes and plus signs in passwords --- install-VM-grongo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install-VM-grongo') diff --git a/install-VM-grongo b/install-VM-grongo index 39d5446..28cf566 100755 --- a/install-VM-grongo +++ b/install-VM-grongo @@ -272,7 +272,7 @@ EOF chroot . update-grub rm -v dev/sda* -rootpw="$(head -c 12 /dev/urandom | base64)" +rootpw="$(head -c 18 /dev/urandom | base64 | tr -d +/ | cut -b 1-16)" echo "root:$rootpw" | chroot . chpasswd ### install ssh -- cgit v1.2.3