fixed perm scripts to follow links
[feisty_meow.git] / scripts / security / group_perm.sh
index 676fb1da2e595312ca21051d57de66221ae38103..17731032e963557f70569c815a64258c10047c07 100644 (file)
@@ -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