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