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

Make sure umask is 077

Signed-off-by: Tommy Tran <contact@tommytran.io>
This commit is contained in:
Tommy Tran 2023-06-05 16:06:28 -07:00
parent 843ea5c90a
commit be26bbdf55
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -21,6 +21,7 @@ cd /home/"${USER}" || exit
umask 077
sudo sed -i 's/umask 002/umask 077/g' /etc/bashrc
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc
echo "umask 077" >> /etc/bashrc
#Make home directory private
chmod 700 /home/*