From 34ca17f672452e0caa2c9b31d2cd3a5d9f490fc5 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 31 Dec 2023 14:40:36 -0700 Subject: [PATCH] Fix chmod 700 /home/* Signed-off-by: Tommy --- Fedora-Workstation-39.sh | 2 +- GCP-Debian-11.sh | 2 +- RHEL-Server-9.sh | 3 +++ Ubuntu-22.04-Desktop.sh | 2 +- Ubuntu-22.04-Server.sh | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Fedora-Workstation-39.sh b/Fedora-Workstation-39.sh index 48650f0..d3c0e5c 100644 --- a/Fedora-Workstation-39.sh +++ b/Fedora-Workstation-39.sh @@ -37,7 +37,7 @@ sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc echo 'umask 077' | sudo tee -a /etc/bashrc # Make home directory private -chmod 700 /home/* +sudo chmod 700 /home/* # Setup NTS sudo rm -rf /etc/chrony/chrony.conf diff --git a/GCP-Debian-11.sh b/GCP-Debian-11.sh index 16468dd..aae4f73 100644 --- a/GCP-Debian-11.sh +++ b/GCP-Debian-11.sh @@ -28,7 +28,7 @@ sudo systemctl mask debug-shell.service echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf # Make home directory private -chmod 700 /home/* +sudo chmod 700 /home/* # Setup NTS sudo rm -rf /etc/chrony/chrony.conf diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index 021e6c2..2a483cb 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -39,6 +39,9 @@ OPTIONS="-F 1"' | sudo tee /etc/sysconfig/chronyd sudo systemctl restart chronyd +# Make home directory private +sudo chmod 700 /home/* + # Setup Firewalld sudo firewall-cmd --permanent --remove-service=cockpit diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index f725943..0bc25fe 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -38,7 +38,7 @@ sudo apt autoremove -y sudo usg fix cis_level2_workstation # Make home directory private -chmod 700 /home/* +sudo chmod 700 /home/* # Remove AIDE sudo apt purge -y aide* diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index 5a0dba0..f650c24 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -41,7 +41,7 @@ sudo apt install -y curl #sudo usg fix cis_level2_server # Make home directory private -chmod 700 /home/* +sudo chmod 700 /home/* # Remove AIDE #sudo apt purge -y aide*