1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-23 07:12:07 -05:00

Update Ubuntu-20.04-LTS.sh

This commit is contained in:
TommyTran732 2021-04-04 09:12:54 +00:00 committed by GitHub
parent 860abee511
commit 50b5126acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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