From 24e7e6bd88a6968b1f7249b6110d9810605eaf61 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 29 May 2024 12:43:53 -0700 Subject: [PATCH] Minor reorganization Signed-off-by: Tommy --- Ubuntu-23.10-Desktop.sh | 6 +++--- Ubuntu-24.04-Server.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Ubuntu-23.10-Desktop.sh b/Ubuntu-23.10-Desktop.sh index 48fcb8a..de85e38 100644 --- a/Ubuntu-23.10-Desktop.sh +++ b/Ubuntu-23.10-Desktop.sh @@ -44,15 +44,15 @@ install_options # Compliance and updates sudo systemctl mask debug-shell.service -# Make home directory private -sudo chmod 700 /home/* - # Setting umask to 077 umask 077 sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs +# Make home directory private +sudo chmod 700 /home/* + # Setup NTS sudo systemctl disable --now systemd-timesyncd sudo systemctl mask systemd-timesyncd diff --git a/Ubuntu-24.04-Server.sh b/Ubuntu-24.04-Server.sh index 13961e5..5d82918 100644 --- a/Ubuntu-24.04-Server.sh +++ b/Ubuntu-24.04-Server.sh @@ -29,15 +29,15 @@ sudo systemctl mask debug-shell.service echo 'Authorized uses only. All activity may be monitored and reported.' | sudo tee /etc/issue echo 'Authorized uses only. All activity may be monitored and reported.' | sudo tee /etc/issue.net -# Make home directory private -sudo chmod 700 /home/* - # Setting umask to 077 umask 077 sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs +# Make home directory private +sudo chmod 700 /home/* + # Setup NTS sudo systemctl disable --now systemd-timesyncd sudo systemctl mask systemd-timesyncd