#!/bin/sh # # A simple script to reset a specific user's desktop settings # if [ ! "$1" ] then echo echo "usage: $0 " echo exit fi HOMEDIR=`eval "echo ~$1"` cd $HOMEDIR || { echo echo "Ack! the home directory of $1 was not found, aborting" echo exit } # out with the old #for dir in .gconfd #do #if [ -d $HOMEDIR/$dir ] #then sudo chmod 777 $HOMEDIR/$dir #fi #done for dir in .gconfd do if [ -d $HOMEDIR/$dir ] then rm -rf $HOMEDIR/$dir &> /dev/null fi done