13,420
edits
Changes
no edit summary
:: useradd -m -c "$(echo $x | cut -d":" -f2 | sed 's/+/ /g')" -p $(date | md5sum | cut -d" " -f1) $(echo $x | cut -d":" -f1)
:: mail -s "Server Account Information" $(echo $x | cut -d":" -f3) <<+
:: Here is your server account information::: servername: myserver.senecac.on.ca:: username: $userName(echo $x | cut -d":" -f1):: password: $userPassword(date | md5sum | cut -d" " -f1):: Regards,:: IT Department
::+
::done<br><br>
::echo -e "\n\nAccounts have been created\n\n"
::exit 0