From 6a6b7756315848a05297f2c26cffec0ff1cab692 Mon Sep 17 00:00:00 2001 From: Tommy Date: Thu, 7 Dec 2023 16:44:55 -0700 Subject: [PATCH] Disable ctrl-alt-del Signed-off-by: Tommy --- Fedora-Workstation-38.sh | 5 ++--- GCP-Debian-11.sh | 3 +++ Proxmox-8.sh | 3 +++ RHEL-Server-9.sh | 3 +++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Fedora-Workstation-38.sh b/Fedora-Workstation-38.sh index 32b1347..659d342 100644 --- a/Fedora-Workstation-38.sh +++ b/Fedora-Workstation-38.sh @@ -24,9 +24,8 @@ unpriv(){ sudo -u nobody "$@" } -# Moving to the home directory -#Note that I always use /home/${USER} because gnome-terminal is wacky and sometimes doesn't load the environment variables in correctly (Right click somewhere in nautilus, click on open in terminal, then hit create new tab and you will see.) -cd /home/"${USER}" || exit +# Compliance +sudo systemctl disable --now ctrl-alt-del.target # Setting umask to 077 umask 077 diff --git a/GCP-Debian-11.sh b/GCP-Debian-11.sh index f1d01a7..9bf8648 100644 --- a/GCP-Debian-11.sh +++ b/GCP-Debian-11.sh @@ -22,6 +22,9 @@ unpriv(){ sudo -u nobody "$@" } +# Compliance +sudo systemctl disable --now ctrl-alt-del.target + # Setup NTS sudo rm -rf /etc/chrony/chrony.conf unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | sudo tee /etc/chrony/chrony.conf diff --git a/Proxmox-8.sh b/Proxmox-8.sh index f456113..10f4d50 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -20,6 +20,9 @@ output(){ echo -e '\e[36m'"$1"'\e[0m'; } +# Compliance +sudo systemctl disable --now ctrl-alt-del.target + # Setup NTS rm -rf /etc/chrony/chrony.conf curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | tee /etc/chrony/chrony.conf diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index e678a05..d4a759e 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -24,6 +24,9 @@ unpriv(){ sudo -u nobody "$@" } +# Compliance +sudo systemctl disable --now ctrl-alt-del.target + # Setup NTS sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf