From 9c942cf89eae72b8b1c37d870143f123796e6acb Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 12 Dec 2023 01:20:52 -0700 Subject: [PATCH] CtrlAltDelBurstAction=none Signed-off-by: Tommy --- Fedora-Workstation-38.sh | 1 + GCP-Debian-11.sh | 1 + Proxmox-8.sh | 1 + RHEL-Server-9.sh | 5 ++--- Ubuntu-22.04-Desktop.sh | 7 ++++--- Ubuntu-22.04-Server.sh | 7 ++++--- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Fedora-Workstation-38.sh b/Fedora-Workstation-38.sh index f20d61c..010d82d 100644 --- a/Fedora-Workstation-38.sh +++ b/Fedora-Workstation-38.sh @@ -28,6 +28,7 @@ unpriv(){ sudo systemctl mask ctrl-alt-del.target sudo systemctl mask debug-shell.service sudo systemctl mask kdump.service +echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf # Setting umask to 077 umask 077 diff --git a/GCP-Debian-11.sh b/GCP-Debian-11.sh index 3654be4..decd0cf 100644 --- a/GCP-Debian-11.sh +++ b/GCP-Debian-11.sh @@ -25,6 +25,7 @@ unpriv(){ # Compliance sudo systemctl mask ctrl-alt-del.target sudo systemctl mask debug-shell.service +echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf # Make home directory private chmod 700 /home/* diff --git a/Proxmox-8.sh b/Proxmox-8.sh index aee7dd5..1263c7e 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -23,6 +23,7 @@ output(){ # Compliance systemctl mask ctrl-alt-del.target systemctl mask debug-shell.service +echo 'CtrlAltDelBurstAction=none' | tee -a /etc/systemd/system.conf # Setup NTS rm -rf /etc/chrony/chrony.conf diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index d541e04..e50f44f 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -27,9 +27,8 @@ unpriv(){ # Compliance sudo systemctl mask ctrl-alt-del.target sudo systemctl mask debug-shell.service - -# Make home directory private -chmod 700 /home/* +sudo systemctl mask kdump.service +echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf # Setup NTS sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index bd807f6..f725943 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -26,6 +26,10 @@ unpriv(){ } #Compliance and updates +sudo systemctl mask ctrl-alt-del.target +sudo systemctl mask debug-shell.service +echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf + sudo ua enable usg sudo apt update -y sudo apt full-upgrade -y @@ -33,9 +37,6 @@ sudo apt install -y usg sudo apt autoremove -y sudo usg fix cis_level2_workstation -sudo systemctl mask ctrl-alt-del.target -sudo systemctl mask debug-shell.service - # Make home directory private chmod 700 /home/* diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index a5b6673..98e04c3 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -26,6 +26,10 @@ unpriv(){ } #Compliance and updates +sudo systemctl mask ctrl-alt-del.target +sudo systemctl mask debug-shell.service +echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf + sudo ua enable usg sudo apt update -y sudo apt full-upgrade -y @@ -33,9 +37,6 @@ sudo apt install -y usg curl libpam-pwquality sudo apt autoremove -y sudo usg fix cis_level2_server -sudo systemctl mask ctrl-alt-del.target -sudo systemctl mask debug-shell.service - # Make home directory private chmod 700 /home/*