13,420
edits
Changes
no edit summary
for x<br>
do<br>
userPassWd=$(date | md5sum | cut -d" " -f1)<br> useradd -m -c "$(echo $x | cut -d":" -f2 | sed 's/+/ /g')" -p $(date | md5sum | cut -d" " -f1) userPassWd $(echo $x | cut -d":" -f1)<br>
mail -s "Server Account Information" $(echo $x | cut -d":" -f3) <<+<br>
Here is your server account information:<br>
servername: myserver.senecac.on.ca<br>
username: $(echo $x | cut -d":" -f1)<br>
password: $(date | md5sum | cut -d" " -f1)userPassWd<br>
Regards,<br>
IT Department<br>