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
9932eb2521
commit
0f4dedc6c1
@ -21,7 +21,8 @@ cd /home/${USER} || exit
|
||||
|
||||
#Setting umask to 077
|
||||
umask 077
|
||||
sudo sed -i 's/UMASK 022/UMASK 077/g' /etc/login.defs
|
||||
sed -ie '/^DIR_MODE=/ s/=[0-9]*\+/=0700/' /etc/adduser.conf
|
||||
sed -ie '/^UMASK\s\+/ s/022/077/' /etc/login.defs
|
||||
echo "umask 077" | sudo tee --append /etc/profile
|
||||
|
||||
#Make home directory private
|
||||
|
Loading…
Reference in New Issue
Block a user