From cdd9be6aae392beaf0ca49e6eae5408d43705dd8 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Wed, 27 Apr 2022 20:46:08 +0200 Subject: [PATCH] Set new password definition at setup --- setup.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index 8836c54..58b0272 100644 --- a/setup.sh +++ b/setup.sh @@ -30,6 +30,8 @@ add_users() { echo "Adding users" useradd -U -G sudo -m -s /bin/bash $user chmod 700 /home/$user + echo "Let's define a password for $user as we are about to run sudo with it. It can of course be changed after setup." + passwd $user } get_sync() { @@ -99,14 +101,11 @@ set_cpufreq echo "" echo "We're all good here!" echo "You should now:" -echo "* set $user's password" echo "* lock root account" echo "* copy your SSH config file" echo "* reboot the SBC" echo "And perhaps:" +echo "* set a new password for $user" echo "* set htop at your convenience" echo "* remove password for sudo" # TODO we should automate that, with a flag -echo "* use below commands to edit SSH config:" -echo " sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config" -echo " sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config" exit 0