From 99bef735117729d6a354139602ccfaf45e197e84 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 7 Nov 2017 22:50:59 +0000 Subject: [PATCH] nice fixes repairs the /z/ hierarchy's permissions automatically now. --- scripts/customize/fred/refred.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index a2203642..13298710 100644 --- a/scripts/customize/fred/refred.sh +++ b/scripts/customize/fred/refred.sh @@ -1,5 +1,7 @@ #!/bin/bash +#source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + # cleans up the ownership for all my files and dirs. function refred() { @@ -21,6 +23,15 @@ function refred() fi done + # special case for archives directory. + if [ -d /z/stuffing -o -L /z/stuffing ]; then + chmod g+rx /z + chmod g+rwx /z/stuffing + pushd /z/stuffing &>/dev/null + if [ -d archives -o -L archives ]; then group_perm archives; fi + popd &>/dev/null + fi + # make the logs readable by normal humans. sudo bash $FEISTY_MEOW_SCRIPTS/security/normal_perm.sh /var/log } -- 2.34.1