Fix Debian scripts

This commit is contained in:
Tommy 2024-11-12 01:36:55 -07:00 committed by GitHub
parent 08cbe37868
commit b5113b3b93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 12 deletions

View file

@ -25,11 +25,11 @@ download() {
}
# Setting umask to 077
# Does not actually work for some reason - need to check
# Whonix defaults to zsh - I need to set it for zsh later.
umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bash.bashrc
echo 'umask 077' | sudo tee -a /etc/bash.bashrc
# Make home directory private
sudo chmod 700 /home/*