From 0f4dedc6c1fbcca0c1880772f118332122ecf8d5 Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Sun, 4 Apr 2021 10:08:04 +0000 Subject: [PATCH] Update Ubuntu-Desktop-20.04-LTS.sh --- Ubuntu-Desktop-20.04-LTS.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ubuntu-Desktop-20.04-LTS.sh b/Ubuntu-Desktop-20.04-LTS.sh index 9ed472d..b9cb4cb 100644 --- a/Ubuntu-Desktop-20.04-LTS.sh +++ b/Ubuntu-Desktop-20.04-LTS.sh @@ -21,7 +21,8 @@ cd /home/${USER} || exit #Setting umask to 077 umask 077 -sudo sed -i 's/UMASK 022/UMASK 077/g' /etc/login.defs +sed -ie '/^DIR_MODE=/ s/=[0-9]*\+/=0700/' /etc/adduser.conf +sed -ie '/^UMASK\s\+/ s/022/077/' /etc/login.defs echo "umask 077" | sudo tee --append /etc/profile #Make home directory private