#!/bin/sh
#smbadd.sh
yes “$2″ | passwd $1
( echo $2 ; echo $2 ) | smbpasswd -a -s $1

mkdir -m 700 /home/share/profiles/”$2”.V2
chown -R “$2″:”$2″ /home/share/profiles/”$2”.V2

echo “user: $1, pass: $2”