#! /bin/sh # # Filename: private # # Programmer: Br. David Carlson # # Date: March 26, 1994 # # This Bourne 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 [ $# -eq 1 ] # There should be 1 parameter then chmod g-rwx,o-rwx "$1" # Remove permissions for group, other else echo "One parameter needed, the name of the file to modify" fi