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
a5b4498e80
commit
4f9eb4889f
@ -25,6 +25,11 @@ sudo sed -ie '/^DIR_MODE=/ s/=[0-9]*\+/=0700/' /etc/adduser.conf
|
||||
sudo sed -ie '/^UMASK\s\+/ s/022/077/' /etc/login.defs
|
||||
echo "umask 077" | sudo tee --append /etc/profile
|
||||
|
||||
#Remove unnecessary permissions
|
||||
sudo chmod o-w /var/cache
|
||||
sudo chmod o-w /var/metrics
|
||||
sudo chmod o-w /var/tmp
|
||||
|
||||
#Make home directory private
|
||||
sudo chmod 700 /home/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user