#! /bin/csh -f # # Filename: private # # Programmer: Br. David Carlson # # Date: March 26, 1994 # # This C shell program makes a "private" file out of the file # given as the command line parameter. Read, write, and execute # permission are removed for everyone but the owner of the file. # if ($#argv == 1) then # There should be 1 parameter chmod g-rwx,o-rwx "$argv[1]" # Remove permissions for group, other else echo "One parameter needed, the name of the file to modify" endif