From b3ad98dabf8d14d59a21e6c578c6eef9e2335925 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Wed, 25 May 2022 16:11:11 +0200 Subject: [PATCH] Add password for creator user on arm64 --- arm64-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/arm64-build.sh b/arm64-build.sh index ab011b4..202aac0 100755 --- a/arm64-build.sh +++ b/arm64-build.sh @@ -20,6 +20,7 @@ sudo chroot mnt /bin/sh <<"EOT" usermod -l creator pi usermod -d /home/creator -m creator +sed -i 's/creator:\*:/creator:\$6\$saltsalt\$EamwjkVXAe1WqiTTXuzgsmljl5cpVewMLH3xl8TdvQ\/V4S9e30upeNz2bdLkG5\.H71TCEso5Nl0jpyZRx7xy6\/:/g' /etc/shadow sudo -u creator mkdir -p -m 700 /home/creator/.ssh sudo -u creator sh -c 'echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys' chmod 600 /home/creator/.ssh/authorized_keys