From 50b5126acdd3c4459e600b6ddaa40422d6ecda91 Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Sun, 4 Apr 2021 09:12:54 +0000 Subject: [PATCH] Update Ubuntu-20.04-LTS.sh --- Ubuntu-20.04-LTS.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ubuntu-20.04-LTS.sh b/Ubuntu-20.04-LTS.sh index 158f005..7fcd844 100644 --- a/Ubuntu-20.04-LTS.sh +++ b/Ubuntu-20.04-LTS.sh @@ -22,6 +22,9 @@ umask 077 sudo sed -i 's/UMASK 022/UMASK 077/g' /etc/login.defs echo "umask 077" | sudo tee --append /etc/profile +#Make home directory private +chmod -R o-rwx /home/${USER} + #Disable ptrace echo "kernel.yama.ptrace_scope = 3" | sudo tee /etc/sysctl.d/10-default-yama-scope.conf sudo sysctl --load=/etc/sysctl.d/10-default-yama-scope.conf