From 926715187e391b41b6dcc8d6025ef0be624e92c0 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Tue, 10 Sep 2019 15:57:08 +0100 Subject: [PATCH] Remove passwords after the script is done --- scripts/install_client.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/install_client.sh b/scripts/install_client.sh index a1abaff14..aefed7236 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -9,13 +9,6 @@ SCRIPT_DIR="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" cd $SCRIPT_DIR . set.sh -# Set root password -passwd root - -# Remove user password -passwd -d student -cp /etc/shadow /etc/shadow- - SSH_PORT=521 DISK=$(lsblk -o tran,kname,hotplug,type,fstype -pr | grep -e nvme -e sata | @@ -78,4 +71,9 @@ rm -rf /tmp/system update-initramfs -u +# Remove root & user password +passwd -d root +passwd -d student +cp /etc/shadow /etc/shadow- + . clean.sh