X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Frefred.sh;h=908e3bd5494be376a71abf16bc32e2007f146c4d;hb=a9311019fd8802416644421ca85e7537190127a8;hp=a220364279a4c001776d29ff945cc8ca51bd34a3;hpb=0b875367bb5da08dec2d1978b484fb884fe39ca6;p=feisty_meow.git diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index a2203642..908e3bd5 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,18 @@ function refred() fi done + # special case for archives directory. + if [ -d /z/stuffing -o -L /z/stuffing ]; then + sudo chown fred:fred /z; sudo chmod g+rx,o+rx /z + sudo chown fred:fred /z/stuffing; sudo chmod g+rx,o-rwx /z/stuffing + pushd /z/stuffing &>/dev/null + if [ -d archives -o -L archives ]; then + sudo chown fred:fred archives + sudo chmod -R g+rwx archives + fi + popd &>/dev/null + fi + # make the logs readable by normal humans. sudo bash $FEISTY_MEOW_SCRIPTS/security/normal_perm.sh /var/log }