From 7367774e397668d5ebca3261062c21d9604db269 Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Sun, 4 Apr 2021 09:46:40 +0000 Subject: [PATCH] Update Ubuntu-Desktop-20.04-LTS.sh --- Ubuntu-Desktop-20.04-LTS.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ubuntu-Desktop-20.04-LTS.sh b/Ubuntu-Desktop-20.04-LTS.sh index 0b3e3ee..06b3dc8 100644 --- a/Ubuntu-Desktop-20.04-LTS.sh +++ b/Ubuntu-Desktop-20.04-LTS.sh @@ -27,6 +27,11 @@ echo "umask 077" | sudo tee --append /etc/profile #Make home directory private chmod -R o-rwx /home/${USER} +#Remove unnecessary permissions +chmod o-w /var/crash +chmod o-w /var/metrics +chmod o-w /var/tmp + #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