1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-09 19:51:34 -05:00

Fix umask configs

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-06-05 22:03:37 -07:00 committed by GitHub
parent be26bbdf55
commit 56947c4c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,9 +19,8 @@ cd /home/"${USER}" || exit
#Setting umask to 077 #Setting umask to 077
umask 077 umask 077
sudo sed -i 's/umask 002/umask 077/g' /etc/bashrc
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc
echo "umask 077" >> /etc/bashrc echo "umask 077" | sudo tee -a /etc/bashrc
#Make home directory private #Make home directory private
chmod 700 /home/* chmod 700 /home/*