diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 1625301f..34727efa 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -108,11 +108,20 @@ echo overlayroot=\"device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0\" > update-initramfs -u -# Remove root & user password -passwd -d root +# Lock root password +passwd -l root + +# Disable user password passwd -d student + cp /etc/shadow /etc/shadow- +# Remove tty +cat <> /etc/systemd/logind.conf +NAutoVTs=0 +ReserveVT=N +EOF + # Remove user abilities gpasswd -d student sudo gpasswd -d student lpadmin