1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-22 01:21:33 -05:00

Update Ubuntu-Desktop-20.04-LTS.sh

This commit is contained in:
TommyTran732 2021-04-04 09:46:40 +00:00 committed by GitHub
parent 4c73cccce4
commit 7367774e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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