so far i have this.
#! /bin/bash
file=/home/userlist.txt
while read -r username directory full
do
IFS=':'
PASSWORD=$(pwgen -1 -s 16)
useradd -s /bin/bash -d $directory -c $full -m -p "$PASSWORD" "$username"
echo "$username $directory $full ---- $PASSWORD" >> /home/created
done
cannot seem to add user . the file is read. I know this because created.txt and it shows it.