From: Chris Koeritz Date: Tue, 7 Nov 2017 23:34:20 +0000 (-0500) Subject: more perm mods oy X-Git-Tag: 2.140.90~46 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=36ec05a49d8a4cd938a1a9a29c09802f10a89e9b more perm mods oy --- diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index b04be4b5..908e3bd5 100644 --- a/scripts/customize/fred/refred.sh +++ b/scripts/customize/fred/refred.sh @@ -25,10 +25,13 @@ function refred() # special case for archives directory. if [ -d /z/stuffing -o -L /z/stuffing ]; then - chmod g+rx,o+rx /z - chmod g+rx,o-rwx /z/stuffing + 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 group_perm archives; fi + if [ -d archives -o -L archives ]; then + sudo chown fred:fred archives + sudo chmod -R g+rwx archives + fi popd &>/dev/null fi