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
9932eb2521
commit
0f4dedc6c1
@ -21,7 +21,8 @@ cd /home/${USER} || exit
|
|||||||
|
|
||||||
#Setting umask to 077
|
#Setting umask to 077
|
||||||
umask 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
|
echo "umask 077" | sudo tee --append /etc/profile
|
||||||
|
|
||||||
#Make home directory private
|
#Make home directory private
|
||||||
|
Loading…
Reference in New Issue
Block a user