#!/bin/bash # normal_perm: traverses directory trees and sets the permissions to a # standard accessibility value. for fred, this is rwxr-xr-x for directories # and rw-r--r-- for files. args=$* if [ -z "$args" ]; then args=.; fi #echo args are $args for i in $args; do find $i -type d -exec chmod 755 {} ';' # >/dev/null 2>/dev/null find $i -type f -exec chmod 644 {} ';' # >/dev/null 2>/dev/null done