Browse Source

Remove passwords after the script is done

content-update
Xavier Petit 5 years ago
parent
commit
926715187e
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 12
      scripts/install_client.sh

12
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

Loading…
Cancel
Save