From 10a49b897749753491c0948a1f1d599fd109c4e4 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 7 Nov 2017 22:36:01 +0000 Subject: [PATCH] fixed perm scripts to follow links --- scripts/security/easy_perm.sh | 4 ++-- scripts/security/exe_perm.sh | 4 ++-- scripts/security/group_perm.sh | 4 ++-- scripts/security/harsh_perm.sh | 4 ++-- scripts/security/normal_perm.sh | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/security/easy_perm.sh b/scripts/security/easy_perm.sh index 6663909b..472aa6f3 100644 --- a/scripts/security/easy_perm.sh +++ b/scripts/security/easy_perm.sh @@ -13,9 +13,9 @@ for (( i=0; i < ${#args[*]}; i++ )); do current="${args[i]}" # echo "curr is $current" - find "$current" -type d -exec chmod 777 {} ';' + find -L "$current" -type d -exec chmod 777 {} ';' # >/dev/null 2>/dev/null - find "$current" -type f -exec chmod 666 {} ';' + find -L "$current" -type f -exec chmod 666 {} ';' # >/dev/null 2>/dev/null done diff --git a/scripts/security/exe_perm.sh b/scripts/security/exe_perm.sh index 6d8ed90e..d3b68143 100644 --- a/scripts/security/exe_perm.sh +++ b/scripts/security/exe_perm.sh @@ -13,9 +13,9 @@ for (( i=0; i < ${#args[*]}; i++ )); do current="${args[i]}" # echo "curr is $current" - find "$current" -type d -exec chmod 755 {} ';' + find -L "$current" -type d -exec chmod 755 {} ';' # >/dev/null 2>/dev/null - find "$current" -type f -exec chmod 755 {} ';' + find -L "$current" -type f -exec chmod 755 {} ';' # >/dev/null 2>/dev/null done diff --git a/scripts/security/group_perm.sh b/scripts/security/group_perm.sh index 676fb1da..17731032 100644 --- a/scripts/security/group_perm.sh +++ b/scripts/security/group_perm.sh @@ -12,9 +12,9 @@ fi for (( i=0; i < ${#args[*]}; i++ )); do current="${args[i]}" # echo "curr is $current" - find "$current" -type d -exec chmod u+rwx,g+rwx {} ';' + find -L "$current" -type d -exec chmod u+rwx,g+rwx {} ';' ### >/dev/null 2>/dev/null - find "$current" -type f -exec chmod u+rw,g+rw {} ';' + find -L "$current" -type f -exec chmod u+rw,g+rw {} ';' ### >/dev/null 2>/dev/null done diff --git a/scripts/security/harsh_perm.sh b/scripts/security/harsh_perm.sh index f08c77da..fbce59fb 100644 --- a/scripts/security/harsh_perm.sh +++ b/scripts/security/harsh_perm.sh @@ -13,8 +13,8 @@ for (( i=0; i < ${#args[*]}; i++ )); do current="${args[i]}" # echo "curr is $current" - find "$current" -type d -exec chmod 700 {} ';' + find -L "$current" -type d -exec chmod 700 {} ';' # >/dev/null 2>/dev/null - find "$current" -type f -exec chmod 600 {} ';' + find -L "$current" -type f -exec chmod 600 {} ';' # >/dev/null 2>/dev/null done diff --git a/scripts/security/normal_perm.sh b/scripts/security/normal_perm.sh index 73a7f941..2e641a0d 100644 --- a/scripts/security/normal_perm.sh +++ b/scripts/security/normal_perm.sh @@ -13,9 +13,9 @@ fi for (( i=0; i < ${#args[*]}; i++ )); do current="${args[i]}" # echo "curr is $current" - find "$current" -type d -exec chmod 755 {} ';' + find -L "$current" -type d -exec chmod 755 {} ';' ### >/dev/null 2>/dev/null - find "$current" -type f -exec chmod 644 {} ';' + find -L "$current" -type f -exec chmod 644 {} ';' ### >/dev/null 2>/dev/null done -- 2.34.1