From 3afee9f2cb7971e5abf945ee860060e0d839d699 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 11 Nov 2024 22:45:24 -0700 Subject: [PATCH] Fix whonix scripts --- whonix/whonix-gw.sh | 4 ++-- whonix/whonix-ws.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/whonix/whonix-gw.sh b/whonix/whonix-gw.sh index 8c0b26d..b084cda 100644 --- a/whonix/whonix-gw.sh +++ b/whonix/whonix-gw.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -eu -o pipefail +set -eu unpriv(){ sudo -u nobody "${@}" @@ -29,7 +29,7 @@ download() { 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/bashrc +sudo sed -i 's/umask 022/umask 077/g' /etc/bash.bashrc # Make home directory private sudo chmod 700 /home/* diff --git a/whonix/whonix-ws.sh b/whonix/whonix-ws.sh index 56b870b..1ef6074 100644 --- a/whonix/whonix-ws.sh +++ b/whonix/whonix-ws.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -eu -o pipefail +set -eu unpriv(){ sudo -u nobody "${@}" @@ -29,7 +29,7 @@ download() { 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/bashrc +sudo sed -i 's/umask 022/umask 077/g' /etc/bash.bashrc # Make home directory private sudo chmod 700 /home/*