#! /bin/sh # # Filename: fix # # Programmer: Br. David Carlson # # Date: April 21, 1994 # # This Bourne shell program makes all subdirectories of the current one to # be private. # set * #put filenames into parameters while test $# -ge 1 #number of parameters >= 1 do if test -d $1 #check if first parameter is a directory then echo "Making directory $1 private" chmod 700 "$1" #only let owner access this directory fi shift done