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

Update Ubuntu-20.04-LTS.sh

This commit is contained in:
TommyTran732 2021-04-04 09:05:59 +00:00 committed by GitHub
parent f66980848a
commit 7587cc8cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,8 +23,7 @@ sudo sed -i 's/UMASK 022/UMASK 077/g' /etc/login.defs
echo "umask 077" | sudo tee --append /etc/profile
#Disable ptrace
sudo cp /usr/lib/sysctl.d/10-default-yama-scope.conf /etc/sysctl.d/
sudo sed -i 's/kernel.yama.ptrace_scope = 0/kernel.yama.ptrace_scope = 3/g' /etc/sysctl.d/10-default-yama-scope.conf
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
#Enable UFW