Browse Source

Fix root security breach, remove tty

pull/314/head
Xavier Petit 5 years ago
parent
commit
d192f1b1a1
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 13
      scripts/install_client.sh

13
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 <<EOF>> /etc/systemd/logind.conf
NAutoVTs=0
ReserveVT=N
EOF
# Remove user abilities
gpasswd -d student sudo
gpasswd -d student lpadmin

Loading…
Cancel
Save