mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 09:31:34 -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
|
#Make home directory private
|
||||||
chmod -R o-rwx /home/${USER}
|
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
|
#Disable ptrace
|
||||||
echo "kernel.yama.ptrace_scope = 3" | sudo tee /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
|
sudo sysctl --load=/etc/sysctl.d/10-default-yama-scope.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user