1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-09-19 13:44:43 -04:00

Update Ubuntu-Desktop-20.04-LTS.sh

This commit is contained in:
TommyTran732 2021-04-04 10:26:11 -04:00 committed by GitHub
parent a5b4498e80
commit 4f9eb4889f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 sudo sed -ie '/^UMASK\s\+/ s/022/077/' /etc/login.defs
echo "umask 077" | sudo tee --append /etc/profile 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 #Make home directory private
sudo chmod 700 /home/* sudo chmod 700 /home/*