#!/bin/sh
if [ $# != 2 ] ; then
echo "USAGE: $0
echo "e.g. : $0
exit 1;
fi
user=$1
homedir=$2
usermod -d $homedir $user
cd /etc/skel/;cp .bash_logout $homedir;cp .bash_profile $homedir;cp .bashrc $homedir