#!/bin/sh #smbadd.sh yes “$2” | passwd $1 ( echo $2 ; echo $2 ) | smbpasswd -a -s $1 echo “user: $1, pass: $2”