diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index ea28bbc..e216fc0 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -80,7 +80,7 @@ fi # Disable coredump umask 022 unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | sudo tee /etc/security/limits.d/30-disable-coredump.conf -mkdir -p /etc/systemd/coredump.conf.d +sudo mkdir -p /etc/systemd/coredump.conf.d unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf umask 077 diff --git a/Fedora-Workstation-40.sh b/Fedora-Workstation-40.sh index 85c19a9..78a8adc 100644 --- a/Fedora-Workstation-40.sh +++ b/Fedora-Workstation-40.sh @@ -91,7 +91,7 @@ fi # Disable coredump umask 022 unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | sudo tee /etc/security/limits.d/30-disable-coredump.conf -mkdir -p /etc/systemd/coredump.conf.d +sudo mkdir -p /etc/systemd/coredump.conf.d unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf umask 077 diff --git a/Proxmox-8.sh b/Proxmox-8.sh index d0068db..a3c8a01 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -85,9 +85,9 @@ update-initramfs -u # Disable coredump umask 022 -unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | sudo tee /etc/security/limits.d/30-disable-coredump.conf +unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | tee /etc/security/limits.d/30-disable-coredump.conf mkdir -p /etc/systemd/coredump.conf.d -unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf +unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | tee /etc/systemd/coredump.conf.d/disable.conf umask 077 # Harden SSH diff --git a/RHEL-9.sh b/RHEL-9.sh index 1967a4e..69c9e03 100644 --- a/RHEL-9.sh +++ b/RHEL-9.sh @@ -69,7 +69,7 @@ sudo grubby --update-kernel=ALL --args='mitigations=auto,nosmt spectre_v2=on spe # Disable coredump umask 022 unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | sudo tee /etc/security/limits.d/30-disable-coredump.conf -mkdir -p /etc/systemd/coredump.conf.d +sudo mkdir -p /etc/systemd/coredump.conf.d unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf umask 077 diff --git a/Ubuntu-23.10-Desktop.sh b/Ubuntu-23.10-Desktop.sh index b39c5f6..5b2c6ce 100644 --- a/Ubuntu-23.10-Desktop.sh +++ b/Ubuntu-23.10-Desktop.sh @@ -69,7 +69,7 @@ sudo update-initramfs -u # Disable coredump umask 022 unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | sudo tee /etc/security/limits.d/30-disable-coredump.conf -mkdir -p /etc/systemd/coredump.conf.d +sudo mkdir -p /etc/systemd/coredump.conf.d unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf umask 077 diff --git a/Ubuntu-24.04-Server.sh b/Ubuntu-24.04-Server.sh index fefa862..f26c64d 100644 --- a/Ubuntu-24.04-Server.sh +++ b/Ubuntu-24.04-Server.sh @@ -70,7 +70,7 @@ sudo update-initramfs -u # Disable coredump umask 022 unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/security/limits.d/30-disable-coredump.conf | sudo tee /etc/security/limits.d/30-disable-coredump.conf -mkdir -p /etc/systemd/coredump.conf.d +sudo mkdir -p /etc/systemd/coredump.conf.d unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf umask 077