From a024693a3e281a0346c10b7d3830ef385d997069 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 18 May 2018 18:15:15 -0400 Subject: [PATCH] cleared redundant code revamp v003 --- scripts/security/cool_permissionator.sh | 4 ++-- scripts/site_avenger/revamp_cakelampvm_v003.sh | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/security/cool_permissionator.sh b/scripts/security/cool_permissionator.sh index e66cab86..3d0dc8ea 100644 --- a/scripts/security/cool_permissionator.sh +++ b/scripts/security/cool_permissionator.sh @@ -12,11 +12,11 @@ function reapply_cool_permissions() # first build a list of dirs based on their location in /home/archives. local arch_builder="archons basement codebarn games imaginations musix pooling prewar_toaster stuffing toaster walrus" - local ARCHIVE_HOME=/home/archives + local ARCHIVE_TOP=/home/archives local dirname local arch_addin for dirname in $arch_builder; do - arch_addin+="$ARCHIVE_HOME/$dirname " + arch_addin+="$ARCHIVE_TOP/$dirname " done #echo arch addin now is: $arch_addin diff --git a/scripts/site_avenger/revamp_cakelampvm_v003.sh b/scripts/site_avenger/revamp_cakelampvm_v003.sh index ccd40659..08cb444e 100644 --- a/scripts/site_avenger/revamp_cakelampvm_v003.sh +++ b/scripts/site_avenger/revamp_cakelampvm_v003.sh @@ -86,12 +86,14 @@ test_or_die "group_perm www-data" ############## # set up access on some important folders for the developer user. + redeveloper test_or_die "running redeveloper to fix ownership" #chown -R developer:developer /home/developer /home/developer/.[a-zA-Z0-9]* #test_or_die "chown developer home" -harsh_perm /home/developer/.ssh -test_or_die "harsh_perm setting on developer .ssh" +#harsh_perm /home/developer/.ssh +#test_or_die "harsh_perm setting on developer .ssh" + chown -R developer:developer /etc/apache2 /etc/bind test_or_die "chown apache2 and bind to developer" group_perm /etc/apache2 /etc/bind -- 2.34.1