rf-ppt-repair

#!/bin/bash
 
pptacct=$1
homedir="/home/"
 
if [ -z "$pptacct" ] ; then
echo "error: feed me name of ppt/ftp account!"
exit
fi
 
if [ ! -d "$homedir$pptacct" ]; then
echo "error: that directory doesn't exist!"
exit
fi
 
 
chmod -R 777 $homedir$pptacct/ ; chown -R $pptacct:$pptacct $homedir$pptacct