mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-12-23 07:12:07 -05:00
Update Ubuntu-Desktop-20.04-LTS.sh
This commit is contained in:
parent
4c73cccce4
commit
7367774e39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user