summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-01-01 16:04:59 +0100
committerPeter Palfrader <peter@palfrader.org>2016-01-01 16:04:59 +0100
commit690fc3cbe0e830a7fc7e8653b2a4808670362687 (patch)
tree9ca940ac7bd9683baf71d7da02c34b8d4637d191
parenta2b7d3d8377e767c73371e3aafbf84d40fa78d27 (diff)
avoid slashes and plus signs in passwords
-rwxr-xr-xinstall-VM-grongo2
1 files changed, 1 insertions, 1 deletions
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