From: Chris Koeritz Date: Tue, 7 Nov 2017 22:36:01 +0000 (+0000) Subject: fixed perm scripts to follow links X-Git-Tag: 2.140.90~49 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=10a49b897749753491c0948a1f1d599fd109c4e4;p=feisty_meow.git fixed perm scripts to follow links --- 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