diff options
author | Peter Palfrader <peter@palfrader.org> | 2016-01-01 16:04:59 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-01-01 16:04:59 +0100 |
commit | 690fc3cbe0e830a7fc7e8653b2a4808670362687 (patch) | |
tree | 9ca940ac7bd9683baf71d7da02c34b8d4637d191 /install-VM-grongo | |
parent | a2b7d3d8377e767c73371e3aafbf84d40fa78d27 (diff) |
avoid slashes and plus signs in passwords
Diffstat (limited to 'install-VM-grongo')
-rwxr-xr-x | install-VM-grongo | 2 |
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 |