 # UNISRC_ID %M	%D

USERS=/users
if [ $# != 1 ]
then
	echo "Usage: makeuser name"
	exit 1
fi
if [ -d $USERS/$1 ]
then
	echo "Directory already exists."
	exit 1
fi
if grep \^$1\: /etc/passwd >/dev/null
then
	:
else
	echo "No password entry."
	exit 1
fi
mkdir $USERS/$1
chown $1 $USERS/$1
#copy any other default files here.
cp /etc/d.profile $USERS/$1/.profile
cp /etc/d.exrc $USERS/$1/.exrc
chown $1 $USERS/$1/.[a-z]* 
ls -ld $USERS/$1
ls -la $USERS/$1
