#!/bin/bash # fix_all_perms: sets the permissions appropriately for the different # directories in the personal environment. # Set up the directory variables. source $HOME/yeti/shells/variables.sh source $SHELLDIR/create_tempdir.sh # The permission modifers are copied to the temporary directory. /bin/cp $SHELLDIR/*perm* $SHELLDIR/gen* $SHELLDIR/null $TMP chmod 755 $TMP/*perm* $TMP/gen* $TMP/null PATH=$PATH:$TMP # Create some friendlier names to use. alias exe='$TMP/exe_perm' alias harsh='$TMP/harsh_perm' alias perm='$TMP/perm_setter' alias easy='$TMP/easy_perm' # Make everything locked completely for others as the first permission change. harsh $HOME # Set the executable permissions. exe $SHELLDIR $HOME/.Binary.* # These are set so that they can look at directories, but not much else... chmod 755 $HOME $HOME/project $HOME/yeti # Regular permissions for a lot of stuff. perm $HOME/etc $HOME/stuffing/sounds $HOME/stuffing/pictures perm $HOME/yeti/configuration $HOME/yeti/database $HOME/yeti/shells ##outdated perm $HOME/yeti/info $HOME/yeti/man $HOME/yeti/references $HOME/yeti/c++ # Easy permission for the download directories. easy $HOME/stuffing/download echo Permissions have been set.