fixed perm scripts to follow links
[feisty_meow.git] / scripts / security / harsh_perm.sh
index f08c77dad6af8e1955664354515566cf803ec49d..fbce59fb95f4f3c6d4a169b5a7f176981e0afa30 100644 (file)
@@ -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