#!/bin/bash
for USER in $(cat username.list)
do
useradd $USER
echo mypasswd|passwd $USER --stdin
done
cat username.list
user1 user2
user3